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

- Stylelint:
  - re-enable `rule-empty-line-before` in the frontend Stylelint config while preserving the agreed Angular and legacy Sass exceptions
- SCSS:
  - normalize blank-line spacing before nested rules and sibling blocks across frontend stylesheets 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 a04daac341
commit 55f448191f
33 changed files with 65 additions and 3 deletions
@@ -24,6 +24,7 @@
0% { 0% {
background-position: -200% 0; background-position: -200% 0;
} }
100% { 100% {
background-position: 200% 0; background-position: 200% 0;
} }
@@ -23,6 +23,7 @@
0% { 0% {
background-position: -200% 0; background-position: -200% 0;
} }
100% { 100% {
background-position: 200% 0; background-position: 200% 0;
} }
@@ -302,6 +302,7 @@
0%, 100% { 0%, 100% {
transform: translateY(0); transform: translateY(0);
} }
50% { 50% {
transform: translateY(-10px); transform: translateY(-10px);
} }
@@ -312,6 +313,7 @@
transform: scale(1); transform: scale(1);
opacity: 1; opacity: 1;
} }
50% { 50% {
transform: scale(1.05); transform: scale(1.05);
opacity: 0.8; opacity: 0.8;
@@ -392,6 +392,7 @@
0%, 100% { 0%, 100% {
transform: translateY(0); transform: translateY(0);
} }
50% { 50% {
transform: translateY(-10px); transform: translateY(-10px);
} }
@@ -273,6 +273,7 @@ p-inputgroup.disabled {
padding: 1rem; padding: 1rem;
flex-wrap: wrap; flex-wrap: wrap;
} }
.file-row.expanded { .file-row.expanded {
border-bottom-style: dotted; border-bottom-style: dotted;
} }
@@ -182,7 +182,6 @@
} }
@media (width <= 767px) { @media (width <= 767px) {
.dashboard-scroller-card { .dashboard-scroller-card {
height: 184px; height: 184px;
width: 108px; width: 108px;
@@ -145,6 +145,7 @@
0%, 80%, 100% { 0%, 80%, 100% {
transform: scale(0); transform: scale(0);
} }
40% { 40% {
transform: scale(1); transform: scale(1);
} }
@@ -601,6 +601,7 @@
from { from {
opacity: 0; opacity: 0;
} }
to { to {
opacity: 1; opacity: 1;
} }
@@ -169,6 +169,7 @@ $provider-colors: (
opacity: 0; opacity: 0;
transform: translateX(-20px); transform: translateX(-20px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(0); transform: translateX(0);
@@ -180,6 +181,7 @@ $provider-colors: (
opacity: 0; opacity: 0;
transform: translateY(-20px); transform: translateY(-20px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
@@ -204,6 +204,7 @@
from { from {
opacity: 0; opacity: 0;
} }
to { to {
opacity: 1; opacity: 1;
} }
@@ -566,6 +566,7 @@ $border-color: rgb(255 255 255 / 10%);
transform: translateX(100%); transform: translateX(100%);
opacity: 0.5; opacity: 0.5;
} }
to { to {
transform: translateX(0); transform: translateX(0);
opacity: 1; opacity: 1;
@@ -698,6 +699,7 @@ $border-color: rgb(255 255 255 / 10%);
opacity: 1; opacity: 1;
transform: scale(1); transform: scale(1);
} }
50% { 50% {
opacity: 0.6; opacity: 0.6;
transform: scale(0.95); transform: scale(0.95);
@@ -161,6 +161,7 @@
from { from {
opacity: 0.7; opacity: 0.7;
} }
to { to {
opacity: 1; opacity: 1;
} }
@@ -570,6 +571,7 @@
.action-icon { font-size: 2rem; } .action-icon { font-size: 2rem; }
.action-text { font-size: 1rem; } .action-text { font-size: 1rem; }
.book-title { .book-title {
font-size: 0.85rem; font-size: 0.85rem;
max-width: 250px; max-width: 250px;
@@ -46,6 +46,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -44,6 +44,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -45,6 +45,7 @@ $transition-normal: 200ms ease;
transform: translateY(-8px); transform: translateY(-8px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -52,6 +52,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -46,6 +46,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -46,6 +46,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -44,6 +44,7 @@ $transition-normal: 200ms ease;
transform: translateY(20px); transform: translateY(20px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -413,6 +413,7 @@ $transition-normal: 200ms ease;
opacity: 0; opacity: 0;
transform: translateX(-50%) translateY(8px); transform: translateX(-50%) translateY(8px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0);
@@ -436,6 +437,7 @@ $transition-normal: 200ms ease;
opacity: 0; opacity: 0;
transform: translateY(8px); transform: translateY(8px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
@@ -43,6 +43,7 @@ $transition-normal: 200ms ease;
transform: translateY(-8px); transform: translateY(-8px);
opacity: 0; opacity: 0;
} }
to { to {
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -29,6 +29,7 @@
opacity: 0; opacity: 0;
transform: translateX(-50%) translateY(4px); transform: translateX(-50%) translateY(4px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0);
@@ -40,6 +41,7 @@
opacity: 0; opacity: 0;
transform: translateX(-50%) translateY(-4px); transform: translateX(-50%) translateY(-4px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0);
@@ -133,6 +135,7 @@
opacity: 0; opacity: 0;
transform: translateX(-50%) translateY(6px); transform: translateX(-50%) translateY(6px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0);
@@ -144,6 +147,7 @@
opacity: 0; opacity: 0;
transform: translateX(-50%) translateY(-6px); transform: translateX(-50%) translateY(-6px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0);
@@ -10,6 +10,7 @@
.chart-title { .chart-title {
flex: 1; flex: 1;
h3 { h3 {
color: var(--text-color, #fff); color: var(--text-color, #fff);
font-size: 1.25rem; font-size: 1.25rem;
@@ -19,6 +20,7 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
} }
.chart-description { .chart-description {
color: var(--text-secondary-color); color: var(--text-secondary-color);
font-size: 0.9rem; font-size: 0.9rem;
@@ -55,6 +57,7 @@
font-weight: 600; font-weight: 600;
color: var(--text-color, #fff); color: var(--text-color, #fff);
} }
.stat-label { .stat-label {
font-size: 0.75rem; font-size: 0.75rem;
color: var(--text-secondary-color); color: var(--text-secondary-color);
@@ -42,7 +42,6 @@
} }
@media (width <= 768px) { @media (width <= 768px) {
.chart-header { .chart-header {
.chart-title { .chart-title {
h3 { h3 {
@@ -1,6 +1,8 @@
.publication-era-container { width: 100%; } .publication-era-container { width: 100%; }
.chart-header { .chart-header {
display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem;
.chart-title { .chart-title {
flex: 1; flex: 1;
h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; } h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
@@ -8,8 +10,10 @@
} }
} }
.publication-era-icon { font-size: 1.5rem; color: #673ab7; } .publication-era-icon { font-size: 1.5rem; color: #673ab7; }
.stats-row { .stats-row {
display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap;
.stat-card { .stat-card {
display: flex; flex-direction: column; align-items: center; display: flex; flex-direction: column; align-items: center;
background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%);
@@ -22,6 +26,7 @@
} }
} }
.chart-wrapper { position: relative; height: 350px; width: 100%; } .chart-wrapper { position: relative; height: 350px; width: 100%; }
.no-data-message { .no-data-message {
display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color);
i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; } i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
@@ -1,6 +1,8 @@
.reading-debt-container { width: 100%; } .reading-debt-container { width: 100%; }
.chart-header { .chart-header {
display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem;
.chart-title { .chart-title {
flex: 1; flex: 1;
h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; } h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
@@ -8,8 +10,10 @@
} }
} }
.reading-debt-icon { font-size: 1.5rem; color: #ef5350; } .reading-debt-icon { font-size: 1.5rem; color: #ef5350; }
.stats-row { .stats-row {
display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap;
.stat-card { .stat-card {
display: flex; flex-direction: column; align-items: center; display: flex; flex-direction: column; align-items: center;
background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%);
@@ -21,6 +25,7 @@
} }
} }
.chart-wrapper { position: relative; height: 350px; width: 100%; } .chart-wrapper { position: relative; height: 350px; width: 100%; }
.no-data-message { .no-data-message {
display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color);
i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; } i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
@@ -1,13 +1,17 @@
.session-archetypes-container { width: 100%; } .session-archetypes-container { width: 100%; }
.chart-header { .chart-header {
display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem;
.chart-title { .chart-title {
flex: 1; flex: 1;
h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; } h3 { color: var(--text-color, #fff); font-size: 1.25rem; font-weight: 500; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.chart-description { color: var(--text-secondary-color); font-size: 0.9rem; margin: 0; line-height: 1.4; } .chart-description { color: var(--text-secondary-color); font-size: 0.9rem; margin: 0; line-height: 1.4; }
} }
.year-nav { .year-nav {
display: flex; align-items: center; gap: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
.nav-btn { .nav-btn {
background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 20%); background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 20%);
border-radius: 6px; color: var(--text-color, #fff); padding: 0.3rem 0.5rem; border-radius: 6px; color: var(--text-color, #fff); padding: 0.3rem 0.5rem;
@@ -18,8 +22,10 @@
} }
} }
.session-archetypes-icon { font-size: 1.5rem; color: #ff9800; } .session-archetypes-icon { font-size: 1.5rem; color: #ff9800; }
.stats-row { .stats-row {
display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap;
.stat-card { .stat-card {
display: flex; flex-direction: column; align-items: center; display: flex; flex-direction: column; align-items: center;
background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%);
@@ -31,6 +37,7 @@
} }
} }
.chart-wrapper { position: relative; height: 350px; width: 100%; } .chart-wrapper { position: relative; height: 350px; width: 100%; }
.no-data-message { .no-data-message {
display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; color: var(--text-secondary-color);
i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; } i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
@@ -342,6 +342,7 @@
opacity: 0; opacity: 0;
transform: translateY(-10px); transform: translateY(-10px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
@@ -500,6 +501,7 @@
opacity: 0; opacity: 0;
transform: translateY(-10px); transform: translateY(-10px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
@@ -384,6 +384,7 @@
.p-datatable-tbody > tr > td.status-cell { .p-datatable-tbody > tr > td.status-cell {
padding-left: 1.5rem !important; padding-left: 1.5rem !important;
} }
.select-library { .select-library {
min-width: 180px; min-width: 180px;
} }
@@ -476,6 +477,7 @@
0%, 100% { 0%, 100% {
opacity: 1; opacity: 1;
} }
50% { 50% {
opacity: 0.6; opacity: 0.6;
} }
@@ -109,6 +109,7 @@
opacity: 1; opacity: 1;
box-shadow: 0 0 0 0 rgb(239 68 68 / 70%); box-shadow: 0 0 0 0 rgb(239 68 68 / 70%);
} }
50% { 50% {
opacity: 0.85; opacity: 0.85;
box-shadow: 0 0 0 5px rgb(239 68 68 / 0%); box-shadow: 0 0 0 5px rgb(239 68 68 / 0%);
@@ -223,6 +223,7 @@
opacity: 0; opacity: 0;
transform: translateY(30px); transform: translateY(30px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
@@ -233,6 +234,7 @@
from { from {
opacity: 0; opacity: 0;
} }
to { to {
opacity: 1; opacity: 1;
} }
@@ -242,9 +244,11 @@
0%, 100% { 0%, 100% {
transform: translate(0, 0) rotate(0deg); transform: translate(0, 0) rotate(0deg);
} }
33% { 33% {
transform: translate(30px, -30px) rotate(120deg); transform: translate(30px, -30px) rotate(120deg);
} }
66% { 66% {
transform: translate(-20px, 20px) rotate(240deg); transform: translate(-20px, 20px) rotate(240deg);
} }
@@ -254,6 +258,7 @@
0%, 100% { 0%, 100% {
opacity: 1; opacity: 1;
} }
50% { 50% {
opacity: 0.8; opacity: 0.8;
} }
@@ -263,9 +268,11 @@
0%, 100% { 0%, 100% {
transform: translateX(0); transform: translateX(0);
} }
25% { 25% {
transform: translateX(-10px); transform: translateX(-10px);
} }
75% { 75% {
transform: translateX(10px); transform: translateX(10px);
} }
@@ -276,9 +283,11 @@
opacity: 0; opacity: 0;
transform: scale(0.95); transform: scale(0.95);
} }
50% { 50% {
transform: scale(1.02); transform: scale(1.02);
} }
100% { 100% {
opacity: 1; opacity: 1;
transform: scale(1); transform: scale(1);
@@ -175,6 +175,7 @@
opacity: 0; opacity: 0;
transform: scaleY(0.8); transform: scaleY(0.8);
} }
100% { 100% {
opacity: 1; opacity: 1;
transform: scaleY(1); transform: scaleY(1);
@@ -185,6 +186,7 @@
0% { 0% {
opacity: 1; opacity: 1;
} }
100% { 100% {
opacity: 0; opacity: 0;
} }
-1
View File
@@ -12,7 +12,6 @@ module.exports = {
"number-max-precision": null, "number-max-precision": null,
"property-no-deprecated": null, "property-no-deprecated": null,
"property-no-vendor-prefix": null, "property-no-vendor-prefix": null,
"rule-empty-line-before": null,
"selector-class-pattern": null, "selector-class-pattern": null,
"selector-pseudo-element-no-unknown": [ "selector-pseudo-element-no-unknown": [
true, true,