MediaWiki:Gadget-NavboxStyle.css: Difference between revisions
From the Nintendo Wiki, a wiki covering all things Nintendo
Jump to navigationJump to search
Content added Content deleted
(test) |
(test) |
||
Line 71: | Line 71: | ||
} |
} |
||
.navbox > * > tr:first-child th .mw- |
.navbox > * > tr:first-child th .mw-content-ltr .mw-collapsible-toggle { color: inherit; } |
||
.client-nojs .navspace { |
.client-nojs .navspace { |
Revision as of 19:35, February 18, 2024
/* Navbox template CSS */
/* Site styles */
.navbox {
width: 100%;
color: #000;
clear: both;
font-size: 88%;
background: #fff;
border: 1px solid grey;
margin-top: 15px;
}
.nav-right {
color: #000;
clear: right;
float: right;
font-size: 90%;
margin: 0 0 10px 1em !important;
}
.content-table-wrapper + .content-table-wrapper .navbox,
.navbox + .navbox,
.navbox .navbox {
margin-top: 0 !important;
}
.navbox .navbox {
font-size: 100%;
}
.mobile .navbox tr:nth-of-type(2) > td:first-child {
padding-left: 0 !important;
padding-right: 0 !important;
}
.navbox:not(.multi) .mw-collapsible > tbody > tr:first-child > th {
padding-left: 4.1em;
}
.navbox tr:first-child th {
color: #fff;
font-size: 108%;
font-weight: bold;
background: #999;
}
.navbox tr:first-child th, .navbox tr:first-child th a {
color: #fff !important;
}
.navbox tr th {
text-align: center;
background: #ccc;
}
.navbox tr:not(:first-child) th:not([rowspan]):not([colspan]) {
background: #E6E6E6;
}
.navbox tr th a, .navbox tr th a:visited, .navbox tr th a.new, .navbox tr th a.new:visited {
color: #000;
}
.navbox tr:nth-child(2n) td {
background: #F6F6F6;
}
.navbox tr td {
background: #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 > * > tr:first-child th .mw-content-ltr .mw-collapsible-toggle { color: inherit; }
.client-nojs .navspace {
display: none;
}
@media print {
.navbox {
display: none;
}
}
/* Light-colored species templates */
.navbox.light > * > tr:first-child th, .navbox.light > * > tr:first-child th a {
color: #000 !important;
}
/* Super Princess Peach */
.navbox.spp tr:first-child th, .navbox.spp tr:first-child th a {
color: #000 !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: #000 !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: #000 !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: #000 !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: #000 !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: #000 !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: #000 !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: #000 !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-color: #6B8CFF;
background-attachment: scroll, scroll;
background-repeat: no-repeat, no-repeat;
background-position: left center, right center;
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);
}
.navbox.subpage tr:nth-child(2n) td {
background-color: lavender;
}
.navbox.subpage tr td {
background-color: ghostwhite;
}