Skip to content
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
22 changes: 22 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,18 @@ nav {
content: "\f105"; /* fa-angle-right */
right: 10px;
display: inline-block;
/*
* The base .dropdown:after rule centres the glyph with line-height: 53px,
* which is the height of the 55px top-level bar. A submenu row is 32px
* (6px padding + 20px line-height + 6px), so inherited unchanged the arrow
* painted 11.5px below the label it belongs to.
*
* Anchored to the link row via line-height rather than top/transform: 50%,
* because this li also contains its child <ul>, so its own height is not the
* row height wherever that submenu expands in flow (the mobile accordion).
*/
top: 0;
line-height: 32px;
}

.shapely-dropdown {
Expand Down Expand Up @@ -2395,6 +2407,16 @@ nav.fixed.scrolled {
padding: 10px 16px;
}

/*
* Submenu rows are 44px here (10px + 24px line-height + 10px) rather than the
* 32px they are on desktop, so the arrow's line box has to match or it rides
* high. Same reasoning as the base rule -- see the comment there.
*/
.main-navigation .menu > li > ul li.menu-item-has-children:after,
.main-navigation .menu > li > ul li.menu-item-has-children > .dropdown:after {
line-height: 44px;
}

.main-navigation .dropdown .dropdown li {
padding-left: 18px;
}
Expand Down
Loading