|
|
(282 mellemliggende versioner af 7 andre brugere ikke vist) |
Linje 1: |
Linje 1: |
| /* | | /** CSS inkluderet her vil være aktivt for alle brugere. */ |
|
| |
|
| '''Common [[Cascading Style Sheets|CSS]] for all skins'''
| | /* To make images responsive */ |
| | .res-img img { |
| | max-width:100%; |
| | height:auto; |
| | } |
| | |
| | /* Liberapay Button */ |
| | .body .liberapay-btn { |
| | background-color: #f6c915; |
| | border-radius: 4px |
| | color: #1a171b; |
| | display: inline-block; |
| | font-family: Helvetica Neue,Helvetica,sans-serif; |
| | font-size: 14px; |
| | font-weight: 700; |
| | line-height: 22px; |
| | padding: 5px 7px 3px; |
| | position: relative; |
| | text-decoration: none; |
| | } |
| | body .liberapay-btn:hover { |
| | background-color: #fbce1a; |
| | } |
| | .liberapay-btn > svg { |
| | position: absolute; |
| | left: 7px; |
| | top: 7px; |
| | } |
| | .liberapay-btn > span { |
| | margin-left: 19px; |
| | } |
|
| |
|
| '''Notice to Administrators!'''
| | /* Element animator */ |
| | #siteNotice .animated > *:not(.animated-active), |
| | #bodyContent .animated > *:not(.animated-active), |
| | #bodyContent .animated > .animated-subframe > *:not(.animated-active) { |
| | display: none; |
| | } |
| | #bodyContent span.animated, |
| | #bodyContent span.animated.animated-visible > *, |
| | #bodyContent span.animated.animated-visible > .animated-subframe > * { |
| | display: inline-block; |
| | } |
| | #bodyContent div.animated.animated-visible > *, |
| | #bodyContent div.animated.animated-visible > .animated-subframe > * { |
| | display: block; |
| | } |
|
| |
|
| Any changes to [[Mediawiki:Monobook.css|Monobook.css]] or [[MediaWiki:Common.css|Common.css]] should be first proposed to [[Wikipedia:Village Pump]].
| | .siteNoticeScroll { |
| | width: 100%; |
| | height: 25px; |
| | line-height: 25px; |
| | overflow: hidden |
| | } |
|
| |
|
| Always check with the [http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DMediaWiki%3ACommon.css%26action%3Draw%26ctype%3Dtext%2Fcss&usermedium=all W3C CSS Validation Service] ([http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DMediaWiki%3ACommon.css%26action%3Draw%26ctype%3Dtext%2Fcss&warning=2&profile=css3&usermedium=all CVS version]) after any changes.
| | .siteNoticeScroll li { |
| | height: 25px; |
| | list-style: none; |
| | text-align: center |
| | } |
|
| |
|
| Thank you.
| | /* Old Compat */ |
|
| |
|
| (In [[Mozilla]] and [[Opera (web browser)|Opera]], you can test style changes dynamically with the [http://www.squarefree.com/bookmarklets/webdevel.html test styles] bookmarklet from squarefree.com. It pops up a window for adding style rules, and updates the page as you type.)
| | /* Infobox template style */ |
| | .infobox { |
| | border: 1px solid #a2a9b1; |
| | border-spacing: 3px; |
| | background-color: #f8f9fa; |
| | color: black; |
| | /* @noflip */ |
| | margin: 0.5em 0 0.5em 1em; |
| | padding: 0.2em; |
| | /* @noflip */ |
| | float: right; |
| | /* @noflip */ |
| | clear: right; |
| | font-size: 88%; |
| | line-height: 1.5em; |
| | width: 22em; |
| | } |
|
| |
|
| See also the [[Wikipedia:Catalogue of CSS classes|catalogue of CSS classes]].
| | .infobox-header, |
| {{interwiki-all}} | | .infobox-label, |
| <pre><nowiki>*/
| | .infobox-above, |
| | .infobox-full-data, |
| | .infobox-data, |
| | .infobox-below, |
| | .infobox-subheader, |
| | .infobox-image, |
| | .infobox-navbar, |
| | /* Remove element selector when every .infobox thing is using the standard module/templates */ |
| | .infobox th, |
| | .infobox td { |
| | vertical-align: top; |
| | } |
|
| |
|
| /* Main page fixes */ | | .infobox-label, |
| .interwiki-completelist { | | .infobox-data, |
| font-weight: bold;
| | /* Remove element selector when every .infobox thing is using the standard module/templates */ |
| | .infobox th, |
| | .infobox td { |
| | /* @noflip */ |
| | text-align: left; |
| } | | } |
|
| |
|
| /* make the list of references look smaller */ | | /* Remove .infobox when element selectors above are removed */ |
| ol.references {
| | .infobox .infobox-above, |
| font-size: 100%;
| | .infobox .infobox-title, |
| | /* Remove element selector when every .infobox thing is using the standard module/templates */ |
| | .infobox caption { |
| | font-size: 125%; |
| | font-weight: bold; |
| | text-align: center; |
| } | | } |
|
| |
|
| .references-small { font-size: 90%;} | | .infobox-title, |
| | /* Remove element selector when every .infobox thing is using the standard module/templates */ |
| | .infobox caption { |
| | padding: 0.2em; |
| | } |
|
| |
|
| /* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ | | /* Remove .infobox when element selectors above are removed */ |
| /* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */
| | .infobox .infobox-header, |
| /* column-count is from the CSS3 module "CSS Multi-column Layout" */
| | .infobox .infobox-subheader, |
| /* Please ignore any validator errors caused by these two lines */
| | .infobox .infobox-image, |
| .references-2column { | | .infobox .infobox-full-data, |
| font-size: 90%;
| | .infobox .infobox-below { |
| -moz-column-count:2;
| | text-align: center; |
| column-count:2;
| |
| } | | } |
|
| |
|
| .same-bg { background: none } | | /* Remove .infobox when element selectors above are removed */ |
| | .infobox .infobox-navbar { |
| | /* @noflip */ |
| | text-align: right; |
| | } |
|
| |
|
| /* wikitable/prettytable class for skinning normal tables */ | | /* Normal font styling for wikitable row headers with scope="row" tag */ |
| | .wikitable.plainrowheaders th[scope=row] { |
| | font-weight: normal; |
| | /* @noflip */ |
| | text-align: left; |
| | } |
|
| |
|
| table.wikitable,
| | /* Lists in wikitable data cells are always left-aligned */ |
| table.prettytable {
| | .wikitable td ul, |
| margin: 1em 1em 1em 0;
| | .wikitable td ol, |
| background: #f9f9f9;
| | .wikitable td dl { |
| border: 1px #aaa solid;
| | /* @noflip */ |
| border-collapse: collapse;
| | text-align: left; |
| } | | } |
|
| |
|
| table.wikitable th, table.wikitable td,
| | /* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */ |
| table.prettytable th, table.prettytable td { | | table.mw-hiero-table td { |
| border: 1px #aaa solid;
| | vertical-align: middle; |
| padding: 0.2em;
| |
| } | | } |
|
| |
|
| table.wikitable th,
| | |
| table.prettytable th {
| | /* Messagebox templates */ |
| background: #f2f2f2;
| | .messagebox { |
| text-align: center;
| | border: 1px solid #a2a9b1; |
| | background-color: #f8f9fa; |
| | width: 80%; |
| | margin: 0 auto 1em auto; |
| | padding: .2em; |
| } | | } |
|
| |
|
| table.wikitable caption,
| | .messagebox.merge { |
| table.prettytable caption {
| | border: 1px solid #c0b8cc; |
| margin-left: inherit;
| | background-color: #f0e5ff; |
| margin-right: inherit;
| | text-align: center; |
| font-weight: bold;
| |
| } | | } |
|
| |
|
| /* default skin for navigation boxes */
| | .messagebox.cleanup { |
| table.navbox {
| | border: 1px solid #9f9fff; |
| background-color: #f9f9f9;
| | background-color: #efefff; |
| border: 1px solid #aaa;
| | text-align: center; |
| clear: both;
| |
| font-size: 90%;
| |
| margin: 1em 0em 0em;
| |
| padding: 5px;
| |
| text-align: center;
| |
| width: 100%;
| |
| } | | } |
|
| |
|
| table.navbox th {
| | .messagebox.standard-talk { |
| background-color: #ccf;
| | border: 1px solid #c0c090; |
| padding-left: 1em;
| | background-color: #f8eaba; |
| padding-right: 1em;
| | margin: 4px auto; |
| } | | } |
|
| |
|
| table.navbox tr:not(:first-child) th {
| | |
| background-color: #ddf;
| | .messagebox.small { |
| | width: 238px; |
| | font-size: 85%; |
| | /* @noflip */ |
| | float: right; |
| | clear: both; |
| | /* @noflip */ |
| | margin: 0 0 1em 1em; |
| | line-height: 1.25em; |
| } | | } |
|
| |
|
| @media print { | | .messagebox.small-talk { |
| .navbox {
| | width: 238px; |
| display: none;
| | font-size: 85%; |
| }
| | /* @noflip */ |
| | float: right; |
| | clear: both; |
| | /* @noflip */ |
| | margin: 0 0 1em 1em; |
| | line-height: 1.25em; |
| | background-color: #f8eaba; |
| } | | } |
|
| |
|
| /* Infobox template style */ | | /* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */ |
| | th.mbox-text, td.mbox-text { /* The message body cell(s) */ |
| | border: none; |
| | /* @noflip */ |
| | padding: 0.25em 0.9em; /* 0.9em left/right */ |
| | width: 100%; /* Make all mboxes the same width regardless of text length */ |
| | } |
|
| |
|
| .infobox { | | td.mbox-image { /* The left image cell */ |
| border: 1px solid #aaa;
| | border: none; |
| background-color: #f9f9f9;
| | /* @noflip */ |
| color: black;
| | padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */ |
| margin-bottom: 0.5em;
| | text-align: center; |
| margin-left: 1em;
| |
| padding: 0.2em;
| |
| float: right;
| |
| clear: right;
| |
| } | | } |
| .infobox td, | | |
| .infobox th { | | td.mbox-imageright { /* The right image cell */ |
| vertical-align: top;
| | border: none; |
| | /* @noflip */ |
| | padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */ |
| | text-align: center; |
| } | | } |
| .infobox caption { | | |
| font-size: larger;
| | td.mbox-empty-cell { /* An empty narrow cell */ |
| margin-left: inherit;
| | border: none; |
| | padding: 0; |
| | width: 1px; |
| } | | } |
| .infobox.bordered { | | |
| border-collapse: collapse;
| | /* Article message box styles */ |
| | table.ambox { |
| | margin: 0 10%; /* 10% = Will not overlap with other elements */ |
| | border: 1px solid #a2a9b1; |
| | /* @noflip */ |
| | border-left: 10px solid #36c; /* Default "notice" blue */ |
| | background-color: #fbfbfb; |
| | box-sizing: border-box; |
| } | | } |
| .infobox.bordered td, | | |
| .infobox.bordered th { | | /* Single border between stacked boxes. */ |
| border: 1px solid #aaa;
| | table.ambox + table.ambox, |
| | table.ambox + .mw-empty-elt + table.ambox { |
| | margin-top: -1px; |
| } | | } |
| .infobox.bordered .borderless td, | | |
| .infobox.bordered .borderless th { | | .ambox th.mbox-text, |
| border: 0;
| | .ambox td.mbox-text { /* The message body cell(s) */ |
| | padding: 0.25em 0.5em; /* 0.5em left/right */ |
| } | | } |
|
| |
|
| .infobox.sisterproject { | | .ambox td.mbox-image { /* The left image cell */ |
| width: 20em;
| | /* @noflip */ |
| font-size: 90%; | | padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */ |
| } | | } |
|
| |
|
| @media print {
| | .ambox td.mbox-imageright { /* The right image cell */ |
| .infobox.sisterproject {
| | /* @noflip */ |
| display: none;
| | padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */ |
| }
| |
| } | | } |
|
| |
|
| /* styles for bordered infobox with merged rows */ | | table.ambox-notice { |
| .infobox.bordered .mergedtoprow td,
| | /* @noflip */ |
| .infobox.bordered .mergedtoprow th {
| | border-left: 10px solid #36c; /* Blue */ |
| border: 0;
| |
| border-top: 1px solid #aaa;
| |
| border-right: 1px solid #aaa;
| |
| } | | } |
|
| |
|
| .infobox.bordered .mergedrow td, | | table.ambox-speedy { |
| .infobox.bordered .mergedrow th {
| | /* @noflip */ |
| border: 0;
| | border-left: 10px solid #b32424; /* Red */ |
| border-right: 1px solid #aaa;
| | background-color: #fee7e6; /* Pink */ |
| } | | } |
|
| |
|
| | table.ambox-delete { |
| | /* @noflip */ |
| | border-left: 10px solid #b32424; /* Red */ |
| | } |
|
| |
|
| /* styles for geography infoboxes, e.g. countries, country subdivisions, cities, etc. */ | | table.ambox-content { |
| | /* @noflip */ |
| | border-left: 10px solid #f28500; /* Orange */ |
| | } |
|
| |
|
| .infobox.geography { | | table.ambox-style { |
| text-align: left;
| | /* @noflip */ |
| border-collapse: collapse;
| | border-left: 10px solid #fc3; /* Yellow */ |
| line-height: 1.2em;
| |
| font-size: 90%;
| |
| } | | } |
|
| |
|
| .infobox.geography td, | | table.ambox-move { |
| .infobox.geography th {
| | /* @noflip */ |
| border-top: solid 1px #aaa;
| | border-left: 10px solid #9932cc; /* Purple */ |
| padding: 0.4em 0.2em 0.4em 0.8em; | |
| } | | } |
| .infobox.geography .mergedtoprow td,
| | |
| .infobox.geography .mergedtoprow th { | | table.ambox-protection { |
| border-top: solid 1px #aaa;
| | /* @noflip */ |
| padding: 0.4em 0.2em 0.2em 0.8em; | | border-left: 10px solid #a2a9b1; /* Gray-gold */ |
| } | | } |
|
| |
|
| .infobox.geography .mergedrow td,
| | /* Image message box styles */ |
| .infobox.geography .mergedrow th { | | table.imbox { |
| border: 0;
| | margin: 4px 10%; |
| padding: 0 0.2em 0.2em 0.8em;
| | border-collapse: collapse; |
| | border: 3px solid #36c; /* Default "notice" blue */ |
| | background-color: #fbfbfb; |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| .infobox.geography .mergedbottomrow td, | | .imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */ |
| .infobox.geography .mergedbottomrow th { | | margin: 0 -0.5em; /* 0.9 - 0.5 = 0.4em left/right. */ |
| border-top: 0;
| | display: block; /* Fix for webkit to force 100% width. */ |
| border-bottom: solid 1px #aaa;
| |
| padding: 0 0.2em 0.4em 0.8em;
| |
| } | | } |
|
| |
|
| .infobox.geography .maptable td, | | .mbox-inside .imbox { /* For imboxes inside other templates. */ |
| .infobox.geography .maptable th {
| | margin: 4px; |
| border: 0; | |
| padding: 0 0 0 0;
| |
| } | | } |
|
| |
|
| /* Style for "notices" */
| | table.imbox-notice { |
| .notice { | | border: 3px solid #36c; /* Blue */ |
| margin: 1em;
| |
| padding: 0.2em;
| |
| } | | } |
|
| |
|
| #disambig {
| | table.imbox-speedy { |
| border-top: 1px solid #ccc;
| | border: 3px solid #b32424; /* Red */ |
| border-bottom: 1px solid #ccc;
| | background-color: #fee7e6; /* Pink */ |
| } | | } |
|
| |
|
| #spoiler {
| | table.imbox-delete { |
| border-top: 2px solid #ddd;
| | border: 3px solid #b32424; /* Red */ |
| border-bottom:2px solid #ddd;
| |
| } | | } |
|
| |
|
| /* Standard talk template style */ | | table.imbox-content { |
| | border: 3px solid #f28500; /* Orange */ |
| | } |
|
| |
|
| .Talk-Notice { | | table.imbox-style { |
| border: 1px solid #C0C090;
| | border: 3px solid #fc3; /* Yellow */ |
| background-color: #F8EABA;
| |
| margin-bottom: 3px;
| |
| width: 85%;
| |
| border-spacing: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| } | | } |
|
| |
|
| .Talk-Notice:after { | | table.imbox-move { |
| content: "The CSS for this template should be changed. See [[Wikipedia:Template Standardisation]].";
| | border: 3px solid #9932cc; /* Purple */ |
| } | | } |
|
| |
|
| /* Make template background appear correctly on all browsers */
| | table.imbox-protection { |
| .Talk-Notice td { | | border: 3px solid #a2a9b1; /* Gray-gold */ |
| background: inherit;
| |
| } | | } |
|
| |
|
| /* Persondata */
| | table.imbox-license { |
| table.persondata { | | border: 3px solid #88a; /* Dark gray */ |
| border: 1px solid #aaa;
| | background-color: #f7f8ff; /* Light gray */ |
| display: none;
| |
| speak: none;
| |
| } | | } |
| .persondata-label { | | |
| color: #aaa;
| | table.imbox-featured { |
| | border: 3px solid #cba135; /* Brown-gold */ |
| } | | } |
|
| |
|
| /* Makes redirects appear in italics on [[Special:Allpages]] */ | | /* Category message box styles */ |
| .allpagesredirect { | | table.cmbox { |
| font-style: italic;
| | margin: 3px 10%; |
| | border-collapse: collapse; |
| | border: 1px solid #a2a9b1; |
| | background-color: #dfe8ff; /* Default "notice" blue */ |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| /* Choose whether to have AD/BC dates or CE/BCE dates*/ | | table.cmbox-notice { |
| | background-color: #d8e8ff; /* Blue */ |
| | } |
|
| |
|
| /* First, the default : display both : See templates ADCE and BCEBC for how these are used*/
| | table.cmbox-speedy { |
| .Use_Default_Date_Convention { display: inline; }
| | margin-top: 4px; |
| .Use_AD_and_BC { display: none; }
| | margin-bottom: 4px; |
| .Use_BCE_and_CE { display: none; }
| | border: 4px solid #b32424; /* Red */ |
| | background-color: #ffdbdb; /* Pink */ |
| | } |
|
| |
|
| /* If you want to display AD and BC add the following to User:You/monobook.css page */
| | table.cmbox-delete { |
| /*
| | background-color: #ffdbdb; /* Pink */ |
| .Use_Default_Date_Convention { display: none; }
| | } |
| .Use_AD_and_BC { display:inline; } | |
| .Use_BCE_and_CE { display:none; }
| |
| */ | |
|
| |
|
| /*If you want to display CE and BCE add the following to User:You/monobook.css page */
| | table.cmbox-content { |
| /*
| | background-color: #ffe7ce; /* Orange */ |
| .Use_Default_Date_Convention { display: none; }
| | } |
| .Use_AD_and_BC { display:none; } | |
| .Use_BCE_and_CE {display:inline; }
| |
| */ | |
|
| |
|
| /* Class for links with loudspeaker icon next to them */ | | table.cmbox-style { |
| | background-color: #fff9db; /* Yellow */ |
| | } |
|
| |
|
| .audiolink a{ | | table.cmbox-move { |
| background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png") center left no-repeat !important;
| | background-color: #e4d8ff; /* Purple */ |
| padding-left: 16px !important;
| |
| padding-right: 0 !important;
| |
| } | | } |
|
| |
|
| /* Icons for medialist templates [[Template:Listen]], [[Template:Multi-listen_start]], [[Template:Video]], [[Template:Multi-video_start]] */ | | table.cmbox-protection { |
| | background-color: #efefe1; /* Gray-gold */ |
| | } |
|
| |
|
| div.listenlist {
| | /* Other pages message box styles */ |
| background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-speakernotes.png/30px-Gnome-speakernotes.png");
| | table.ombox { |
| padding-left: 40px;
| | margin: 4px 10%; |
| | border-collapse: collapse; |
| | border: 1px solid #a2a9b1; /* Default "notice" gray */ |
| | background-color: #f8f9fa; |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| div.videolist, div.multivideolist {
| | table.ombox-notice { |
| background: url("http://upload.wikimedia.org/wikipedia/en/thumb/2/20/Tango-video-x-generic.png/40px-Tango-video-x-generic.png");
| | border: 1px solid #a2a9b1; /* Gray */ |
| padding-left: 50px;
| |
| } | | } |
|
| |
|
| /* Style rules for media list templates */ | | table.ombox-speedy { |
| | border: 2px solid #b32424; /* Red */ |
| | background-color: #fee7e6; /* Pink */ |
| | } |
|
| |
|
| div.medialist {
| | table.ombox-delete { |
| min-height: 50px;
| | border: 2px solid #b32424; /* Red */ |
| margin: 1em;
| |
| background-position: top left;
| |
| background-repeat: no-repeat;
| |
| } | | } |
|
| |
|
| div.medialist ul {
| | table.ombox-content { |
| list-style-type: none;
| | border: 1px solid #f28500; /* Orange */ |
| list-style-image: none;
| |
| margin: 0;
| |
| } | | } |
|
| |
|
| div.medialist ul li {
| | table.ombox-style { |
| padding-bottom: 0.5em;
| | border: 1px solid #fc3; /* Yellow */ |
| } | | } |
|
| |
|
| div.medialist ul li li {
| | table.ombox-move { |
| font-size: 91%;
| | border: 1px solid #9932cc; /* Purple */ |
| padding-bottom: 0;
| |
| } | | } |
|
| |
|
| /* Change the external link icon to an Adobe icon for all PDF files */
| | table.ombox-protection { |
| /* (in browsers that support these CSS selectors, like Mozilla and Opera) */
| | border: 2px solid #a2a9b1; /* Gray-gold */ |
| #bodyContent a[href$=".pdf"].external,
| |
| #bodyContent a[href*=".pdf?"].external,
| |
| #bodyContent a[href*=".pdf#"].external,
| |
| #bodyContent a[href$=".PDF"].external,
| |
| #bodyContent a[href*=".PDF?"].external,
| |
| #bodyContent a[href*=".PDF#"].external {
| |
| background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat;
| |
| padding-right: 16px;
| |
| } | | } |
|
| |
|
| /* Change the external link icon to an Adobe icon anywhere the PDFlink class */ | | /* Talk page message box styles */ |
| /* is used (notably Template:PDFlink). This works in IE, unlike the above. */
| | table.tmbox { |
| span.PDFlink a {
| | margin: 4px 10%; |
| background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat !important;
| | border-collapse: collapse; |
| padding-right: 17px !important;
| | border: 1px solid #c0c090; /* Default "notice" gray-brown */ |
| | background-color: #f8eaba; |
| | min-width: 80%; |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| /* Content in columns with CSS instead of tables [[Template:Columns]] */
| | .tmbox.mbox-small { |
| div.columns-2 div.column {
| | min-width: 0; /* reset the min-width of tmbox above */ |
| float: left;
| |
| width: 50%;
| |
| min-width: 300px;
| |
| } | | } |
|
| |
|
| div.columns-3 div.column {
| | .mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */ |
| float: left;
| | margin: 2px 0; /* this declaration overrides other styles (including mbox-small above) */ |
| width: 33.3%;
| | width: 100%; /* For Safari and Opera */ |
| min-width: 200px;
| |
| } | | } |
|
| |
|
| div.columns-4 div.column {
| | .mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when */ |
| float: left;
| | line-height: 1.5em; /* also "nested", so reset styles that are */ |
| width: 25%;
| | font-size: 100%; /* set in "mbox-small" above. */ |
| min-width: 150px;
| |
| } | | } |
|
| |
|
| div.columns-5 div.column {
| | table.tmbox-speedy { |
| float: left;
| | border: 2px solid #b32424; /* Red */ |
| width: 20%;
| | background-color: #fee7e6; /* Pink */ |
| min-width: 120px;
| |
| } | | } |
|
| |
|
| /*Add formatting to make sure that "external references" from [[Template:Ref]] do
| | table.tmbox-delete { |
| not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
| | border: 2px solid #b32424; /* Red */ |
| that the HTML code contained a SPAN following the anchor A; this SPAN had the class
| | } |
| "urlexpansion", which was not displayed on screen, but was shown when the medium was
| |
| "print". The rules below ensure (a) that there is no extra padding to the right of
| |
| the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
| |
| the link, and (c) that this SPAN of class "urlexpansion" is never shown.
| |
| ~~~~
| |
| */ | |
|
| |
|
| .plainlinksneverexpand { | | table.tmbox-content { |
| background: none ! important;
| | border: 2px solid #f28500; /* Orange */ |
| padding: 0 ! important;
| |
| } | | } |
|
| |
|
| .plainlinksneverexpand .urlexpansion { | | table.tmbox-style { |
| display: none ! important;
| | border: 2px solid #fc3; /* Yellow */ |
| } | | } |
|
| |
|
| /* Make sure that ext links displayed within "plainlinksneverexpand" don't get
| | table.tmbox-move { |
| the arrow...
| | border: 2px solid #9932cc; /* Purple */ |
| */
| |
| .plainlinksneverexpand a {
| |
| background: none !important;
| |
| padding: 0 !important; | |
| } | | } |
|
| |
|
| /* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
| | table.tmbox-protection, |
| following the anchor A, the anchor itself now has class "external autonumber" and the
| | table.tmbox-notice { |
| expansion is inserted when printing (see the common printing style sheet at
| | border: 1px solid #c0c090; /* Gray-brown */ |
| http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
| |
| element of CSS. We have to switch this off for links due to Template:Ref!
| |
| ~~~~ | |
| */ | |
| .plainlinksneverexpand a.external.text:after {
| |
| display: none !important;
| |
| } | | } |
| .plainlinksneverexpand a.external.autonumber:after { | | |
| display: none !important;
| | /* Footer and header message box styles */ |
| | table.fmbox { |
| | clear: both; |
| | margin: 0.2em 0; |
| | width: 100%; |
| | border: 1px solid #a2a9b1; |
| | background-color: #f8f9fa; /* Default "system" gray */ |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| /* Messagebox templates */
| | table.fmbox-system { |
| | background-color: #f8f9fa; |
| | } |
|
| |
|
| .messagebox { | | table.fmbox-warning { |
| border: 1px solid #aaa;
| | border: 1px solid #bb7070; /* Dark pink */ |
| background-color: #f9f9f9;
| | background-color: #ffdbdb; /* Pink */ |
| width: 80%;
| |
| margin: 0 auto 1em auto;
| |
| padding: .2em;
| |
| } | | } |
| .messagebox.merge { | | |
| border: 1px solid #c0b8cc;
| | table.fmbox-editnotice { |
| background-color: #f0e5ff;
| | background-color: transparent; |
| text-align: center;
| |
| } | | } |
| .messagebox.cleanup { | | |
| border: 1px solid #9f9fff;
| | /* Div based "warning" style fmbox messages. */ |
| background-color: #efefff;
| | div.mw-warning-with-logexcerpt, |
| text-align: center;
| | div.mw-lag-warn-high, |
| | div.mw-cascadeprotectedwarning, |
| | div#mw-protect-cascadeon, |
| | div.titleblacklist-warning { |
| | clear: both; |
| | margin: 0.2em 0; |
| | border: 1px solid #bb7070; |
| | background-color: #ffdbdb; |
| | padding: 0.25em 0.9em; |
| | box-sizing: border-box; |
| } | | } |
| .messagebox.standard-talk { | | |
| border: 1px solid #c0c090;
| | /* Use default color for partial block fmbox banner per [[Special:PermaLink/1028105567#pblock-style]] */ |
| background-color: #f8eaba;
| | .mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt { |
| | border-color: #fc3; |
| | background-color: #fef6e7; |
| } | | } |
|
| |
|
| /* Put a checker background at the image description page only visible if the image has transparent background */ | | /* These mbox-small classes must be placed after all other |
| | ambox/tmbox/ombox etc classes. "html body.mediawiki" is so |
| | they override "table.ambox + table.ambox" above. */ |
| | html body.mediawiki .mbox-small { /* For the "small=yes" option. */ |
| | /* @noflip */ |
| | clear: right; |
| | /* @noflip */ |
| | float: right; |
| | /* @noflip */ |
| | margin: 4px 0 4px 1em; |
| | box-sizing: border-box; |
| | width: 238px; |
| | font-size: 88%; |
| | line-height: 1.25em; |
| | } |
|
| |
|
| #file img {background: url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}
| | html body.mediawiki .mbox-small-left { /* For the "small=left" option. */ |
| | /* @noflip */ |
| | margin: 4px 1em 4px 0; |
| | box-sizing: border-box; |
| | overflow: hidden; |
| | width: 238px; |
| | border-collapse: collapse; |
| | font-size: 88%; |
| | line-height: 1.25em; |
| | } |
|
| |
|
| /* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6. The empty comment must remain. Please copy any changes to [[Template:IPA fonts]] and [[Template:Unicode fonts]]. */ | | /* Style for compact ambox */ |
| .IPA { | | /* Hide the images */ |
| font-family: "Chrysanthi Unicode", "Doulos SIL", Gentium, GentiumAlt, Code2000, "TITUS Cyberbit Basic", "DejaVu Sans", "Bitstream Cyberbit", "Arial Unicode MS", "Lucida Sans Unicode", "Hiragino Kaku Gothic Pro", "Matrix Unicode";
| | .compact-ambox table .mbox-image, |
| font-family /**/:inherit;
| | .compact-ambox table .mbox-imageright, |
| | .compact-ambox table .mbox-empty-cell { |
| | display: none; |
| } | | } |
| .Unicode { | | |
| font-family: Code2000, "TITUS Cyberbit Basic", "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit", "Bitstream CyberBase", Thryomanes, Gentium, GentiumAlt, "Lucida Grande", "Arial Unicode MS", "Microsoft Sans Serif", "Lucida Sans Unicode";
| | /* Remove borders, backgrounds, padding, etc. */ |
| font-family /**/:inherit;
| | .compact-ambox table.ambox { |
| | border: none; |
| | border-collapse: collapse; |
| | background-color: transparent; |
| | margin: 0 0 0 1.6em !important; |
| | padding: 0 !important; |
| | width: auto; |
| | display: block; |
| } | | } |
| .latinx { | | |
| font-family: Code2000, "TITUS Cyberbit Basic", "Microsoft Sans Serif";
| | body.mediawiki .compact-ambox table.mbox-small-left { |
| font-family /**/:inherit;
| | font-size: 100%; |
| | width: auto; |
| | margin: 0; |
| } | | } |
| .polytonic { | | |
| font-family: Athena, Gentium, "Palatino Linotype", "Arial Unicode MS", "Lucida Sans Unicode", "Lucida Grande", Code2000;
| | /* Style the text cell as a list item and remove its padding */ |
| font-family /**/:inherit;
| | .compact-ambox table .mbox-text { |
| | padding: 0 !important; |
| | margin: 0 !important; |
| } | | } |
| .mufi { | | |
| font-family: Alphabetum, Cardo, LeedsUni, Junicode, "TITUS Cyberbit Basic", ALPHA-Demo;
| | .compact-ambox table .mbox-text-span { |
| | display: list-item; |
| | line-height: 1.5em; |
| | list-style-type: square; |
| | list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg); |
| } | | } |
|
| |
|
| #wpSave {
| | /* Allow for hiding text in compact form */ |
| font-weight: bold;
| | .compact-ambox .hide-when-compact { |
| | display: none; |
| } | | } |
|
| |
|
| /* class hiddenStructure is defunct. See [[Wikipedia:hiddenStructure]] */ | | /* Remove underlines from certain links */ |
| .hiddenStructure { | | .nounderlines a, |
| display: inline ! important;
| | .IPA a:link, |
| color: #f00;
| | .IPA a:visited { |
| background-color: #0f0;
| | text-decoration: none !important; |
| } | | } |
|
| |
|
| /* Removes underlines from links */ | | /* Prevent line breaks in silly places where desired (nowrap) |
| .nounderlines a { | | and links when we don't want them to (nowraplinks a) */ |
| text-decoration: none;
| | .nowrap, |
| | .nowraplinks a { |
| | white-space: nowrap; |
| } | | } |
|
| |
|
| /* Remove underline from IPA links */ | | /* But allow wrapping where desired: */ |
| .IPA a:link, .IPA a:visited { | | .wrap, |
| text-decoration: none;
| | .wraplinks a { |
| | white-space: normal; |
| } | | } |
|
| |
|
| /* Removes useless links from printout */ | | /* Increase the height of the image upload box */ |
| @media print {
| | #wpUploadDescription { |
| #privacy, #about, #disclaimer {display:none;}
| | height: 13em; |
| } | | } |
|
| |
|
| #EnWpMpBook { background-image: url(http://upload.wikimedia.org/wikipedia/en/7/7e/MP-open-book.png); }
| | /* Minimum thumb width */ |
| #EnWpMpSearch { background: url(http://upload.wikimedia.org/wikipedia/en/a/ae/MP-magnifying-glass.png) no-repeat top right; }
| | .thumbinner { |
| #EnWpMpSearchInner { float: right; width: 20em; text-align: center; }
| | min-width: 100px; |
| #EnWpMpBook2 { background-image: url(http://upload.wikimedia.org/wikipedia/commons/8/8e/MP-open-book2.png); }
| | } |
|
| |
|
| .messagebox.small-talk { | | /* Prevent floating boxes from overlapping any category listings, |
| width: 238px;
| | file histories, edit previews, and edit [Show changes] views. */ |
| font-size: 85%;
| | #mw-subcategories, |
| float: right;
| | #mw-pages, |
| clear: both;
| | #mw-category-media, |
| margin: 0 0 1em 1em;
| | #filehistory, |
| line-height: 1.25em;
| | #wikiPreview, |
| background: #F8EABA;
| | #wikiDiff { |
| | clear: both; |
| } | | } |
|
| |
|
| /* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */ | | /* Selectively hide headers in WikiProject banners */ |
| | /* TemplateStyles */ |
| | .wpb .wpb-header { |
| | display: none; |
| | } |
|
| |
|
| div.Boxmerge,
| | .wpbs-inner .wpb .wpb-header { |
| div.NavFrame {
| | display: table-row; |
| margin: 0px;
| |
| padding: 2px;
| |
| border: 1px solid #aaa;
| |
| text-align: center;
| |
| border-collapse: collapse;
| |
| font-size: 95%;
| |
| } | | } |
| div.Boxmerge div.NavFrame {
| | |
| border-style: none;
| | .wpbs-inner .wpb-outside { |
| border-style: hidden;
| | display: none; /* hide things that should only display outside shells */ |
| } | | } |
| div.NavFrame + div.NavFrame {
| | |
| border-top-style: none;
| | /* Styling for Abuse Filter tags */ |
| border-top-style: hidden;
| | .mw-tag-markers { |
| | font-style: italic; |
| | font-size: 90%; |
| } | | } |
| div.NavPic {
| | |
| background-color: #fff;
| | /* Hide stuff meant for accounts with special permissions. Made visible again in |
| margin: 0px;
| | [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]], |
| padding: 2px;
| | [[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]], |
| float: left;
| | [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]], |
| | [[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */ |
| | .checkuser-show, |
| | .sysop-show, |
| | .abusefilter-show, |
| | .abusefilter-helper-show, |
| | .patroller-show, |
| | .templateeditor-show, |
| | .extendedmover-show, |
| | .extendedconfirmed-show, |
| | .autoconfirmed-show, |
| | .user-show { |
| | display: none; |
| } | | } |
| div.NavFrame div.NavHead {
| | |
| height: 1.6em;
| | /* Hide the redlink generated by {{Editnotice}}, |
| font-weight: bold;
| | this overrides the ".sysop-show { display: none; }" above that applies |
| font-size: 100%;
| | to the same link as well. See [[phab:T45013]] |
| background-color: #efefef;
| | |
| position:relative;
| | Hide the images in editnotices to keep them readable in VE view. |
| | Long term, editnotices should become a core feature so that they can be designed responsive. */ |
| | .ve-ui-mwNoticesPopupTool-item .editnotice-redlink, |
| | .ve-ui-mwNoticesPopupTool-item .mbox-image, |
| | .ve-ui-mwNoticesPopupTool-item .mbox-imageright { |
| | display: none !important; |
| } | | } |
| div.NavFrame p {
| | |
| font-size: 100%;
| | /* Remove bullets when there are multiple edit page warnings */ |
| | ul.permissions-errors > li { |
| | list-style: none none; |
| } | | } |
| div.NavFrame div.NavContent {
| | |
| font-size: 100%;
| | ul.permissions-errors { |
| | margin: 0; |
| } | | } |
| div.NavFrame div.NavContent p {
| | |
| font-size: 100%;
| | /* texhtml class for inline math (based on generic times-serif class) */ |
| | span.texhtml { |
| | font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; |
| | font-size: 118%; |
| | line-height: 1; |
| | white-space: nowrap; |
| | /* Force tabular and lining display for texhtml */ |
| | -moz-font-feature-settings: "lnum", "tnum", "kern" 0; |
| | -webkit-font-feature-settings: "lnum", "tnum", "kern" 0; |
| | font-feature-settings: "lnum", "tnum", "kern" 0; |
| | font-variant-numeric: lining-nums tabular-nums; |
| | font-kerning: none; |
| } | | } |
| div.NavEnd {
| | |
| margin: 0px;
| | span.texhtml span.texhtml { |
| padding: 0px;
| | font-size: 100%; |
| line-height: 1px;
| |
| clear: both;
| |
| } | | } |
| a.NavToggle {
| | |
| position:absolute;
| | span.mwe-math-mathml-inline { |
| top:0px;
| | font-size: 118%; |
| right:3px;
| |
| font-weight:normal;
| |
| font-size:smaller;
| |
| } | | } |
|
| |
|
| /* Coloured watchlist numbers */ | | /* Make <math display="block"> be left aligned with one space indent for |
| .mw-plusminus-pos { | | * compatibility with style conventions |
| color:darkgreen;
| | */ |
| | .mwe-math-fallback-image-display, |
| | .mwe-math-mathml-display { |
| | margin-left: 1.6em !important; |
| | margin-top: 0.6em; |
| | margin-bottom: 0.6em; |
| } | | } |
|
| |
|
| /* .mw-plusminus-null currently at developer default */
| | .mwe-math-mathml-display math { |
| | display: inline; |
| | } |
|
| |
|
| .mw-plusminus-neg { | | /* Work-around for [[phab:T25965]] / [[phab:T100106]] (Kaltura advertisement) */ |
| color:darkred;
| | .k-player .k-attribution { |
| | visibility: hidden; |
| } | | } |
|
| |
|
| .dablink { | | /* Move 'play' button of video player to bottom left corner */ |
| font-style:italic;
| | .PopUpMediaTransform a .play-btn-large { |
| padding-left:2em;
| | margin: 0; |
| | top: auto; |
| | right: auto; |
| | bottom: 0; |
| | left: 0; |
| } | | } |
|
| |
|
| /*</nowiki></pre>*/ | | @media screen { |
| | /* Gallery styles background changes are restricted to screen view. |
| | In printing we should avoid applying backgrounds. */ |
| | /* The backgrounds for galleries. */ |
| | #content .gallerybox div.thumb { |
| | /* Light gray padding */ |
| | background-color: #f8f9fa; |
| | } |
| | /* Put a chequered background behind images, only visible if they have transparency. |
| | '.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */ |
| | .gallerybox .thumb img { |
| | background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat; |
| | } |
| | /* But not on articles, user pages, portals or with opt-out. */ |
| | .ns-0 .gallerybox .thumb img, |
| | .ns-2 .gallerybox .thumb img, |
| | .ns-100 .gallerybox .thumb img, |
| | .nochecker .gallerybox .thumb img { |
| | background-image: none; |
| | } |