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
@@ -145,14 +145,14 @@
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20, 20, 30, 50%);
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20, 20, 30, 50%);
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
@@ -213,10 +213,10 @@
padding: 1rem 0.5rem 0.5rem;
z-index: 1;
border-radius: 10px 10px 0 0;
border: 1px solid rgb(255, 255, 255, 50%);
border: 1px solid rgb(255 255 255 / 50%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
background: rgb(0, 0, 0, 65%);
background: rgb(0 0 0 / 65%);
transition: transform 0.1s ease, opacity 0.1s ease;
&.footer-hidden {
@@ -6,12 +6,12 @@
height: 100%;
display: flex;
flex-direction: column;
box-shadow: 0 2px 8px rgb(0, 0, 0, 15%);
box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
transition: box-shadow 0.25s ease, transform 0.25s ease;
cursor: pointer;
&:hover {
box-shadow: 0 8px 24px rgb(0, 0, 0, 30%);
box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
transform: translateY(-2px);
}
@@ -45,7 +45,7 @@
background: linear-gradient(
90deg,
var(--surface-ground) 25%,
var(--surface-hover, rgb(255, 255, 255, 8%)) 50%,
var(--surface-hover, rgb(255 255 255 / 8%)) 50%,
var(--surface-ground) 75%
);
background-size: 200% 100%;
@@ -90,7 +90,7 @@
font-size: 0.8rem;
font-weight: 700;
color: #fff;
background: rgb(0, 0, 0, 60%);
background: rgb(0 0 0 / 60%);
padding: 3px 9px;
border-radius: 10px;
line-height: 1.3;
@@ -103,7 +103,7 @@
left: 0;
right: 0;
padding: 8px 2px 4px 8px;
background: linear-gradient(to top, rgb(0, 0, 0, 90%) 0%, rgb(0, 0, 0, 50%) 70%, transparent 100%);
background: linear-gradient(to top, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 50%) 70%, transparent 100%);
display: flex;
align-items: center;
gap: 6px;
@@ -114,7 +114,7 @@
color: #22c55e;
font-size: 0.85rem;
flex-shrink: 0;
filter: drop-shadow(0 1px 2px rgb(0, 0, 0, 50%));
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 50%));
}
.author-name {
@@ -128,7 +128,7 @@
line-height: 1.3;
flex: 1;
min-width: 0;
text-shadow: 0 1px 3px rgb(0, 0, 0, 60%);
text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}
.menu-button-container {
@@ -140,7 +140,7 @@
color: #fff !important;
&:hover {
background: rgb(255, 255, 255, 15%) !important;
background: rgb(255 255 255 / 15%) !important;
}
}
@@ -47,7 +47,7 @@
height: 220px;
object-fit: cover;
border-radius: 12px;
box-shadow: 0 4px 16px rgb(0, 0, 0, 30%);
box-shadow: 0 4px 16px rgb(0 0 0 / 30%);
@media (max-width: 767px) {
width: 140px;
@@ -164,14 +164,14 @@
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20, 20, 30, 50%);
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20, 20, 30, 50%);
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
}
@@ -200,7 +200,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;
@@ -219,7 +219,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;
}