style(frontend): enforce at-rule-empty-line-before in scss

- Stylelint:
  - re-enable `at-rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before Sass includes, media queries, and other at-rules where the repo was inconsistent
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:45 -04:00
committed by Zach Yale
parent e68938f916
commit 43412c0d29
8 changed files with 11 additions and 6 deletions
@@ -39,6 +39,7 @@ $border-color: rgb(255 255 255 / 10%);
align-items: center;
justify-content: center;
height: 100vh;
@include gradient-bg;
gap: 1rem;
@@ -58,6 +59,7 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
flex-direction: column;
height: 100vh;
@include gradient-bg;
color: $text-primary;
@@ -194,6 +196,7 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: center;
@include accent-gradient;
opacity: 0.8;
@@ -309,6 +312,7 @@ $border-color: rgb(255 255 255 / 10%);
width: 72px;
height: 72px;
font-size: 1.75rem;
@include accent-gradient;
border: none;
@@ -20,6 +20,7 @@
.warning-notice {
margin-top: -2rem;
margin-bottom: 1rem;
@include settings.settings-warning-notice;
}
@@ -33,5 +33,7 @@
p { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text-color, #fff); }
small { font-size: 0.85rem; opacity: 0.7; }
}
@media (width <= 768px) { .chart-wrapper { height: 280px; } }
@media (width <= 480px) { .chart-header .chart-title h3 { font-size: 1rem; } }
@@ -32,5 +32,7 @@
p { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text-color, #fff); }
small { font-size: 0.85rem; opacity: 0.7; }
}
@media (width <= 768px) { .chart-wrapper { height: 280px; } }
@media (width <= 480px) { .chart-header .chart-title h3 { font-size: 1rem; } }
@@ -44,5 +44,7 @@
p { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text-color, #fff); }
small { font-size: 0.85rem; opacity: 0.7; }
}
@media (width <= 768px) { .chart-wrapper { height: 280px; } }
@media (width <= 480px) { .chart-header .chart-title h3 { font-size: 1rem; } }
@@ -8,12 +8,10 @@
$settings-page-title-size: 1.375rem;
$settings-page-title-weight: 700;
$settings-page-description-size: 0.875rem;
$settings-section-title-size: 1.25rem;
$settings-section-title-weight: 600;
$settings-section-title-icon-size: 1.125rem;
$settings-section-description-size: 0.875rem;
$settings-label-size: 0.9375rem;
$settings-label-weight: 500;
$settings-description-size: 0.875rem;
@@ -26,11 +24,9 @@ $settings-card-padding-mobile: 1rem;
$settings-card-gap: 1.25rem;
$settings-card-gap-mobile: 1rem;
$settings-card-border-radius: 8px;
$settings-section-body-padding-left: 1rem;
$settings-section-body-padding-left-mobile: 0.5rem;
$settings-section-body-gap: 1rem;
$settings-item-padding: 0.875rem 1rem;
$settings-item-padding-mobile: 0.75rem;
$settings-item-border-radius: 6px;
-1
View File
@@ -1,6 +1,5 @@
@use "sass:meta";
@import "../node_modules/primeicons/primeicons.css";
@include meta.load-css("assets/styles/reset.scss");
@include meta.load-css("assets/layout/styles/global.scss");
-1
View File
@@ -2,7 +2,6 @@ module.exports = {
extends: ["stylelint-config-standard-scss"],
ignoreFiles: ["dist/**", "node_modules/**"],
rules: {
"at-rule-empty-line-before": null,
"declaration-block-single-line-max-declarations": null,
"declaration-property-value-keyword-no-deprecated": null,
"keyframes-name-pattern": null,