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.
body.page-Main_Page h1.firstHeading {
display: none;
}
/* Ensure .welcome-table overrides wikitable defaults */
table.welcome-table {
border-collapse: collapse;
background-color: #f5f5f5; /* Very light grey */
border: 1px solid #ccc; /* Grey border around the table */
}
/* Override wikitable defaults for th and td */
table.welcome-table th,
table.welcome-table td {
padding: 0.1%; /* Default padding */
vertical-align: top; /* Default alignment */
}
/* Keep header padding intact */
table.welcome-table th {
text-align: center;
padding: 0.1%; /* Header padding */
}
/* Minimize spacing for text cells */
table.welcome-table td {
padding: 0 !important; /* Force no padding */
margin: 0 !important; /* Force no margins */
line-height: 1 !important; /* Minimize line spacing */
}
/* Image cell */
table.welcome-table td[rowspan] {
vertical-align: middle; /* Center the image vertically */
}
/* Image styling */
table.welcome-table td[rowspan] img {
width: 100%;
height: auto;
max-width: 100%;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
table.welcome-table,
table.welcome-table tr,
table.welcome-table td {
display: block !important;
width: 100% !important;
}
table.welcome-table td[rowspan] {
display: block !important;
width: 100% !important;
vertical-align: top; /* Reset to top on mobile */
padding-right: 2%; /* Right padding for image */
padding-top: 1%; /* Top padding for image */
padding-bottom: 1%; /* Bottom padding for image */
}
table.welcome-table td[rowspan] img {
width: 100%;
height: auto;
}
}
.eras-table {
margin: 1em 0; /* From wikitable */
background-color: #f8f9fa; /* From wikitable */
border: 1px solid #808080; /* Your eras-table, overrides wikitable’s #a2a9b1 */
border-collapse: collapse; /* From wikitable */
color: #000; /* From wikitable */
width: 100%; /* Your eras-table */
table-layout: fixed; /* Your eras-table */
}
.eras-table th {
background-color: #eecdf2; /* Your eras-table, overrides wikitable’s #eaecf0 */
border: 1px solid #a2a9b1; /* From wikitable */
padding: 0.2em 0.4em; /* From wikitable */
text-align: center; /* Both wikitable and eras-table */
font-weight: bold; /* From wikitable */
width: 100%; /* Your eras-table */
display: table-cell; /* Your eras-table */
font-size: 115%;
}
.eras-table td {
background-color: #fdf4ff; /* Your eras-table, overrides wikitable’s default */
border: 1px solid #a2a9b1; /* From wikitable */
padding: 10px; /* Your eras-table, overrides wikitable’s 0.2em 0.4em */
vertical-align: top; /* Your eras-table */
text-align: center; /* Your eras-table, overrides wikitable’s default */
}
/* Ensure images scale properly */
.eras-table img {
max-width: 200px;
width: 100%;
height: auto;
display: block; /* Ensure image behaves as a block for centering */
margin: 0 auto; /* Center the image horizontally */
}
@media screen and (max-width: 800px) {
.eras-table {
display: block; /* Switch to block for responsive layout */
margin: 1em 0; /* From wikitable, consistent in media query */
border-collapse: collapse; /* From wikitable, maintain table integrity */
}
.eras-table thead {
display: block; /* Ensure header stays separate */
}
.eras-table th {
display: block; /* Full width block for header */
width: 100%; /* Explicitly full width */
text-align: center; /* Maintain centering */
}
.eras-table tbody {
display: flex;
flex-wrap: wrap;
}
.eras-table tr {
display: contents; /* Let cells flow into flex */
}
.eras-table td {
flex: 0 0 33.333%; /* 3 columns */
box-sizing: border-box;
text-align: center; /* Ensure text stays centered in flex layout */
padding: 10px; /* Your eras-table padding */
}
}