MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:
}
}


/* Reset default table behavior when we want grid */
/* Default table styling */
.eras-table {
.eras-table {
     border-collapse: collapse;
     border-collapse: collapse;
    width: 100%;
}
/* Ensure header spans full width at all times */
.eras-table th {
    width: 100%;
    display: block;
}
}


Line 19: Line 26:
@media screen and (max-width: 800px) {
@media screen and (max-width: 800px) {
     .eras-table {
     .eras-table {
         display: block !important; /* Override any table display */
         display: table; /* Keep table structure */
     }
     }
     .eras-table tbody {
     .eras-table tbody {
         display: grid;
         display: grid;
         grid-template-columns: repeat(3, 1fr); /* 3 columns */
         grid-template-columns: repeat(3, 1fr); /* 3 columns */
        grid-template-rows: repeat(2, auto); /* 2 rows */
         gap: 10px;
         gap: 10px;
     }
     }
     .eras-table th {
     .eras-table tr {
         display: block;
         display: contents; /* Allows cells to flow into grid */
        width: 100%;
     }
     }
     .eras-table td {
     .eras-table td {