Jump to content

MediaWiki:Common.css

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Revision as of 16:07, 8 February 2011 by Forgottenman (talk | contribs) (+proofreadpage css)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* make the list of references look smaller and highlight clicked reference in blue */
ol.references { font-size: 100%; }
.references-small { font-size: 90%;}

ol.references > li:target { background-color: #ddeeff; }
sup.reference:target { background-color: #ddeeff; }
 
/* Ensure refs in table headers and the like aren't bold or italic */
sup.reference {
    font-weight: normal;
    font-style: normal;
}
 
/* Styling for citations */
span.citation, 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 {
    span.citation *.printonly {
        display: none;
    }
}

/* general look; align infobox to the right */
.infobox {
background-color:#F9F9F9;
border:1px solid #AAAAAA;
clear:right;
color:black;
float:right;
margin:0.5em 0 0.5em 1em;
padding:0.2em;
}

/* Side box formatting */
.sidebox {
clear: right;
padding: 4px;
border: 1px solid #a3b0bf; 
background: #f1f5fc;
margin: 0 0 1em 1em;
font-size: 0.9em; 
text-align: left; 
float: right;
}

/* Navbox formatting */
.navbox {
clear: both;
padding: 4px;
border: 1px solid #a3b0bf; 
background: #f1f5fc;
margin: 0 auto 1em auto;
font-size: 0.9em; 
text-align: center; 
}

/* Notice box formatting (for alerts, etc.) */
.noticebox 
{
 width: 80%;
 margin: 0 auto 1em;
 padding: 0.2em;
 border: 1px solid #f28500;
 background-color: #f4c430;
 text-align: center;
}

/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa; 
    background-color: #ecfcf4; 
    padding: 1em;
}

/* Pretty table */
table.prettytable
{
 margin: 1em 1em 1em 0;
 background-color: #f9f9f9;
 border: 1px #aaa solid;
 border-collapse: collapse;
}
table.prettytable th,
table.prettytable td
{
 padding: 0.2em;
 border: 1px #aaa solid;
}
table.prettytable th
{
 background-color: #f2f2f2;
 text-align: center;
}

/* message box formatting */
.messagebox
{
 width: 80%;
 margin: 0 auto 1em;
 padding: 0.2em;
 border: 1px solid #a3b0bf;
 background-color: #f1f5fc;
 text-align: center;
}
.messagebox.standard-talk
{
 border: 1px solid #C0C090;
 background-color: #F8EABA;
}
/* Hide heading on main page */
body.page-Main_Page h1.firstHeading { display:none; }

/* Styling for Template:Quote */
blockquote.templatequote { 
     margin-top: 0; 
}
blockquote.templatequote div.templatequotecite { 
    line-height: 1em;
    text-align: left;
    padding-left: 2em;
    margin-top: 0;
}
blockquote.templatequote div.templatequotecite cite {
    font-size: 85%;
}

/* All header templates */
 
    .authortemplate,
    .headertemplate,
    .footertemplate
    {
     width: 100%;
     margin-bottom: 5px;
    }
 
    /* Forward and backward link */
        .gen_header_backlink,
        .gen_header_forelink
        {
         width: 20%;
         font-size: 0.9em;
         line-height: normal;
        }
 
        .gen_header_backlink
        {
         text-align: left;
        }
 
        .gen_header_forelink
        {
         text-align: right;
        }
 
    /* Title field */
        .gen_header_title
        {
         width: 60%;
         text-align:center;
        }
 
    /* Notes field */
        .author_notes,
        .portal_notes,
        .header_notes
        {
         width: 100%;
         font-size: 0.9em;
         line-height: 1.4em;
         margin-bottom: 0.5em; /* a bit of space before body-text; 1em might be better... */
        }
 
/* Specific header templates */
    /* For {{header}} see above, with ProofreadPage code */
 
    /* {{header}} (footer) */
        .footertemplate
        {
         font-size: 0.9em;
         text-align: center;
        }
 
        .header_notes
        {
         border-bottom: 1px solid #A88;
         background-color: #FAFAFF;
        }
 
 
    /* {{author}} */
        .authortemplate
        {
         border: 1px solid #BEA2A2;
         background-color: #E4D8D8;
        }
 
        .author_notes
        {
         border-bottom: 1px solid #A88;
         background-color: #FFFBFC;
        }
 
        .author_seealso /* Remove this if we change to {{plain sister}}*/
        {
         float: right;
         padding: 2px;
         margin: 0 0 0.5em 1em;
         border: 1px solid #CCC;
        }

/* colors common to Template:Header and MediaWiki:Proofreadpage header template */
table.headertemplate,
table.footertemplate,
div#divMediaWiki-Proofreadpage_header_template
{
 border: 1px solid #ADA;
 background-color: #E4F2E4;
}

/* Make the list of references smaller */
div.references {
    font-size: 90%;
}

/* Content in columns with CSS instead of tables [[Template:Columns]] */
div.columns-2 div.column {
    float: left;
    width: 50%;
    min-width: 300px;
}
div.columns-3 div.column {
    float: left;
    width: 33.3%;
    min-width: 200px;
}
div.columns-4 div.column {
    float: left;
    width: 25%;
    min-width: 150px;
}
div.columns-5 div.column {
    float: left;
    width: 20%;
    min-width: 120px;
}

/*********
** Page namespace
*********/
/* transcluded pages */
.lefttext p
{
 text-indent: 2em;
}
.lefttext .poem p
{
 text-indent: 0;
}
.lefttext .tiInherit p
{
 text-indent: inherit;
}
.lefttext
{
 width: 33em;
 text-align: justify;
 margin-left: 5em;
}
 
.leftoutdent
{
 padding-left: 2em;
 text-indent: -2em;
 max-width: 33em;
 margin-left: 5em;
}
 
/* similar to tiInherit, above; wrap something with a div of this class and set line-height; poem-tags, too */
.lhInherit p
{
 line-height: inherit;
}
.quote
{
 color: #2F4F4F; /* darkslategray (not a valid color name) */
 margin-left: 2em;
 margin-right: 2em;
}
 
/* Justify */
body.ns-104
{
 text-align: justify;
}
 
/* Paragraph markers (no IE6 support) */
body.ns-104 div.pagetext>p
{
 background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Paragraph-mark.svg/6px-Paragraph-mark.svg.png) 0 .3em no-repeat;
 margin-left: -10px;
 padding-left: 10px;
}
 
/* ProofreadPage */
.quality4 { background-color: #90ff90; }
.quality3 { background-color: #ffe867; }
.quality2 { background-color: #b0b0ff; }
.quality1 { background-color: #ffa0a0; }
.quality0 { background-color: #ddd; }
.ns-104 .editsection { visibility:hidden; }