20,509
edits
(okay, just had to make sure – now using localized checker image so we're not pulling it from wikimedia.org every time) |
m (removed URL that catches ValExtLinks' attention) |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS brought over from Wikipedia appears first. CSS written for our wiki comes second, under the heading ONI WIKI CUSTOMIZATIONS. */ | /* CSS brought over from Wikipedia appears first. CSS written for our wiki comes second, under the heading ONI WIKI CUSTOMIZATIONS. */ | ||
/* Only globally applicable CSS is here; see [[MediaWiki:Vector-2022.css]] for skin-specific customizations (and see | |||
[[MediaWiki:Vector.css]] for customizations to our previous default skin). */ | |||
/* Editors: See TODO comments for items needing work. */ | /* Editors: See TODO comments for items needing work. */ | ||
/* WIKIPEDIA CARRY-OVERS */ | /* WIKIPEDIA CARRY-OVERS */ | ||
/* | /* From Wikipedia's MediaWiki:Common.css */ | ||
/* The original markup on Wikipedia should be checked once in a while for updates to, or removal of, the markup below. */ | |||
@media screen | @media screen | ||
{ | { | ||
/* Put a checkered background behind images, only visible if they have transparency, | |||
* except on main, user, and portal namespaces | |||
* NOTE: Somehow this checkerboard doesn't seem to appear on our custom namespaces; | |||
* that's good, but I don't know why it doesn't -Iritscen | |||
*/ | |||
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img | |||
{ | |||
background:#fff url(//wiki.oni2.net/w/images/5/5d/Checker-16x16.png) repeat; | |||
} | |||
/* Make the list of references smaller */ | |||
.references | |||
{ | |||
font-size:90%; | |||
} | |||
} | } | ||
| Line 30: | Line 32: | ||
/* Consistent size for <small>, <sub> and <sup> */ | /* Consistent size for <small>, <sub> and <sup> */ | ||
small { | small | ||
{ | |||
font-size:85%; | |||
} | } | ||
.mw-body-content sub, | .mw-body-content sub, | ||
.mw-body-content sup { | .mw-body-content sup | ||
{ | |||
font-size:80%; | |||
} | } | ||
| Line 47: | Line 45: | ||
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child), | .client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child), | ||
/* Avoid FOUC/reflows on collapsed elements. */ | /* Avoid FOUC/reflows on collapsed elements. */ | ||
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */ | /* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */ | ||
| Line 58: | Line 55: | ||
/* Styling for jQuery makeCollapsible, matching that of collapseButton */ | /* Styling for jQuery makeCollapsible, matching that of collapseButton */ | ||
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) { | .mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) | ||
{ | |||
font-weight:normal; | |||
padding-right:0.2em; | |||
padding-left:0.2em; | |||
} | } | ||
.mw-collapsible-leftside-toggle .mw-collapsible-toggle | |||
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { | { | ||
/* @noflip */ | |||
float:left; | |||
} | } | ||
/* Different margin on references */ | /* Different margin on references */ | ||
.references { | .references | ||
{ | |||
margin-bottom:0.5em; | |||
} | } | ||
/* Cite customizations */ | /* Cite customizations */ | ||
span[ rel="mw:referencedBy" ] | span[rel="mw:referencedBy"] | ||
{ | { | ||
counter-reset:mw-ref-linkback 0; | |||
} | } | ||
span[rel='mw:referencedBy'] > a::before | |||
{ | { | ||
content:counter(mw-ref-linkback, lower-alpha); | |||
font-size:80%; | |||
font-weight:bold; | |||
font-style:italic; | |||
} | } | ||
a[rel="mw:referencedBy"]::before | |||
{ | { | ||
font-weight:bold; | |||
content:"^"; | |||
} | } | ||
span[rel="mw:referencedBy"]::before | |||
{ | { | ||
content:"^ "; | |||
} | } | ||
/* | /* ONI WIKI CUSTOMIZATIONS */ | ||
/* TODO: | /* TODO: All items beyond this point should be ported to TemplateStyles */ | ||
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes, used by [[Template:Fmbox]] */ | /* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes, used by [[Template:Fmbox]] */ | ||
| Line 458: | Line 384: | ||
table.hovertable | table.hovertable | ||
{ | { | ||
margin: 1em 1em 1em 0; | |||
background-color: #f9f9f9; | |||
border: 1px #aaa solid; | |||
border-collapse: collapse; | |||
color: black; | |||
} | } | ||
.hovertable td | .hovertable td | ||
{ | { | ||
border: none; | |||
padding: 0.2em; | |||
} | } | ||
.hovertable td.hovercell | .hovertable td.hovercell | ||
{ | { | ||
border: 1px #aaa solid; | |||
padding: 0.2em; | |||
} | } | ||
.hovertable td.embedded | .hovertable td.embedded | ||
| Line 481: | Line 407: | ||
.hovertable td.hovertable_descrip | .hovertable td.hovertable_descrip | ||
{ | { | ||
border: 1px #aaa solid; | |||
padding: 0.2em; | |||
position: fixed; | position: fixed; | ||
} | } | ||
| Line 502: | Line 428: | ||
/* For creating a tree-like list; see [[Template:Tree list]] */ | /* For creating a tree-like list; see [[Template:Tree list]] */ | ||
.treeview ul { | .treeview ul { | ||
padding: 0; | |||
margin: 0 !important; | |||
} | } | ||
.treeview li { | .treeview li { | ||
padding: 0; | |||
margin: 0 !important; | |||
list-style-type: none; | |||
list-style-image: none; | |||
} | } | ||
.treeview li li { | .treeview li li { | ||
background: url("https://wiki.oni2.net/w/images/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px; | |||
/* @noflip */ | |||
padding-left: 21px; | |||
text-indent: 0.3em; | |||
} | } | ||
.treeview li li:last-child { | .treeview li li:last-child { | ||
background-position: 0 -5971px | |||
} | } | ||
| Line 529: | Line 455: | ||
.treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline, | .treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline, | ||
.treeview li.emptyline > ul > li:first-child { | .treeview li.emptyline > ul > li:first-child { | ||
background-position: 0 9px | |||
} | } | ||
| Line 536: | Line 462: | ||
*/ | */ | ||
.reflist-lower-alpha { | .reflist-lower-alpha { | ||
list-style-type:lower-alpha; | |||
} | } | ||