MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/** CSS placed here will be applied to all skins */
/*** styles and counter for mapping listings ***/
@media screen {
.printonly {
display:none !important;
}
}
@media screen, print {
span.listing-map {
color: white;
font-size: 0.85em;
font-family: Arial,Verdana,sans-serif;
padding: 0pt 0.1em 0pt 0.35em;
-webkit-print-color-adjust: exact; /* force printing on safari and chrome */
}
h2 {
counter-reset: mapnumber;
}
span.listing-map:before {
content: counter(mapnumber);
counter-increment: mapnumber;
}
body {
counter-reset: generalnumber;
}
span.listing-map.listing-general:before {
content: counter(generalnumber);
counter-increment: generalnumber;
}
}
/* Main page */
.portal-column-left {
width: 40%;
text-align: center;
}
/* Hide title on Main Page */
body.page-Main_Page h1.firstHeading {
display: none;
}
/* Hide sitenotice on Main Page */
body.page-Main_Page #siteNotice {
display: none;
}
/* Hide maintenance alerts */
.debuginfo {
display: none;
}
/* Don't display some stuff on Main Page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #footer-info-lastmod,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view h1.firstHeading {
display: none !important;
}
/* Styling for Abuse Filter tags */
.mw-tag-markers {
font-family: sans-serif;
font-style: italic;
font-size: 90%;
}
/* Hide page title on Wikivoyage:Tourist Office */
body.page-Wikivoyage_Tourist_Office h1#firstHeading {
display: none;
}
#DoM {
background: transparent;
color: black;
padding: 0;
}
/* This section supports templates for the WMC migration.
* Sourced from http://en.wikipedia.org/wiki/MediaWiki:Common.css on 28 Oct 2012.
* Should not need to be copied later, and can be removed after migration is complete.
*/
th.mbox-text,td.mbox-text{border:none;width:100%;padding:.25em .9em;}
td.mbox-image{border:none;text-align:center;padding:2px 0 2px .9em;}
td.mbox-imageright{border:none;text-align:center;padding:2px .9em 2px 0;}
td.mbox-empty-cell{border:none;width:1px;padding:0;}
.mbox-text{display:block;margin:0 -.5em;}
.mbox-inside{margin:4px;}
/* Suppress numbering of items in TOC */
.tocnumber { display: none; }
/* Travellers' pub TOC, widen */
body.page-Wikivoyage_Travellers_pub div#toctitle {
width: 30em;
}
#toc > ul {padding-left: 2em;}
.mf-mobile-only {
display: none;
}
/* BEGIN styles for pagebanner extension */
.oo-ui-icon-unesco, .oo-ui-icon-unesco_whs {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b1/WorldHeritageBlanc.svg');
}
.oo-ui-icon-unesco_ich {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c4/UNESCO-ICH-white.svg');
}
.oo-ui-icon-unesco_gg {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/f0/Global_Geopark_simple.png');
}
.oo-ui-icon-unesco_cc {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5a/UNESCO_white_logo.svg');
}
.oo-ui-icon-unesco_br {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/75/Man_and_the_Biosphere_Programme_Logo.svg');
}
.oo-ui-icon-star {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg');
}
.oo-ui-icon-ftt {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Writing_Circle.svg/20px-Writing_Circle.svg.png');
}
.oo-ui-icon-dotm {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Yes_Check_Circle.svg/20px-Yes_Check_Circle.svg.png');
}
.oo-ui-icon-otbp {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Right_turn_icon_blue.svg/20px-Right_turn_icon_blue.svg.png');
}
.ext-wpb-pagebanner li.toclevel-1 {
padding: 0 0 0 0.4em;
}
.ext-wpb-pagebanner li.toclevel-1 > a:after {
content: " ·";
font-weight: bold;
padding: 0 0 0 0.1em;
}
.ext-wpb-pagebanner li.toclevel-1:last-child > a:after {
content: none;
}
.ext-wpb-pagebanner h1.wpb-name {
font-family: sans-serif;
border-bottom: none;
}
.ext-wpb-pagebanner {
clear: both;
}
.wpb-banner-toc .toctext { display: inline; }
/* END styles for pagebanner extension */
/* Infobox templates */
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
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 #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0 solid #aaa;
}
/* CSS for black text external links / blue text on hover */
body.ns-0 #content a.external,
body.ns-0 #content a.external:visited {
color: var( --color-base, #252525 );
}
body.ns-0 #content a.external:hover,
body.ns-0 #content a.external:focus {
color: var( --color-base--hover, #0645ad );
}
/* BEGIN Map caption - used with MapExpander JS */
.map-expand-link {
float: right;
margin-left: 1.5em;
}
#mw-indicator-GPX { display: none; }
/* Additional Kartographer styles */
.mw-kartographer-container.thumb:not(.mw-kartographer-full) .thumbinner > .mw-kartographer-map {
border: 1px solid #ccc;
box-sizing: border-box;
}
/* Fix problem with banner overlay */
div.toctitle {
display:none;
}
/* Push indicators to the front */
.mw-indicators {
z-index: 2;
}
/* Avoid that the UNESCO icons will invert its color in dark mode */
html.skin-theme-clientpref-night .oo-ui-widget.oo-ui-widget-enabled.oo-ui-iconElement-icon.oo-ui-icon-unesco.oo-ui-iconElement.oo-ui-labelElement-invisible.oo-ui-iconWidget,
html.skin-theme-clientpref-night .oo-ui-widget.oo-ui-widget-enabled.oo-ui-iconElement-icon.oo-ui-icon-unesco_cc.oo-ui-iconElement.oo-ui-labelElement-invisible.oo-ui-iconWidget {
filter: invert(0);
}
/* to ensure subdivisions on the Travel Tracker appear above the country mapshapes */
.mw-kartographer-map svg path[fill="#339966"] {
z-index: 10 !important;
position: relative;
}