Difference between revisions of "MediaWiki:Common.css"
From DigiNet Wiki
(Created page with "→== All Skins == Remember that all CSS placed here will be applied to '''all''' skins: /* From Wikimon: Some things from Mediawiki:monobook.css that should be in her...") |
m |
||
Line 1: | Line 1: | ||
− | /* | + | /*Remember that all CSS placed here will be applied to '''all''' skins */ |
− | + | ||
− | Remember that all CSS placed here will be applied to '''all''' skins | + | |
− | */ | + | |
− | /* | + | /*From Wikimon: Some things from Monobook that should be in here. */ |
− | From Wikimon: | + | |
− | Some things from | + | |
− | */ | + | |
div.no-bullet-list ul | div.no-bullet-list ul | ||
{ | { | ||
Line 27: | Line 21: | ||
.editOptions p {display:inline;} | .editOptions p {display:inline;} | ||
− | + | /*Interlining in titles. To prevent title overlap. | |
− | /* Interlining in titles. To prevent title overlap. | + | |
Did not seem to break on Wikimon, should be alright for DNW. */ | Did not seem to break on Wikimon, should be alright for DNW. */ | ||
h1.firstHeading { line-height: 1em; } | h1.firstHeading { line-height: 1em; } | ||
− | + | /*Some References Styling, taken from Wikipedia */ | |
− | + | /*Make the list of references smaller */ | |
− | + | ||
− | /* Some References Styling, taken from Wikipedia */ | + | |
− | /* Make the list of references smaller */ | + | |
ol.references, | ol.references, | ||
div.reflist, | div.reflist, | ||
Line 52: | Line 42: | ||
} | } | ||
− | /* Highlight clicked reference in blue to help navigation */ | + | /*Highlight clicked reference in blue to help navigation */ |
ol.references li:target, | ol.references li:target, | ||
sup.reference:target, | sup.reference:target, | ||
Line 59: | Line 49: | ||
} | } | ||
− | /* Ensure refs in table headers and the like aren't bold or italic */ | + | /*Ensure refs in table headers and the like aren't bold or italic */ |
sup.reference { | sup.reference { | ||
font-weight: normal; | font-weight: normal; | ||
Line 65: | Line 55: | ||
} | } | ||
− | /* Allow hidden ref errors to be shown by user CSS */ | + | /*Allow hidden ref errors to be shown by user CSS */ |
span.brokenref { | span.brokenref { | ||
display: none; | display: none; | ||
} | } | ||
− | /* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */ | + | /*Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */ |
.citation { | .citation { | ||
word-wrap: break-word; | word-wrap: break-word; | ||
Line 95: | Line 85: | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
− | /* But allow wrapping where desired: */ | + | /*But allow wrapping where desired: */ |
.wrap, | .wrap, | ||
.wraplinks a { | .wraplinks a { | ||
Line 101: | Line 91: | ||
} | } | ||
− | /* More from Wikimon, translated the descriptions from Italian. o 3o; | + | /*More from Wikimon, translated the descriptions from Italian. o 3o; |
Styling of Tooltip Hovers for References. | Styling of Tooltip Hovers for References. | ||
− | Could not find it easily on Wikipedia, but it's used there as well.*/ | + | Could not find it easily on Wikipedia, but it's used there as well. |
+ | */ | ||
/* Tooltip notes */ | /* Tooltip notes */ |
Revision as of 10:46, 14 August 2014
/*Remember that all CSS placed here will be applied to '''all''' skins */ /*From Wikimon: Some things from Monobook that should be in here. */ div.no-bullet-list ul { list-style-type: none; list-style-image: none; } div#siteNotice {text-align:center; } div.no-bullet-list ul { list-style-type: none; list-style-image: none; } /*Fix the space between the edit check boxes on editintros. See http://bugzilla.wikimedia.org/show_bug.cgi?id=9252 */ .editOptions p {display:inline;} /*Interlining in titles. To prevent title overlap. Did not seem to break on Wikimon, should be alright for DNW. */ h1.firstHeading { line-height: 1em; } /*Some References Styling, taken from Wikipedia */ /*Make the list of references smaller */ ol.references, div.reflist, div.refbegin { font-size: 90%; /* Default font-size */ margin-bottom: 0.5em; } div.refbegin-100 { font-size: 100%; /* Option for normal fontsize in {{refbegin}} */ } div.reflist ol.references { font-size: 100%; /* Reset font-size when nested in div.reflist */ list-style-type: inherit; /* Enable custom list style types */ } /*Highlight clicked reference in blue to help navigation */ ol.references li:target, sup.reference:target, span.citation: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; } /*Allow hidden ref errors to be shown by user CSS */ span.brokenref { display: none; } /*Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */ .citation { 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 { .citation .printonly { display: none; } } /* Prevent line breaks in silly places: 1) Where desired 2) Links when we don't want them to 3) Bold "links" to the page itself 4) Ref tags with group names <ref group="Note"> --> "[Note 1]" */ .nowrap, .nowraplinks a, .nowraplinks .selflink, sup.reference a { white-space: nowrap; } /*But allow wrapping where desired: */ .wrap, .wraplinks a { white-space: normal; } /*More from Wikimon, translated the descriptions from Italian. o 3o; Styling of Tooltip Hovers for References. Could not find it easily on Wikipedia, but it's used there as well. */ /* Tooltip notes */ .reference-tt { display: none; position: absolute; bottom: 0px; z-index: 10000; background-color:#C4E9FD; border:1px solid #0789CF; padding-left: 3px; padding-right: 1px; opacity:0.9; color: #000000; font-family: monospace; font-style: normal; font-weight: normal; font-size: 12px !important; } .reference:hover { position: relative; } .reference:hover .reference-tt { display:block; } /* Style Template:Cit */ .cit {background-color: #F9F9F9; font-family: monospace; padding: 0; font-style: italic;} .cit p {margin: 0.2em 0 0.3em;} /* Admin Styling, also lifted from Wikimon */ /* ADMINS - purple, bold italic*/ a[href|="/User:Jess"], a[href|="/User:Graham"], a[href|="/User:Justin"], a[href|="/User:Cam"] { color: #9548e4; font-weight:bold;font-style: italic;}