MediaWiki:Gadget-GlobalStyle.css: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 65: | Line 65: | ||
} | } | ||
/* Infobox | /* Infobox templates */ | ||
.infobox. | .infobox.red { border: 1px solid #F98686; background: #FFF5EE; } | ||
.infobox.red > tbody > tr:first-child > td { background: #FAAAAA; } | .infobox.red > tbody > tr:first-child > td { background: #FAAAAA; } | ||
.infobox.red > tbody > tr:nth-child(2n+3) { background: #FFE4E1; } | .infobox.red > tbody > tr:nth-child(2n+3) { background: #FFE4E1; } | ||
.infobox.green { border | .infobox.green { border: 1px solid #88AA88; background: #F8FFF7; } | ||
.infobox.green > tbody > tr:first-child > td { background: #8AFA8A; } | .infobox.green > tbody > tr:first-child > td { background: #8AFA8A; } | ||
.infobox.green > tbody > tr:nth-child(2n+3) { background: #AAFFAA; } | .infobox.green > tbody > tr:nth-child(2n+3) { background: #AAFFAA; } | ||
.infobox.orange { border | .infobox.orange { border: 1px solid #FF5300; background: #FFF7EE; } | ||
.infobox.orange > tbody > tr:first-child > td { background: #FF8A4A; } | .infobox.orange > tbody > tr:first-child > td { background: #FF8A4A; } | ||
.infobox.orange > tbody > tr:nth-child(2n+3) { background: #FF9C77; } | .infobox.orange > tbody > tr:nth-child(2n+3) { background: #FF9C77; } | ||
Line 121: | Line 117: | ||
.notice-template.maintenance#delete a:not(.new) { | .notice-template.maintenance#delete a:not(.new) { | ||
color: yellow; | color: yellow; | ||
} | |||
/* Foreign names template */ | |||
#foreignNames.noMeanings th:nth-of-type(3), | |||
#foreignNames.noMeanings td:nth-of-type(3) { | |||
display: none; | |||
} | } | ||
Line 128: | Line 130: | ||
color: #000; | color: #000; | ||
background: #fff; | background: #fff; | ||
border: 1pt solid #000; | border: 1pt solid #000; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
margin: 1em 0; | |||
} | } | ||
table.dktable > * > tr > td, | table.dktable > * > tr > td, | ||
Line 147: | Line 149: | ||
table.dktable-brown > * > tr:nth-child(even) > td { | table.dktable-brown > * > tr:nth-child(even) > td { | ||
background: wheat; | background: wheat; | ||
} | } |
Revision as of 16:08, June 3, 2021
/* 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; }
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:not(.mobile) .notice-template.show {
margin-top: 0 !important;
}
/* SiteNotice */
#localNotice a.external {
padding: 0 !important;
background: none !important;
}
/* Gallery classes */
.gallery.center {
margin-left: auto !important;
margin-right: auto !important;
}
.gallery.centertext .gallerytext {
text-align: center !important;
}
/* Navbox show/hide */
.navbox .mw-collapsible-toggle {
text-align: right;
min-width: 3.729em;
}
/* Horizontal rule */
hr { overflow: hidden; }
/* Self-link color */
a.mw-selflink { color: inherit !important; }
/* Image thumbnails */
html .thumbimage { background-color: #fff; }
/* Special:Preferences */
#mw-htmlform-mobile .oo-ui-inline-help { display: none; }
/* 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;
}
/* 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;
}
/* Infobox templates */
.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; }
/* Notice templates */
.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 {
background: #333;
color: #fff;
}
.notice-template.maintenance#delete a:not(.new) {
color: yellow;
}
/* Foreign names template */
#foreignNames.noMeanings th:nth-of-type(3),
#foreignNames.noMeanings td:nth-of-type(3) {
display: none;
}
/* 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;
}