style: header and footer share one 60rem frame on public and admin pages (v2.18.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bba2178496
commit
5fb521e89e
2 files changed
+7
-1
No files matched your search
@@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
- Public pages are wider: 48rem instead of 40rem (about 85 characters per
|
- Public pages are wider: 48rem instead of 40rem (about 85 characters per
|
||||||
line at the reading font). Admin pages stay at 60rem.
|
line at the reading font). Admin pages stay at 60rem.
|
||||||
|
- The site header (title, menu, search) and footer are 60rem wide on every
|
||||||
|
page, so they sit in the same place on public and admin pages; only the
|
||||||
|
content column differs.
|
||||||
|
|
||||||
## [2.18.1] - 2026-11-12
|
## [2.18.1] - 2026-11-12
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
--font-reading: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, 'Noto Serif', Georgia, serif;
|
--font-reading: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, 'Noto Serif', Georgia, serif;
|
||||||
--font-mono: ui-monospace, 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
|
--font-mono: ui-monospace, 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
|
||||||
--spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 2rem; --spacing-xl: 4rem;
|
--spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 2rem; --spacing-xl: 4rem;
|
||||||
--max-width: 48rem; --border-radius: 6px;
|
--max-width: 48rem; --frame-width: 60rem; --border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
@@ -40,6 +40,9 @@ pre code { padding: 0; background: none; }
|
|||||||
|
|
||||||
/* Page frame */
|
/* Page frame */
|
||||||
.site-header, main, .site-footer { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
|
.site-header, main, .site-footer { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
|
||||||
|
/* Header and footer share one width on every page, public and admin (v2.18.2);
|
||||||
|
only the content column (main) differs: 48rem to read, 60rem for admin tables. */
|
||||||
|
.site-header, .site-footer { max-width: var(--frame-width); }
|
||||||
main { flex: 1; margin-bottom: var(--spacing-xl); }
|
main { flex: 1; margin-bottom: var(--spacing-xl); }
|
||||||
|
|
||||||
.site-header {
|
.site-header {
|
||||||
|
|||||||
Reference in new issue
Block a user