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
@@ -4,7 +4,7 @@
gap: 1rem;
padding: 0 1rem;
@media (max-width: 768px) {
@media (width <= 768px) {
padding: 0;
}
@@ -12,7 +12,7 @@
max-width: 10em;
}
@media (max-width: 768px) {
@media (width <= 768px) {
margin-bottom: 0;
}
}
@@ -37,7 +37,7 @@
height: auto;
width: auto;
@media (max-width: 768px) {
@media (width <= 768px) {
max-height: 14em;
}
}
@@ -84,7 +84,7 @@ textarea.changed,
.field-label {
font-size: 0.875rem;
@media (min-width: 768px) {
@media (width >= 768px) {
width: 8rem;
}
}
@@ -99,7 +99,7 @@ textarea.changed,
padding: 1rem;
border-bottom: 1px dotted var(--border-color);
@media (min-width: 768px) {
@media (width >= 768px) {
&::before {
content: '';
min-width: 8rem;
@@ -159,7 +159,7 @@ textarea.changed,
flex-direction: column;
padding: 1rem;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
@@ -169,7 +169,7 @@ textarea.changed,
align-items: flex-start;
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
width: 20%;
height: 100%;
}
@@ -178,7 +178,7 @@ textarea.changed,
.editor-thumbnail-inner {
width: 100%;
@media (min-width: 768px) {
@media (width >= 768px) {
height: 100%;
}
}
@@ -187,13 +187,13 @@ textarea.changed,
width: 100%;
object-fit: contain;
@media (min-width: 768px) {
@media (width >= 768px) {
height: 100%;
}
}
.editor-metacontent {
@media (min-width: 768px) {
@media (width >= 768px) {
width: 80%;
}
}
@@ -218,7 +218,7 @@ textarea.changed,
margin: auto 1rem;
}
@media (min-width: 768px) {
@media (width >= 768px) {
.arrow-button.nosrc button[disabled] {
display: none;
}
@@ -260,7 +260,7 @@ textarea.changed,
.metaeditor .metacontent {
padding: 0 0 0 1rem;
@media (max-width: 768px) {
@media (width <= 768px) {
padding: 0;
}
@@ -308,7 +308,7 @@ textarea.changed,
}
}
@media (min-width: 768px) {
@media (width >= 768px) {
.metapicker .metacontent,
.metaeditor .metabody {
padding-left: 3.25rem;
@@ -340,7 +340,7 @@ textarea.changed,
}
}
@media (max-width: 768px) {
@media (width <= 768px) {
.meta-row {
flex-wrap: wrap;
margin-bottom: 1em;
@@ -7,7 +7,7 @@
background: var(--card-background);
border: 1px solid var(--p-content-border-color);
@media (max-width: 768px) {
@media (width <= 768px) {
height: calc(100dvh - 4.4rem);
border-radius: 0;
border-width: 1px 0 0;
@@ -23,7 +23,7 @@
border-bottom: 1px solid var(--p-content-border-color);
gap: 1rem;
@media (max-width: 768px) {
@media (width <= 768px) {
padding: 1rem;
}
}
@@ -47,7 +47,7 @@
}
}
@media (max-width: 768px) {
@media (width <= 768px) {
flex-shrink: 1;
p {
@@ -57,7 +57,7 @@
}
.header-actions {
@media (max-width: 768px) {
@media (width <= 768px) {
display: flex;
}
}
@@ -168,7 +168,7 @@
width: 8rem;
}
@media (max-width: 768px) {
@media (width <= 768px) {
width: 100%;
label {
@@ -182,7 +182,7 @@
}
::ng-deep .p-select-overlay {
@media (max-width: 768px) {
@media (width <= 768px) {
max-width: 70vw;
.p-select-option {
@@ -218,7 +218,7 @@ p-inputgroup.disabled {
gap: 1rem;
align-items: center;
@media (max-width: 640px) {
@media (width <= 640px) {
flex-wrap: wrap;
width: 100%;
@@ -294,7 +294,7 @@ p-inputgroup.disabled {
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
}
@media (max-width: 768px) {
@media (width <= 768px) {
display: none !important;
}
}
@@ -314,7 +314,7 @@ div.cover-image {
text-overflow: ellipsis;
white-space: wrap;
@media (max-width: 768px) {
@media (width <= 768px) {
max-width: 100%;
}
}
@@ -339,7 +339,7 @@ div.cover-image {
justify-content: flex-end;
align-items: center;
@media (max-width: 768px) {
@media (width <= 768px) {
width: 100%;
}
}
@@ -348,7 +348,7 @@ div.cover-image {
.path-select {
width: 8rem;
@media (max-width: 768px) {
@media (width <= 768px) {
flex-basis: 50%;
}
}
@@ -366,7 +366,7 @@ div.cover-image {
}
.footer {
@media (max-width: 768px) {
@media (width <= 768px) {
flex-wrap: wrap;
::ng-deep .p-button-label {
@@ -391,7 +391,7 @@ div.cover-image {
.footer-left {
justify-content: flex-start;
@media (max-width: 540px) {
@media (width <= 540px) {
order: 2;
}
}
@@ -399,7 +399,7 @@ div.cover-image {
.footer-right {
justify-content: flex-end;
@media (max-width: 540px) {
@media (width <= 540px) {
order: 3;
}
}
@@ -414,7 +414,7 @@ div.cover-image {
padding: 0;
}
@media (max-width: 768px) {
@media (width <= 768px) {
::ng-deep .p-paginator .p-paginator-jtp-dropdown span {
font-size: var(--p-select-sm-font-size);
padding-block: var(--p-select-sm-padding-y);
@@ -422,7 +422,7 @@ div.cover-image {
}
}
@media (max-width: 540px) {
@media (width <= 540px) {
order: 1;
width: 100%;
}
@@ -26,7 +26,7 @@
gap: 1rem;
margin-bottom: 1.5rem;
@media (max-width: 480px) {
@media (width <= 480px) {
grid-template-columns: 1fr;
}
}
@@ -5,7 +5,7 @@
padding: 0 1rem;
max-height: 70vh;
@media (max-width: 768px) {
@media (width <= 768px) {
padding: 0;
max-height: 95vh;
}