MediaWiki:Common.css

From Amberlynn Wiki
Revision as of 12:07, 27 February 2025 by Admin (talk | contribs)
Jump to navigation Jump to search

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

/* Reset default table behavior when we want grid */
.eras-table {
    border-collapse: collapse;
}

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

/* Medium screens - force 2x3 layout */
@media screen and (max-width: 800px) {
    .eras-table {
        display: block !important; /* Override any table display */
    }
    .eras-table tbody {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .eras-table th {
        display: block;
        width: 100%;
    }
    .eras-table td {
        display: block;
        width: 100%;
    }
}

/* Small screens - force 6x1 layout */
@media screen and (max-width: 400px) {
    .eras-table tbody {
        grid-template-columns: 1fr;
    }
}