style(frontend): enforce color-hex-length in scss
- Stylelint: - re-enable `color-hex-length` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions as-is - SCSS: - normalize repeatable long hex colors to their short form where the value is identical - Validation: - `just ui stylelint`
This commit is contained in:
@@ -5,7 +5,7 @@ $bg-primary: #0f0f1a;
|
||||
$bg-secondary: #1a1a2e;
|
||||
$bg-tertiary: #252542;
|
||||
$bg-darker: #0a0a12;
|
||||
$text-primary: #ffffff;
|
||||
$text-primary: #fff;
|
||||
$text-secondary: rgb(255 255 255 / 80%);
|
||||
$text-tertiary: rgb(255 255 255 / 50%);
|
||||
$accent-secondary: #ec4899;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
background: #1a1a1a;
|
||||
color: #ffffff;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
touch-action: none;
|
||||
overscroll-behavior: none;
|
||||
@@ -110,7 +110,7 @@
|
||||
}
|
||||
|
||||
&.bg-black {
|
||||
background: #000000;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
&.bg-gray {
|
||||
@@ -118,7 +118,7 @@
|
||||
}
|
||||
|
||||
&.bg-white {
|
||||
background: #ffffff;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
&:not(.infinite-scroll) {
|
||||
@@ -513,7 +513,7 @@
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 20px rgb(74 144 226 / 30%);
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@
|
||||
background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
|
||||
border-bottom: 1px solid #404040;
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
|
||||
color: #ffffff;
|
||||
color: #fff;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
@@ -142,7 +142,7 @@
|
||||
padding: 8px 12px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: #ffffff;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ $transition-normal: 200ms ease;
|
||||
left: 2px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: #ffffff;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
transition: transform 300ms ease;
|
||||
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
|
||||
|
||||
+1
-1
@@ -260,7 +260,7 @@ $transition-normal: 200ms ease;
|
||||
left: 2px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #ffffff;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
transition: transform 300ms ease;
|
||||
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
|
||||
|
||||
+1
-1
@@ -146,7 +146,7 @@ $transition-normal: 200ms ease;
|
||||
left: 2px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: #ffffff;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
transition: transform 300ms ease;
|
||||
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
|
||||
|
||||
Reference in New Issue
Block a user