mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
polish: drop dead .progress-bar / .progress-fill utilities
Created with future-API intent during the optimize pass but no .tsx
consumer materialised — the three Subscription progress bars inline
their classes directly. Dead utility classes accumulate, confuse the
next reader ("this looks like our pattern, am I doing it wrong?"),
and add bytes to the CSS. Drop both the dark version and the
.light .progress-bar override.
If a future progress bar needs them back: inline first, extract only
when 3+ call sites share intent (per /impeccable extract guidance).
This commit is contained in:
@@ -646,18 +646,6 @@ img.twemoji {
|
||||
@apply badge border border-dark-600/50 bg-dark-700/50 text-dark-300;
|
||||
}
|
||||
|
||||
/* Progress bar - Dark */
|
||||
.progress-bar {
|
||||
@apply h-2 w-full overflow-hidden rounded-full bg-dark-800;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
/* GPU-composited progress fill — consumer sets transform: scaleX(0..1)
|
||||
with transform-origin: left. Avoids width-triggered reflow per frame. */
|
||||
@apply h-full w-full origin-left rounded-full duration-500 ease-smooth;
|
||||
transition-property: transform, background-color;
|
||||
}
|
||||
|
||||
/* Stat card - Dark */
|
||||
.stat-value {
|
||||
@apply text-2xl font-bold text-dark-50 sm:text-3xl;
|
||||
@@ -824,11 +812,6 @@ img.twemoji {
|
||||
@apply border border-champagne-300 bg-champagne-200/50 text-champagne-700;
|
||||
}
|
||||
|
||||
/* Progress bar - Light */
|
||||
.light .progress-bar {
|
||||
@apply bg-champagne-200;
|
||||
}
|
||||
|
||||
/* Stat card - Light */
|
||||
.light .stat-value {
|
||||
@apply text-champagne-900;
|
||||
|
||||
Reference in New Issue
Block a user