MediaWiki:Gadget-GlobalStyle.css: Difference between revisions
From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
mNo edit summary Tag: Reverted |
m (rv) |
||
Line 34: | Line 34: | ||
.client-js .tabbertab:first-child, .client-js .mw-empty-elt:first-child + .tabbertab { margin-top: 26px; } | .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; } | .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: | .mw-parser-output > .tabber, section > .tabber { display: table; margin-bottom: 0.5em; } | ||
.mediawiki .tabbertab .infobox { margin: 0 !important; } | .mediawiki .tabbertab .infobox { margin: 0 !important; } | ||
.infobox .tabber:not(.tabberlive) { display: block; } | .infobox .tabber:not(.tabberlive) { display: block; } |
Revision as of 00:05, 28 February 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,
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;
}
/* 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;
}
/* 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: table; 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 .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;
}
/* Template:Aboutfile */
#aboutfile tr:last-child > td:first-child {
border-bottom-left-radius: 7.5px;
}
/* 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;
}