Difference between revisions of "MediaWiki:Common.css"

From DigiNet Wiki
Jump to: navigation, search
m
Line 34: Line 34:
 
     margin-bottom: 0.5em;
 
     margin-bottom: 0.5em;
 
}
 
}
div.refbegin-100 {
+
 
    font-size: 100%;          /* Option for normal fontsize in {{refbegin}} */
+
}
+
 
div.reflist ol.references {
 
div.reflist ol.references {
 
     font-size: 100%;          /* Reset font-size when nested in div.reflist */
 
     font-size: 100%;          /* Reset font-size when nested in div.reflist */

Revision as of 10:53, 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.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;}