Jump to content

MediaWiki:Mobile.css: Difference between revisions

Created page with "All CSS here will be loaded for users of the mobile site: Imported from wikipedia: .navbox { border: 1px solid #a2a9b1; width: 100%; box-sizing: border-box; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px } .navbox-inner,.navbox-subgroup { width: 100% } .navbox-group,.navbox-title,.navbox-abovebelow { padding: 0.25em 1em; line-height: 1.5em; text-align: center } th.navbox-group {..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the mobile site */
/* All CSS here will be loaded for users of the mobile site */
.mwImageSizeContainer img {
    width: 100% !important;
    height: auto !important;
}
/* Imported from wikipedia */
/* Imported from wikipedia */


Line 129: Line 136:
Main page boxes
Main page boxes
*/
*/
.mwBoxContainer {
.mwBoxRow {
display: flex;
display: flex;
flex-direction: column; /* Mobile exclusive */
}
}
.mwBoxRow {
.mwBoxPanel {
border-spacing: 8px;
border-spacing: 8px;
border: 1px solid;
border: 1px solid;
Line 140: Line 148:
margin: 5px;
margin: 5px;
padding: 8px;
padding: 8px;
width: auto !important; /* Mobile exclusive */
}
}
.mwBoxHeader {
.mwBoxHeader {
Line 151: Line 160:
color: #000000;
color: #000000;
padding: 0.2em 0.4em;
padding: 0.2em 0.4em;
}
@media all and (max-width: 850px) {
.mwBoxRow {
flex-direction: column;
}
.mwBoxRow > div {
width: auto !important;
}
}
}