style(frontend): enforce color-function-notation in scss

- Stylelint:
  - re-enable `color-function-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - normalize comma-based `rgb(...)` color syntax to modern space-and-slash notation across frontend stylesheets without changing color values
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:43 -04:00
committed by Zach Yale
parent 130463bc4b
commit ddcbb5b666
121 changed files with 790 additions and 791 deletions
@@ -58,12 +58,12 @@
&.book-type-pdf {
color: var(--book-type-pdf-color);
background-color: rgb(220, 38, 38, 10%);
background-color: rgb(220 38 38 / 10%);
}
&.book-type-epub {
color: var(--book-type-epub-color);
background-color: rgb(22, 163, 74, 10%);
background-color: rgb(22 163 74 / 10%);
}
&.book-type-cbx,
@@ -71,27 +71,27 @@
&.book-type-cbr,
&.book-type-cb7 {
color: var(--book-type-cbx-color);
background-color: rgb(59, 130, 246, 10%);
background-color: rgb(59 130 246 / 10%);
}
&.book-type-fb2 {
color: var(--book-type-fb2-color);
background-color: rgb(236, 72, 153, 10%);
background-color: rgb(236 72 153 / 10%);
}
&.book-type-mobi {
color: var(--book-type-mobi-color);
background-color: rgb(99, 102, 241, 10%);
background-color: rgb(99 102 241 / 10%);
}
&.book-type-azw3 {
color: var(--book-type-azw3-color);
background-color: rgb(20, 184, 166, 10%);
background-color: rgb(20 184 166 / 10%);
}
&.book-type-audiobook {
color: var(--book-type-audiobook-color);
background-color: rgb(234, 179, 8, 10%);
background-color: rgb(234 179 8 / 10%);
}
}
@@ -110,17 +110,17 @@
&.progress-positive {
color: #16a34a;
background-color: rgb(22, 163, 74, 10%);
background-color: rgb(22 163 74 / 10%);
}
&.progress-negative {
color: #dc2626;
background-color: rgb(220, 38, 38, 10%);
background-color: rgb(220 38 38 / 10%);
}
&.progress-neutral {
color: var(--text-color-secondary);
background-color: rgb(128, 128, 128, 10%);
background-color: rgb(128 128 128 / 10%);
}
}
@@ -325,7 +325,7 @@ label {
.cdk-drag-preview {
box-sizing: border-box;
border-radius: 1rem;
box-shadow: 0 2px 8px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.cdk-drag-placeholder {
@@ -32,8 +32,8 @@
justify-content: center;
gap: 0.5rem;
padding: 0.625rem 1rem;
background: rgb(34, 197, 94, 10%);
border: 1px solid rgb(34, 197, 94, 30%);
background: rgb(34 197 94 / 10%);
border: 1px solid rgb(34 197 94 / 30%);
border-radius: 8px;
color: var(--p-green-400);
font-size: 0.875rem;
@@ -207,7 +207,7 @@
height: auto;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 8px rgb(0, 0, 0, 15%);
box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
@media (min-width: 768px) {
width: 150px;
@@ -540,7 +540,7 @@
&.copied {
border-color: var(--p-yellow-500);
background: rgb(234, 179, 8, 15%);
background: rgb(234 179 8 / 15%);
i {
color: var(--p-yellow-500);
@@ -549,7 +549,7 @@
&.reset {
border-color: var(--p-red-500);
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
i {
color: var(--p-red-500);
@@ -706,7 +706,7 @@
.cdk-drag-preview {
box-sizing: border-box;
border-radius: 1rem;
box-shadow: 0 2px 8px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.cdk-drag-placeholder {
@@ -55,13 +55,13 @@ $provider-colors: (
background: var(--p-surface-900);
border-radius: 0.75rem;
padding: 1.25rem;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
margin-bottom: 1.25rem;
transition: all 0.3s ease;
&:hover {
box-shadow: 0 4px 8px rgb(0, 0, 0, 30%);
box-shadow: 0 4px 8px rgb(0 0 0 / 30%);
}
}
@@ -158,7 +158,7 @@ $provider-colors: (
background: var(--p-surface-900);
border-radius: 0.75rem;
padding: 1rem;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
margin-bottom: 1.25rem;
animation: slideIn 0.3s ease-out;
@@ -231,12 +231,12 @@ $provider-colors: (
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.85rem;
background: rgb(34, 197, 94, 80%);
background: rgb(34 197 94 / 80%);
color: white;
border-radius: 2rem;
font-size: 0.85rem;
font-weight: 700;
box-shadow: 0 2px 8px rgb(34, 197, 94, 35%);
box-shadow: 0 2px 8px rgb(34 197 94 / 35%);
}
.provider-pills {
@@ -343,7 +343,7 @@ $provider-colors: (
&:hover {
transform: translateY(-2px);
box-shadow: 0 2px 6px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}
&.active:hover {
@@ -392,7 +392,7 @@ $provider-colors: (
border-radius: 2rem;
font-weight: 800;
font-size: 1rem;
text-shadow: 0 1px 2px rgb(0, 0, 0, 12%);
text-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
}
@@ -455,7 +455,7 @@ $provider-colors: (
padding: 1rem;
background: var(--p-surface-900);
border-radius: 0.75rem;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
@media (min-width: 768px) {
@@ -544,7 +544,7 @@ $provider-colors: (
background: var(--p-surface-900);
border-radius: 0.75rem;
overflow: hidden;
box-shadow: 0 2px 6px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
cursor: pointer;
transition: all 0.3s ease;
@@ -555,7 +555,7 @@ $provider-colors: (
&:hover {
transform: translateY(-4px);
box-shadow: 0 8px 16px rgb(0, 0, 0, 30%);
box-shadow: 0 8px 16px rgb(0 0 0 / 30%);
border-color: var(--primary-color);
.card-overlay {
@@ -590,7 +590,7 @@ $provider-colors: (
.card-overlay {
position: absolute;
inset: 0;
background: rgb(0, 0, 0, 75%);
background: rgb(0 0 0 / 75%);
display: flex;
flex-direction: column;
align-items: center;
@@ -334,7 +334,7 @@
.rating-link:hover .rating-favicon {
transform: scale(1.2);
filter: drop-shadow(0 2px 4px rgb(0, 0, 0, 30%));
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 30%));
}
.rating-favicon {
@@ -683,7 +683,7 @@
transition: box-shadow 0.3s ease;
&:hover {
box-shadow: 0 2px 8px rgb(0, 0, 0, 10%);
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
}
@@ -776,7 +776,7 @@
transition: box-shadow 0.3s ease;
&:hover {
box-shadow: 0 2px 8px rgb(0, 0, 0, 10%);
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
}
@@ -19,7 +19,7 @@
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
position: relative;
}
@@ -30,7 +30,7 @@
display: flex;
align-items: center;
justify-content: center;
background: rgb(0, 0, 0, 60%);
background: rgb(0 0 0 / 60%);
}
.info-box {
@@ -29,7 +29,7 @@
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
}
}
@@ -256,7 +256,7 @@
}
.p-image-preview-mask {
background: rgb(0, 0, 0, 60%);
background: rgb(0 0 0 / 60%);
}
.p-image-preview-indicator {
@@ -269,7 +269,7 @@
position: absolute;
top: 6px;
right: 6px;
background: rgb(0, 0, 0, 80%);
background: rgb(0 0 0 / 80%);
color: white;
padding: 3px 6px;
border-radius: 4px;
@@ -288,7 +288,7 @@
align-items: center;
justify-content: center;
padding: 0.5rem;
background: linear-gradient(to top, rgb(0, 0, 0, 80%), transparent);
background: linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
opacity: 0;
z-index: 3;
}
@@ -184,14 +184,14 @@
gap: 0.5rem;
padding: 0.5rem 0.75rem;
margin-bottom: 1.25rem;
background: rgb(251, 146, 60, 5%);
border: 1px solid rgb(251, 146, 60, 30%);
background: rgb(251 146 60 / 5%);
border: 1px solid rgb(251 146 60 / 30%);
border-radius: 6px;
color: var(--p-text-color-secondary);
.pi-exclamation-triangle {
font-size: 1rem;
color: rgb(251, 146, 60, 70%);
color: rgb(251 146 60 / 70%);
flex-shrink: 0;
margin-top: 0.1rem;
}
@@ -254,7 +254,7 @@
}
.table-card {
border: 1px solid rgb(128, 128, 128, 20%);
border: 1px solid rgb(128 128 128 / 20%);
border-radius: 8px;
overflow: hidden;
background: var(--surface-ground);
@@ -331,7 +331,7 @@
align-items: center;
gap: 0.75rem;
padding: 1rem;
background: rgb(251, 146, 60, 15%);
background: rgb(251 146 60 / 15%);
border: 1px solid var(--p-orange-500);
border-radius: 8px;
color: var(--p-text-color);
@@ -351,7 +351,7 @@
padding: 1rem;
background: var(--surface-ground);
border-radius: 8px;
border: 1px solid rgb(128, 128, 128, 20%);
border: 1px solid rgb(128 128 128 / 20%);
p {
margin: 0 0 0.5rem 0;
@@ -395,7 +395,7 @@
.current-value {
padding: 1rem;
background: var(--surface-ground);
border: 1px solid rgb(128, 128, 128, 20%);
border: 1px solid rgb(128 128 128 / 20%);
border-radius: 8px;
margin-bottom: 1.5rem;
display: flex;
@@ -49,7 +49,7 @@
transition: all 0.3s ease;
&:hover {
box-shadow: 0 2px 4px rgb(0, 0, 0, 10%);
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}
}
@@ -29,7 +29,7 @@
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
::ng-deep {
p-tabs {
@@ -30,7 +30,7 @@
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
}
.book-list-section {