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