MediaWiki:Gadget-GlobalStyle.css: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 6: Line 6:
display: none;
display: none;
}
}
body.anon.ns-content.action-view.mobile #stub,
body.anon.ns-content.action-view.mobile #stub:not(:only-child),
body.anon.ns-content.action-view .notice-template:not(.show),
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) {
display: none !important;
display: none !important;
Line 13: Line 13:
body.anon.ns-content.action-view.desktop .notice-template.show {
body.anon.ns-content.action-view.desktop .notice-template.show {
margin-top: 0 !important;
margin-top: 0 !important;
}
/* 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_Root.action-view #catlinks,
body.page-Category_Root.action-view #mw-subcategories .mw-category-group:last-of-type {
display: none;
}
}


Line 67: Line 54:


/* Infobox templates */
/* Infobox templates */
.infobox-wide {
.infobox, .infobox-wide {
color: #000;
color: #000;
text-align: center;
text-align: center;
Line 73: Line 60:
border-radius: 10px;
border-radius: 10px;
background: #f9f9f9;
background: #f9f9f9;
margin: 0 0 0.25em;
}
.infobox-wide {
padding: 2px;
padding: 2px;
}
.infobox-wide + .infobox-wide {
margin-top: 0.5em;
}
.infobox.journal {
border-color: #0089B3;
background: #C7E2EA;
}
.infobox.journal-green {
border-color: #98C058;
background: #E8FFEE;
}
.infobox td, .infobox th {
vertical-align: top;
}
.infobox.data td, .infobox.data th {
vertical-align: middle;
}
.infobox big {
font-size: 125% !important;
}
.infobox caption {
font-size: larger;
margin-left: inherit;
}
}
.infobox .mw-collapsible-text,
.infobox .mw-collapsible-text,

Latest revision as of 02:18, 22 May 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 */

.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) {
	display: none !important;
}
body.anon.ns-content.action-view.desktop .notice-template.show {
	margin-top: 0 !important;
}

/* Tabs fix */
.tabber { display: inline-block; }
.tabbertab:not(:first-of-type) { display: none; }
.tabbertab:first-child, .mw-empty-elt:first-child + .tabbertab { padding: 6px; }
.client-js .tabbertab:first-child, .client-js .mw-empty-elt:first-child + .tabbertab { margin-top: 26px; }
.client-js .infobox .tabbertab:first-child, .client-js .infobox .mw-empty-elt:first-child + .tabbertab { margin-top: 24px; }
.mw-parser-output > .tabber, section > .tabber { display: block; width: max-content; margin-bottom: 0.5em; }
.mediawiki .tabbertab .infobox { margin: 0 !important; }
.infobox .tabber:not(.tabberlive) { display: block; }
.tabbertab > p:first-child { margin-top: 0.2em; }
.tabbertab > p:last-child { margin-bottom: 0; }

.client-js .mobile .tabbertab:first-child,
.client-js .mobile .mw-empty-elt:first-child + .tabbertab {
	padding-top: 31.25px; margin-top: 0;
}
.client-js .mobile .infobox .tabbertab:first-child,
.client-js .mobile .infobox .mw-empty-elt:first-child + .tabbertab {
	padding-top: 29px;
}
.client-js .mobile.skin-timeless .tabbertab:first-child,
.client-js .mobile.skin-timeless .mw-empty-elt:first-child + .tabbertab {
	padding-top: 33.6px;
}
.client-js .mobile.skin-timeless .infobox .tabbertab:first-child,
.client-js .mobile.skin-timeless .infobox .mw-empty-elt:first-child + .tabbertab {
	padding-top: 31px;
}

/* Hide subpages navigation for non-subpages */
.page-Zero_One .subpages { display: none !important; }

/* Hide redundant sidebar item */
body:not(.skin-monobook) li#n-Literature-\&-music,
body:not(.skin-monobook) li#n-Literature-\.26-music {
	display: none !important;
}

/* Infobox templates */
.infobox, .infobox-wide {
	color: #000;
	text-align: center;
	border: 2px solid #000;
	border-radius: 10px;
	background: #f9f9f9;
}
.infobox-wide {
	padding: 2px;
}
.infobox-wide + .infobox-wide {
	margin-top: 0.5em;
}
.infobox.journal {
	border-color: #0089B3;
	background: #C7E2EA;
}
.infobox.journal-green {
	border-color: #98C058;
	background: #E8FFEE;
}
.infobox td, .infobox th {
	vertical-align: top;
}
.infobox.data td, .infobox.data th {
	vertical-align: middle;
}
.infobox big {
	font-size: 125% !important;
}
.infobox caption {
	font-size: larger;
	margin-left: inherit;
}
.infobox .mw-collapsible-text,
.infobox .mw-collapsible-toggle {
	color: inherit !important;
	font-weight: bold !important;
}
.client-nojs .infobox .mw-collapsible > tbody > tr > th,
body.skin-minerva .infobox .mw-collapsible > tbody > tr > th {
	text-align: center !important;
	padding: 2px !important;
}
.infobox:not(.rowspan-left) > tbody > tr:last-of-type > :first-child {
	border-bottom-left-radius: 0.5em;
}
.infobox:not(.rowspan-right) > tbody > tr:last-of-type > :last-child {
	border-bottom-right-radius: 0.5em;
}
.infobox.rowspan-left > tbody > tr:nth-last-child(2) > :first-child[rowspan="2"] {
	border-bottom-left-radius: 0.5em;
}
.infobox.rowspan-right > tbody > tr:nth-last-child(2) > :last-child[rowspan="2"] {
	border-bottom-right-radius: 0.5em;
}

/* Notice templates */
.notice-template {
	color: #000;
	font-size: 95%;
	border-radius: 10px;
}

/* Video tables */
.mw-parser-output table.video {
	display: block;
	overflow: auto;
	border: 2px solid #000;
	margin-right: auto !important;
	margin-left: auto !important;
}
table.video tr th {
	border: 1px inset;
	border-radius: 10px;
	padding-right: 5px;
	padding-left: 5px;
}
table.video tr td {
	border: 1px solid #000;
}
table.video .videoWidget,
table.video .videoWidget iframe {
	display: block !important;
}
table.video .videoWidget .autoResize {
	margin: 0 auto !important;
}