Improve the home page slightly

This commit is contained in:
Eryn Wells 2022-11-18 08:28:58 -08:00
parent 2c1f64cbca
commit cc4b1df2bf
4 changed files with 10 additions and 5 deletions

View file

@ -21,8 +21,10 @@ h1 {
h1 { font-size: 4.25rem; } h1 { font-size: 4.25rem; }
} }
html { @media (max-width: 599px) {
font-size: clamp(var(--font-size-min), 2.5vw, var(--font-size-max)); html {
--font-size-scale-factor: 1.33vmax;
}
} }
main { main {
@ -65,6 +67,7 @@ main h1 {
nav { nav {
align-items: baseline; align-items: baseline;
align-self: center;
display: flex; display: flex;
list-style: none; list-style: none;
text-transform: lowercase; text-transform: lowercase;

View file

@ -314,10 +314,12 @@ header.site > .grid > nav:last-of-type {
} }
html { html {
--font-size-scale-factor: 1vmax;
background-color: var(--html-background-color); background-color: var(--html-background-color);
color: var(--html-color); color: var(--html-color);
font-family: var(--font-family-body); font-family: var(--font-family-body);
font-size: clamp(var(--font-size-min), 1vw, var(--font-size-max)); font-size: clamp(var(--font-size-min), var(--font-size-scale-factor), var(--font-size-max));
} }
img { img {

View file

@ -2,4 +2,4 @@
title: Eryn Rachel Wells title: Eryn Rachel Wells
--- ---
Ingeniera de software, alfarera, música, y nerd en general. Este es mi sitio web. Ingeniera de software, alfarera, música, y nerd en general.

View file

@ -2,4 +2,4 @@
title: Eryn Rachel Wells title: Eryn Rachel Wells
--- ---
Software engineer, potter, musician, and overall nerd. This is my website. Software engineer, potter, musician, and overall nerd.