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

fix: header font inconsistent between clients #464

Merged
merged 1 commit into from
Mar 3, 2025
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
9 changes: 2 additions & 7 deletions src/lib/_imports/trumps/s-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,12 @@ Styleguide Trumps.Scopes.Header
--height: 50px;
--header-major-border-width: 1px;

font-size: var(--global-font-size--medium); /* NO-R/EM: Overwrite `bootstrap.3.3.7.css` */
font-size: 14px; /* NO-R/EM: See `font--cms.css` */
font-weight: var(--bold);
letter-spacing: 0.025px; /* 14px * 0.025em equals design-requested 0.35px */
line-height: 1.4; /* `body` line-height differs between CMS, Portal, Docs */

/* FAQ: Asssigning this font is only necessary for the User Guide,
because it has a different `body` font. Otherwise, this style
repeats the CMS and Portal `body` font. But, with this style,
the header may be moved to a future page/site without losing font */
/* TODO: Find a way to be safe, but not redundant */
font-family: var(--global-font-family);
font-family: var(--global-font-family--sans--cms);
/* Copied from Portal (via `body`) */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down