Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simple explicit header nav link padding #461

Closed
wants to merge 7 commits into from
15 changes: 2 additions & 13 deletions src/lib/_imports/trumps/s-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Styleguide Trumps.Scopes.Header

/* If link text uses 2 lines, header grows taller (but it must not do so) */
white-space: nowrap;

padding: 5px 14px;
}

@define-mixin header--not-expanded {
Expand Down Expand Up @@ -144,19 +146,6 @@ Styleguide Trumps.Scopes.Header
color: var(--header-text-color);
}

/* Navigation: Links: Responsive Design */

/* Tweak Bootstrap `_nav.scss` (which selects via `navbar-expand-` class) */
.s-header[class*="navbar-expand-"] .navbar-nav .nav-link {
padding-right: 14px; /* NO-R/EM: .875rem (overwrite Bootstrap) */
padding-left: 14px; /* NO-R/EM: .875rem (overwrite Bootstrap) */
}

@media (--medium-and-below) {
.s-header[class*="navbar-expand-"] .navbar-nav .nav-link {
padding-block: 8px;
}
}

/* Search */

Expand Down