MediaWiki:Mobile.css: Difference between revisions
SGPolitico (talk | contribs) (Created page with "→All CSS here will be loaded for users of the mobile site: →Infobox Container: .infobox-container { width: 100%; max-width: 350px; →Adjust max width: margin: 0 auto; float: none; →Prevent float issues: clear: both; } →Infobox Table: .infobox-table { width: 100%; border-collapse: collapse; text-align: left; } →Image: .infobox-image { text-align: center; padding: 5px; } →Headers: .infobox-header, .infob...") |
SGPolitico (talk | contribs) 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 */ | ||
/* Infobox | /* Make Infobox Full Width on Mobile */ | ||
.infobox-container { | .infobox-container { | ||
width: 100%; | float: none !important; | ||
max-width: | width: 100% !important; | ||
margin: 0 | max-width: 100% !important; | ||
overflow: visible !important; | |||
margin: 15px 0 !important; | |||
clear: both !important; | |||
display: block !important; | |||
} | |||
.infobox-table, | |||
.infobox-container table.wikitable { | |||
width: 100% !important; | |||
font-size: 14px; | |||
display: table !important; | |||
} | |||
.infobox-image img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
/* | /* Override inline styles on the infobox div (written by template) */ | ||
div[style*="width:30%"], | |||
width: 100%; | div[style*="width: 30%"], | ||
div[style*="float:right"], | |||
div[style*="float: right"] { | |||
float: none !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
overflow: visible !important; | |||
margin-left: 0 !important; | |||
margin-right: 0 !important; | |||
margin-top: 15px !important; | |||
margin-bottom: 15px !important; | |||
clear: both !important; | |||
display: block !important; | |||
} | |||
div[style*="width:30%"] table.wikitable, | |||
div[style*="width: 30%"] table.wikitable, | |||
div[style*="float:right"] table.wikitable, | |||
div[style*="float: right"] table.wikitable { | |||
width: 100% !important; | |||
display: table !important; | |||
} | } | ||
.infobox-person { | |||
.infobox- | float: none !important; | ||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
clear: both !important; | |||
display: block !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
.infobox-person table { | |||
width: 100% !important; | |||
.infobox- | |||
} | } | ||
.infobox-political-party { | |||
.infobox- | float: none !important; | ||
width: 100% !important; | |||
width: | min-width: 0 !important; | ||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
clear: both !important; | |||
display: block !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
.infobox-political-party table { | |||
width: 100% !important; | |||
} | } | ||
Latest revision as of 12:48, 24 May 2026
/* All CSS here will be loaded for users of the mobile site */
/* Make Infobox Full Width on Mobile */
.infobox-container {
float: none !important;
width: 100% !important;
max-width: 100% !important;
overflow: visible !important;
margin: 15px 0 !important;
clear: both !important;
display: block !important;
}
.infobox-table,
.infobox-container table.wikitable {
width: 100% !important;
font-size: 14px;
display: table !important;
}
.infobox-image img {
max-width: 100%;
height: auto;
}
/* Override inline styles on the infobox div (written by template) */
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;
overflow: visible !important;
margin-left: 0 !important;
margin-right: 0 !important;
margin-top: 15px !important;
margin-bottom: 15px !important;
clear: both !important;
display: block !important;
}
div[style*="width:30%"] table.wikitable,
div[style*="width: 30%"] table.wikitable,
div[style*="float:right"] table.wikitable,
div[style*="float: right"] table.wikitable {
width: 100% !important;
display: table !important;
}
.infobox-person {
float: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 1em 0 !important;
clear: both !important;
display: block !important;
box-sizing: border-box !important;
}
.infobox-person table {
width: 100% !important;
}
.infobox-political-party {
float: none !important;
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
margin: 0 0 1em 0 !important;
clear: both !important;
display: block !important;
box-sizing: border-box !important;
}
.infobox-political-party table {
width: 100% !important;
}