MediaWiki:Gadget-GlobalStyle.css: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
body.anon.ns-content.action-view.mobile #stub:not(:only-child), | body.anon.ns-content.action-view.mobile #stub:not(:only-child), | ||
body.anon.ns-content.action-view .notice-template:not(.show):not(:only-child), | body.anon.ns-content.action-view .notice-template:not(.show):not(:only-child), | ||
body.anon.ns-content.action-view #mw-hidden-catlinks:nth-of-type(2) { | body.anon.ns-content.action-view #mw-hidden-catlinks:nth-of-type(2), body.anon .navbox .navspace > * { | ||
display: none !important; | display: none !important; | ||
} | } |
Revision as of 19:31, December 16, 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:not(:only-child),
body.anon.ns-content.action-view .notice-template:not(.show):not(:only-child),
body.anon.ns-content.action-view #mw-hidden-catlinks:nth-of-type(2), body.anon .navbox .navspace > * {
display: none !important;
}
body.anon.ns-content.action-view.desktop .notice-template.show {
margin-top: 0 !important;
}
/* 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: block; width: max-content; 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; }
/* Show/hide toggle */
.mw-collapsible-toggle {
font-weight: bold;
}
.infobox .mw-collapsible-toggle,
.infobox-wide .mw-collapsible-toggle {
min-width: 40px;
text-align: right;
}
.infobox .mw-made-collapsible > tbody > tr > th:not([style*="left"]),
.infobox-wide .mw-made-collapsible > tbody > tr > th:not([style*="left"]) {
padding-left: 45px !important;
}
table:not(.wikitable) .mw-collapsible-toggle {
padding-right: 0.3em;
}
table.toccolours .mw-collapsible-toggle {
min-width: 3.6em;
}
/* Infobox templates */
.infobox-wide {
width: 100%;
border-spacing: 0;
}
.infobox, .infobox-wide {
color: #000;
padding: 4px;
border: 1px solid;
}
.infobox th a, .infobox-wide th a {
color: inherit !important;
}
.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 {
color: #000;
box-sizing: border-box;
}
.notice-template.file {
background: #f1f1de;
border: 2px solid #996;
}
.notice-template:is(.file, .copyright) {
padding: 5px;
}
.notice-template:is(.file, .copyright, #aboutfile) {
width: 90%;
margin: 5px auto;
}
.notice-template:is(.copyright, #aboutfile) {
font-size: 95%;
}
.notice-template.copyright {
font-style: italic;
background: #fff9f9;
border: 1px solid #C55;
}
.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:is(.maintenance, .talk) {
display: flex;
padding: 0 1em;
margin: 0 2% 1em;
}
/* WikiLove templates */
.wikilove {
color: #000;
border: 1px solid;
border-spacing: 4px;
}
.wikilove td:last-of-type {
padding: 8px;
}
:not(td) > .wikilove {
margin: 1em 0;
}
td > .wikilove {
width: 100%;
}
/* Series boxes */
div.infobox.series {
width: 250px;
text-align: center;
background: #f9f9f9;
border: 1px solid #a2a9b1;
border-radius: 10px;
padding: 0 10px;
}
/* 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; }
/* Foreign name tables */
#foreign-names:not(:has(.foreign-note)) td:has(.no-foreign-note),
#foreign-names:not(:has(.foreign-note)) > tbody > tr > th:nth-of-type(4) {
display: none !important;
}
/* Fake headings */
#fh1 { font-size: 193%; }
#fh2 { font-size: 166%; }
#fh3 { font-size: 142%; }
#fh4 { font-size: 126%; }
#fh5 { font-size: 111%; }
#fh1, #fh2 {
border-bottom: 1px solid #aaa;
}
#fh3, #fh4, #fh5, #fh6 {
font-weight: bold;
}
#fh1, #fh2, #fh3, #fh4, #fh5, #fh6 {
padding: 0.5em 0 0.17em;
}
#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;
}