style(frontend): enforce media-feature-range-notation in scss

- Stylelint:
  - re-enable `media-feature-range-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions untouched
- SCSS:
  - convert parenthesized `min-` and `max-` media features to context range notation across frontend stylesheets without changing breakpoint values
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:43 -04:00
committed by Zach Yale
parent ddcbb5b666
commit e46f87eb96
133 changed files with 537 additions and 538 deletions
@@ -30,7 +30,7 @@
height: calc(100dvh - 9.7rem);
}
@media (max-width: 768px) {
@media (width <= 768px) {
::ng-deep .layout-main .tabpanels-responsive {
height: calc(100dvh - 8.5rem);
}
@@ -1,7 +1,7 @@
::ng-deep .p-tabpanels .custom-tab-padding {
padding: 1rem 0 0 0.5rem !important;
@media (min-width: 640px) {
@media (width >= 640px) {
padding: var(--p-tabs-tabpanel-padding) !important;
}
}
@@ -72,7 +72,7 @@ label {
height: 100%;
animation: fadeIn 0.3s ease-in;
@media (min-width: 768px) {
@media (width >= 768px) {
min-width: 60rem;
}
}
@@ -99,7 +99,7 @@ label {
overflow: auto;
height: 72.5dvh;
@media (min-width: 768px) {
@media (width >= 768px) {
padding: 0.5rem;
}
}
@@ -111,7 +111,7 @@ label {
gap: 1rem;
margin-bottom: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
@@ -127,7 +127,7 @@ label {
flex-direction: row;
gap: 1rem;
@media (max-width: 767px) {
@media (width <= 767px) {
flex-direction: column;
align-items: center;
}
@@ -196,7 +196,7 @@ label {
flex-direction: column;
flex-grow: 1;
@media (min-width: 768px) {
@media (width >= 768px) {
padding-left: 0.5rem;
}
}
@@ -209,7 +209,7 @@ label {
margin-top: 0.5rem;
padding-bottom: 0.25rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
@@ -225,26 +225,26 @@ label {
}
.title-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex-basis: 45%;
flex-shrink: 0;
}
}
.subtitle-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex-basis: 40%;
}
}
.language-field {
@media (min-width: 768px) {
@media (width >= 768px) {
width: 11rem;
}
}
.authors-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex-basis: 45%;
flex-shrink: 0;
}
@@ -337,13 +337,13 @@ label {
}
.publisher-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex-basis: 35%;
}
}
.date-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex-basis: 20%;
p-datepicker {
@@ -360,20 +360,20 @@ label {
.half-width {
width: 100%;
@media (min-width: 768px) {
@media (width >= 768px) {
flex: 1;
}
}
.series-name-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex: 4.75;
min-width: 0;
}
}
.small-field {
@media (min-width: 768px) {
@media (width >= 768px) {
flex: 1;
min-width: 0;
}
@@ -391,7 +391,7 @@ label {
}
.metadata-id-field {
@media (min-width: 768px) {
@media (width >= 768px) {
min-width: 0;
}
}
@@ -450,7 +450,7 @@ label {
gap: 1rem;
margin-bottom: 1rem;
@media (max-width: 767px) {
@media (width <= 767px) {
grid-template-columns: repeat(2, 1fr);
}
}
@@ -461,7 +461,7 @@ label {
gap: 1rem;
margin-bottom: 1rem;
@media (max-width: 767px) {
@media (width <= 767px) {
grid-template-columns: 1fr;
}
}
@@ -475,7 +475,7 @@ label {
margin-top: 1rem;
margin-bottom: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
@@ -527,7 +527,7 @@ label {
padding-top: 1rem;
z-index: 10;
@media (min-width: 768px) {
@media (width >= 768px) {
padding: 1rem;
}
}
@@ -538,7 +538,7 @@ label {
width: 100%;
gap: 1rem;
@media (min-width: 640px) {
@media (width >= 640px) {
display: flex;
}
}
@@ -576,7 +576,7 @@ label {
width: 100%;
flex-wrap: wrap;
@media (min-width: 640px) {
@media (width >= 640px) {
display: none;
}
}
@@ -11,7 +11,7 @@
.mobile-only {
display: flex;
@media (min-width: 768px) {
@media (width >= 768px) {
display: none !important;
}
}
@@ -19,7 +19,7 @@
.desktop-only {
display: none;
@media (min-width: 768px) {
@media (width >= 768px) {
display: flex;
}
}
@@ -83,7 +83,7 @@
border: 1px solid var(--border-color);
border-radius: 8px;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-start;
}
@@ -94,7 +94,7 @@
flex-shrink: 0;
display: none;
@media (min-width: 768px) {
@media (width >= 768px) {
display: block;
}
}
@@ -109,7 +109,7 @@
letter-spacing: 0.05em;
flex: 1;
@media (min-width: 768px) {
@media (width >= 768px) {
display: flex;
}
@@ -209,7 +209,7 @@
overflow: hidden;
box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
@media (min-width: 768px) {
@media (width >= 768px) {
width: 150px;
}
@@ -298,7 +298,7 @@
border-radius: 6px;
color: var(--text-secondary-color);
@media (min-width: 768px) {
@media (width >= 768px) {
width: 150px;
height: 150px;
}
@@ -329,7 +329,7 @@
border-bottom: none;
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
align-items: center;
padding: 0.75rem 1rem;
@@ -344,7 +344,7 @@
text-align: center;
margin-bottom: 0.5rem;
@media (min-width: 768px) {
@media (width >= 768px) {
text-align: left;
margin-bottom: 0;
}
@@ -354,7 +354,7 @@
align-items: center;
gap: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
gap: 1.5rem;
}
}
@@ -365,13 +365,13 @@
align-items: center;
gap: 0.5rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
// Position covers towards the arrow on desktop only
@media (min-width: 768px) {
@media (width >= 768px) {
padding: 1rem;
.field-side.current {
@@ -390,7 +390,7 @@
color: var(--text-color);
min-width: 100px;
@media (min-width: 768px) {
@media (width >= 768px) {
min-width: 120px;
flex-shrink: 0;
}
@@ -402,7 +402,7 @@
gap: 0.5rem;
flex: 1;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
align-items: center;
gap: 0.75rem;
@@ -477,25 +477,25 @@
.textarea-row {
.field-content {
@media (min-width: 768px) {
@media (width >= 768px) {
align-items: flex-start;
}
}
.field-side {
@media (min-width: 768px) {
@media (width >= 768px) {
align-items: flex-start;
}
}
.lock-btn {
@media (min-width: 768px) {
@media (width >= 768px) {
margin-top: 0.25rem;
}
}
.transfer-btn {
@media (min-width: 768px) {
@media (width >= 768px) {
margin-top: 0.25rem;
}
}
@@ -607,7 +607,7 @@
}
// Mobile optimizations
@media (max-width: 767px) {
@media (width <= 767px) {
.dialog-body {
padding: 1rem;
gap: 1.25rem;
@@ -71,11 +71,11 @@ $provider-colors: (
gap: 1rem;
margin-bottom: 1rem;
@media (min-width: 640px) {
@media (width >= 640px) {
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
grid-template-columns: 2fr 1fr 1.5fr 1.5fr auto;
align-items: end;
}
@@ -101,21 +101,21 @@ $provider-colors: (
}
&.search-field-provider {
@media (min-width: 640px) {
@media (width >= 640px) {
grid-column: span 2;
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
grid-column: auto;
}
}
&.search-button-field {
@media (min-width: 640px) {
@media (width >= 640px) {
grid-column: span 2;
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
grid-column: auto;
}
}
@@ -129,7 +129,7 @@ $provider-colors: (
font-size: 0.9375rem;
border-radius: 0.5rem;
@media (min-width: 1024px) {
@media (width >= 1024px) {
width: auto;
min-width: 8rem;
}
@@ -458,7 +458,7 @@ $provider-colors: (
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
justify-content: space-between;
align-items: center;
@@ -470,7 +470,7 @@ $provider-colors: (
flex-direction: column;
gap: 0.375rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
align-items: center;
gap: 0.75rem;
@@ -531,11 +531,11 @@ $provider-colors: (
grid-template-columns: 1fr;
gap: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1200px) {
@media (width >= 1200px) {
grid-template-columns: repeat(3, 1fr);
}
}
@@ -332,7 +332,7 @@
font-size: 0.9rem;
}
@media (max-width: 576px) {
@media (width <= 576px) {
.chapters-table {
font-size: 0.8rem;
@@ -361,7 +361,7 @@
gap: 2rem;
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-start;
}
}
@@ -7,7 +7,7 @@
min-height: 100%;
animation: fadeIn 0.3s ease-in;
@media (min-width: 768px) {
@media (width >= 768px) {
padding: 0.5rem;
}
}
@@ -19,7 +19,7 @@
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
gap: 1.5rem;
}
@@ -33,7 +33,7 @@
flex-shrink: 0;
gap: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-start;
align-items: flex-start;
}
@@ -44,7 +44,7 @@
width: 250px;
overflow: hidden;
@media (min-width: 768px) {
@media (width >= 768px) {
width: 250px;
}
}
@@ -133,7 +133,7 @@
gap: 0.375rem;
text-align: center;
@media (min-width: 768px) {
@media (width >= 768px) {
text-align: left;
}
}
@@ -158,7 +158,7 @@
gap: 0.375rem;
align-items: center;
@media (min-width: 768px) {
@media (width >= 768px) {
align-items: flex-start;
}
}
@@ -170,7 +170,7 @@
flex-wrap: wrap;
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-start;
}
}
@@ -182,7 +182,7 @@
line-height: 1.2;
margin: 0;
@media (min-width: 768px) {
@media (width >= 768px) {
font-size: 1.875rem;
}
}
@@ -245,7 +245,7 @@
flex-wrap: wrap;
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-start;
}
}
@@ -269,7 +269,7 @@
gap: 0.75rem;
align-items: center;
@media (min-width: 640px) {
@media (width >= 640px) {
flex-direction: row;
justify-content: flex-start;
}
@@ -302,7 +302,7 @@
background: var(--border-color);
}
@media (min-width: 640px) {
@media (width >= 640px) {
.divider {
display: block;
}
@@ -314,7 +314,7 @@
gap: 0.75rem;
justify-content: center;
@media (min-width: 640px) {
@media (width >= 640px) {
justify-content: flex-start;
}
}
@@ -383,7 +383,7 @@
display: none;
}
@media (min-width: 768px) {
@media (width >= 768px) {
.tag-scroll {
max-width: 1150px;
}
@@ -415,7 +415,7 @@
font-size: 0.875rem;
}
@media (min-width: 768px) {
@media (width >= 768px) {
.metadata-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 0.5rem;
@@ -567,13 +567,13 @@
border-right: 1px solid var(--border-color);
margin-right: 0.25rem;
@media (max-width: 767px) {
@media (width <= 767px) {
display: none;
}
}
&.primary-actions {
@media (min-width: 768px) {
@media (width >= 768px) {
padding-right: 0.5rem;
border-right: 1px solid var(--border-color);
margin-right: 0.25rem;
@@ -586,7 +586,7 @@
}
}
@media (max-width: 767px) {
@media (width <= 767px) {
::ng-deep .mobile-icon-only .p-button-label {
display: none !important;
padding: 10px !important;
@@ -625,7 +625,7 @@
justify-content: center;
gap: 0.5rem;
@media (min-width: 768px) {
@media (width >= 768px) {
display: none;
}
}
@@ -7,7 +7,7 @@
min-height: 100%;
animation: fadeIn 0.3s ease-in;
@media (min-width: 768px) {
@media (width >= 768px) {
padding: 0.5rem;
}
}
@@ -19,7 +19,7 @@
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
@media (min-width: 640px) {
@media (width >= 640px) {
flex-direction: row;
align-items: center;
justify-content: space-between;