mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
fonts: add --font-body/--font-display vars, use them everywhere
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
.prose {
|
||||
font-family: "BBBDMSans", sans-serif;
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.55rem;
|
||||
line-height: 1.45;
|
||||
color: var(--text-primary);
|
||||
@@ -50,7 +50,7 @@
|
||||
.prose h1,
|
||||
.prose h2,
|
||||
.prose h3 {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 400;
|
||||
margin: 1.5em 0 0.5em 0;
|
||||
}
|
||||
@@ -96,7 +96,7 @@
|
||||
}
|
||||
|
||||
.apropos-section-title {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.55rem;
|
||||
font-weight: 400;
|
||||
color: var(--text-primary);
|
||||
@@ -149,7 +149,7 @@
|
||||
}
|
||||
|
||||
.apropos-licences h2 {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.55rem;
|
||||
font-weight: 400;
|
||||
margin: 0 0 0.75rem 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ body {
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "BBBDMSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@@ -108,7 +108,7 @@ header nav {
|
||||
}
|
||||
|
||||
header nav > a {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.1rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
/* Title (h1) — primary heading, very large */
|
||||
.tfe-title {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-size: 2.2rem;
|
||||
font-weight: 400;
|
||||
color: var(--text-primary);
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
/* Author (p) — large but secondary */
|
||||
.tfe-author {
|
||||
font-family: "Combined", sans-serif;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.9rem;
|
||||
font-weight: 400;
|
||||
color: var(--text-primary);
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
/* Fonts */
|
||||
--font-body: "BBBDMSans", sans-serif;
|
||||
--font-display: "Combined", sans-serif;
|
||||
|
||||
/* Backgrounds */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f5f5f5;
|
||||
|
||||
Reference in New Issue
Block a user