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

- Stylelint:
  - re-enable `declaration-empty-line-before` in the frontend Stylelint config while leaving the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - normalize declaration spacing across frontend stylesheets to match the enforced empty-line convention without changing selectors or computed styles
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:44 -04:00
committed by Zach Yale
parent a991351bb5
commit a04daac341
53 changed files with 85 additions and 6 deletions
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -143,7 +143,6 @@
padding: 1rem; padding: 1rem;
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%); scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
@@ -162,7 +162,6 @@
height: calc(100dvh - 22rem); height: calc(100dvh - 22rem);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%); scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
@@ -164,6 +164,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -510,5 +510,6 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -14,6 +14,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
border-bottom: none; border-bottom: none;
} }
@@ -307,5 +308,6 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -236,6 +236,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -14,6 +14,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
border-bottom: none; border-bottom: none;
} }
@@ -104,5 +105,6 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -81,7 +81,6 @@
width: 100%; width: 100%;
position: relative; position: relative;
z-index: 2; z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%); scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
} }
@@ -194,6 +194,7 @@ label {
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
.footer-left { .footer-left {
@@ -12,6 +12,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
border-bottom: none; border-bottom: none;
} }
@@ -212,6 +213,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer-end; @include panel.dialog-footer-end;
justify-content: space-between; justify-content: space-between;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -15,6 +15,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -8,6 +8,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -34,6 +35,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
flex-shrink: 0; flex-shrink: 0;
.footer-info { .footer-info {
@@ -16,6 +16,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -16,6 +16,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -3,6 +3,7 @@
// Page container — override mixin's overflow so only the content area scrolls // Page container — override mixin's overflow so only the content area scrolls
.main-container { .main-container {
@include settings.settings-page-container; @include settings.settings-page-container;
overflow-y: hidden; overflow-y: hidden;
height: calc(100dvh - 5rem); height: calc(100dvh - 5rem);
@@ -30,6 +31,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -40,6 +42,7 @@
// Cards // Cards
.settings-card { .settings-card {
@include settings.settings-card; @include settings.settings-card;
padding: 1rem; padding: 1rem;
} }
@@ -40,6 +40,7 @@ $border-color: rgb(255 255 255 / 10%);
justify-content: center; justify-content: center;
height: 100vh; height: 100vh;
@include gradient-bg; @include gradient-bg;
gap: 1rem; gap: 1rem;
.loading-text { .loading-text {
@@ -58,6 +59,7 @@ $border-color: rgb(255 255 255 / 10%);
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
@include gradient-bg; @include gradient-bg;
color: $text-primary; color: $text-primary;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@@ -193,6 +195,7 @@ $border-color: rgb(255 255 255 / 10%);
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@include accent-gradient; @include accent-gradient;
opacity: 0.8; opacity: 0.8;
i { i {
@@ -269,6 +272,7 @@ $border-color: rgb(255 255 255 / 10%);
.p-slider-range { .p-slider-range {
@include accent-gradient; @include accent-gradient;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 0 10px color-mix(in srgb, var(--accent-color) 50%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent-color) 50%, transparent);
} }
@@ -306,6 +310,7 @@ $border-color: rgb(255 255 255 / 10%);
height: 72px; height: 72px;
font-size: 1.75rem; font-size: 1.75rem;
@include accent-gradient; @include accent-gradient;
border: none; border: none;
box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-color) 40%, transparent), box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-color) 40%, transparent),
0 0 50px color-mix(in srgb, var(--accent-color) 20%, transparent); 0 0 50px color-mix(in srgb, var(--accent-color) 20%, transparent);
@@ -420,6 +425,7 @@ $border-color: rgb(255 255 255 / 10%);
&.p-highlight { &.p-highlight {
@include accent-gradient; @include accent-gradient;
color: $text-primary; color: $text-primary;
border-color: transparent; border-color: transparent;
box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color) 30%, transparent); box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color) 30%, transparent);
@@ -110,7 +110,6 @@
padding: 1rem; padding: 1rem;
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%); scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
@@ -77,7 +77,6 @@
width: 100%; width: 100%;
position: relative; position: relative;
z-index: 2; z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%); scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
> * { > * {
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -17,11 +18,13 @@
.settings-card { .settings-card {
@include settings.settings-card; @include settings.settings-card;
gap: 1rem; gap: 1rem;
} }
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@@ -35,6 +38,7 @@
.section-body { .section-body {
@include settings.settings-section-body; @include settings.settings-section-body;
padding-left: 0; padding-left: 0;
} }
@@ -14,6 +14,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
border-bottom: none; border-bottom: none;
} }
@@ -349,6 +350,7 @@
// ==================== Dialog Footer ==================== // ==================== Dialog Footer ====================
.dialog-footer { .dialog-footer {
@include panel.dialog-footer-end; @include panel.dialog-footer-end;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
border-left: none; border-left: none;
border-right: none; border-right: none;
@@ -10,6 +10,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -36,6 +37,7 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-left: 1rem; margin-left: 1rem;
margin-right: 1rem; margin-right: 1rem;
@@ -43,6 +45,7 @@
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
@@ -52,6 +55,7 @@
.settings-card { .settings-card {
@include settings.settings-card; @include settings.settings-card;
padding: 1rem 1.5rem 1.5rem; padding: 1rem 1.5rem 1.5rem;
margin-left: 1rem; margin-left: 1rem;
margin-right: 1rem; margin-right: 1rem;
@@ -10,6 +10,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -32,11 +33,13 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
@@ -46,6 +49,7 @@
.settings-card { .settings-card {
@include settings.settings-card; @include settings.settings-card;
padding: 1.75rem; padding: 1.75rem;
} }
@@ -9,6 +9,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -31,12 +32,14 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-top: 1.25rem; margin-top: 1.25rem;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
@@ -46,6 +49,7 @@
.settings-card { .settings-card {
@include settings.settings-card; @include settings.settings-card;
gap: 2rem; gap: 2rem;
} }
@@ -203,6 +203,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -178,6 +178,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
} }
@@ -9,6 +9,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -9,6 +9,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -242,6 +243,7 @@
.actions-row { .actions-row {
@include settings.settings-actions-row; @include settings.settings-actions-row;
margin-top: 0.5rem; margin-top: 0.5rem;
} }
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -29,11 +30,13 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0; margin: 0;
} }
@@ -24,6 +24,7 @@
.section-body { .section-body {
@include settings.settings-section-body; @include settings.settings-section-body;
gap: 2rem; gap: 2rem;
} }
@@ -68,6 +69,7 @@
.setting-options { .setting-options {
@include settings.settings-options; @include settings.settings-options;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -29,10 +30,12 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
.section-description { .section-description {
@include settings.settings-section-description; @include settings.settings-section-description;
margin: 0.5rem 0 0; margin: 0.5rem 0 0;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
@@ -48,6 +51,7 @@
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -174,6 +174,7 @@
border-color: var(--primary-color); border-color: var(--primary-color);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent);
} }
color: var(--primary-color); color: var(--primary-color);
background: color-mix(in srgb, var(--primary-color) 10%, transparent); background: color-mix(in srgb, var(--primary-color) 10%, transparent);
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -29,11 +30,13 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
} }
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -290,6 +290,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: none; border-top: none;
.footer-info { .footer-info {
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -8,6 +8,7 @@
.settings-title { .settings-title {
@include settings.settings-page-title; @include settings.settings-page-title;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
@@ -25,11 +26,13 @@
.section-header { .section-header {
@include settings.settings-section-header; @include settings.settings-section-header;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.section-title { .section-title {
@include settings.settings-section-title; @include settings.settings-section-title;
margin: 0; margin: 0;
} }
@@ -14,6 +14,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
border-bottom: none; border-bottom: none;
} }
@@ -22,6 +22,7 @@
.app-title { .app-title {
@apply text-5xl font-extrabold text-white drop-shadow-lg; @apply text-5xl font-extrabold text-white drop-shadow-lg;
text-shadow: 0 4px 6px rgb(0 0 0 / 30%); text-shadow: 0 4px 6px rgb(0 0 0 / 30%);
} }
@@ -513,6 +513,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
.selection-info { .selection-info {
@@ -16,6 +16,7 @@
.panel-header { .panel-header {
@include panel.panel-header; @include panel.panel-header;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -52,6 +53,7 @@
.dialog-footer { .dialog-footer {
@include panel.dialog-footer; @include panel.dialog-footer;
justify-content: space-between; justify-content: space-between;
} }
@@ -34,6 +34,7 @@
.login-subtitle { .login-subtitle {
@include auth.auth-subtitle; @include auth.auth-subtitle;
font-size: 1rem; font-size: 1rem;
} }
@@ -96,6 +97,7 @@
.login-button { .login-button {
@include auth.auth-button; @include auth.auth-button;
margin-top: 0.5rem; margin-top: 0.5rem;
} }
@@ -128,6 +128,7 @@
// Variant for footers that only need right-aligned actions // Variant for footers that only need right-aligned actions
@mixin dialog-footer-end { @mixin dialog-footer-end {
@include dialog-footer; @include dialog-footer;
justify-content: flex-end; justify-content: flex-end;
@media (width <= 480px) { @media (width <= 480px) {
@@ -258,6 +258,7 @@ $settings-item-border-left-width: 3px;
@mixin settings-warning-notice { @mixin settings-warning-notice {
@include settings-notice-base; @include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%); background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%);
border-left: 3px solid var(--p-red-500); border-left: 3px solid var(--p-red-500);
@@ -274,6 +275,7 @@ $settings-item-border-left-width: 3px;
@mixin settings-info-notice { @mixin settings-info-notice {
@include settings-notice-base; @include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%); background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%);
border-left: 3px solid var(--p-blue-400); border-left: 3px solid var(--p-blue-400);
-1
View File
@@ -4,7 +4,6 @@ module.exports = {
rules: { rules: {
"at-rule-empty-line-before": null, "at-rule-empty-line-before": null,
"declaration-block-single-line-max-declarations": null, "declaration-block-single-line-max-declarations": null,
"declaration-empty-line-before": null,
"declaration-property-value-keyword-no-deprecated": null, "declaration-property-value-keyword-no-deprecated": null,
"keyframes-name-pattern": null, "keyframes-name-pattern": null,
"no-descending-specificity": null, "no-descending-specificity": null,