From 1a5fc9428a12b677d812545d01793c276a25c60d Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 9 Aug 2026 11:39:53 +0200 Subject: [PATCH] FUCKER --- devplacepy/static/css/CLAUDE.md | 2 +- devplacepy/static/css/awards.css | 2 +- devplacepy/static/css/feed.css | 3 + devplacepy/static/css/gists.css | 6 +- devplacepy/static/css/landing.css | 12 ++-- devplacepy/static/css/news.css | 4 +- devplacepy/static/css/profile.css | 1 + devplacepy/static/css/projects.css | 8 ++- .../templates/docs/styles-consistency.html | 2 +- devplacepy/templates/docs/styles-layout.html | 4 +- tests/conftest.py | 29 +++++++++ tests/e2e/feed.py | 61 ++++++++++++++++++- tests/e2e/gists.py | 49 ++++++++++++++- tests/e2e/profile/index.py | 22 ++++++- 14 files changed, 188 insertions(+), 17 deletions(-) diff --git a/devplacepy/static/css/CLAUDE.md b/devplacepy/static/css/CLAUDE.md index 5cdf5cd0..989c328c 100644 --- a/devplacepy/static/css/CLAUDE.md +++ b/devplacepy/static/css/CLAUDE.md @@ -37,6 +37,6 @@ One global rule at the end of `base.css` collapses every animation/transition to - Flexbox + CSS Grid with `gap` only; floats for layout are forbidden. - Approved page layouts and the shared shell are documented in `/docs/styles-layout.html`; a page supplies exactly one layout container inside `.page`. -- Every fluid grid/flex column sets `min-width: 0`. +- Every fluid grid/flex column sets `min-width: 0`, and every fluid grid track that holds content is written `minmax(0, 1fr)`, never a bare `1fr`. A `1fr` track's automatic minimum is the item's min-content size, so one unwrappable line inside a rendered code block (`.rendered-content pre`, `white-space: pre`) widens the track and blows the whole page open sideways. This is why a detail page (a `max-width` block, definite width, the `pre` scrolls inside it) survives content that destroys a listing grid. The rule covers a column that is fixed-width at desktop but becomes the single fluid column at a breakpoint (`.profile-sidebar`), and it is regression-tested by `assert_no_horizontal_overflow` in `tests/conftest.py`. - `!important` is allowed only for: the `.hidden`/`[hidden]` display utilities, the global reduced-motion rule, and the devii-avatar third-party-beating override. Anything else is a specificity problem to be fixed structurally. - Page-specific CSS lives in its own `static/css/*.css` loaded via `{% block extra_head %}`, never an inline `