Array

MediaWiki:Common.css: Difference between revisions

No edit summary
(Replaced content with "@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) { }")
Tags: Replaced Manual revert
Line 1: Line 1:
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
/* Responsive tables - horizontal scroll on mobile */
/* Wrap tables in a scrollable container */
.mw-parser-output table.wikitable {
display: block !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
width: 100% !important;
margin-bottom: 3rem !important;
border: 1px solid #ccc !important;
}
/* Ensure table structure is maintained */
.mw-parser-output table.wikitable > tbody,
.mw-parser-output table.wikitable > thead {
display: table !important;
width: 100% !important;
min-width: 800px !important; /* Prevents excessive compression */
}
.mw-parser-output table.wikitable > caption {
display: table-caption !important;
font-size: 4.4rem !important;
font-weight: bold !important;
padding: 15px 10px !important;
text-align: center !important;
background-color: #f5f5f5 !important;
}
/* Table cells */
.mw-parser-output table.wikitable th,
.mw-parser-output table.wikitable td {
padding: 12px !important;
font-size: 3.4rem !important;
line-height: 1.6 !important;
vertical-align: top !important;
}
/* Table headers */
.mw-parser-output table.wikitable th {
font-size: 3.8rem !important;
font-weight: bold !important;
background-color: #99B36C !important;
color: white !important;
text-align: center !important;
}
/* Add shadow to indicate scrollability */
.mw-parser-output table.wikitable {
box-shadow: inset -10px 0 8px -8px rgba(0,0,0,0.15) !important;
}


}
}

Revision as of 18:42, 19 January 2026

@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {

}