style(frontend): apply the first stylelint autofix pass

- SCSS autofixes:
  - apply Stylelint's automatic fixes across the frontend stylesheet set without touching TypeScript or Angular templates
  - normalize zero values, shorthand properties, selector casing, and similar mechanical stylesheet rewrites
  - keep this pass limited to autofix output so the remaining manual stylelint findings stay isolated for later review
- Cleanup scope:
  - update component SCSS and shared layout styles only where Stylelint could rewrite them mechanically
  - leave the unresolved manual stylelint findings in place for a smaller follow-up pass

- Validation:
  - `just ui stylelint-fix` reduced the remaining stylelint count from 140 to 62 before stopping on non-fixable issues
This commit is contained in:
James Cox
2026-04-22 17:26:40 -04:00
committed by Zach Yale
parent cef000d425
commit 34fc60050f
37 changed files with 65 additions and 124 deletions
@@ -169,8 +169,7 @@
.author-grid { .author-grid {
display: grid; display: grid;
gap: 1.25rem; gap: 1.25rem;
align-items: start; place-items: start center;
justify-items: center;
width: 100%; width: 100%;
padding-top: 1rem; padding-top: 1rem;
padding-right: 1rem; padding-right: 1rem;
@@ -179,8 +179,7 @@
.books-grid { .books-grid {
display: grid; display: grid;
gap: 1.3rem; gap: 1.3rem;
align-items: start; place-items: start center;
justify-items: center;
width: 100%; width: 100%;
padding: 0.5rem; padding: 0.5rem;
} }
@@ -94,7 +94,7 @@
::ng-deep .field-with-lock button { ::ng-deep .field-with-lock button {
border-color: var(--p-inputtext-border-color) !important; border-color: var(--p-inputtext-border-color) !important;
border-radius: 0 6px 6px 0 !important; border-radius: 0 6px 6px 0 !important;
border-left: 0px !important; border-left: 0 !important;
} }
.description-with-lock { .description-with-lock {
@@ -193,7 +193,7 @@
} }
.p-autocomplete-clearable .p-autocomplete-clear-icon { .p-autocomplete-clearable .p-autocomplete-clear-icon {
right: 0px; right: 0;
margin-top: -1rem; margin-top: -1rem;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
@@ -30,8 +30,7 @@
.fields-grid { .fields-grid {
display: grid; display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(1, minmax(0, 1fr));
column-gap: 6rem; gap: 1rem 6rem;
row-gap: 1rem;
@media (min-width: 576px) { @media (min-width: 576px) {
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -68,8 +68,7 @@
} }
.notes-scroll-container { .notes-scroll-container {
overflow-x: auto; overflow: auto hidden;
overflow-y: hidden;
height: 100%; height: 100%;
&::-webkit-scrollbar { &::-webkit-scrollbar {
@@ -301,7 +300,7 @@
@keyframes float { @keyframes float {
0%, 100% { 0%, 100% {
transform: translateY(0px); transform: translateY(0);
} }
50% { 50% {
transform: translateY(-10px); transform: translateY(-10px);
@@ -106,8 +106,7 @@
} }
.reviews-scroll-container { .reviews-scroll-container {
overflow-x: auto; overflow: auto hidden;
overflow-y: hidden;
padding-bottom: 8px; padding-bottom: 8px;
height: 100%; height: 100%;
@@ -183,10 +182,7 @@
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
z-index: 50; z-index: 50;
pointer-events: none; pointer-events: none;
@@ -394,7 +390,7 @@
@keyframes float { @keyframes float {
0%, 100% { 0%, 100% {
transform: translateY(0px); transform: translateY(0);
} }
50% { 50% {
transform: translateY(-10px); transform: translateY(-10px);
@@ -820,7 +820,7 @@
z-index: 100; z-index: 100;
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
border: 1px solid rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.5);
border-width: 1px 1px 0px 1px; border-width: 1px 1px 0 1px;
background-color: var(--card-background); background-color: var(--card-background);
> .footer-content { > .footer-content {
@@ -98,7 +98,7 @@
color: var(--text-color-secondary); color: var(--text-color-secondary);
} }
p-progressSpinner { p-progressspinner {
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
} }
@@ -125,7 +125,7 @@
margin-top: 0.75rem; margin-top: 0.75rem;
} }
p-progressSpinner { p-progressspinner {
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
} }
@@ -375,8 +375,7 @@ div.cover-image {
::ng-deep .p-button { ::ng-deep .p-button {
width: var(--p-button-icon-only-width); width: var(--p-button-icon-only-width);
padding-inline-start: 0; padding-inline: 0 0;
padding-inline-end: 0;
gap: 0; gap: 0;
} }
} }
@@ -1,6 +1,6 @@
.dashboard-scroller-container { .dashboard-scroller-container {
border-radius: 20px; border-radius: 20px;
padding: 1rem 2rem 0rem 2rem; padding: 1rem 2rem 0 2rem;
margin-bottom: 2rem; margin-bottom: 2rem;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@@ -73,8 +73,7 @@
.dashboard-scroller-infinite { .dashboard-scroller-infinite {
display: flex; display: flex;
overflow-x: auto; overflow: auto hidden;
overflow-y: hidden;
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
padding: 1rem 0.5rem 1rem 0.5rem; padding: 1rem 0.5rem 1rem 0.5rem;
gap: 2rem; gap: 2rem;
@@ -89,9 +88,7 @@
.dashboard-scroller-card { .dashboard-scroller-card {
height: 200px; height: 200px;
width: 116px; width: 116px;
flex-basis: 124px; flex: 0 0 124px;
flex-shrink: 0;
flex-grow: 0;
scroll-snap-align: start; scroll-snap-align: start;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative; position: relative;
@@ -6,10 +6,7 @@
&::before { &::before {
content: ''; content: '';
position: fixed; position: fixed;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none; pointer-events: none;
z-index: 0; z-index: 0;
} }
@@ -1,5 +1,5 @@
::ng-deep .p-tabpanels .custom-tab-padding { ::ng-deep .p-tabpanels .custom-tab-padding {
padding: 1rem 0rem 0rem 0.5rem !important; padding: 1rem 0 0 0.5rem !important;
@media (min-width: 640px) { @media (min-width: 640px) {
padding: var(--p-tabs-tabpanel-padding) !important; padding: var(--p-tabs-tabpanel-padding) !important;
@@ -27,7 +27,7 @@
} }
::ng-deep .p-autocomplete-clearable .p-autocomplete-clear-icon { ::ng-deep .p-autocomplete-clearable .p-autocomplete-clear-icon {
right: 0px; right: 0;
margin-top: -1rem; margin-top: -1rem;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
@@ -50,7 +50,7 @@
::ng-deep .field-with-lock button { ::ng-deep .field-with-lock button {
border-color: var(--p-inputtext-border-color) !important; border-color: var(--p-inputtext-border-color) !important;
border-radius: 0 6px 6px 0 !important; border-radius: 0 6px 6px 0 !important;
border-left: 0px !important; border-left: 0 !important;
} }
::ng-deep p-fileupload .p-button-label { ::ng-deep p-fileupload .p-button-label {
@@ -8,8 +8,7 @@
.dashboard-scroller-infinite { .dashboard-scroller-infinite {
display: flex; display: flex;
overflow-x: auto; overflow: auto hidden;
overflow-y: hidden;
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
padding: 0.5rem; padding: 0.5rem;
gap: 1rem; gap: 1rem;
@@ -37,9 +36,7 @@
.dashboard-scroller-card { .dashboard-scroller-card {
width: 115px; width: 115px;
flex-basis: 115px; flex: 0 0 115px;
flex-shrink: 0;
flex-grow: 0;
scroll-snap-align: start; scroll-snap-align: start;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative; position: relative;
@@ -156,15 +156,14 @@
.json-content { .json-content {
margin: 0; margin: 0;
padding: 1rem; padding: 1rem;
font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace; font-family: 'SF Mono', Consolas, Monaco, Menlo, monospace;
font-size: 0.8rem; font-size: 0.8rem;
line-height: 1.6; line-height: 1.6;
color: var(--text-color); color: var(--text-color);
overflow-x: auto; overflow: auto auto;
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
max-height: 50vh; max-height: 50vh;
overflow-y: auto;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 8px; width: 8px;
@@ -108,8 +108,7 @@
.options-group { .options-group {
display: flex; display: flex;
flex-direction: row; flex-flow: row wrap;
flex-wrap: wrap;
align-items: center; align-items: center;
gap: 1rem 2.5rem; gap: 1rem 2.5rem;
} }
@@ -66,10 +66,7 @@ $border-color: rgba(255, 255, 255, 0.1);
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent-color) 15%, transparent) 0%, transparent 50%), background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent-color) 15%, transparent) 0%, transparent 50%),
radial-gradient(ellipse at 80% 100%, rgba($accent-secondary, 0.1) 0%, transparent 50%); radial-gradient(ellipse at 80% 100%, rgba($accent-secondary, 0.1) 0%, transparent 50%);
pointer-events: none; pointer-events: none;
@@ -766,8 +763,7 @@ $border-color: rgba(255, 255, 255, 0.1);
} }
.audio-details { .audio-details {
flex-direction: row; flex-flow: row wrap;
flex-wrap: wrap;
justify-content: center; justify-content: center;
gap: 0.5rem; gap: 0.5rem;
@@ -780,8 +776,7 @@ $border-color: rgba(255, 255, 255, 0.1);
// Landscape mode optimization // Landscape mode optimization
@media (max-height: 600px) and (orientation: landscape) { @media (max-height: 600px) and (orientation: landscape) {
.reader-main { .reader-main {
flex-direction: row; flex-flow: row wrap;
flex-wrap: wrap;
justify-content: center; justify-content: center;
gap: 1rem; gap: 1rem;
} }
@@ -78,10 +78,7 @@
.image-container { .image-container {
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
bottom: 0;
left: 0;
right: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@@ -90,7 +87,7 @@
background: #0f0f0f; background: #0f0f0f;
min-height: 0; min-height: 0;
&:not(.two-page-view):not(.infinite-scroll) { &:not(.two-page-view, .infinite-scroll) {
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
@@ -147,10 +144,7 @@
.previous-page-layer { .previous-page-layer {
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1; z-index: 1;
} }
@@ -318,8 +312,7 @@
} }
&.infinite-scroll { &.infinite-scroll {
overflow-y: auto; overflow: hidden auto;
overflow-x: hidden;
align-items: flex-start; align-items: flex-start;
touch-action: pan-y; touch-action: pan-y;
overscroll-behavior: contain; overscroll-behavior: contain;
@@ -410,8 +403,7 @@
// Long Strip / Webtoon mode - no gaps between pages // Long Strip / Webtoon mode - no gaps between pages
&.long-strip { &.long-strip {
overflow-y: auto; overflow: hidden auto;
overflow-x: hidden;
align-items: flex-start; align-items: flex-start;
touch-action: pan-y; touch-action: pan-y;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
@@ -589,10 +581,7 @@
.loader-overlay { .loader-overlay {
position: fixed; position: fixed;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8);
display: flex; display: flex;
align-items: center; align-items: center;
@@ -244,7 +244,7 @@ $transition-normal: 200ms ease;
line-height: 1.5; line-height: 1.5;
&.file-name { &.file-name {
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
font-size: 12px; font-size: 12px;
color: $text-secondary; color: $text-secondary;
background: rgba(255, 255, 255, 0.03); background: rgba(255, 255, 255, 0.03);
@@ -60,10 +60,7 @@
.navigation-overlay { .navigation-overlay {
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10; z-index: 10;
cursor: pointer; cursor: pointer;
pointer-events: auto; pointer-events: auto;
@@ -72,10 +69,7 @@
#foliate-container { #foliate-container {
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
pointer-events: auto; pointer-events: auto;
@@ -92,10 +86,7 @@
.loader-overlay { .loader-overlay {
position: fixed; position: fixed;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8);
display: flex; display: flex;
align-items: center; align-items: center;
@@ -1,9 +1,6 @@
.popup-backdrop { .popup-backdrop {
position: fixed; position: fixed;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99998; z-index: 99998;
background: transparent; background: transparent;
} }
@@ -136,8 +136,7 @@
.series-grid { .series-grid {
display: grid; display: grid;
gap: 1.25rem; gap: 1.25rem;
align-items: start; place-items: start center;
justify-items: center;
width: 100%; width: 100%;
padding-top: 1rem; padding-top: 1rem;
padding-right: 1rem; padding-right: 1rem;
@@ -106,7 +106,7 @@
} }
// Hover: spread 3+ cover fan // Hover: spread 3+ cover fan
.series-card:hover .stacked-covers:not(.covers-1):not(.covers-2) { .series-card:hover .stacked-covers:not(.covers-1, .covers-2) {
.cover-1 { .cover-1 {
transform: translateX(calc(-24px * var(--card-scale, 1))) rotate(-5deg); transform: translateX(calc(-24px * var(--card-scale, 1))) rotate(-5deg);
} }
@@ -70,8 +70,7 @@
.series-scroller-track { .series-scroller-track {
display: flex; display: flex;
overflow-x: auto; overflow: auto hidden;
overflow-y: hidden;
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
padding: 1rem 0.5rem 1rem; padding: 1rem 0.5rem 1rem;
gap: 1.25rem; gap: 1.25rem;
@@ -107,7 +107,7 @@
} }
.ip-cell { .ip-cell {
font-family: 'SF Mono', 'Monaco', 'Courier New', monospace; font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
} }
@@ -200,7 +200,7 @@
} }
&[data-font="roboto"] .option-text { &[data-font="roboto"] .option-text {
font-family: 'Roboto', sans-serif; font-family: Roboto, sans-serif;
} }
&[data-font="cursive"] .option-text { &[data-font="cursive"] .option-text {
@@ -103,9 +103,8 @@
.button-group { .button-group {
display: flex; display: flex;
flex-direction: row; flex-flow: row wrap;
gap: 0.5rem; gap: 0.5rem;
flex-wrap: wrap;
.option-button { .option-button {
display: flex; display: flex;
@@ -207,7 +207,7 @@
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
background: currentColor; background: currentcolor;
} }
} }
@@ -339,7 +339,7 @@
} }
.cron-value { .cron-value {
font-family: 'SF Mono', 'Monaco', 'Courier New', monospace; font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--p-primary-color); color: var(--p-primary-color);
background: var(--p-surface-900); background: var(--p-surface-900);
@@ -369,7 +369,7 @@
.cron-input { .cron-input {
width: 130px; width: 130px;
font-family: 'SF Mono', 'Monaco', 'Courier New', monospace; font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--p-text-color); color: var(--p-text-color);
background: var(--p-surface-900); background: var(--p-surface-900);
@@ -516,7 +516,7 @@
&::before { &::before {
content: '\e923'; content: '\e923';
font-family: 'primeicons'; font-family: primeicons;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -92,10 +92,7 @@
.config-modal-overlay { .config-modal-overlay {
position: fixed; position: fixed;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px); backdrop-filter: blur(4px);
z-index: 1000; z-index: 1000;
@@ -69,10 +69,7 @@
.quadrant-labels { .quadrant-labels {
position: absolute; position: absolute;
top: 0; inset: 0 0 0 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none; pointer-events: none;
.quadrant-label { .quadrant-label {
@@ -22,7 +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: 0px 4px 6px rgba(0, 0, 0, 0.3); text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
} }
.change-password-header { .change-password-header {
@@ -298,8 +298,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.625rem; gap: 0.625rem;
overflow-y: auto; overflow: hidden auto;
overflow-x: hidden;
flex: 1; flex: 1;
padding-right: 0.25rem; padding-right: 0.25rem;
min-height: 0; min-height: 0;
@@ -339,7 +339,7 @@
.code-textarea { .code-textarea {
width: 100%; width: 100%;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
font-size: 0.875rem; font-size: 0.875rem;
resize: vertical; resize: vertical;
line-height: 1.5; line-height: 1.5;
@@ -18,7 +18,8 @@ body {
min-height: 100%; min-height: 100%;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
--glow-image: url(../../../images/topbar.png), radial-gradient(50% 50% at center -25px, var(--p-primary-color) 0%, #000000 100%);
--glow-image: url("../../../images/topbar.png"), radial-gradient(50% 50% at center -25px, var(--p-primary-color) 0%, #000000 100%);
--glow-blend: hard-light, color-dodge; --glow-blend: hard-light, color-dodge;
} }
@@ -15,7 +15,7 @@
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: variables.$borderRadius; border-radius: variables.$borderRadius;
padding: 0.5rem 0.8rem 0.5rem 1.35rem; padding: 0.5rem 0.8rem 0.5rem 1.35rem;
box-shadow: 0px 3px 5px rgba(0, 0, 0, .02), 0px 0px 2px rgba(0, 0, 0, .05), 0px 1px 4px rgba(0, 0, 0, .08); box-shadow: 0 3px 5px rgba(0, 0, 0, .02), 0 0 2px rgba(0, 0, 0, .05), 0 1px 4px rgba(0, 0, 0, .08);
} }
@@ -94,7 +94,7 @@
} }
&:focus { &:focus {
@include mixins.focused-inset(); @include mixins.focused-inset;
} }
} }
@@ -15,7 +15,7 @@
transition: left variables.$transitionDuration; transition: left variables.$transitionDuration;
display: flex; display: flex;
align-items: center; align-items: center;
box-shadow: 0px 3px 5px rgba(0, 0, 0, .02), 0px 0px 2px rgba(0, 0, 0, .05), 0px 1px 4px rgba(0, 0, 0, .08); box-shadow: 0 3px 5px rgba(0, 0, 0, .02), 0 0 2px rgba(0, 0, 0, .05), 0 1px 4px rgba(0, 0, 0, .08);
.layout-topbar-logo { .layout-topbar-logo {
display: flex; display: flex;
@@ -63,7 +63,7 @@
background-color: var(--card-background); background-color: var(--card-background);
cursor: pointer; cursor: pointer;
//@include focus-visible(); // @include focus-visible();
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--primary-color);
@@ -130,9 +130,7 @@
border-radius: 50%; border-radius: 50%;
padding: 0; padding: 0;
cursor: pointer; cursor: pointer;
outline-color: transparent; outline: transparent solid 2px;
outline-width: 2px;
outline-style: solid;
outline-offset: 1px; outline-offset: 1px;
&.active-color { &.active-color {
@@ -1,4 +1,4 @@
/* General */ /* General */
$scale:14px; /* main font size */ $scale: 14px; /* main font size */
$borderRadius:12px; /* border radius of layout element e.g. card, sidebar */ $borderRadius: 12px; /* border radius of layout element e.g. card, sidebar */
$transitionDuration:.2s; /* transition duration of layout elements e.g. sidebar, overlay menus */ $transitionDuration: .2s; /* transition duration of layout elements e.g. sidebar, overlay menus */