Skip to content

Instantly share code, notes, and snippets.

@brianpurkiss
Last active August 7, 2019 12:34
Show Gist options
  • Save brianpurkiss/579bd9bf8921ee86155d385dfeb0f070 to your computer and use it in GitHub Desktop.
Save brianpurkiss/579bd9bf8921ee86155d385dfeb0f070 to your computer and use it in GitHub Desktop.
Bootstrap sticky nav padding for logged in wordpress users
body.logged-in.admin-bar {
.navbar.fixed-top { margin-top: 32px;
@media screen and ( max-width: 782px ) {
& { margin-top: 46px; }
}// end @media screen and ( max-width: 782px )
}// end .header,.navbar.fixed-top
}// end body.logged-in.admin-bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment