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:
+1
-1
@@ -28,7 +28,7 @@
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: rgb(59, 130, 246, 8%);
|
||||
background: rgb(59 130 246 / 8%);
|
||||
border: 1px solid var(--p-primary-color);
|
||||
border-radius: 6px;
|
||||
color: var(--p-text-color);
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
.thumbnail {
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px rgb(0, 0, 0, 10%);
|
||||
box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
|
||||
margin: 0 auto 1rem;
|
||||
}
|
||||
|
||||
@@ -296,15 +296,15 @@ textarea.changed,
|
||||
|
||||
.metadata-status {
|
||||
&.copied {
|
||||
color: rgb(34, 197, 94);
|
||||
color: rgb(34 197 94);
|
||||
}
|
||||
|
||||
&.no-metadata {
|
||||
color: rgb(59, 130, 246);
|
||||
color: rgb(59 130 246);
|
||||
}
|
||||
|
||||
&.not-applied {
|
||||
color: rgb(239, 68, 68);
|
||||
color: rgb(239 68 68);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ textarea.changed,
|
||||
.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 {
|
||||
|
||||
+11
-11
@@ -40,7 +40,7 @@
|
||||
|
||||
p {
|
||||
font-size: 0.875rem;
|
||||
color: rgb(156, 163, 175);
|
||||
color: rgb(156 163 175);
|
||||
|
||||
strong {
|
||||
color: var(--primary-color);
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
.external-link-icon {
|
||||
color: rgb(2, 132, 199);
|
||||
color: rgb(2 132 199);
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
@@ -113,7 +113,7 @@
|
||||
.saving-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgb(0, 0, 0, 50%);
|
||||
background: rgb(0 0 0 / 50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -132,13 +132,13 @@
|
||||
}
|
||||
|
||||
.saving-message {
|
||||
background: rgb(17, 24, 39, 90%);
|
||||
background: rgb(17 24 39 / 90%);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.375rem;
|
||||
|
||||
span {
|
||||
font-size: 0.875rem;
|
||||
color: rgb(229, 231, 235);
|
||||
color: rgb(229 231 235);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -255,7 +255,7 @@ p-inputgroup.disabled {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: rgb(156, 163, 175);
|
||||
color: rgb(156 163 175);
|
||||
font-style: italic;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
@@ -291,7 +291,7 @@ p-inputgroup.disabled {
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 4px 6px -1px rgb(0, 0, 0, 10%);
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@@ -301,7 +301,7 @@ p-inputgroup.disabled {
|
||||
|
||||
div.cover-image {
|
||||
display: block;
|
||||
background-color: rgb(255, 255, 255, 10%);
|
||||
background-color: rgb(255 255 255 / 10%);
|
||||
text-align: center;
|
||||
line-height: 2rem;
|
||||
}
|
||||
@@ -321,15 +321,15 @@ div.cover-image {
|
||||
|
||||
.metadata-status {
|
||||
&.copied {
|
||||
color: rgb(34, 197, 94);
|
||||
color: rgb(34 197 94);
|
||||
}
|
||||
|
||||
&.no-metadata {
|
||||
color: rgb(59, 130, 246);
|
||||
color: rgb(59 130 246);
|
||||
}
|
||||
|
||||
&.not-applied {
|
||||
color: rgb(239, 68, 68);
|
||||
color: rgb(239 68 68);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -17,7 +17,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%);
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
@@ -105,8 +105,8 @@
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.success {
|
||||
background: rgb(34, 197, 94, 10%);
|
||||
border-color: rgb(34, 197, 94, 40%);
|
||||
background: rgb(34 197 94 / 10%);
|
||||
border-color: rgb(34 197 94 / 40%);
|
||||
|
||||
.status-icon {
|
||||
color: #22c55e;
|
||||
@@ -114,8 +114,8 @@
|
||||
}
|
||||
|
||||
&.error {
|
||||
background: rgb(239, 68, 68, 10%);
|
||||
border-color: rgb(239, 68, 68, 40%);
|
||||
background: rgb(239 68 68 / 10%);
|
||||
border-color: rgb(239 68 68 / 40%);
|
||||
|
||||
.status-icon {
|
||||
color: #ef4444;
|
||||
|
||||
+6
-6
@@ -16,7 +16,7 @@
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: rgb(59, 130, 246, 8%);
|
||||
background: rgb(59 130 246 / 8%);
|
||||
border: 1px solid var(--p-primary-color);
|
||||
border-radius: 6px;
|
||||
color: var(--p-text-color);
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
code {
|
||||
background: rgb(255, 255, 255, 10%);
|
||||
background: rgb(255 255 255 / 10%);
|
||||
padding: 0.1rem 0.3rem;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
@@ -99,13 +99,13 @@
|
||||
border: 1px solid var(--p-surface-300);
|
||||
|
||||
&.preview-success {
|
||||
background-color: rgb(76, 175, 80, 10%);
|
||||
border-color: rgb(76, 175, 80, 30%);
|
||||
background-color: rgb(76 175 80 / 10%);
|
||||
border-color: rgb(76 175 80 / 30%);
|
||||
}
|
||||
|
||||
&.preview-failure {
|
||||
background-color: rgb(244, 67, 54, 10%);
|
||||
border-color: rgb(244, 67, 54, 30%);
|
||||
background-color: rgb(244 67 54 / 10%);
|
||||
border-color: rgb(244 67 54 / 30%);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user