MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Ensure images scale properly */
.eras-table img {
max-width: 200px;
width: 100%;
height: auto;
}
/* Base table styling */
.eras-table {
border-collapse: collapse;
width: 100%;
}
/* Ensure header spans full width */
.eras-table th {
display: block;
width: 100%;
text-align: center;
}
/* Default table cell behavior */
.eras-table td {
vertical-align: top;
}
/* Medium screens and below - switch to 3x2 layout for content */
@media screen and (max-width: 800px) {
.eras-table {
display: block;
}
.eras-table thead {
display: block;
}
.eras-table th {
display: block;
width: 100%;
}
.eras-table tbody {
display: flex;
flex-wrap: wrap;
}
.eras-table tr {
display: contents;
}
.eras-table td {
flex: 0 0 33.333%;
box-sizing: border-box;
padding: 10px;
}
}