p2 layout

- _tokens.scss — added --wg-space-2xs…xl (0.25–2rem, 4pt scale), --wg-ledger-line: 1.78rem, --wg-page-width: 1420px.
- Card gaps unified to --wg-space-sm, card interiors to --wg-space-md, the compact topic-list header to --wg-space-xs (_categories.scss, _topics.scss, _widgets.scss, _responsive.scss).
- Ledger ruling height is now one token across topics, posts, pagination, quick-reply, and the composer (_posts.scss, _controls.scss).
- Footer rails now share the topbar's 1420px measure (_footer.scss:36,123,143), so the page's top and bottom edges align.
- Stat tiles got explicit padding instead of inheriting Bootstrap's (_topics.scss:369, _categories.scss:326).
- Documented the scale and rules in DESIGN.md (new "Spacing & Layout" section).
This commit is contained in:
2026-07-11 16:09:38 +02:00
parent f179a48d52
commit 8f783bf7cf
10 changed files with 52 additions and 25 deletions
+4 -4
View File
@@ -46,7 +46,7 @@ li[component="post"] .post-container {
background:
linear-gradient(to bottom, transparent calc(100% - 1px), var(--wg-ledger-ruling) calc(100% - 1px)),
var(--wg-ledger-panel) !important;
background-size: 100% 1.82rem, auto;
background-size: 100% var(--wg-ledger-line), auto;
border: 1px solid var(--wg-ledger-border) !important;
border-left: 1px solid rgba(194, 163, 90, 0.32) !important;
border-radius: 6px !important;
@@ -241,7 +241,7 @@ li[component="post"] [component="post/downvote"] {
background:
linear-gradient(to bottom, transparent calc(100% - 1px), rgba(194, 163, 90, 0.08) calc(100% - 1px)),
rgba(18, 15, 22, 0.96) !important;
background-size: 100% 1.55rem, auto;
background-size: 100% var(--wg-ledger-line), auto;
border-color: var(--wg-ledger-border) !important;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
color: var(--wg-ledger-ink) !important;
@@ -275,7 +275,7 @@ textarea[component="topic/quickreply/text"],
background:
linear-gradient(to bottom, transparent calc(100% - 1px), var(--wg-ledger-ruling) calc(100% - 1px)),
rgba(18, 15, 22, 0.92) !important;
background-size: 100% 1.82rem, auto;
background-size: 100% var(--wg-ledger-line), auto;
border-color: var(--wg-ledger-border) !important;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.026),
@@ -300,7 +300,7 @@ textarea[component="topic/quickreply/text"]:focus,
background:
linear-gradient(to bottom, transparent calc(100% - 1px), rgba(194, 163, 90, 0.05) calc(100% - 1px)),
var(--wg-ledger-panel) !important;
background-size: 100% 1.82rem, auto;
background-size: 100% var(--wg-ledger-line), auto;
border-color: var(--wg-ledger-border) !important;
box-shadow: none !important;
color: var(--wg-text-soft) !important;