refactor(ui): --pill-radius CSS-Variable (Item F)
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 1m22s
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 1m22s
border-radius: 999px war 15x im CSS dupliziert. Ausgelagert als :root --pill-radius Variable im globalen :root-Block in +layout.svelte, Call-Sites auf var(--pill-radius) umgestellt. Bewusst NICHT angefasst (plan war "nur Werte die mehrfach vorkommen"): - z-index: 10 Distinct Values in 14 Sites, bilden ein implizites Layer-System. Konsolidieren = behavior-change-Risiko ohne konkreten Nutzen. Wenn kuenftig einheitliche Modal-/Popover-Layer noetig, separate Phase. - setTimeout(): 3 Sites, jeder mit eigener Semantik (Debounce/Print/ Spinner). Kein DRY-Nutzen durch Extraktion. Gate: svelte-check 0 Warnings, 184/184 Tests, Build clean, kein sichtbarer Unterschied (einzige Aenderung: selber Wert ueber Variable). Refs docs/superpowers/plans/2026-04-19-post-review-roadmap.md Item F. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
padding: 0.6rem 0.85rem 0.6rem 1.1rem;
|
||||
background: #1a1a1a;
|
||||
color: white;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--pill-radius);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
||||
z-index: 500;
|
||||
max-width: calc(100% - 2rem);
|
||||
@@ -58,7 +58,7 @@
|
||||
background: #2b6a3d;
|
||||
color: white;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--pill-radius);
|
||||
font-size: 0.88rem;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
@@ -75,7 +75,7 @@
|
||||
padding: 4px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--pill-radius);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dismiss:hover {
|
||||
|
||||
Reference in New Issue
Block a user