Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions assets/scss/academic/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
.navbar-nav {
display: flex;

// Vertically centre every item (links, button, icons) on one line in the
// horizontal (lg+) navbar. Left to the default `stretch` the button and
// menu links sit on different centre lines.
@include media-breakpoint-up(lg) {
align-items: center;
}

.nav-link {
color: rgba($sta-menu-text, .85);

Expand Down
13 changes: 12 additions & 1 deletion assets/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,22 @@
}

.nav-btn {
line-height: initial;
display: inline-flex;
align-items: center;
line-height: 1.5;
font-weight: bold; // Match the bold weight of the main menu items.
background-color: #fefdf6 !important;
color: #3e3e3e !important;
}

// The FORRT wordmark inside the logo image sits low, so although the image is
// flex-centred the wordmark lands ~6.5px below the navbar centre line that the
// menu links and icons share. Nudge the desktop logo up so the wordmark aligns
// with the menu text. Scoped to the desktop logo only (mobile brand untouched).
.d-lg-inline-flex .navbar-brand img {
transform: translateY(-3px);
}

@media print {
.tab-content>.tab-pane {
display: block !important;
Expand Down
Loading