Switch to ranged media with queries.

This commit is contained in:
Fredrik Jonsson 2026-05-28 14:25:45 +02:00
commit 4de62e059b
8 changed files with 14 additions and 14 deletions

View file

@ -81,7 +81,7 @@ aside {
article {
.submitted,
.tags {
@media (min-width: 666px) {
@media (width >= 666px) {
display: inline-block;
padding-inline-end: 1rem;
}

View file

@ -10,7 +10,7 @@
gap: var(--header-gap);
background-color: var(--color-header-bg);
@media (min-width: 666px) {
@media (width >= 666px) {
flex-direction: row;
align-items: center;
}
@ -49,7 +49,7 @@
/* Wrapper for any blocks placed in the header region. */
.header__region {
@media (min-width: 666px) {
@media (width >= 666px) {
margin-inline-start: auto;
}
}

View file

@ -5,7 +5,7 @@ img {
&.image {
--image-padding: 0.75rem;
@media (min-width: 666px) {
@media (width >= 666px) {
&.center {
margin-inline: auto;
}
@ -44,7 +44,7 @@ figure {
/* Nicer text wrap, e.g. no lone word on last line. */
text-wrap: pretty;
@media (min-width: 666px) {
@media (width >= 666px) {
padding-block-start: 0;
}
@ -53,7 +53,7 @@ figure {
}
}
@media (min-width: 666px) {
@media (width >= 666px) {
inline-size: fit-content;
&.left {

View file

@ -123,7 +123,7 @@ textarea {
}
/* For forms on mobile with single field add space between it and the submit button. */
@media (min-width: 666px) {
@media (width >= 666px) {
input:only-of-type {
&:has(+ [type='submit']) {
margin-inline-end: 0.5rem;

View file

@ -10,7 +10,7 @@
}
}
@media (min-width: 666px) {
@media (width >= 666px) {
.flex-group--2 > * {
flex-basis: calc(100% / 2 - var(--flex-gap));
flex-grow: 0;

View file

@ -1,7 +1,7 @@
.zebra-table {
--table-cell-padding: 0.5rem;
@media (max-width: 666px) {
@media (width < 666px) {
--table-cell-padding: 0.3rem;
}
@ -32,7 +32,7 @@
.responsive-table {
--table-gap: 0.5rem;
@media (max-width: 666px) {
@media (width < 666px) {
th {
display: none;
}

View file

@ -4,7 +4,7 @@
.layout__page {
max-width: var(--max-page-width);
@media (min-width: 666px) {
@media (width >= 666px) {
margin-inline: auto;
min-height: 100svh;
}
@ -27,7 +27,7 @@
.layout__navigation > * {
max-width: var(--max-content-width);
@media (min-width: 666px) {
@media (width >= 666px) {
margin-inline: auto;
}
}
@ -86,7 +86,7 @@
grid-template-columns: 1fr;
}
@media (min-width: 999px) {
@media (width >= 999px) {
.layout__page {
grid-template-rows: auto
auto

View file

@ -81,7 +81,7 @@ select {
}
[type='search'] {
@media (min-width: 666px) {
@media (width >= 666px) {
/* Correct the odd appearance in Safari on desktop. */
-webkit-appearance: textfield;
}