Switch to ranged media with queries.

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

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;
}