MediaWiki:Gadget-GlobalStyle.css: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
(263 intermediate revisions by the same user not shown)
Line 5: Line 5:
.mw-wiki-logo { background-size: 150px; }
.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.mobile #stub,
body.anon.ns-content.action-view .notice-template:not(.show) {
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;
display: none !important;
}
}
body.anon.ns-content.action-view:not(.mobile) .notice-template.show {
body.anon.ns-content.action-view.desktop .notice-template.show {
margin-top: 0 !important;
margin-top: 0 !important;
}
}


/* SiteNotice */
/* Tabs fix */
#localNotice a.external {
.tabber { display: inline-block; }
padding: 0 !important;
.tabbertab:first-child { padding: 5px; }
background: none !important;
.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 {
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;
}
table:not(.wikitable) .mw-collapsible-toggle {
padding-right: 0.3em;
}
}


/* Gallery classes */
/* Infobox templates */
.gallery.center {
.infobox-wide {
margin-left: auto !important;
width: 100%;
margin-right: auto !important;
border-spacing: 0;
}
}
.gallery.centertext .gallerytext {
.infobox, .infobox-wide {
text-align: center !important;
color: #000;
padding: 4px;
border: 1px solid;
}
}
 
.infobox th a, .infobox-wide th a {
/* Navbox show/hide */
color: inherit !important;
.navbox .mw-collapsible-toggle {
}
text-align: right;
.infobox audio + br,
min-width: 3.729em;
.infobox .mw-tmh-player.audio + br {
content: '';
display: block;
margin-top: 3px;
}
}
 
.infobox td > audio:first-child,
/* Horizontal rule */
.infobox td > .mw-tmh-player.audio:first-child {
hr { overflow: hidden; }
margin-top: 2px;
 
/* 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 {
.infobox div[style*="column"] br + a {
height: 13px;
display: inline-block;
min-height: 13px;
position: relative;
top: -1px;
opacity: 0.51;
}
}
 
.infobox > tbody > tr > td:first-of-type:not(:last-of-type) {
/* Root category */
min-width: 6em;
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 colors */
.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 templates */
.notice-template.talk,
.notice-template.image,
.notice-template.maintenance {
color: #000;
}
.notice-template.image {
.notice-template.image {
background: #f1f1de;
background: #f1f1de;
Line 96: Line 104:
}
}
.notice-template.copyright {
.notice-template.copyright {
font-style: italic;
background: #fff9f9;
background: #fff9f9;
border: 1px solid #C55;
border: 1px solid #C55;
Line 112: Line 121:
}
}
.notice-template.maintenance#delete {
.notice-template.maintenance#delete {
color: #fff;
background: #333;
background: #333;
color: #fff;
}
}
.notice-template.maintenance#delete a:not(.new) {
.notice-template.maintenance#delete a:not(.new) {
Line 119: Line 128:
}
}


/* Template:Button */
/* Reception tables */
.defaultbutton {
table.wikitable.reviews {
color: black;
width: 100%;
font-size: smaller;
text-align: center;
font-variant: small-caps;
border: 2px solid #000 !important;
white-space: nowrap;
margin-bottom: 5px;
background: white;
border: 1px solid black;
border-radius: 1em;
padding: 0px 0.5em;
display: inline;
}
}
.button {
 
width: 10px;
/* Donkey Kong tables */
height: 16px;
table.wikitable.dk { color: #000; }
font-size: smaller;
table.wikitable.dk > * > tr > * { border-color: #000; }
font-variant: small-caps;
table.wikitable.dk > * > tr > th { background-color: #BB8855; }
white-space: nowrap;
table.wikitable.dk > * > tr:not([bgcolor]):nth-child(even) { background: wheat; }
background: url(https://mario.wiki.gallery/images/thumb/7/75/Def_Button.svg/16px-Def_Button.svg.png) no-repeat;
table.wikitable.dk > * > tr:not([bgcolor]):nth-child(odd) { background: #FFF8DC; }
padding: 0 3px;
 
display: inline-block;
/* Fake headings */
overflow: hidden;
#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 {
/* Template:Fake link */
font-weight: bold;
.fakelinks {
cursor: pointer;
color: #002bb8;
}
}
.fakelinks:hover {
#fh1, #fh2, #fh3, #fh4, #fh5, #fh6 {
text-decoration: underline;
padding: 0.5em 0 0.17em;
}
}
 
#bodyContent #fh1, #bodyContent #fh2 {
/* Template:Sigbox */
margin-bottom: 0.6em;
.sigbox {
background: url(https://mario.wiki.gallery/images/sigboxbg.png) no-repeat top left;
min-height: 35px;
min-width: 295px;
}
}
 
#bodyContent #fh3, #bodyContent #fh4, #bodyContent #fh5 {
/* Template:Foreign names */
margin-bottom: 0.3em;
#foreignNames.noMeanings th:nth-of-type(3),
#foreignNames.noMeanings td:nth-of-type(3) {
display: none;
}
}


/* DK tables */
/* Project page backgrounds */
table.dktable,
body.rootpage-MarioWiki_Proposals.skin-timeless #mw-content,
table.dktable-brown {
body.rootpage-MarioWiki_Proposals:not(.skin-timeless) #content {
color: #000;
background: #fff url(https://mario.wiki.gallery/images/8/88/Proposals-bg.png);
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 {
body.rootpage-MarioWiki_Anniversary.skin-timeless #mw-content,
background: #FFF8DC;
body.rootpage-MarioWiki_Anniversary:not(.skin-timeless) #content {
background: #fff url(https://mario.wiki.gallery/images/7/79/Anniversary-bg.png);
}
}
table.dktable-brown > * > tr:nth-child(even) > td {
body.rootpage-MarioWiki_Chat.skin-timeless #mw-content,
background: wheat;
body.rootpage-MarioWiki_Chat:not(.skin-timeless) #content {
background: #e9e9ff;
}
}

Revision as of 18:58, May 9, 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;
}

/* 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 {
	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;
}
table:not(.wikitable) .mw-collapsible-toggle {
	padding-right: 0.3em;
}

/* 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.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://mario.wiki.gallery/images/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 { 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;
}