MediaWiki:Mobile.css

MediaWiki interface page

Note: After saving, you may have to bypass your browser's cache to see the changes.

/* All CSS here will be loaded for users of the mobile site */
/* SKIN STYLES */
.header-container.header-chrome {
   background-color:#60AE26;
}
.mw-ui-icon-wikimedia-menu-base20:before, .mw-ui-background-icon-menu,
.mw-ui-icon-minerva-userAvatarOutline:before,
.mw-ui-icon-wikimedia-bellOutline-base20:before,
.mw-ui-icon-wikimedia-search-base20:before,
.header-action .mw-ui-icon-mf-close-base20:before {
   filter: brightness(0) saturate(100%) invert(1);
}
.header .branding-box h1, .header .branding-box a {
   color:#fff;
}
a.new { /* less harsh red colour for links */
   color:#AE2660;
}
/* SKIN STYLES END */
.navbox-header a,
.navbox-header a:visited,
.navbox-header a.external:visited,
.navbox-header a.external {
    color: #FFFFFF;
}
.cp-navbox td, .cp-navbox th {
	padding: 5px;
}
   .infobox-video {
      width: 100%;
   }
   .infobox-old {
       width: 100%;
   }
    .infobox, 
    .infobox-new {
    width: 100% !important;
	margin:0 !important;
	float:none !important;
    }
    .restricted {
       width:100% !important;
       margin-bottom:8px
    }
.content table {
   margin:auto; /* overrides styles from MobileFrontend */
}
.infobox-new-image img {
   width:100% !important;
   height:auto !important;
}
.infobox-new-image {
   padding:0;
   background-color:--var(primary);
}
.infobox-new-title {
   color:#252525;
}
.infobox-new-multicolumn {
   width:49%;
}
.infobox-new-multicolumn:nth-child(odd) {
   float:left;
}
.infobox-new-multicolumn:nth-child(even) {
   float:right;
}
.infobox-flag {
   margin:-1px 3px -1px -1px !important;
}
.infobox-new td {
   padding:0 5px;
}
.status-operating,
.status-operating a {
   color:green;
}
.status-construction a,
.status-instorage a,
.status-sbno a {
   color:orange;
}
.status-defunct,
.status-defunct a,
.status-unknown a {
   color:red;
}	
.infobox-multitrack .infobox-new-title {
   width:30%;
}
.record-holder {
        width:100%;
        margin-left:0;
        margin-right:0;
        min-width:0;
    }
    .record-holder-preceded, .record-holder-succeeded {
    width: 50%;
    }
    .record-holder-record-mobile {
        display: table-row;
    }
    .record-holder-record {
        display: none;
    }

a.mw-collapsible-text {
   color:#3366cc;
}
@media (max-width: 720px){ /* overwrites MinervaNeue */
.content table {
   display: table;
}
.content caption {
   display:table-caption;
   text-align:center !important;
}
.infobox-new {
   margin:0 !important;
}
.cp-navbox {
    width:100%; 
    font-size:90%;
    border-spacing: 0;
    overflow: hidden;
    border:1px solid rgba(0,0,0,.1);
    border-top:none;
    border-radius:2px;
}
.cp-navbox td, .cp-navbox th {
        display:block;
    }
.hide-on-mobile {
   display:none !important;
}
}

/* this taken from English Wikipedia */
.hatnote, .dablink, .rellink {
    padding: 5px 7px;
    color: #54595d;
    font-size: 0.8125em;
    background-color: #f8f9fa;
    margin-bottom: 1px;
    overflow: hidden
}

.ve-ui-toolbar-group-editMode {
    display:block !important; /* MobileFrontend likes to hide this */
}
.infobox-new td {
	padding:5px 5px !important;
	border-bottom:1px solid #eaecf0;
}

.header .branding-box {
   opacity:1; /* overwrites default skin style */
}
/*Copied from Wikipedia */
/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
	margin: 0;
	padding: 0;
}

/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
	margin: 0; /* don't trust the note that says margin doesn't work with inline
				* removing margin: 0 makes dds have margins again */
	display: inline;
}

/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
	display: inline;
}

/* Hide empty list items */
.hlist .mw-empty-li {
	display: none;
}

/* Generate interpuncts */
.hlist dt:after {
	content: ": ";
}

/**
 * Note hlist style usage differs in Minerva and is defined in core as well!
 * Please check Minerva desktop (and Minerva.css) when changing
 * See https://phabricator.wikimedia.org/T213239
 */
.hlist dd:after,
.hlist li:after {
	content: " · ";
	font-weight: bold;
}

.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
	content: none;
}

/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
	content: " (";
	font-weight: normal;
}

.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
	content: ")";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.hlist ol {
	counter-reset: listitem;
}

.hlist ol > li {
	counter-increment: listitem;
}

.hlist ol > li:before {
	content: " " counter(listitem) "\a0";
}

.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) "\a0";
}
/* Unbulleted lists */
.plainlist ol,
.plainlist ul {
	line-height: inherit;
	list-style: none none;
	margin: 0;
}

.plainlist ol li,
.plainlist ul li {
	margin-bottom: 0;
}

@media all and (max-width:720px) { /* specific in order to overwrite functionality built into mobile skin, makes the gallery show more than one image per row */
 .gallery .gallerybox {
  width: initial !important;
 }
}