Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mixin to include with any fixed position styles to adjust for the WordPress admin bar.
// Use wherever a fixed position is declared to adjust for that pesky WP admin bar.
@mixin wp-admin-bump{
.admin-bar & {
margin-top: 46px;
@media screen and (min-width: 782px){
margin-top: 32px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment