You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
500 lines
8.0 KiB
CSS
500 lines
8.0 KiB
CSS
4 years ago
|
/**
|
||
|
* Yoinked from mw 1.34, because everything is all features in 1.35, and
|
||
|
* most of the features are styled for monobook specifically in 1.36+.
|
||
|
*
|
||
|
* Remove this file if that ever gets fixed?
|
||
|
*/
|
||
|
|
||
|
/* stylelint-disable selector-class-pattern */
|
||
|
|
||
|
/* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
|
||
|
|
||
|
/**
|
||
|
* These classes should be used for text depending on the content direction.
|
||
|
* Content stuff like editsection, ul/ol and TOC depend on this.
|
||
|
*/
|
||
|
.mw-content-ltr {
|
||
|
/* @noflip */
|
||
|
direction: ltr;
|
||
|
}
|
||
|
|
||
|
.mw-content-rtl {
|
||
|
/* @noflip */
|
||
|
direction: rtl;
|
||
|
}
|
||
|
|
||
|
/* Most input fields should be in site direction */
|
||
|
.sitedir-ltr textarea,
|
||
|
.sitedir-ltr input {
|
||
|
/* @noflip */
|
||
|
direction: ltr;
|
||
|
}
|
||
|
|
||
|
.sitedir-rtl textarea,
|
||
|
.sitedir-rtl input {
|
||
|
/* @noflip */
|
||
|
direction: rtl;
|
||
|
}
|
||
|
|
||
|
.mw-userlink {
|
||
|
unicode-bidi: embed;
|
||
|
}
|
||
|
|
||
|
/* User-Agent styles for new HTML5 elements */
|
||
|
mark {
|
||
|
background-color: #ff0;
|
||
|
color: #000;
|
||
|
}
|
||
|
|
||
|
/* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
|
||
|
/* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
|
||
|
wbr {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
/* Input types that should follow user direction, like buttons */
|
||
|
/* TODO: What about buttons in wikipage content ? */
|
||
|
input[ type='submit' ],
|
||
|
input[ type='button' ],
|
||
|
input[ type='reset' ],
|
||
|
input[ type='file' ] {
|
||
|
direction: ltr;
|
||
|
}
|
||
|
|
||
|
/* Override default values */
|
||
|
textarea[ dir='ltr' ],
|
||
|
input[ dir='ltr' ] {
|
||
|
/* @noflip */
|
||
|
direction: ltr;
|
||
|
}
|
||
|
|
||
|
textarea[ dir='rtl' ],
|
||
|
input[ dir='rtl' ] {
|
||
|
/* @noflip */
|
||
|
direction: rtl;
|
||
|
}
|
||
|
|
||
|
/* Default style for semantic tags */
|
||
|
abbr[ title ],
|
||
|
.explain[ title ] {
|
||
|
border-bottom: 1px dotted;
|
||
|
cursor: help;
|
||
|
}
|
||
|
|
||
|
@supports ( text-decoration: underline dotted ) {
|
||
|
abbr[ title ],
|
||
|
.explain[ title ] {
|
||
|
border-bottom: 0;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Comment portions of RC entries */
|
||
|
span.comment {
|
||
|
font-style: italic;
|
||
|
unicode-bidi: -moz-isolate;
|
||
|
unicode-bidi: isolate;
|
||
|
}
|
||
|
|
||
|
/* Stop floats from intruding into edit area in previews */
|
||
|
#editform,
|
||
|
#toolbar,
|
||
|
#wpTextbox1 {
|
||
|
clear: both;
|
||
|
}
|
||
|
|
||
|
/* Prevent editing textarea from jumping when toolbar is loaded */
|
||
|
#toolbar {
|
||
|
height: 22px;
|
||
|
}
|
||
|
|
||
|
/* Underline preference */
|
||
|
|
||
|
.mw-underline-always a {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
|
||
|
.mw-underline-never a {
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* rev_deleted stuff
|
||
|
*/
|
||
|
li span.deleted,
|
||
|
span.history-deleted {
|
||
|
text-decoration: line-through;
|
||
|
color: #72777d;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Patrol stuff
|
||
|
*/
|
||
|
.not-patrolled {
|
||
|
background-color: #ffa;
|
||
|
}
|
||
|
|
||
|
.unpatrolled {
|
||
|
font-weight: bold;
|
||
|
color: #d33;
|
||
|
}
|
||
|
|
||
|
div.patrollink {
|
||
|
font-size: 75%;
|
||
|
text-align: right;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Forms
|
||
|
*/
|
||
|
td.mw-label {
|
||
|
text-align: right;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
|
||
|
td.mw-input {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
td.mw-submit {
|
||
|
text-align: left;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.mw-input-with-label {
|
||
|
white-space: nowrap;
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Image captions.
|
||
|
*
|
||
|
* This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
|
||
|
*/
|
||
|
|
||
|
/* @noflip */
|
||
|
.mw-content-ltr .thumbcaption {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
/* @noflip */
|
||
|
.mw-content-ltr .magnify {
|
||
|
float: right;
|
||
|
}
|
||
|
|
||
|
/* @noflip */
|
||
|
.mw-content-rtl .thumbcaption {
|
||
|
text-align: right;
|
||
|
}
|
||
|
|
||
|
/* @noflip */
|
||
|
.mw-content-rtl .magnify {
|
||
|
float: left;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Categories
|
||
|
*/
|
||
|
#catlinks {
|
||
|
/**
|
||
|
* Overrides text justification (user preference)
|
||
|
* See T33990
|
||
|
*/
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.catlinks ul {
|
||
|
display: inline;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
list-style: none none;
|
||
|
}
|
||
|
|
||
|
.catlinks li {
|
||
|
display: inline-block;
|
||
|
line-height: 1.25em;
|
||
|
border-left: 1px solid #a2a9b1;
|
||
|
margin: 0.125em 0;
|
||
|
padding: 0 0.5em;
|
||
|
zoom: 1;
|
||
|
}
|
||
|
|
||
|
.catlinks li:first-child {
|
||
|
padding-left: 0.25em;
|
||
|
border-left: 0;
|
||
|
}
|
||
|
|
||
|
/* (T7346) make category redirects italic */
|
||
|
.catlinks li a.mw-redirect {
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Hidden categories
|
||
|
*/
|
||
|
.mw-hidden-cats-hidden {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.catlinks-allhidden {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Convenience links to edit delete and protect reasons
|
||
|
*/
|
||
|
p.mw-protect-editreasons,
|
||
|
p.mw-delete-editreasons {
|
||
|
font-size: 90%;
|
||
|
text-align: right;
|
||
|
}
|
||
|
|
||
|
/* The auto-generated edit comments */
|
||
|
.autocomment,
|
||
|
.autocomment a,
|
||
|
.autocomment a:visited {
|
||
|
color: #72777d;
|
||
|
}
|
||
|
|
||
|
/** Generic minor/bot/newpage styling (recent changes) */
|
||
|
.newpage,
|
||
|
.minoredit,
|
||
|
.botedit {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Recreating deleted page warning
|
||
|
* Reupload file warning
|
||
|
* Page protection warning
|
||
|
* incl. log entries for these warnings
|
||
|
*/
|
||
|
div.mw-warning-with-logexcerpt {
|
||
|
padding: 3px;
|
||
|
margin-bottom: 3px;
|
||
|
border: 2px solid #2a4b8d;
|
||
|
clear: both;
|
||
|
}
|
||
|
|
||
|
div.mw-warning-with-logexcerpt ul li {
|
||
|
font-size: 90%;
|
||
|
}
|
||
|
|
||
|
/* (show/hide) revision deletion links */
|
||
|
span.mw-revdelundel-link,
|
||
|
strong.mw-revdelundel-link {
|
||
|
font-size: 90%;
|
||
|
}
|
||
|
|
||
|
span.mw-revdelundel-hidden,
|
||
|
input.mw-revdelundel-hidden {
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
|
||
|
td.mw-revdel-checkbox,
|
||
|
th.mw-revdel-checkbox {
|
||
|
padding-right: 10px;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
/* red links; see T38276 */
|
||
|
a.new {
|
||
|
color: #ba0000;
|
||
|
}
|
||
|
|
||
|
/* Plainlinks - this can be used to switch
|
||
|
* off special external link styling */
|
||
|
.plainlinks a.external {
|
||
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
||
|
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
|
||
|
}
|
||
|
|
||
|
/* External URLs should always be treated as LTR (T6330) */
|
||
|
/* @noflip */ .rtl a.external.free,
|
||
|
.rtl a.external.autonumber {
|
||
|
direction: ltr;
|
||
|
unicode-bidi: embed;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* wikitable class for skinning normal tables
|
||
|
* keep in sync with commonPrint.css
|
||
|
*/
|
||
|
.wikitable {
|
||
|
background-color: #f8f9fa;
|
||
|
color: #222;
|
||
|
margin: 1em 0;
|
||
|
border: 1px solid #a2a9b1;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
.wikitable > tr > th,
|
||
|
.wikitable > tr > td,
|
||
|
.wikitable > * > tr > th,
|
||
|
.wikitable > * > tr > td {
|
||
|
border: 1px solid #a2a9b1;
|
||
|
padding: 0.2em 0.4em;
|
||
|
}
|
||
|
|
||
|
.wikitable > tr > th,
|
||
|
.wikitable > * > tr > th {
|
||
|
background-color: #eaecf0;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.wikitable > caption {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
/* Error, warning, success and neutral messages */
|
||
|
.error,
|
||
|
.warning,
|
||
|
.success {
|
||
|
font-size: larger;
|
||
|
}
|
||
|
|
||
|
.error {
|
||
|
color: #d33;
|
||
|
}
|
||
|
|
||
|
.warning {
|
||
|
color: #ac6600;
|
||
|
}
|
||
|
|
||
|
.success {
|
||
|
color: #14866d;
|
||
|
}
|
||
|
|
||
|
/* general info/warning box for SP */
|
||
|
.mw-infobox {
|
||
|
border: 2px solid #fc3;
|
||
|
margin: 0.5em;
|
||
|
clear: left;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
.mw-infobox-left {
|
||
|
margin: 7px;
|
||
|
float: left;
|
||
|
width: 35px;
|
||
|
}
|
||
|
|
||
|
.mw-infobox-right {
|
||
|
margin: 0.5em 0.5em 0.5em 49px;
|
||
|
}
|
||
|
|
||
|
/* Note on preview page */
|
||
|
.previewnote {
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
|
||
|
.visualClear {
|
||
|
clear: both;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Data table style
|
||
|
*
|
||
|
* Table with suddle borders
|
||
|
* and row-highlighting.
|
||
|
*/
|
||
|
.mw-datatable {
|
||
|
border: 1px solid #a2a9b1;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
.mw-datatable td,
|
||
|
.mw-datatable th {
|
||
|
border: 1px solid #a2a9b1;
|
||
|
padding: 0.2em 0.4em;
|
||
|
}
|
||
|
|
||
|
.mw-datatable th {
|
||
|
background-color: #eaeeff;
|
||
|
}
|
||
|
|
||
|
.mw-datatable td {
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
|
||
|
.mw-datatable tr:hover td {
|
||
|
background-color: #eaf3ff;
|
||
|
}
|
||
|
|
||
|
/* Images */
|
||
|
|
||
|
/* @noflip */ div.tright,
|
||
|
div.floatright,
|
||
|
table.floatright {
|
||
|
clear: right;
|
||
|
float: right;
|
||
|
}
|
||
|
|
||
|
/* @noflip */ div.tleft,
|
||
|
div.floatleft,
|
||
|
table.floatleft {
|
||
|
float: left;
|
||
|
clear: left;
|
||
|
}
|
||
|
|
||
|
div.floatright,
|
||
|
table.floatright,
|
||
|
div.floatleft,
|
||
|
table.floatleft {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
/* T14205 */
|
||
|
#mw-credits a {
|
||
|
unicode-bidi: embed;
|
||
|
}
|
||
|
|
||
|
/* Print footer should be hidden by default in screen. */
|
||
|
.printfooter {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
/* For developers */
|
||
|
.xdebug-error {
|
||
|
position: absolute;
|
||
|
z-index: 99;
|
||
|
}
|
||
|
|
||
|
.mw-editsection {
|
||
|
-moz-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
-ms-user-select: none;
|
||
|
user-select: none;
|
||
|
}
|
||
|
|
||
|
/* Display editsection links smaller and next to headings */
|
||
|
.mw-editsection,
|
||
|
.mw-editsection-like {
|
||
|
font-size: small;
|
||
|
font-weight: normal;
|
||
|
margin-left: 1em;
|
||
|
vertical-align: baseline;
|
||
|
/* Reset line-height; headings tend to have it set to larger values */
|
||
|
line-height: 1em;
|
||
|
}
|
||
|
|
||
|
/* Correct directionality when page dir is different from site/user dir */
|
||
|
/* @noflip */
|
||
|
.mw-content-ltr .mw-editsection,
|
||
|
.mw-content-rtl .mw-content-ltr .mw-editsection {
|
||
|
margin-left: 1em;
|
||
|
}
|
||
|
|
||
|
/* @noflip */
|
||
|
.mw-content-rtl .mw-editsection,
|
||
|
.mw-content-ltr .mw-content-rtl .mw-editsection {
|
||
|
margin-right: 1em;
|
||
|
}
|
||
|
|
||
|
/* Prevent citations and subscripts from interfering with the line-height */
|
||
|
sup,
|
||
|
sub {
|
||
|
line-height: 1;
|
||
|
}
|