Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix(Header): update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Dec 15, 2019
1 parent f1fa2b9 commit 4063284
Showing 1 changed file with 44 additions and 34 deletions.
78 changes: 44 additions & 34 deletions src/components/Header/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors, fontFamilies, media } from '@src/theme'
import { colors, fontFamilies, media, maxWidthLayout } from '@src/theme'

export default {
header: {
Expand All @@ -7,6 +7,10 @@ export default {
whiteSpace: `nowrap`,
fontWeight: 100,

width: `100vw`,
...maxWidthLayout,
margin: `0 auto`,

'& a': {
color: `darkWhite`,

Expand Down Expand Up @@ -197,16 +201,18 @@ export default {
},

headerLink: {
display: `block`,
color: colors.darkWhite,
position: `relative`,
border: `none`,
// zIndex: 1,

':hover, :active, :focus': {
backgroundColor: `transparent`,
a: {
display: `block`,
color: colors.darkWhite,
textDecoration: `none`,
position: `relative`,
border: `none`,
// zIndex: 1,

':hover, :active, :focus': {
backgroundColor: `transparent`,
color: colors.darkWhite,
textDecoration: `none`,
},
},
},

Expand All @@ -221,35 +227,39 @@ export default {
},

headerMeta_headerLink: {
// WebkitFontSmoothing: `antialiased`,
// WebkitBackfaceVisibility: `hidden`,
// transform: `perspective(1px) translateZ(0)`,
// transition: `transform .2s`,
// WebkitFilter: `blur(0)`,
'&:hover': {
backgroundColor: `transparent`,
transform: `scale(1.048, 1.048)`,
a: {
// WebkitFontSmoothing: `antialiased`,
// WebkitBackfaceVisibility: `hidden`,
// transform: `perspective(1px) translateZ(0)`,
// transition: `transform .2s`,
// WebkitFilter: `blur(0)`,
'&:hover': {
backgroundColor: `transparent`,
transform: `scale(1.048, 1.048)`,
},
},
},

headerNav_headerLink: {
display: `flex`,
alignItems: `center`,
height: `100%`,
padding: `0 .4rem 0`,

':hover, &.active': {
background: colors.primary,
},
a: {
display: `flex`,
alignItems: `center`,
height: `100%`,
padding: `0 .4rem 0`,

':hover, &.active': {
background: colors.primary,
},

[media.greaterThan(`xsmall`)]: {
padding: `0 .65rem 0`,
},
[media.greaterThan(`small`)]: {
fontSize: `1.1rem`,
},
[media.greaterThan(`large`)]: {
fontSize: `1.8rem`,
[media.greaterThan(`xsmall`)]: {
padding: `0 .65rem 0`,
},
[media.greaterThan(`small`)]: {
fontSize: `1.1rem`,
},
[media.greaterThan(`large`)]: {
fontSize: `1.8rem`,
},
},
},
}

0 comments on commit 4063284

Please sign in to comment.