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

Prevent wp admin bar from overlapping Foundation menus #1041

Merged
merged 2 commits into from
Aug 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}
}