Compare commits

..

2 Commits

Author SHA1 Message Date
Helen Chong 54cfc65d56 Adjust fluid font sizes 2024-10-06 15:48:05 +08:00
Helen Chong fa145a5fce Reorganise font families 2024-10-06 15:37:57 +08:00
4 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@
{# Fonts #} {# Fonts #}
{% include "global/fontdefault.njk" %} {% include "global/fontdefault.njk" %}
<link rel="stylesheet" href="/assets/fonts/intel-one-mono/intel-one-mono.css"> <link rel="stylesheet" href="/assets/fonts/intel-one-mono.css">
{# CSS #} {# CSS #}
{% include "global/css-bundle.njk" %} {% include "global/css-bundle.njk" %}

View File

@ -3,7 +3,7 @@ body {
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
font-family: var(--ff-default), Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif; font-family: var(--ff-default);
color: var(--clr-body-txt); color: var(--clr-body-txt);
background-color: var(--clr-body-bg); background-color: var(--clr-body-bg);
} }
@ -92,7 +92,7 @@ figcaption {
} }
code { code {
font-family: var(--ff-monospace), ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; font-family: var(--ff-monospace);
word-break: break-word; word-break: break-word;
} }

View File

@ -34,14 +34,14 @@
--clr-mod-entry-bg: #241445; --clr-mod-entry-bg: #241445;
--ff-default: 'Lexend'; --ff-default: 'Lexend', Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
--ff-monospace: 'Inter One Mono'; --ff-monospace: 'Intel One Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
--fs-main: 1.2rem; --fs-main: clamp(1.125rem, 1.0565rem + 0.3096vi, 1.2rem);
--fs-h1: clamp(2rem, 1rem + 5vw, 3rem); --fs-h1: clamp(2rem, 1rem + 5vi, 3rem);
--fs-h2: clamp(1.55rem, 1rem + 3vw, 2.15rem); --fs-h2: clamp(1.55rem, 1rem + 3vi, 2.15rem);
--fs-h3: clamp(1.55rem, 1rem + 3vw, 1.8rem); --fs-h3: clamp(1.55rem, 1rem + 3vi, 1.8rem);
--fs-h4: clamp(1.4rem, 1rem + 3vw, 1.6rem); --fs-h4: clamp(1.4rem, 1rem + 3vi, 1.6rem);
--sz-paragraph-margin: 1.15em; --sz-paragraph-margin: 1.15em;
--sz-main-padding: clamp(1rem, 5%, 4rem); --sz-main-padding: clamp(1rem, 5%, 4rem);