aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/styles.css
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-18 22:17:55 -0500
committerCraig Jennings <c@cjennings.net>2026-06-18 22:17:55 -0500
commit8c032ca51e9cb8bca87b97cd778596a1abe75b8b (patch)
tree8e400ba30d2e29a97bb0f733cb1c4552b4cced1b /scripts/theme-studio/styles.css
parente110f7afac89322a2af4f3c4ebafe303be044cc2 (diff)
downloaddotemacs-8c032ca51e9cb8bca87b97cd778596a1abe75b8b.tar.gz
dotemacs-8c032ca51e9cb8bca87b97cd778596a1abe75b8b.zip
feat(theme-studio): replace the style toggles with weight/slant/underline/strike controls
The B/I/U/S toggle buttons in the syntax, UI, and package tables become a weight selector (light/normal/medium/semibold/bold/heavy), a slant selector (normal/italic/oblique), and box-like underline and strike controls. The underline control sets line or wave plus a color, and the strike control sets a color. A face can now reach the full weight range and a wavy or colored underline, not just bold and italic on-off. All four controls come from one mkStyleControls helper shared across the three tables, and underline and strike share mkLineStyleControl (the box-control pattern, parameterized for a styled line vs a plain toggle). With the real controls in place I dropped the transitional legacyStyleOn/toggleLegacyStyle shim and its tests. The overflow attributes (distant-fg, family, overline, inverse, extend, and inherit/height for ui and syntax) move into a per-row expander next. Verified by screenshot and the browser style gate, which now drives a weight-select change and an underline-wave click through the model. Full suite green: Python 59, Node 198, ERT 41, plus the browser hash gates.
Diffstat (limited to 'scripts/theme-studio/styles.css')
-rw-r--r--scripts/theme-studio/styles.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/theme-studio/styles.css b/scripts/theme-studio/styles.css
index 720539cfd..40f5b387b 100644
--- a/scripts/theme-studio/styles.css
+++ b/scripts/theme-studio/styles.css
@@ -19,8 +19,8 @@
.boxbtn{width:17px;height:15px;padding:0;border:1px solid #3a3a3a;border-radius:3px;background:#1f1c19;color:#cdced1;font:11px monospace;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.boxbtn.on{background:#3a3320;border-color:#e8bd30;color:#e8bd30}
.boxbtn:disabled{opacity:.3;cursor:default}
- .stylecluster{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;width:max-content}
- .stylecluster .sbtn{margin:0}
+ .stylecluster{display:flex;flex-wrap:wrap;align-items:center;gap:4px;width:max-content;max-width:210px}
+ select.stylesel{width:78px;padding:2px 4px;font:11px monospace;font-weight:normal}
table.leg th:hover{color:#e8bd30}
select.chip{appearance:none;border:1px solid #00000060;border-radius:5px;padding:5px 10px;font:bold 14px monospace;width:160px;cursor:pointer}
/* Prev/next arrows flanking the view dropdown: step the selection without reopening it.