MediaWiki:Common.css: Difference between revisions
From Lockwiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 103: | Line 103: | ||
.infobox.bordered .borderless th { | .infobox.bordered .borderless th { | ||
border: 0; | border: 0; | ||
} | |||
/* Make the list of references in [[Template:Reflist]] smaller */ | |||
.references-small { | |||
font-size: 90%; | |||
} | |||
/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ | |||
/* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */ | |||
/* column-count is from the CSS3 module "CSS Multi-column Layout" */ | |||
/* Please ignore any validator errors caused by these two lines */ | |||
.references-2column { | |||
font-size: 90%; | |||
-moz-column-count: 2; | |||
column-count: 2; | |||
} | |||
/* Highlight clicked reference in blue to help navigation */ | |||
ol.references > li:target, | |||
sup.reference:target, | |||
cite:target { | |||
background-color: #DEF; | |||
} | |||
/* Ensure refs in table headers and the like aren't bold or italic */ | |||
sup.reference { | |||
font-weight: normal; | |||
font-style: normal; | |||
} | |||
/* Styling for citations */ | |||
cite { | |||
font-style: normal; | |||
word-wrap: break-word; | |||
} | |||
/* For linked citation numbers and document IDs, where | |||
the number need not be shown on a screen or a handheld, | |||
but should be included in the printed version | |||
*/ | |||
@media screen, handheld, projection { | |||
cite *.printonly { | |||
display: none; | |||
} | |||
} | } | ||
</pre> | </pre> |
Revision as of 20:41, 19 June 2009
<pre> body.page-Main_Page h1.firstHeading { display:none; } h1.firstHeading { display:none; } /***** 4. MAIN PAGE STYLING *****/ /***** Theived like whoa from MediaWiki *****/ #mainpage_topbox { background: #f9f9f9; padding: 0px; border: 1px solid #aaaaaa; margin: 0.2em 10px 10px; } .mainpage_boxtitle, .mainpage_hubtitle, #mainpage_pagetitle { font-size: 105%; padding: 0.4em; background-color: #eeeeee; border-bottom: 1px solid #aaaaaa; } .mainpage_boxtitle { line-height: 120%; } #mainpage_pagetitle { color: #cf7606; font-size: 200% !important; } #mainpage_sitelinks { padding: 0.2em; text-align: center; background-color: white; } .mainpage_hubtitle { text-align: center; } .mainpage_boxcontents, .mainpage_boxcontents_small { background: #ffffff; padding:0.2em 0.4em; } .mainpage_boxcontents_small { font-size: 95%; } .mainpage_hubbox, #mainpage_newscell, #mainpage_downloadcell { padding: 0; border: 1px solid #aaaaaa; } .mainpage_hubbox { margin-bottom: 0; } #mainpage_newscell { margin-bottom: 15px; margin-top: 0 !important; } #mainpage_newscell .mainpage_boxtitle { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-khelpcenter.png/20px-Exquisite-khelpcenter.png); background-repeat: no-repeat; background-position: 99% 0.3em; padding-right: 25px; } #mainpage_downloadcell { width: 17em; margin-bottom: 5px; } #mainpage_downloadcell .mainpage_boxtitle { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Crystal_Clear_action_build.png/18px-Crystal_Clear_action_build.png); background-repeat: no-repeat; background-position: 96% 0.33em; padding-right: 25px; } #mainpage_mwtitle { color: #005288; } /* The words 'MediaWiki.org' in the title. */ .majorwarning { background: yellow; padding: 0.3em; text-align: center; font-size: 125%; border: 2px solid red; } .infobox { border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; } .infobox td, .infobox th { vertical-align: top; } .infobox caption { font-size: larger; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #aaa; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } /* Make the list of references in [[Template:Reflist]] smaller */ .references-small { font-size: 90%; } /* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ /* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */ /* column-count is from the CSS3 module "CSS Multi-column Layout" */ /* Please ignore any validator errors caused by these two lines */ .references-2column { font-size: 90%; -moz-column-count: 2; column-count: 2; } /* Highlight clicked reference in blue to help navigation */ ol.references > li:target, sup.reference:target, cite:target { background-color: #DEF; } /* Ensure refs in table headers and the like aren't bold or italic */ sup.reference { font-weight: normal; font-style: normal; } /* Styling for citations */ cite { font-style: normal; word-wrap: break-word; } /* For linked citation numbers and document IDs, where the number need not be shown on a screen or a handheld, but should be included in the printed version */ @media screen, handheld, projection { cite *.printonly { display: none; } } </pre>