aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 19:35:51 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 19:35:51 -0500
commit2e7fdcc6dcfd5d97f8feedb836603c4df483afb1 (patch)
treeb7b6dd6750f22e92d81fcdf9c7863c2ba850dbcc /scripts
parent8e4342855a91dfe101267022d57a8f2c103e772f (diff)
downloaddotemacs-2e7fdcc6dcfd5d97f8feedb836603c4df483afb1.tar.gz
dotemacs-2e7fdcc6dcfd5d97f8feedb836603c4df483afb1.zip
style(theme-studio): make the unused and gone flags a two-color barber-pole border
The single-color dashed outline blended in. I replaced it with a ring of two alternating contrasting colors, drawn as a masked repeating gradient so it overlays without shifting layout. Unused tiles and columns use gold and black; gone assignments use red and white, keeping the two states distinct at a glance.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/theme-studio/styles.css13
-rw-r--r--scripts/theme-studio/theme-studio.html13
2 files changed, 20 insertions, 6 deletions
diff --git a/scripts/theme-studio/styles.css b/scripts/theme-studio/styles.css
index c767fc534..4db56fa1d 100644
--- a/scripts/theme-studio/styles.css
+++ b/scripts/theme-studio/styles.css
@@ -47,9 +47,16 @@
.cat{color:#b4b1a2} .ex{font-size:17px}
.crerr{display:inline-block;margin-left:8px;padding:0 4px;border-radius:3px;background:#2b130e;color:#cb6b4d;border:1px solid #7b3324;font:9pt monospace;vertical-align:middle}
.paltoggle{align-self:flex-start;width:22px;height:22px;padding:0;border:1px solid #3a3a3a;border-radius:4px;background:#1f1c19;color:#e8bd30;font:12px monospace;line-height:1;cursor:pointer;margin-right:6px}
- .pchip.unused{outline:2px dashed #cb6b4d;outline-offset:-2px}
- .fstrip.unused-col{outline:1px dashed #cb6b4d;outline-offset:2px;border-radius:8px}
- .cdd.gone{outline:2px solid #e0533f;outline-offset:-2px}
+ /* Barber-pole flag: a ring of two alternating contrasting colors, drawn with a
+ masked repeating gradient so it overlays without shifting layout. Distinct
+ color pairs keep "unused" (gold/black) and "gone" (red/white) tellable apart. */
+ .pchip.unused::after,.fstrip.unused-col::after,.cdd.gone::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(45deg,var(--barberA) 0 6px,var(--barberB) 6px 12px);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
+ .pchip.unused{--barberA:#e8bd30;--barberB:#0d0b0a}
+ .pchip.unused::after{padding:3px;border-radius:6px}
+ .fstrip.unused-col{position:relative;--barberA:#e8bd30;--barberB:#0d0b0a}
+ .fstrip.unused-col::after{padding:3px;border-radius:8px}
+ .cdd.gone{position:relative;--barberA:#e0533f;--barberB:#f5f5f5}
+ .cdd.gone::after{padding:2px;border-radius:5px}
.sbtn{width:17px;height:15px;border:1px solid #3a3a3a;border-radius:3px;background:#eaeaea;color:#111;cursor:pointer;font-size:13px;line-height:1;margin-right:2px;padding:0}
.sbtn.on{background:#0d0b0a;color:#cdced1;border-color:#8a9496}
.pals{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}
diff --git a/scripts/theme-studio/theme-studio.html b/scripts/theme-studio/theme-studio.html
index 935a9c5ba..e5eb6ced0 100644
--- a/scripts/theme-studio/theme-studio.html
+++ b/scripts/theme-studio/theme-studio.html
@@ -49,9 +49,16 @@
.cat{color:#b4b1a2} .ex{font-size:17px}
.crerr{display:inline-block;margin-left:8px;padding:0 4px;border-radius:3px;background:#2b130e;color:#cb6b4d;border:1px solid #7b3324;font:9pt monospace;vertical-align:middle}
.paltoggle{align-self:flex-start;width:22px;height:22px;padding:0;border:1px solid #3a3a3a;border-radius:4px;background:#1f1c19;color:#e8bd30;font:12px monospace;line-height:1;cursor:pointer;margin-right:6px}
- .pchip.unused{outline:2px dashed #cb6b4d;outline-offset:-2px}
- .fstrip.unused-col{outline:1px dashed #cb6b4d;outline-offset:2px;border-radius:8px}
- .cdd.gone{outline:2px solid #e0533f;outline-offset:-2px}
+ /* Barber-pole flag: a ring of two alternating contrasting colors, drawn with a
+ masked repeating gradient so it overlays without shifting layout. Distinct
+ color pairs keep "unused" (gold/black) and "gone" (red/white) tellable apart. */
+ .pchip.unused::after,.fstrip.unused-col::after,.cdd.gone::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(45deg,var(--barberA) 0 6px,var(--barberB) 6px 12px);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
+ .pchip.unused{--barberA:#e8bd30;--barberB:#0d0b0a}
+ .pchip.unused::after{padding:3px;border-radius:6px}
+ .fstrip.unused-col{position:relative;--barberA:#e8bd30;--barberB:#0d0b0a}
+ .fstrip.unused-col::after{padding:3px;border-radius:8px}
+ .cdd.gone{position:relative;--barberA:#e0533f;--barberB:#f5f5f5}
+ .cdd.gone::after{padding:2px;border-radius:5px}
.sbtn{width:17px;height:15px;border:1px solid #3a3a3a;border-radius:3px;background:#eaeaea;color:#111;cursor:pointer;font-size:13px;line-height:1;margin-right:2px;padding:0}
.sbtn.on{background:#0d0b0a;color:#cdced1;border-color:#8a9496}
.pals{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}