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

fix: Giving header a background so it doesn't collide with page content #26

Merged
merged 1 commit into from
Apr 19, 2017
Merged
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
2 changes: 0 additions & 2 deletions app/css/blocks/sandwich-menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ menuHeight = 55
height menuHeight*PX
cursor pointer
&.is-open
{el}__bg
opacity 1
{el}__line
transform rotate(45deg)
lineWidth = 25
Expand Down
10 changes: 7 additions & 3 deletions app/css/partials/header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.headroom
transition all .3s ease-out

{el = '.header'}
position fixed
z-index headerLayer
Expand All @@ -12,6 +12,10 @@
opacity 0
transition all .3s ease-out
nw 0
background-color rgba(255,255,255,.97)
padding-bottom 1.875rem
+mobile()
padding-bottom 3.45rem
.is-safari &
font-weight 900
&.is-show-menu
Expand Down Expand Up @@ -43,7 +47,7 @@
text-align center
padding 2*gs gs
// opacity 0
border-radius BRADIUS
border-radius 0 BRADIUS
border-top-right-radius 0
transition opacity .3s ease-out, top 0s linear
transition-delay 0s, .3s
Expand Down Expand Up @@ -101,4 +105,4 @@




46 changes: 23 additions & 23 deletions dist/main.js

Large diffs are not rendered by default.

Loading