From 3baf160c885a266c5dd368a5a6ceb96d450da5dd Mon Sep 17 00:00:00 2001 From: ZDDC Date: Sat, 9 May 2026 18:48:44 -0500 Subject: [PATCH] style(shared,archive,browse,mdedit): replace inline styles with CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Six inline style="" attributes in archive, browse, mdedit templates moved into stylesheets: - The font-size:1.1rem override on #refreshHeaderBtn (three tools) is now a single rule in shared/base.css — the refresh ⟳ glyph genuinely reads smaller than ◐ / ?, so the rule lives next to the existing shared icon-button block. - The flex-start justify-content + select-all margin on archive's Revisions column header become a .th-content--start variant + .select-all-checkbox class in archive/css/table.css. - The 450px initial width + 200px min-width on mdedit's #file-nav move into mdedit/css/base.css; the runtime resizer continues to override via inline style.width when the user drags. No visual change — the output is exactly equivalent. Co-Authored-By: Claude Opus 4.7 (1M context) --- archive/css/table.css | 11 +++++++++++ archive/template.html | 12 ++++++------ browse/template.html | 2 +- mdedit/css/base.css | 8 ++++++++ mdedit/template.html | 4 ++-- shared/base.css | 5 +++++ 6 files changed, 33 insertions(+), 9 deletions(-) diff --git a/archive/css/table.css b/archive/css/table.css index 9b5b34b..e412576 100644 --- a/archive/css/table.css +++ b/archive/css/table.css @@ -31,6 +31,17 @@ cursor: default; } +/* Variant: content packs at the start instead of distributing across the + column header. Used by the Revisions column where a leading "select all" + checkbox sits beside the column title. */ +.th-content--start { + justify-content: flex-start; +} + +.th-content--start .select-all-checkbox { + margin-right: 0.5rem; +} + .sortable .th-content { cursor: pointer; } diff --git a/archive/template.html b/archive/template.html index 8fe4d90..7f1fdff 100644 --- a/archive/template.html +++ b/archive/template.html @@ -33,7 +33,7 @@ {{BUILD_LABEL}} - +
@@ -169,11 +169,11 @@
-
- +
+ Revisions
{{BUILD_LABEL}}
- +
diff --git a/mdedit/css/base.css b/mdedit/css/base.css index 2ace20e..d1cdd9b 100644 --- a/mdedit/css/base.css +++ b/mdedit/css/base.css @@ -403,3 +403,11 @@ justify-content: flex-end; gap: 0.5rem; } + +/* File-nav pane: initial width + minimum size. Runtime resizer (resizer.js) + overrides via inline style.width when the user drags; the min-width here + is a defensive backstop. */ +#file-nav { + width: 450px; + min-width: 200px; +} diff --git a/mdedit/template.html b/mdedit/template.html index 63e008e..484eb65 100644 --- a/mdedit/template.html +++ b/mdedit/template.html @@ -30,7 +30,7 @@ {{BUILD_LABEL}}
- +
@@ -40,7 +40,7 @@
-