fix: improve responsive typography and page structure
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/* Site-specific overrides; keep the vendored Simple.css unchanged. */
|
||||
body > header .site-title {
|
||||
max-width: 1200px;
|
||||
margin: 1rem auto;
|
||||
font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
#content {
|
||||
min-width: 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
#content h1 {
|
||||
font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#content h2 {
|
||||
font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
#content h3 {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
header nav a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 44px;
|
||||
padding: 0.4rem 0.9rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
Reference in New Issue
Block a user