MediaWiki:Gadget-GlobalStyle.css: Difference between revisions
From the Nintendo Wiki, a wiki covering all things Nintendo
Jump to navigationJump to search
Content added Content deleted
(displaynone) |
(fix) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
} |
} |
||
a.mw-selflink.selflink { color:#000 !important;} |
|||
.mw-content-ltr .mw-collapsible-toggle, .mw-collapsible-toggle-default .mw-collapsible-text { color: inherit; } |
|||
#mw-indicator-mw-helplink a { display:none; } |
#mw-indicator-mw-helplink a { display:none; } |
||
Latest revision as of 19:59, February 18, 2024
/* 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; }
.mw-special-Upload .noupload, .useronly,
.autoconfonly, .editprotected, .editinterface {
display: none;
}
body.anon.ns-content.action-view.mobile #stub,
body.anon.ns-content.action-view .notice-template:not(.show),
body.anon.ns-content.action-view #mw-hidden-catlinks:nth-of-type(2) {
display: none !important;
}
body.anon.ns-content.action-view.desktop .notice-template.show {
margin-top: 0 !important;
}
a.mw-selflink.selflink { color:#000 !important;}
.mw-content-ltr .mw-collapsible-toggle, .mw-collapsible-toggle-default .mw-collapsible-text { color: inherit; }
#mw-indicator-mw-helplink a { display:none; }
/* Tabs fix */
.tabber { display: inline-block; }
.tabbertab:first-child { padding: 5px; }
.infobox .tabbertab:first-child { padding: 5px 0 0; }
.client-js .tabbertab:first-child { margin-top: 22px; }
.client-js .tabbertab:not(:first-of-type) { display: none; }
.mw-parser-output > .tabber, section > .tabber { display: table; margin-bottom: 0.5em; }
.mobile ul.tabbernav li a { padding-top: 4px; padding-bottom: 4px; }
.client-js .mobile .tabbertab:first-child { margin-top: 27px; }
.client-nojs .tabbertab + .tabbertab { margin-top: 2.5px; }
.tabbertab > p:first-child { margin-top: 0.2em; }
.tabbertab > p:last-child { margin-bottom: 0; }
/* Pixelated gallery/interface image upscaling */
ul.gallery:not(.smooth) img, table.listfiles img,
table.searchResultImage img, table.filehistory img {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
/* Root category */
body.page-Category_Nintendo_Wiki.action-view #catlinks,
body.page-Category_Nintendo_Wiki.action-view #mw-subcategories .mw-category-group:last-of-type {
display: none;
}
/* Show/hide toggle */
.mw-collapsible-toggle {
font-weight: bold;
padding-right: 0.3em;
}
.infobox .mw-collapsible-toggle {
min-width: 41px;
text-align: right;
}
.infobox th a.mw-collapsible-text {
color: inherit !important;
}
.infobox .mw-made-collapsible > tbody > tr > th:not([style*="text-align"]) {
padding-left: 45px !important;
}
/* Infobox templates */
.infobox-wide {
width: 100%;
border-spacing: 0;
}
.infobox, .infobox-wide {
color: #000;
padding: 4px;
border: 1px solid;
}
.infobox audio + br,
.infobox .mw-tmh-player.audio + br {
content: '';
display: block;
margin-top: 3px;
}
.infobox td > audio:first-child,
.infobox td > .mw-tmh-player.audio:first-child {
margin-top: 2px;
}
.infobox div[style*="column"] br + a {
display: inline-block;
}
.infobox > tbody > tr > td:first-of-type:not(:last-of-type) {
min-width: 6em;
}
/* 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 {
font-style: italic;
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://static.miraheze.org/nintendowiki/c/c4/Notice-border.svg) !important;
}
.notice-template.maintenance#delete {
color: #fff;
background: #333;
}
.notice-template.maintenance#delete a:not(.new) {
color: yellow;
}
/* Reception tables */
table.wikitable.reviews {
width: 100%;
text-align: center;
border: 2px solid #000 !important;
margin-bottom: 5px;
}
/* Donkey Kong tables */
table.wikitable.dk { color: #000; }
table.wikitable.dk > * > tr > * { border-color: #000; }
table.wikitable.dk > * > tr > th { background-color: #BB8855; }
table.wikitable.dk > * > tr:not([bgcolor]):nth-child(even) { background: wheat; }
table.wikitable.dk > * > tr:not([bgcolor]):nth-child(odd) { background: #FFF8DC; }
/* 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;
}