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

- Stylelint:
  - re-enable `color-function-alias-notation` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - replace legacy `rgba(...)` aliases with `rgb(...)` across the frontend stylesheet tree without changing color values or selector structure
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:43 -04:00
committed by Zach Yale
parent 6921da76ba
commit 130463bc4b
121 changed files with 800 additions and 801 deletions
@@ -58,12 +58,12 @@
&.book-type-pdf {
color: var(--book-type-pdf-color);
background-color: rgba(220, 38, 38, 10%);
background-color: rgb(220, 38, 38, 10%);
}
&.book-type-epub {
color: var(--book-type-epub-color);
background-color: rgba(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: rgba(59, 130, 246, 10%);
background-color: rgb(59, 130, 246, 10%);
}
&.book-type-fb2 {
color: var(--book-type-fb2-color);
background-color: rgba(236, 72, 153, 10%);
background-color: rgb(236, 72, 153, 10%);
}
&.book-type-mobi {
color: var(--book-type-mobi-color);
background-color: rgba(99, 102, 241, 10%);
background-color: rgb(99, 102, 241, 10%);
}
&.book-type-azw3 {
color: var(--book-type-azw3-color);
background-color: rgba(20, 184, 166, 10%);
background-color: rgb(20, 184, 166, 10%);
}
&.book-type-audiobook {
color: var(--book-type-audiobook-color);
background-color: rgba(234, 179, 8, 10%);
background-color: rgb(234, 179, 8, 10%);
}
}
@@ -110,17 +110,17 @@
&.progress-positive {
color: #16a34a;
background-color: rgba(22, 163, 74, 10%);
background-color: rgb(22, 163, 74, 10%);
}
&.progress-negative {
color: #dc2626;
background-color: rgba(220, 38, 38, 10%);
background-color: rgb(220, 38, 38, 10%);
}
&.progress-neutral {
color: var(--text-color-secondary);
background-color: rgba(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 rgba(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: rgba(34, 197, 94, 10%);
border: 1px solid rgba(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 rgba(0, 0, 0, 15%);
box-shadow: 0 2px 8px rgb(0, 0, 0, 15%);
@media (min-width: 768px) {
width: 150px;
@@ -275,7 +275,7 @@
// Audiobook cover row
.audiobook-cover-row {
background: rgba(var(--p-primary-500-rgb), 3%);
background: rgb(var(--p-primary-500-rgb), 3%);
}
// Transfer button placeholder (same width as button)
@@ -540,7 +540,7 @@
&.copied {
border-color: var(--p-yellow-500);
background: rgba(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: rgba(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 rgba(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 rgba(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 rgba(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 rgba(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;
@@ -217,7 +217,7 @@ $provider-colors: (
.results-count {
padding: 0.25rem 0.75rem;
background: rgba(var(--primary-color-rgb, 99, 102, 241), 20%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 20%);
color: var(--primary-color);
border-radius: 2rem;
font-size: 0.875rem;
@@ -231,12 +231,12 @@ $provider-colors: (
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.85rem;
background: rgba(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 rgba(34, 197, 94, 35%);
box-shadow: 0 2px 8px rgb(34, 197, 94, 35%);
}
.provider-pills {
@@ -262,26 +262,26 @@ $provider-colors: (
cursor: pointer;
.pill-icon {
background: rgba(var(--primary-color-rgb, 99, 102, 241), 12%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 12%);
color: var(--primary-color);
}
.pill-count {
background: rgba(var(--primary-color-rgb, 99, 102, 241), 18%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 18%);
color: #fff;
font-weight: 700;
}
}
&.active {
background: rgba(var(--primary-color-rgb, 99, 102, 241), 10%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 10%);
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 99, 102, 241), 10%),
0 2px 6px rgba(var(--primary-color-rgb, 99, 102, 241), 10%);
box-shadow: 0 0 0 2px rgb(var(--primary-color-rgb, 99, 102, 241), 10%),
0 2px 6px rgb(var(--primary-color-rgb, 99, 102, 241), 10%);
transform: translateY(-1px);
.pill-icon {
background: rgba(var(--primary-color-rgb, 99, 102, 241), 18%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 18%);
color: var(--primary-color);
}
@@ -291,7 +291,7 @@ $provider-colors: (
}
.pill-count {
background: rgba(var(--primary-color-rgb, 99, 102, 241), 22%);
background: rgb(var(--primary-color-rgb, 99, 102, 241), 22%);
color: #fff;
font-weight: 800;
}
@@ -303,12 +303,12 @@ $provider-colors: (
border-color: $color;
.pill-icon {
background: rgba($color, 12%);
background: rgb($color, 12%);
color: $color;
}
.pill-count {
background: rgba($color, 18%);
background: rgb($color, 18%);
color: #fff;
font-weight: 700;
}
@@ -319,21 +319,21 @@ $provider-colors: (
}
&.active {
background: rgba($color, 20%);
background: rgb($color, 20%);
border-color: $color;
box-shadow: 0 0 0 2px rgba($color, 10%), 0 2px 6px rgba($color, 10%);
box-shadow: 0 0 0 2px rgb($color, 10%), 0 2px 6px rgb($color, 10%);
.pill-name {
color: $color;
}
.pill-icon {
background: rgba($color, 18%);
background: rgb($color, 18%);
color: $color;
}
.pill-count {
background: rgba($color, 22%);
background: rgb($color, 22%);
color: #fff;
font-weight: 800;
}
@@ -343,7 +343,7 @@ $provider-colors: (
&:hover {
transform: translateY(-2px);
box-shadow: 0 2px 6px rgba(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 rgba(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 rgba(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 rgba(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 rgba(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: rgba(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 rgba(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 rgba(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 rgba(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 rgba(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: rgba(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 rgba(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
}
}
@@ -256,7 +256,7 @@
}
.p-image-preview-mask {
background: rgba(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: rgba(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, rgba(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: rgba(251, 146, 60, 5%);
border: 1px solid rgba(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: rgba(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 rgba(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: rgba(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 rgba(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 rgba(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 rgba(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 rgba(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 rgba(0, 0, 0, 8%);
box-shadow: 0 2px 6px rgb(0, 0, 0, 8%);
}
.book-list-section {