MediaWiki:Mobile.css
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at MediaWiki:Mobile. This user script seems to have an accompanying .js page at MediaWiki:Mobile.js. |
- Report page listing warnings and errors.
/* CSS placed here will affect users of the mobile site */
@media screen, handheld {
.com-mobile-handheld-hidden {
display: none !important;
}
.com-mobile-handheld-only {
display: block !important;
}
}
/* Used in several license and collection info templates in the File namespace */
/* such as [[Template:PermissionOTRS/layout]] */
/* Matching on Common.css, Filepage.css, and Mobile.css */
.messagebox {
border: 1px solid #aaa;
background: #f9f9f9;
width: 80%;
margin: 0 auto 1em;
padding: 0.2em;
text-align: justify;
}
/* Class for template content that should be shown locally, even if JS is disabled,
but should not be visible on file pages shown on other sites.
Use with style="display:none". Interacts with collapsible divs (see above).
Matching on Common.css, and Mobile.css
*/
div.show-on-commons { display: block !important; }
.annotationboxforwikipedia,
.hide-on-commons,
/* See [[Template:Coord/link]] */
.geo-nondefault,
.geo-multi-punct {
display: none;
}
/* Styling the paramter fields */
.fileinfo-paramfield {
background: #ccf;
text-align: right;
padding-right: 0.4em;
width: 15%;
font-weight: bold;
}
/* Infobox templates */
.infobox {
border: 1px solid #a2a9b1;
background: #f8f9fa;
color: black;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
}
.infobox td,
.infobox th {
vertical-align: middle;
}
.infobox caption {
font-size: larger;
margin-left: inherit;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0 solid #a2a9b1;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.archive-box {
border: 1px solid #aaf;
background: #f2f2f9;
color: #000;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
text-align: center;
}
/* Geographical coordinates defaults. See [[Template:Coord/link]]
for how these are used. The classes "geo", "longitude", and
"latitude" are used by the [[Geo microformat]].
*/
.geo-default, .geo-dms, .geo-dec { display: inline; }
.longitude, .latitude { white-space: nowrap; }