Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/Container/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const Container = ({children}: {children: Node}) => (
[media.size('xxlarge')]: {
maxWidth: 1260,
},

[media.lessThan('small')]: {
paddingLeft: 8,
paddingRight: 8,
},
}}>
{children}
</div>
Expand Down
9 changes: 3 additions & 6 deletions src/components/LayoutHeader/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ class DocSearch extends Component<{}, State> {
paddingLeft: '0.25rem',
paddingRight: '0.25rem',

[media.lessThan('large')]: {
[media.lessThan('xlarge')]: {
justifyContent: 'flex-end',
marginRight: 10,
},
[media.between('medium', 'xlarge')]: {
//width: 'calc(100% / 6)',
},
[media.greaterThan('large')]: {
[media.greaterThan('xlarge')]: {
minWidth: 100,
},
}}>
Expand Down Expand Up @@ -80,7 +77,7 @@ class DocSearch extends Component<{}, State> {
borderRadius: '0.25rem',
},

[media.lessThan('large')]: {
[media.lessThan('xlarge')]: {
fontSize: 16,
width: '16px',
transition: 'width 0.2s ease, padding 0.2s ease',
Expand Down
37 changes: 7 additions & 30 deletions src/components/LayoutHeader/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,12 @@ const Header = ({location}: {location: Location}) => (
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
height: 60,
[media.between('small', 'large')]: {
height: 50,
},
[media.lessThan('small')]: {
height: 40,
},
}}>
<Link
css={{
display: 'flex',
marginRight: 10,
flex: '0 0 auto',
marginRight: 8,
height: '100%',
alignItems: 'center',
color: colors.brand,
Expand All @@ -53,13 +47,6 @@ const Header = ({location}: {location: Location}) => (
outline: 0,
color: colors.white,
},

[media.greaterThan('small')]: {
width: 'calc(100% / 6)',
},
[media.lessThan('small')]: {
flex: '0 0 auto',
},
}}
to="/">
<img src={logoSvg} alt="" height="20" />
Expand Down Expand Up @@ -102,16 +89,13 @@ const Header = ({location}: {location: Location}) => (
height: '100%',

[media.size('xsmall')]: {
flexWrap: 'wrap',
flexGrow: '1',
width: 'auto',
},
[media.greaterThan('xlarge')]: {
width: null,
},
[media.lessThan('small')]: {
maskImage:
'linear-gradient(to right, transparent, black 20px, black 90%, transparent)',
},
}}>
<HeaderLink
isActive={location.pathname.includes('/docs/')}
Expand Down Expand Up @@ -143,17 +127,10 @@ const Header = ({location}: {location: Location}) => (
alignItems: 'center',
justifyContent: 'flex-end',
width: 'auto',

//[media.lessThan('medium')]: {
//width: 'auto',
//},
//[media.greaterThan('large')]: {
//width: 'calc(100% / 4)',
//},
}}>
<Link
css={{
padding: '5px 10px',
padding: '5px 8px',
whiteSpace: 'nowrap',
...fonts.small,

Expand All @@ -178,7 +155,7 @@ const Header = ({location}: {location: Location}) => (
css={{
display: 'flex',
alignItems: 'center',
padding: '5px 10px',
padding: '5px 8px',
whiteSpace: 'nowrap',
...fonts.small,

Expand Down Expand Up @@ -207,8 +184,8 @@ const Header = ({location}: {location: Location}) => (
</Link>
<a
css={{
padding: '5px 10px',
marginLeft: 10,
padding: '5px 8px',
marginLeft: 8,
whiteSpace: 'nowrap',
...fonts.small,

Expand Down
20 changes: 12 additions & 8 deletions src/components/LayoutHeader/HeaderLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ const style = {
alignItems: 'center',
color: colors.white,
transition: 'color 0.2s ease-out',
paddingLeft: 15,
paddingRight: 15,
padding: '0 15px',
fontWeight: 300,
minHeight: 60,
[media.between('small', 'large')]: {
minHeight: 50,
},
[media.lessThan('small')]: {
minHeight: 40,
},

':focus': {
outline: 0,
Expand All @@ -39,18 +45,16 @@ const style = {
},

[media.size('xsmall')]: {
paddingLeft: 8,
paddingRight: 8,
padding: '0 8px',
fontSize: 14,
},

[media.between('small', 'medium')]: {
paddingLeft: 10,
paddingRight: 10,
padding: '0 10px',
},

[media.greaterThan('xlarge')]: {
paddingLeft: 20,
paddingRight: 20,
padding: '0 20px',
fontSize: 18,

':hover:not(:focus)': {
Expand Down