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:
+4
-4
@@ -145,14 +145,14 @@
|
||||
overflow-y: auto;
|
||||
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--primary-color) rgba(20, 20, 30, 50%);
|
||||
scrollbar-color: var(--primary-color) rgb(20, 20, 30, 50%);
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: rgba(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 rgba(255, 255, 255, 50%);
|
||||
border: 1px solid rgb(255, 255, 255, 50%);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
background: rgba(0, 0, 0, 65%);
|
||||
background: rgb(0, 0, 0, 65%);
|
||||
transition: transform 0.1s ease, opacity 0.1s ease;
|
||||
|
||||
&.footer-hidden {
|
||||
|
||||
+8
-8
@@ -6,12 +6,12 @@
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 2px 8px rgba(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 rgba(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, rgba(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: rgba(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, rgba(0, 0, 0, 90%) 0%, rgba(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 rgba(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 rgba(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: rgba(255, 255, 255, 15%) !important;
|
||||
background: rgb(255, 255, 255, 15%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -47,7 +47,7 @@
|
||||
height: 220px;
|
||||
object-fit: cover;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 16px rgba(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) rgba(20, 20, 30, 50%);
|
||||
scrollbar-color: var(--primary-color) rgb(20, 20, 30, 50%);
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: rgba(20, 20, 30, 50%);
|
||||
background: rgb(20, 20, 30, 50%);
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -200,7 +200,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;
|
||||
@@ -219,7 +219,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user