MediaWiki:Gadget-GlobalStyle.css

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 00:45, March 18, 2022 by Porplemontage (talk | contribs)
Jump to navigationJump to search

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins on both desktop and mobile
   The "mobile" body class can be used to target mobile specifically */

#n-Anniversary { display: none; }
.mw-wiki-logo { background-size: 150px; }

.useronly, .autoconfonly, .mw-special-Upload .noupload {
	display: none;
}
body.anon.ns-content.action-view.mobile #stub,
body.anon.ns-content.action-view .notice-template:not(.show) {
	display: none !important;
}
body.anon.ns-content.action-view.desktop .notice-template.show {
	margin-top: 0 !important;
}

/* Site notice */
#localNotice a.external {
	padding: 0 !important;
	background: none !important;
}

/* Image thumbs */
html .thumbimage { background-color: #fff; }

/* Image/gallery classes */
img.invert-light { filter: invert(1) hue-rotate(180deg); }
img.blackbg, .gallery.blackbg img { background: #000 !important; }
img.graybg, img.greybg, .gallery.graybg img, .gallery.greybg img {
	background: #808080 !important;
}
.pixelated, .pixelart, .sprites, .sprite {
	image-rendering: crisp-edges; image-rendering: pixelated;
}

/* Gallery classes */
.gallery.center {
	margin-left: auto !important;
	margin-right: auto !important;
}
.gallery.centertext .gallerytext {
	text-align: center !important;
}

/* Gallery slideshow */
.mw-gallery-slideshow .gallerybox + .gallerybox {
	display: none;
}
.mw-gallery-slideshow-thumbnails-toggled ~ .gallerybox {
	display: inline-block !important;
}

/* File pages */
#file img, .filehistory a img {
	background: url(https://mario.wiki.gallery/resources/src/mediawiki.action/images/checker.png) repeat;
}

/* Media player */
#file > .video-js { display: inline-block !important; }
.thumb .video-js { margin-left: auto; margin-right: auto; }
.video-js .vjs-progress-control .vjs-mouse-display { z-index: 2; }
.infobox .video-js { margin-top: 1px; min-width: 200px; width: auto !important; }
.video-js .vjs-volume-vertical, .vjs-mouse-display .vjs-time-tooltip { background: #111; }
.video-js { overflow-x: clip; display: block !important; }
.video-js .vjs-control-bar { background: #000; }
/* Newbie bug fix */
body.newbie .video-js { overflow: hidden !important; }
body.newbie .vjs-time-tooltip { display: none !important; }

/* Formatting fixes */
pre { overflow: auto; }
hr { overflow: hidden; }
div[style*="column-"] > p { margin: 0 !important; }
.mw-parser-output table sup { white-space: nowrap; }
span.comment, .mw-parser-output a.external.free, .filehistory.wikitable td[dir] {
	word-wrap: anywhere;
}

/* Margin fixes */
.ns-subject:not(.ns-110) li > ul, .ns-subject:not(.ns-110) li > ol {
	margin-top: 0.1em !important;
}
.ns-subject:not(.ns-110) dl + ul, .ns-subject:not(.ns-110) dl + ol {
	margin-top: -0.3em !important;
}
.ns-subject:not(.ns-110) ul + dl, .ns-subject:not(.ns-110) ol + dl  {
	margin-top: 0.3em !important;
}

/* Link fixes */
body.mediawiki a.mw-selflink {
	color: inherit !important;
	cursor: inherit !important;
	text-decoration: inherit !important;
	font-weight: bold !important;
}
a font:hover, a span:hover {
	text-decoration: inherit;
}

/* Scrollable tables */
table.scrollable {
	display: block;
	overflow: auto;
	max-width: max-content;
	border: 0;
}

/* Show/hide toggles */
.navbox .mw-collapsible-toggle {
	text-align: right;
	min-width: 3.729em;
}
.wikitable.mw-collapsed .mw-collapsible-toggle {
	margin-left: 10px;
}

/* Hide help indicator */
#mw-indicator-mw-helplink { display: none; }

/* Special:Preferences */
#mw-htmlform-mobile .oo-ui-inline-help { display: none; }

/* Special:Contact */
.mw-special-Contact fieldset div[data-ooui*="wpCCme"],
.mw-special-Contact fieldset div[data-ooui*="wpSubject"] {
	display: none;
}
.mw-special-Contact #wpCaptchaWord,
.mw-special-Contact fieldset div[data-ooui*="HTMLInfoField"] {
	margin-top: 2px;
}
.mw-special-Contact fieldset div[data-ooui*="CAPTCHA"] {
	margin-top: 1em;
}

/* Watchlist expiry (icon fix) */
.oo-ui-icon-clock, .mw-ui-icon-clock::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eclock%3C/title%3E%3Cpath d=%22M10 0a10 10 0 1010 10A10 10 0 0010 0zm2.5 14.5L9 11V4h2v6l3 3z%22/%3E%3C/svg%3E");
}
.mw-changesList-watchlistExpiry.oo-ui-iconElement-icon {
	height: 13px;
	min-height: 13px;
	position: relative;
	top: -1px;
	opacity: 0.51;
}

/* Pixelated gallery/interface image upscaling */
ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img {
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* Root category */
body.page-Category_Super_Mario_Wiki.action-view #mw-subcategories h3:last-of-type,
body.page-Category_Super_Mario_Wiki.action-view #mw-subcategories ul:last-of-type,
body.page-Category_Super_Mario_Wiki.action-view #catlinks {
	display: none;
}

/* Main page */
#mf-poll .poll__question-media > div,
.mainpagebox#poll .poll__question-media > div {
	border: 1px solid #3B587E;
}

/* Infobox colors */
.infobox { color: #000; }
.infobox.red { border: 1px solid #F98686; background: #FFF5EE; }
.infobox.red > tbody > tr:first-child > td { background: #FAAAAA; }
.infobox.red > tbody > tr:nth-child(2n+3) { background: #FFE4E1; }
.infobox.green { border: 1px solid #88AA88; background: #F8FFF7; }
.infobox.green > tbody > tr:first-child > td { background: #8AFA8A; }
.infobox.green > tbody > tr:nth-child(2n+3) { background: #AAFFAA; }
.infobox.orange { border: 1px solid #FF5300; background: #FFF7EE; }
.infobox.orange > tbody > tr:first-child > td { background: #FF8A4A; }
.infobox.orange > tbody > tr:nth-child(2n+3) { background: #FF9C77; }
.infobox.gray { border: 1px solid #000; background: whitesmoke; }
.infobox.gray > tbody > tr:first-child > td { background: lightgray; }
.infobox.gray > tbody > tr:nth-child(2n+3) { background: gainsboro; }

/* Notice templates */
.notice-template.talk,
.notice-template.image,
.notice-template.maintenance {
	color: #000;
}
.notice-template.image {
	background: #f1f1de;
	border: 2px solid #996;
}
.notice-template.image,
.notice-template.copyright {
	padding: 5px;
}
.notice-template.image,
.notice-template#aboutfile,
.notice-template.copyright {
	width: 90%;
	margin: 5px auto;
}
.notice-template#aboutfile,
.notice-template.copyright {
	font-size: 95%;
}
.notice-template.copyright {
	background: #fff9f9;
	border: 1px solid #C55;
}
.notice-template.talk,
.notice-template.maintenance {
	display: flex;
	padding: 0 1em;
	margin: 0 2% 0.75em;
}
.notice-template.maintenance {
	border-radius: 5px !important;
	border-image-slice: 10 !important;
	border-image-width: 10px !important;
	border-image-source: url(https://mario.wiki.gallery/images/notice-border.svg) !important;
}
.notice-template.maintenance#delete {
	color: #fff;
	background: #333;
}
.notice-template.maintenance#delete a:not(.new) {
	color: yellow;
}

/* DK tables */
table.dktable,
table.dktable-brown {
	color: #000;
	background: #fff;
	border: 1pt solid #000;
	border-collapse: collapse;
	margin: 1em 0;
}
table.dktable > * > tr > td,
table.dktable > * > tr > th,
table.dktable-brown > * > tr > td,
table.dktable-brown > * > tr > th {
	border: 1pt solid #000;
	padding: 0.2em 0.4em;
}
table.dktable-brown > * > tr > th {
	background: #BB8855;
}
table.dktable-brown > * > tr:nth-child(odd) > td {
	background: #FFF8DC;
}
table.dktable-brown > * > tr:nth-child(even) > td {
	background: wheat;
}

/* Fake headings */
#fh1, #fh2, #fh3,
#fh4, #fh5, #fh6 {
	color: #000;
	font-weight: normal;
	background: none;
	border-bottom: 1px solid #aaa;
	padding-top: 0.5em;
	padding-bottom: 0.17em;
	margin: 0;
}
#fh1 { font-size: 188%; }
#fh2 { font-size: 150%; }
#fh3 { font-size: 132%; }
#fh4 { font-size: 116%; }
#fh5 { font-size: 100%; }
#fh6 { font-size: 80%; }
#fh3, #fh4, #fh5, #fh6 {
	font-weight: bold;
	border-bottom: none;
}
#bodyContent #fh1, #bodyContent #fh2 {
	margin-bottom: 0.6em;
}
#bodyContent #fh3, #bodyContent #fh4, #bodyContent #fh5 {
	margin-bottom: 0.3em;
}

/* Project page backgrounds */
body.rootpage-MarioWiki_Proposals.skin-timeless #mw-content,
body.rootpage-MarioWiki_Proposals:not(.skin-timeless) #content {
	background: #fff url(https://mario.wiki.gallery/images/8/88/Proposals-bg.png);
}
body.rootpage-MarioWiki_Anniversary.skin-timeless #mw-content,
body.rootpage-MarioWiki_Anniversary:not(.skin-timeless) #content {
	background: #fff url(https://mario.wiki.gallery/images/7/79/Anniversary-bg.png);
}
body.rootpage-MarioWiki_Chat.skin-timeless #mw-content,
body.rootpage-MarioWiki_Chat:not(.skin-timeless) #content {
	background: #e9e9ff;
}