diff --git a/attribution/index.html b/attribution/index.html index 2841731..8648748 100644 --- a/attribution/index.html +++ b/attribution/index.html @@ -132,8 +132,13 @@ h1 { margin-block-end: .6em; } -h2 { font-size: 2rem; } -h3 { font-size: 1.8rem; } +h2 { font-size: 2.1rem; } +h3 { font-size: 1.7rem; } +h4 { font-size: 1.4rem; } + +@media (max-width: 650px) { + h1 { font-size: 2.6rem; } +} p { text-wrap: pretty; /* 9. Improve line wrapping */ @@ -167,17 +172,27 @@ ul p { /* Header/nav/footer */ header { - height: 20vh; - padding: calc(20vh / 8); + --height-base: 20vh; /* Variable height for desktop vs mobile */ +} + +@media (max-width: 650px) { + header{ + --height-base: 12vh; /* Variable height for desktop vs mobile */ + } +} + +header { + height: var(--height-base); + padding: calc(var(--height-base) / 8); background-color: var(--color-accent); } .logo { height: 100%; width: auto; - padding: calc(20vh / 30); - border: calc(20vh / 50) solid var(--color-accent); - border-radius: calc(20vh / 3); + padding: calc(var(--height-base) / 30); + border: calc(var(--height-base) / 50) solid var(--color-accent); + border-radius: calc(var(--height-base) / 3); } header a:focus-visible { @@ -186,7 +201,7 @@ header a:focus-visible { header a:focus-visible .logo { border-color: var(--color-text); - outline: calc(20vh / 30) solid var(--color-accent-flipped); + outline: calc(var(--height-base) / 30) solid var(--color-accent-flipped); } @media (prefers-color-scheme: light) { @@ -256,6 +271,6 @@ footer a:focus-visible {
- +