Line 5: |
Line 5: |
| '''Notice to Administrators!''' | | '''Notice to Administrators!''' |
| | | |
− | Any changes to [[Mediawiki:Monobook.css|Monobook.css]] or [[MediaWiki:Common.css|Common.css]] should be first proposed to [[Centiare:Village Pump]]. | + | <!-- |
| + | '''<span style="color: #f00;">Please note that due to caching effects any April Fools' joke placed here can last for several days! So will any block resulting from such actions.</span>''' |
| + | --> |
| + | |
| + | Any changes to [[Mediawiki:Monobook.css|Monobook.css]] or [[MediaWiki:Common.css|Common.css]] should be first proposed to [[Centiare:Water Cooler]]. |
| | | |
| 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. | | 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. |
Line 13: |
Line 17: |
| (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.) | | (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.) |
| | | |
− | See also the [[Centiare:Catalogue of CSS classes|catalogue of CSS classes]]. | + | See also the [[Wikipedia:Catalogue of CSS classes|catalogue of CSS classes]]. |
| + | {{interwiki-all}} |
| + | <pre><nowiki>*/ |
| | | |
− | <pre><nowiki>*/
| + | /* Main page fixes */ |
| + | .interwiki-completelist { |
| + | font-weight: bold; |
| + | } |
| | | |
| /* make the list of references look smaller */ | | /* make the list of references look smaller */ |
Line 40: |
Line 49: |
| ol.references > li:target { | | ol.references > li:target { |
| background-color: #DEF; | | background-color: #DEF; |
| + | } |
| + | |
| + | sup.reference:target { |
| + | background-color: #DEF; |
| } | | } |
| | | |
Line 78: |
Line 91: |
| font-size: 90%; | | font-size: 90%; |
| margin: 1em 0em 0em; | | margin: 1em 0em 0em; |
− | padding: 5px; | + | padding: 2px; |
| text-align: center; | | text-align: center; |
| width: 100%; | | width: 100%; |
Line 160: |
Line 173: |
| | | |
| .infobox.geography { | | .infobox.geography { |
− | border: 1px solid #ccd2d9;
| |
| text-align: left; | | text-align: left; |
| border-collapse: collapse; | | border-collapse: collapse; |
Line 169: |
Line 181: |
| .infobox.geography td, | | .infobox.geography td, |
| .infobox.geography th { | | .infobox.geography th { |
− | border-top: solid 1px #ccd2d9; | + | border-top: solid 1px #aaa; |
− | padding: 0.4em 0.2em 0.4em 0.8em; | + | padding: 0.4em 0.6em 0.4em 0.6em; |
| } | | } |
| .infobox.geography .mergedtoprow td, | | .infobox.geography .mergedtoprow td, |
| .infobox.geography .mergedtoprow th { | | .infobox.geography .mergedtoprow th { |
− | border-top: solid 1px #ccd2d9; | + | border-top: solid 1px #aaa; |
− | padding: 0.4em 0.2em 0.2em 0.8em; | + | padding: 0.4em 0.6em 0.2em 0.6em; |
| } | | } |
| | | |
Line 181: |
Line 193: |
| .infobox.geography .mergedrow th { | | .infobox.geography .mergedrow th { |
| border: 0; | | border: 0; |
− | padding: 0 0.2em 0.2em 0.8em; | + | padding: 0 0.6em 0.2em 0.6em; |
| } | | } |
| | | |
Line 187: |
Line 199: |
| .infobox.geography .mergedbottomrow th { | | .infobox.geography .mergedbottomrow th { |
| border-top: 0; | | border-top: 0; |
− | border-bottom: solid 1px #ccd2d9; | + | border-bottom: solid 1px #aaa; |
− | padding: 0 0.2em 0.4em 0.8em; | + | padding: 0 0.6em 0.4em 0.6em; |
| } | | } |
| | | |
Line 194: |
Line 206: |
| .infobox.geography .maptable th { | | .infobox.geography .maptable th { |
| border: 0; | | border: 0; |
− | padding: 0 0 0 0; | + | padding: 0; |
| } | | } |
| | | |
Line 208: |
Line 220: |
| } | | } |
| | | |
− | #spoiler {
| + | .spoiler { |
| border-top: 2px solid #ddd; | | border-top: 2px solid #ddd; |
− | border-bottom:2px solid #ddd; | + | border-bottom: 2px solid #ddd; |
| } | | } |
| | | |
Line 232: |
Line 244: |
| .Talk-Notice td { | | .Talk-Notice td { |
| background: inherit; | | background: inherit; |
− | }
| |
− |
| |
− | /* Metadata */
| |
− | table.metadata {
| |
− | border: 1px solid #aaa;
| |
− | display: none;
| |
− | speak: none;
| |
− | }
| |
− | .metadata-label {
| |
− | color: #aaa;
| |
| } | | } |
| | | |
Line 254: |
Line 256: |
| } | | } |
| | | |
− | /* Makes redirects appear in italics on [[Special:Allpages]] */ | + | /* Makes redirects appear in italics in categories and on [[Special:Allpages]] */ |
− | .allpagesredirect { | + | .redirect-in-category, .allpagesredirect { |
| font-style: italic; | | font-style: italic; |
| } | | } |
Line 341: |
Line 343: |
| 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; | | 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; |
| padding-right: 17px !important; | | padding-right: 17px !important; |
| + | } |
| + | |
| + | span.geolink a { |
| + | background: url(http://upload.wikimedia.org/wikipedia/en/a/a7/Monobook-globe.png) center right no-repeat !important; |
| + | padding-right: 11px !important; |
| } | | } |
| | | |
Line 431: |
Line 438: |
| border: 1px solid #c0c090; | | border: 1px solid #c0c090; |
| background-color: #f8eaba; | | background-color: #f8eaba; |
| + | } |
| + | .messagebox.nested-talk { |
| + | border: 1px solid #c0c090; |
| + | background-color: #f8eaba; |
| + | width: 100%; |
| + | margin: 2px 4px 2px 4px; |
| + | } |
| + | .messagebox.small { |
| + | width: 238px; |
| + | font-size: 85%; |
| + | float: right; |
| + | clear: both; |
| + | margin: 0 0 1em 1em; |
| + | line-height: 1.25em; |
| } | | } |
| | | |
Line 439: |
Line 460: |
| /* 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]]. */ | | /* 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]]. */ |
| .IPA { | | .IPA { |
− | 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; | + | 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"; |
| font-family /**/:inherit; | | font-family /**/:inherit; |
| } | | } |
| .Unicode { | | .Unicode { |
− | font-family: Code2000, TITUS Cyberbit Basic, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode; | + | font-family: Code2000, Code2001, "Free Serif", "TITUS Cyberbit Basic", "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit", "Bitstream CyberBase", Thryomanes, Gentium, GentiumAlt, "Lucida Grande", "Free Sans", "Arial Unicode MS", "Microsoft Sans Serif", "Lucida Sans Unicode"; |
| font-family /**/:inherit; | | font-family /**/:inherit; |
| } | | } |
| .latinx { | | .latinx { |
− | font-family: Code2000, TITUS Cyberbit Basic, Microsoft Sans Serif; | + | font-family: Code2000, Code2001, "TITUS Cyberbit Basic", "Microsoft Sans Serif"; |
| font-family /**/:inherit; | | font-family /**/:inherit; |
| } | | } |
| .polytonic { | | .polytonic { |
− | font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000; | + | font-family: Athena, Gentium, "Palatino Linotype", "Arial Unicode MS", "Lucida Sans Unicode", "Lucida Grande", Code2000; |
| font-family /**/:inherit; | | font-family /**/:inherit; |
| } | | } |
| .mufi { | | .mufi { |
− | font-family: Alphabetum, Cardo, LeedsUni, Junicode, TITUS Cyberbit Basic, ALPHA-Demo; | + | font-family: Alphabetum, Cardo, LeedsUni, Junicode, "TITUS Cyberbit Basic", ALPHA-Demo; |
| + | } |
| + | |
| + | /* pseudo-classes in support of [[Template:lang]]. */ |
| + | |
| + | :lang(he) { |
| + | font-family: "SBL Hebrew", "Ezra SIL SR", "Ezra SIL", Cardo, "Chrysanthi Unicode", "TITUS Cyberbit Basic", "Arial Unicode MS", Narkisim, "Times New Roman"; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(fa) { |
| + | font-family: "Nafees Nastaleeq", "Pak Nastaleeq", PDMS_Jauhar; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(ps) { |
| + | font-family: "Nafees Nastaleeq", "Pak Nastaleeq", PDMS_Jauhar; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(ur) { |
| + | font-family: "Nafees Nastaleeq", "Pak Nastaleeq", PDMS_Jauhar; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(sux-Xsux) { |
| + | font-family: Akkadian; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(ja) { |
| + | font-family: Code2000, "Arial Unicode MS", "Bitstream Cyberbit", "Bitstream CyberCJK", IPAGothic, IPAPGothic, IPAUIGothic, "Kochi Gothic", IPAMincho, IPAPMincho; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(ko) { |
| + | font-family: "Adobe Myungjo Std M", AppleMyungjo, "Baekmuk Batang", "Baekmuk Gulim", Batang, Dotum, DotumChe, Gulim, GulimChe, HYGothic-Extra, HYMyeongJo-Extra, "New Gulim", UnBatang, UnDotum, UnYetgul, UWKMJF; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(zh-Hans) { |
| + | font-family: "Adobe Song Std L", "AR PL ShanHeiSun Uni", "AR PL ShanHeiSun Uni MBE", "MS Hei", "MS Song", SimHei; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(zh-Hant) { |
| + | font-family: "Adobe Ming Std L", "AR PL New Sung", "AR PL ZenKai Uni", "AR PL ZenKai Uni MBE", MingLiU, PMingLiU; |
| + | font-family /**/:inherit; |
| + | } |
| + | :lang(grc) { |
| + | font-family: Athena, Gentium, "Palatino Linotype", "Arial Unicode MS", "Lucida Sans Unicode", "Lucida Grande", Code2000; |
| + | font-family /**/:inherit; |
| } | | } |
| | | |
Line 504: |
Line 568: |
| div.NavFrame { | | div.NavFrame { |
| margin: 0px; | | margin: 0px; |
− | padding: 2px; | + | padding: 4px; |
| border: 1px solid #aaa; | | border: 1px solid #aaa; |
| text-align: center; | | text-align: center; |
Line 527: |
Line 591: |
| height: 1.6em; | | height: 1.6em; |
| font-weight: bold; | | font-weight: bold; |
− | font-size: 100%;
| + | background-color: #ccf; |
− | background-color: #efefef; | |
| position:relative; | | position:relative; |
| } | | } |
Line 553: |
Line 616: |
| font-size:smaller; | | font-size:smaller; |
| } | | } |
| + | |
| + | /* Coloured watchlist numbers */ |
| + | .mw-plusminus-pos { |
| + | color: #006400; /* darkgreen */ |
| + | } |
| + | |
| + | /* .mw-plusminus-null currently at developer default */ |
| + | |
| + | .mw-plusminus-neg { |
| + | color: #8B0000; /* darkred */ |
| + | } |
| + | |
| + | .dablink { |
| + | font-style:italic; |
| + | padding-left:2em; |
| + | } |
| + | |
| + | /* Style for horizontal UL lists */ |
| + | .horizontal ul { |
| + | padding: 0; |
| + | margin: 0; |
| + | } |
| + | |
| + | .horizontal li { |
| + | padding: 0 0.6em 0 0.4em; |
| + | display: inline; |
| + | border-right: 1px solid; |
| + | } |
| + | |
| + | .horizontal li:last-child { |
| + | border-right: none; |
| + | padding-right: 0; |
| + | } |
| + | |
| + | /* Geographical coordinates |
| + | |
| + | To display coordinates using the notation in the source code, write this in your User:Username/monobook.css: |
| + | .geo-default { display: inline } .geo-nondefault { display: none } |
| + | .geo-dec { display: inline } .geo-dms { display: inline } |
| + | |
| + | To display coordinates using decimal notation, write this in your User:Username/monobook.css: |
| + | .geo-default { display: inline } .geo-nondefault { display: inline } |
| + | .geo-dec { display: inline } .geo-dms { display: none } |
| + | |
| + | To display coordinates using DMS notation, write this in your User:Username/monobook.css: |
| + | .geo-default { display: inline } .geo-nondefault { display: inline } |
| + | .geo-dec { display: none } .geo-dms { display: inline } |
| + | |
| + | To display coordinates in both decimal and DMS notation, write this in your User:Username/monobook.css: |
| + | .geo-default { display: inline } .geo-nondefault { display: inline } |
| + | .geo-dec { display: inline } .geo-dms { display: inline } |
| + | .geo-multi-punct { display: inline } |
| + | |
| + | See [[Template:Coor link]] for how these are used. |
| + | |
| + | Note that the classes "geo", "longitude", and "latitude" are not just styles but also used by the [[Geo microformat]], so the names should not be changed. |
| + | |
| + | */ |
| + | |
| + | .geo-default { display: inline; } |
| + | .geo-nondefault { display: none; } |
| + | .geo-dms { display: inline; } |
| + | .geo-dec { display: inline; } |
| + | .geo-multi-punct { display: none; } |
| + | |
| + | .longitude .latitude { |
| + | white-space: nowrap; |
| + | } |
| + | |
| + | /* This is used for the Geo microformat, but no style is needed for now other than .geo-dec. */ |
| + | .geo { } |
| + | |
| + | /***** end Geo-related */ |
| + | |
| + | /* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */ |
| + | .nonumtoc .tocnumber { display:none; } |
| + | .nonumtoc #toc ul, |
| + | .nonumtoc .toc ul { |
| + | line-height: 1.5em; |
| + | list-style: none; |
| + | margin: .3em 0 0; |
| + | padding: 0; |
| + | } |
| + | .nonumtoc #toc ul ul, |
| + | .nonumtoc .toc ul ul { |
| + | margin: 0 0 0 2em; |
| + | } |
| + | |
| + | /* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for |
| + | instance, will limit to showing ==headings== and ===headings=== but no further (as long as |
| + | there are no =headings= on the page, which there shouldn't be according to the MoS). */ |
| + | .toclimit-2 .toclevel-2 {display:none;} |
| + | .toclimit-3 .toclevel-3 {display:none;} |
| + | .toclimit-4 .toclevel-4 {display:none;} |
| + | .toclimit-5 .toclevel-5 {display:none;} |
| + | .toclimit-6 .toclevel-6 {display:none;} |
| + | .toclimit-7 .toclevel-7 {display:none;} |
| + | |
| + | /* Allow transcluded pages to display in lists rather than a table. Compatible in Firefox; incompatible in IE6. */ |
| + | .listify td {display:list-item} |
| + | .listify tr {display:block} |
| + | .listify table {display:block} |
| | | |
| /*</nowiki></pre>*/ | | /*</nowiki></pre>*/ |