Line 263: | Line 263: | ||
/* when the user scrolls down, we hide the header right above the viewport */ | /* when the user scrolls down, we hide the header right above the viewport */ | ||
position: fixed; | position: fixed; | ||
− | top: | + | top: 8vh; |
background-color: rgba(2, 23, 37, 0.96); | background-color: rgba(2, 23, 37, 0.96); | ||
-webkit-transition: -webkit-transform 0.3s; | -webkit-transition: -webkit-transform 0.3s; | ||
Line 271: | Line 271: | ||
.cd-header.is-visible { | .cd-header.is-visible { | ||
/* if the user changes the scrolling direction, we show the header */ | /* if the user changes the scrolling direction, we show the header */ | ||
+ | position: fixed; | ||
+ | top: 8vh; | ||
-webkit-transform: translate3d(0, 0, 0); | -webkit-transform: translate3d(0, 0, 0); | ||
-moz-transform: translate3d(0, 0, 0); | -moz-transform: translate3d(0, 0, 0); |
Revision as of 17:52, 13 October 2019