The SpongeBob Wiki has a guideline regarding the use of image galleries — collections of episode screenshots are no longer allowed on galleries due to potential fair use violations.
Difference between revisions of "MediaWiki:Common.css"
From the SpongeBob Wiki, the SpongeBob encyclopedia
Jump to navigationJump to search
(On this day) |
(updates) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
html .thumbimage { background-color: #fff; } | html .thumbimage { background-color: #fff; } | ||
/* Image classes */ | /* Image/gallery classes */ | ||
img.blackbg { background: #000 !important; } | img.blackbg, .gallery.blackbg img { background: #000 !important; } | ||
img.graybg, img.greybg { background: #808080 !important; } | img.graybg, img.greybg, .gallery.graybg img, .gallery.greybg img { | ||
background: #808080 !important; | |||
} | |||
ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img { | |||
ul.gallery img, table.filehistory img, table.listfiles img { | |||
image-rendering: crisp-edges; | image-rendering: crisp-edges; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
Line 15: | Line 16: | ||
.pixelated, .pixelart, .sprites, .sprite { | .pixelated, .pixelart, .sprites, .sprite { | ||
image-rendering: crisp-edges; | image-rendering: crisp-edges; image-rendering: pixelated; | ||
} | } | ||
Line 201: | Line 201: | ||
body.page-Main_Page.action-view h1.firstHeading, | body.page-Main_Page.action-view h1.firstHeading, | ||
body.page-Main_Page.action-view | body.page-Main_Page.action-view #contentSub > *, | ||
body.page-Main_Page.action-view #siteSub, | body.page-Main_Page.action-view #siteSub, | ||
body.page-Main_Page.action-view #catlinks, | body.page-Main_Page.action-view #catlinks, | ||
Line 213: | Line 213: | ||
margin-top: 43px; | margin-top: 43px; | ||
} | } | ||
.mainpagebox { | .mainpagebox { | ||
border: 2px solid #929201; | border: 2px solid #929201; | ||
Line 540: | Line 541: | ||
hr { overflow: hidden; } | hr { overflow: hidden; } | ||
/* Self- | /* Self-links */ | ||
a.mw-selflink { color: inherit !important; } | body.mediawiki a.mw-selflink { | ||
color: inherit !important; | |||
cursor: inherit !important; | |||
text-decoration: inherit !important; | |||
font-weight: bold !important; | |||
} | |||
/* Inline link colors */ | |||
a font:hover, a span:hover { | |||
text-decoration: inherit; | |||
} | |||
/* Special:Preferences */ | /* Special:Preferences */ | ||
Line 580: | Line 591: | ||
.messagebox, .errorbox, .warningbox, .successbox { | .messagebox, .errorbox, .warningbox, .successbox { | ||
padding:12px; | padding:12px; | ||
} | |||
.catlinks { | |||
margin-top:10px; | |||
} | } |
Latest revision as of 17:06, February 18, 2022
/* CSS placed here will be applied to all skins */
/* Image thumbs */
html .thumbimage { background-color: #fff; }
/* Image/gallery classes */
img.blackbg, .gallery.blackbg img { background: #000 !important; }
img.graybg, img.greybg, .gallery.graybg img, .gallery.greybg img {
background: #808080 !important;
}
ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
.pixelated, .pixelart, .sprites, .sprite {
image-rendering: crisp-edges; image-rendering: pixelated;
}
/* Notice templates */
body:not(.ns-6) .notice-template + .notice-template {
margin-top: -0.375em !important;
}
#mw-imagepage-content .notice-template + #aboutfile {
margin-top: 0.75em !important;
}
#mw-imagepage-content .notice-template:not(#aboutfile) {
margin-top: 0.75em !important;
margin-bottom: 2.5px !important;
}
.notice-template p {
margin: 0.6em 0;
}
/* disambig template */
#disambig {
border-top: 3px double #cccccc;
border-bottom: 3px double #cccccc;
margin-top: 5px;
}
/* tables */
table.wikitable {
background:#F8E972;
border: 1px solid #929201;
}
table.wikitable > caption {
background:#F8E972;
border-top-left-radius:1em;
border-top-right-radius:1em;
}
table.wikitable > tr > th, table.wikitable > * > tr > th {
background:#F8E972;
}
.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {
border:1px solid #929201;
}
table.wikitable > * > tr:nth-child(odd) > td {background:#FFF}
table.wikitable > * > tr:nth-child(even) > td {background:#FFF}
/* maintenance tables (SpongeBob Wiki:Maintenance) */
table.maintenance_box {
width:100%;
padding:5px;
background:#F4FA95;
font-family:Arial;
font-size:11px;
}
table.maintenance_box, table.maintenance_box {margin:1em 0;border:1pt solid #000;border-collapse:collapse;color:black}
table.maintenance_box > * > tr > td, table.maintenance_box > * > tr > th, table.maintenance_box > * > tr > td, table.maintenance_box > * > tr > th {border:1pt solid #000;padding:0.2em 0.4em}
#file.maintenance_box {
background:#F4FA95;
}
#writing.maintenance_box {
background:#FF97A9;
}
#general.maintenance_box {
background:#C4F0FF;
}
#other.maintenance_box {
background:#C7B199;
}
select {
border: 1px solid #AAA;
color: black;
}
.client-js .mw-input-hidden {
display:inline-block;
}
pre {
background-color: #fff;
border: 1px dashed #2a4b8d;
color: #000;
overflow:auto;
}
h1, h2 {
border-bottom: 1px solid #2a4b8d;
}
hr {
background-color:#2a4b8d;
color:#2a4b8d;
}
.catlinks {
border: 1px solid #a2a9b1 !important;
}
#pagehistory li.selected {
background-color: white !important;
}
/* infoboxes */
.infobox {
background-color:#fff;
float:right;
border: 1px solid #929201;
font-size: 90%;
width: 300px;
margin: 0 0 1em 1.15em;
padding:4px;
}
.infobox td, .infobox th {
padding:2px;
}
/* copyright tags */
.notice-template.copyright {
width: 80%;
margin: 2.5px auto;
padding: 5px;
font-size: 95%;
background: #fff6f6;
border: 2px solid #C55;
}
/* Navigation templates */
.navbox {
background: none repeat scroll 0 0 white;
border: 1px solid grey;
color: black;
font-family: Arial;
font-size: 11px;
width: 100%;
margin-top: 15px;
}
.navbox + .navbox,
.navbox .navbox {
margin-top: 0;
}
.navbox .mw-collapsible-toggle-expanded {
padding-left: 7px;
}
.navbox:not(.multi) .mw-collapsible > tbody > tr:first-child > th {
padding-left: 42px;
}
.navbox tr:first-child th {
background: none repeat scroll 0 0 #999999;
color: white;
font-size: 12px;
font-weight: bold;
}
.navbox tr th {
background: none repeat scroll 0 0 #CCCCCC;
text-align: center;
}
.navbox tr:not(:first-child) th:not([rowspan]):not([colspan]) {
background: none repeat scroll 0 0 #E6E6E6;
}
.navbox tr:nth-child(2n) td {
background: none repeat scroll 0 0 #F6F6F6;
}
.navbox tr td {
background: none repeat scroll 0 0 #FCFCFC;
}
.navbox tr:first-child th, .navbox tr:first-child th a {
color: #FFFFFF !important;
}
.navbox.light > * > tr:first-child th, .navbox.light > * > tr:first-child th a {
color: black !important;
}
/* main page, adapted from Super Mario Wiki */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view #contentSub > *,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #catlinks,
body.page-Main_Page.action-view #lastmod {
display: none !important;
}
body.page-Main_Page.action-view #bodyContent {
margin-top: 16px;
}
body.page-Main_Page.action-view .usermessage {
margin-top: 43px;
}
.mainpagebox {
border: 2px solid #929201;
padding: 2px;
background: ghostwhite;
}
.mainpagebox p {
margin: 0.9em 0 1em;
}
.mainpagebox#welcome {
padding: 2px 2px 2px 0;
}
.mainpagebox#nav {
font-size: 120%;
padding: 2px 2px 5px 0;
background: #FFF;
border-color: #914800;
}
.mainpagebox#nav ul {
margin-left: 20px;
}
.mainpagebox#right {
padding: 2px 2px 5px;
}
.mainpagebox.maintain {
text-align: center;
padding: 2px 2px 0;
margin-top: 10px;
}
.mainpagebox h2 {
padding: 4px 5px 2px;
margin-bottom: 1px !important;
border: 2px solid #567CAF;
font-size: 120%;
font-weight: bold;
text-align: center;
}
.MainTopText a {
color: black !important;
text-decoration: none;
}
.MainTopText a:hover {
color: black;
text-decoration: underline;
}
.mainpagebox#featured h2 {
background: #F4FA95;
border: 1px solid saddlebrown;
}
.mainpagebox#featured_image h2 {
background: #FF97A9;
border: 1px solid #C60023;
}
.mainpagebox#dyk h2 {
background: #C4F0FF;
border: 1px solid #0072BC;
}
.mainpagebox#on_this_day h2 {
background: #C7B199;
border: 1px solid saddlebrown;
}
/* Links */
a { color: #00f; }
a:active { color: orange; }
a:visited { color: #00c; }
.mw-parser-output a.extiw { color: #06f; }
.mw-parser-output a.extiw:visited { color: #3366BB; }
.mw-parser-output a.external { color: #06f; }
.mw-parser-output a.external:visited { color: #0044CC; }
div#mw-indicator-mw-helplink { display:none; }
/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
color: #888 !important;
}
/* References */
ol.references {
margin-top: 0;
font-size: 90%;
}
ol.references div {
display: inline;
}
ol.references span {
line-height: 1;
}
.ns-3 [style*="position:fixed"] {
display: none;
}
.ipa {
font-family: "Arial Unicode MS","Charis SIL","DejaVu Sans",Gentium,"Lucida Sans Unicode","TITUS Cyberbit","DoulosSIL",Arial;
}
/* disable calendar widget */
.mw-widget-calendarWidget {
display: none !important;
}
.mw-widget-dateInputWidget-handle {
border-radius: 0px;
}
/* <h4> Template:Fake link </h4> */
.fakelinks {
cursor: pointer;
color: #002bb8;
}
.fakelinks:hover {
text-decoration: underline;
}
/* Captcha spacing */
#editform #wpCaptchaWord {
margin-top: 2.5px;
}
#userloginForm label:not([for]) + .mw-input {
margin-top: 10px;
}
#userloginForm .mw-ui-vform-field:nth-of-type(7) {
margin-bottom: 5px;
}
.mw-htmlform-field-HTMLReCaptchaNoCaptchaField .mw-input {
margin-top: 1px;
}
.editOptions .g-recaptcha {
margin-bottom: 10px;
}
.mw-ui-vform {
width: 302px;
}
/* Gallery */
ul.gallery, li.gallerybox div.thumb {
margin-bottom: 0;
padding-bottom: 0;
}
#bodyContent ul.gallery {
margin: 2px;
padding: 2px;
}
li.gallerycaption {
text-align: unset;
}
.gallery.center {
margin-left: auto !important;
margin-right: auto !important;
}
.gallery.centertext .gallerytext {
text-align: center !important;
}
.mw-gallery-slideshow .gallerybox + .gallerybox {
display: none;
}
.mw-gallery-slideshow-thumbnails-toggled ~ .gallerybox {
display: inline-block !important;
}
/* Edit section */
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:not(:first-of-type),
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type) {
margin: 0;
color: unset;
}
.client-js .editButtons .editHelp {
display: none;
}
/* ooui */
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
overflow: visible;
}
.oo-ui-panelLayout-framed {
border: 1px solid #929201;
border-radius: 0px;
}
.oo-ui-textInputWidget .oo-ui-inputWidget-input, .oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle, .oo-ui-tagMultiselectWidget-handle {
border: 1px solid #003466;
border-radius: 0px;
}
.oo-ui-menuOptionWidget.oo-ui-optionWidget-selected .oo-ui-menuOptionWidget-checkIcon {
display:none;
}
.oo-ui-textInputWidget .oo-ui-pendingElement-pending {
display:none;
}
.oo-ui-textInputWidget .oo-ui-inputWidget-input {
box-shadow:none;
transition:none;
border:1px solid #003466;
}
.oo-ui-textInputWidget.oo-ui-widget-enabled .oo-ui-inputWidget-input {
border-radius:0px;
box-shadow:none;
transition:none;
}
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-inlined.oo-ui-tagMultiselectWidget-focus .oo-ui-tagMultiselectWidget-handle {
border-color: #929201;
box-shadow: none;
border-radius:0px;
}
.oo-ui-textInputWidget.oo-ui-widget-enabled .oo-ui-inputWidget-input:focus {
border:1px solid #003466;
border-radius:0px;
box-shadow: none;
}
.oo-ui-buttonElement-framed > .oo-ui-buttonElement-button {
box-shadow: none !important;
}
.oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:focus {
border-color: #003466;
box-shadow: none;
}
.oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button {
background-color: #f4eecd;
background-image: -webkit-gradient(linear,right top,right bottom,color-stop(0,#faf8ea),color-stop(100%,#eee4b0)) !important;
background-image: -webkit-linear-gradient(top,#faf8ea 0,#eee4b0 100%);
background-image: -moz-linear-gradient(top,#faf8ea 0,#eee4b0 100%);
background-image: linear-gradient(to bottom,#faf8ea 0,#eee4b0 100%);
border: 1px solid #e1d7a6;
}
.oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive:active > .oo-ui-buttonElement-button {
background-color: #f4eecd;
background-image: -webkit-gradient(linear,right top,right bottom,color-stop(0,#eee4b0),color-stop(100%,#faf8ea)) !important;
background-image: -webkit-linear-gradient(top,#eee4b0 0,#faf8ea 100%);
background-image: -moz-linear-gradient(top,#eee4b0 0,#faf8ea 100%);
background-image: linear-gradient(to bottom,#eee4b0 0,#faf8ea 100%);
border: 1px solid #e1d7a6;
}
.oo-ui-dropdownWidget-handle {
height: 2.5em;
border: 1px solid #003466;
border-radius: 0px !important;
}
.oo-ui-buttonElement > .oo-ui-buttonElement-button, .oo-ui-textInputWidget .oo-ui-inputWidget-input {
border-radius:0px;
}
body:not(.mw-special-Export) .mw-htmlform-ooui-wrapper .oo-ui-fieldLayout { margin-right: 10px; display: block; vertical-align: middle !important; }
body:not(.mw-special-Export) .mw-htmlform-ooui-wrapper .oo-ui-fieldsetLayout-group { display: block !important; }
body:not(.mw-special-Export) .mw-htmlform-ooui-wrapper .oo-ui-fieldsetLayout.mw-collapsible .mw-collapsible-toggle .oo-ui-iconElement-icon { display: none !important; }
body:not(.mw-special-Export) .mw-htmlform-ooui-wrapper.oo-ui-panelLayout-padded .oo-ui-fieldsetLayout.mw-collapsible .oo-ui-fieldsetLayout-header { padding-left: 0 !important; margin-bottom: 0 !important; }
/* change font color of top-right results text in the search results page */
.results-info {
color:#000;
}
/* Forum formatting -Algorithm & -Splaka */
.forumheader {
background: #fbfad5 !important;
border: solid 1px #929201;
margin: 1em 0 15px;
padding: 12px;
}
.forumlist td.forum_edited a {
color: black; text-decoration: none
}
.forumlist td.forum_title a {
padding-left: 20px;
}
.forumlist td.forum_title a.forum_new {
font-weight: bold;
/*background: url(/images/forum_new.png) center left no-repeat;*/
padding-left: 20px;
}
.forumlist td.forum_title a.forum_new:visited {
font-weight: normal; background: none; padding-left: 20px;
}
.forumlist th.forum_title {
padding-left: 20px;
}
/* Formatting fixes */
div[style*="column-count"] > p { margin: 0 !important; }
span.comment, .mw-parser-output a.external.free, .filehistory.wikitable td[dir] {
word-wrap: anywhere;
}
/* Scrollable tables */
table.scrollable {
display: block;
overflow: auto;
max-width: max-content;
border: 0;
}
/* Show/hide toggles */
.navbox .mw-collapsible-toggle {
text-align: right;
min-width: 3.729em;
}
.wikitable.mw-collapsed .mw-collapsible-toggle {
margin-left: 10px;
}
/* Horizontal rule */
hr { overflow: hidden; }
/* Self-links */
body.mediawiki a.mw-selflink {
color: inherit !important;
cursor: inherit !important;
text-decoration: inherit !important;
font-weight: bold !important;
}
/* Inline link colors */
a font:hover, a span:hover {
text-decoration: inherit;
}
/* Special:Preferences */
#mw-htmlform-mobile .oo-ui-inline-help { display: none; }
/* miscellanous */
.mw-collapsible-toggle {
padding-right: 0.3em;
}
.wikiEditor-ui {
padding-top: 10px;
}
.mw-editform .editOptions {
border-radius: 0px;
}
span#mw-editform-cancel {
display:none;
}
p {
margin: 0.6em 0 0.7em 0;
}
.mw-prefs-buttons {
position: inherit;
background-color:transparent;
box-shadow:none;
}
.not-patrolled {
background-color: yellow;
}
.messagebox, .errorbox, .warningbox, .successbox {
padding:12px;
}
.catlinks {
margin-top:10px;
}