MediaWiki:Gadget-NavboxStyle.css

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 14:55, April 11, 2021 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.
/* Navbox templates, with mobile support */

/* Mobile */
.mobile .navbox {
	width: 100% !important;
	font-size: 85% !important;
	margin: 15px 0 0 !important;
}
.mobile .navbox .navbox {
	font-size: 100% !important;
	margin-top: 0 !important;
}
.mobile .navbox + .navbox {
	margin-top: 0 !important;
}
.skin-timeless .navbox td {
	padding-top: 0 !important;
}
.mobile .navbox td {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.mobile .navbox th {
	padding-left: 4px !important;
	padding-right: 4px !important;
}
.navbox-heading {
	clear: both !important;
}
.mobile.skin-timeless .navbox-heading {
	border: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	padding: 0 !important;
}
.mobile.skin-timeless .navbox-heading::after {
	border: 0 !important;
}
.client-nojs .mobile .navbox,
.client-nojs .mobile #bodyContent .navbox-heading,
.mobile.skin-timeless .navbox-heading > .mw-ui-icon {
	display: none !important;
}
.mobile.skin-timeless .navbox-heading + .collapsible-block {
	display: block !important;
}

/* Site styles */
.navbox {
	background: none repeat scroll 0 0 white;
	border: 1px solid grey;
	color: black;
	font-family: Arial;
	font-size: 11px;
	width: 100%;
	margin-top: 15px;
}
.navbox + .navbox,
.navbox .navbox {
	margin-top: 0;
}
.navbox .mw-collapsible-toggle-expanded {
	padding-left: 7px;
}
.navbox:not(.multi) .mw-collapsible > tbody > tr:first-child > th {
	padding-left: 42px;
}
.navbox tr:first-child th {
	background: none repeat scroll 0 0 #999999;
	color: white;
	font-size: 12px;
	font-weight: bold;
}
.navbox tr:first-child th, .navbox tr:first-child th a {
	color: #FFFFFF !important;
}
.navbox tr th {
	background: none repeat scroll 0 0 #CCCCCC;
	text-align: center;
}
.navbox tr:not(:first-child) th:not([rowspan]):not([colspan]) {
	background: none repeat scroll 0 0 #E6E6E6;
}
.navbox tr th a, .navbox tr th a:visited, .navbox tr th a.new, .navbox tr th a.new:visited {
	color: #000000;
}
.navbox tr:nth-child(2n) td {
	background: none repeat scroll 0 0 #F6F6F6;
}
.navbox tr td {
	background: none repeat scroll 0 0 #FCFCFC;
}
.navbox td a {
	color: #0000FF;
}
.navbox td a:visited {
	color: #0000CC;
}
.navbox td a.new {
	color: #CC2200;
}
.navbox td a.new:visited {
	color: #A55858;
}
.navbox td a.selflink {
	color: #000;
}

/* Light-colored species templates */
.navbox.light > * > tr:first-child th, .navbox.light > * > tr:first-child th a {
	color: black !important;
}

/* Super Princess Peach */
.navbox.spp tr:first-child th, .navbox.spp tr:first-child th a {
	color: black !important;
}
.navbox.spp tr:nth-child(2n) td {
	background-color: pink;
}
.navbox.spp tr td {
	background-color: mistyrose;
}

/* Spinoffs */
.navbox.spinoff tr:first-child th, .navbox.spinoff tr:first-child th a {
	color: black !important;
}
.navbox.spinoff tr:nth-child(2n) td {
	background-color: #FFFFBB;
}
.navbox.spinoff tr td {
	background-color: #FFFFDD;
}

/* RPGs - Paper Mario and Super Mario RPG */
.navbox.rpg tr:nth-child(2n) td {
	background-color: #CFEEFF;
}
.navbox.rpg tr td {
	background-color: aliceblue;
}

/* RPGs - Mario & Luigi */
.navbox.rpg-ml tr:first-child th, .navbox.rpg-ml tr:first-child th a {
	color: black !important;
}
.navbox.rpg-ml tr:nth-child(2n) td {
	background-color: #CFEEFF;
}
.navbox.rpg-ml tr td {
	background-color: aliceblue;
}

/* Sports */
.navbox.sport tr:first-child th, .navbox.sport tr:first-child th a {
	color: black !important;
}
.navbox.sport tr:nth-child(2n) td {
	background-color: #EFFF9F;
}
.navbox.sport tr td {
	background-color: #FFFFCC;
}

/* Crossovers */
.navbox.crossover tr:nth-child(2n) td {
	background-color: #E0FFE0;
}
.navbox.crossover tr td {
	background-color: #EDFFFF;
}

/* Crossovers - Super Smash Bros. */
.navbox.crossover-ssb tr:first-child th, .navbox.crossover-ssb tr:first-child th a {
	color: black !important;
}
.navbox.crossover-ssb tr:nth-child(2n) td {
	background-color: #E0FFE0;
}
.navbox.crossover-ssb tr td {
	background-color: #EDFFFF;
}

/* Luigi's Mansion */
.navbox.lm tr:nth-child(2n) td {
	background-color: #BBFF99;
}
.navbox.lm tr td {
	background-color: #EEFFCC;
}

/* Yoshi */
.navbox.yoshi tr:nth-child(2n) td {
	background-color: #AFFFAA;
}
.navbox.yoshi tr td {
	background-color: #ECFFEC;
}

/* Wario */
.navbox.wario tr:nth-child(2n) td {
	background-color: #F8BFF8;
}
.navbox.wario tr td {
	background-color: #F8DFF8;
}

/* Donkey Kong */
.navbox.dk tr:nth-child(2n) td {
	background-color: wheat;
}
.navbox.dk tr td {
	background-color: #FFF8DC;
}

/* Mario */
.navbox.mario tr:nth-child(2n) td {
	background-color: bisque;
}
.navbox.mario tr td {
	background-color: #FFF5EE;
}

/* Super Mario Land */
.navbox.mario-sml tr:first-child th, .navbox.mario-sml tr:first-child th a {
	color: black !important;
}
.navbox.mario-sml tr:nth-child(2n) td {
	background-color: bisque;
}
.navbox.mario-sml tr td {
	background-color: #FFF5EE;
}

/* Alternate media */
.navbox.media tr:first-child th, .navbox.media tr:first-child th a {
	color: black !important;
}
.navbox.media tr:nth-child(2n) td {
	background-color: #FFEAAA;
}
.navbox.media tr td {
	background-color: #FFFFC0;
}

/* Consoles */
.navbox.console tr:first-child th, .navbox.console tr:first-child th a {
	color: black !important;
}
.navbox.console tr:nth-child(2n) td {
	background-color: #F5F5F5;
}
.navbox.console tr td {
	background-color: #FBFBFB;
}

/* Former subpages */
.navbox.subpage tr:first-child th {
	background-image:url(https://mario.wiki.gallery/images/1/1a/Temp_SMB_a.png), url(https://mario.wiki.gallery/images/1/1d/Temp_SMB_b.png);
	background-repeat:no-repeat,no-repeat;
	background-attachment:scroll, scroll;
	background-color:#6B8CFF;
	background-position:left center, right center;
	text-align:center;
	font-size:12px;
	      color:white;
}
.navbox.subpage tr:nth-child(2n) td {
	      background-color: lavender;
}
.navbox.subpage tr td {
	      background-color: ghostwhite;
}

/* Show/hide */
.mobile .navbox .mw-collapsible-toggle-expanded {
	padding-left: 5.3px;
}