MediaWiki:Common.css: Difference between revisions
SGPolitico (talk | contribs) No edit summary |
SGPolitico (talk | contribs) No edit summary |
||
| Line 61: | Line 61: | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
/* | /* THE ULTIMATE OVERRIDE: Target the exact inline style string directly */ | ||
div[style*="width:30%"], | |||
div[style*="width: 30%"], | |||
div[style*="float:right"], | |||
div[style*="float: right"] { | |||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
min-width: 100% !important; | min-width: 100% !important; | ||
margin-left: | margin-left: 0px !important; | ||
margin-right: | margin-right: 0px !important; | ||
margin-top: 15px !important; | margin-top: 15px !important; | ||
margin-bottom: 15px !important; | margin-bottom: 15px !important; | ||
| Line 77: | Line 77: | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* | /* Force the wikitable inside it to stop cropping and stretch to 100% */ | ||
div[style*="width:30%"] table.wikitable, | |||
div[style*="width: 30%"] table.wikitable, | |||
.mw-parser-output table.wikitable { | .mw-parser-output table.wikitable { | ||
width: 100% !important; | width: 100% !important; | ||
| Line 86: | Line 86: | ||
min-width: 100% !important; | min-width: 100% !important; | ||
display: table !important; | display: table !important; | ||
} | } | ||
} | } | ||
Revision as of 12:34, 24 May 2026
/* CSS placed here will be applied to all skins */
/* --- INFOBOX STYLING --- */
.infobox-container {
width: 30%;
max-width: 350px;
margin-left: 15px;
margin-top: 0px;
float: right;
clear: right;
}
.infobox-table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.infobox-image {
text-align: center;
padding: 5px;
}
.infobox-header, .infobox-section {
background-color: #f2f2f2;
font-weight: bold;
text-align: center;
}
.infobox-field {
font-weight: bold;
width: 35%;
}
/* --- UI CLEANUP --- */
/* Hide wiki UI elements — archive site, not community wiki */
#ca-history { display: none; }
#ca-talk { display: none; }
#ca-edit { display: none; }
#ca-ve-edit { display: none; } /* Visual editor tab if installed */
#p-tb { display: none; } /* Toolbox sidebar */
/* --- MOBILE AD STYLING --- */
/* Centers the mobile ad banner under the article title */
.wiki-mobile-ad-container {
display: block;
text-align: center;
margin: 15px auto;
max-width: 100%;
}
/* If the user is on a wide desktop, completely hide the mobile banner container */
@media screen and (min-width: 601px) {
.wiki-mobile-ad-container {
display: none !important;
}
}
/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media screen and (max-width: 768px) {
/* THE ULTIMATE OVERRIDE: Target the exact inline style string directly */
div[style*="width:30%"],
div[style*="width: 30%"],
div[style*="float:right"],
div[style*="float: right"] {
float: none !important;
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
margin-left: 0px !important;
margin-right: 0px !important;
margin-top: 15px !important;
margin-bottom: 15px !important;
clear: both !important;
display: block !important;
}
/* Force the wikitable inside it to stop cropping and stretch to 100% */
div[style*="width:30%"] table.wikitable,
div[style*="width: 30%"] table.wikitable,
.mw-parser-output table.wikitable {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
display: table !important;
}
}