Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1041 from rediris/wp-admin-improvements
Browse files Browse the repository at this point in the history
Prevent wp admin bar from overlapping Foundation menus
  • Loading branch information
olefredrik authored Aug 13, 2017
2 parents b100e18 + d833eca commit 09b9e35
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/assets/scss/global/_wp-admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
position: fixed !important;
}

// Make sure that the WP admin-bar does not overlap the sticky top bar
body.admin-bar.f-topbar-fixed {
.sticky.fixed {
margin-top: rem-calc(32);
// Make sure that the WP admin-bar does not overlap Foundation components
body.admin-bar {
// Offset sticky top bar
&.f-topbar-fixed {
.sticky.fixed {
margin-top: rem-calc(32);
}
}
// Offset mobile off-canvas menu
&.offcanvas {
.off-canvas.is-open {
top: rem-calc(46);
@include breakpoint(783) {
top: rem-calc(32);
}
}
}
}

0 comments on commit 09b9e35

Please sign in to comment.