-
-
Save jamiejohnsonkc/c321666c11481f2e72c4e198be8e79a0 to your computer and use it in GitHub Desktop.
Compensate for the Bootstrap fixed top navigation bar. #scss #css #bootstrap #navbar #splash
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
// Compensate for the Bootstrap fixed top navigation bar. | |
// | |
// No styleguide reference. | |
body { | |
padding-top: @navbar-height; | |
} | |
// Offset fixed top navigation bar if WordPress admin bar is | |
// visible. | |
// | |
// No styleguide reference. | |
.admin-bar { | |
padding-top: @navbar-height + 46px; | |
.navbar-fixed-top { | |
margin-top: 46px; | |
} | |
} | |
@media screen and (min-width: 783px) { | |
.admin-bar { | |
padding-top: @navbar-height + 36px; | |
.navbar-fixed-top { | |
margin-top: 36px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment