MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
} | } | ||
/* Medium screens - | /* Medium screens and below - switch to 3x2 layout */ | ||
@media screen and (max-width: 800px) { | @media screen and (max-width: 800px) { | ||
.eras-table { | .eras-table { | ||
| Line 23: | Line 23: | ||
.eras-table tbody { | .eras-table tbody { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, 1fr); /* 3 columns */ | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
| Line 33: | Line 33: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||