MediaWiki:Common.css

Revision as of 12:10, 27 February 2025 by Admin (talk | contribs)

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

/* Default table styling */
.eras-table {
    border-collapse: collapse;
    width: 100%;
}

/* Ensure header spans full width at all times */
.eras-table th {
    width: 100%;
    display: block;
}

/* Default table cell behavior */
.eras-table td {
    vertical-align: top;
}

/* Medium screens and below - switch to 3x2 layout */
@media screen and (max-width: 800px) {
    .eras-table {
        display: table; /* Keep table structure */
    }
    .eras-table tbody {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        grid-template-rows: repeat(2, auto); /* 2 rows */
        gap: 10px;
    }
    .eras-table tr {
        display: contents; /* Allows cells to flow into grid */
    }
    .eras-table td {
        display: block;
        width: 100%;
    }
}