chore: group media queries with rules

This commit is contained in:
Cory Dransfeldt 2024-09-11 15:21:40 -07:00
parent 6d82c73e2d
commit b178203a09
No known key found for this signature in database
13 changed files with 219 additions and 197 deletions

View file

@ -75,6 +75,10 @@ a:active > .watching.hero::after {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-bottom: var(--spacing-base);
@media screen and (min-width: 768px) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
& a {
display: flex;
aspect-ratio: var(--aspect-ratio-banner);
@ -188,10 +192,4 @@ a:active > .watching.hero::after {
& .footnotes {
padding-bottom: 0;
}
}
@media screen and (min-width: 768px) {
.watching.grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}