Skip to content

Commit

Permalink
Fix: header responsive structure
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonOlv committed Mar 24, 2022
1 parent b6d6aa0 commit 51b0257
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Header = () => {
</Link>
</HeaderBrand.Brand>

<Flex sx={styles.searchContainer}>
<Box sx={styles.searchContainer}>
<Flex sx={styles.searchBox}>
<SearchIcon sx={styles.searchIcon} />
<input
Expand All @@ -66,7 +66,7 @@ const Header = () => {
onChange={(e) => setSearchValue(e.currentTarget.value)}
/>
</Flex>
</Flex>
</Box>

<HeaderBrand.RightLinks sx={styles.rightLinks}>
<Text sx={styles.docsDropDown}>Docs</Text>
Expand Down
9 changes: 8 additions & 1 deletion src/components/header/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ const headerContainer: SxStyleProp = {

const headerBrand: SxStyleProp = {
gridTemplateColumns: '1fr 2fr 0fr 1fr',
width: '100%',
position: 'relative',
}
const logoSize: SxStyleProp = { width: '200px', height: 'auto' }

const rightLinks: SxStyleProp = { height: '100%', pr: '64px' }
const rightLinks: SxStyleProp = {
display: ['none', 'flex !important'],
width: 'auto',
height: '100%',
pr: '64px',
}

const rightLinksItem: SxStyleProp = { alignItems: 'center' }

Expand All @@ -30,6 +36,7 @@ const docsDropDown: SxStyleProp = {
const iconContainer: SxStyleProp = { paddingLeft: 3, color: 'primary.base' }

const searchContainer: SxStyleProp = {
display: ['none', 'flex', 'flex', 'flex'],
justifyContent: 'center',
paddingBlock: '18px',
height: 'auto',
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
a {
text-decoration: none;
text-decoration: none !important;
}

footer > div {
Expand Down

0 comments on commit 51b0257

Please sign in to comment.