Last active
June 23, 2020 16:09
-
-
Save brankoconjic/99bd09b25f40e94fc44ebae745b3eaff to your computer and use it in GitHub Desktop.
Sticky header CSS for Sinatra theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*****************************************/ | |
/* Sticky Header CSS | |
/*****************************************/ | |
.si-sticky-header #sinatra-header-inner { | |
position: fixed; | |
left: 0; | |
right: 0; | |
top: 0; | |
z-index: 999; | |
} | |
.si-sticky-header.admin-bar #sinatra-header-inner { | |
top: 32px; | |
} | |
@media screen and (max-width: 782px) { | |
.si-sticky-header.admin-bar #sinatra-header-inner { | |
top: 46px; | |
} | |
} | |
@media screen and (max-width: 600px) { | |
.si-sticky-header.admin-bar #sinatra-header-inner { | |
top: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment