MediaWiki:Common.css

From Second Life Wiki
Revision as of 07:22, 15 October 2009 by Torley Linden (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/** CSS placed here will be applied to all skins */

#navbox, .navbox
{
    border: 1px solid rgb(170, 170, 170);
    background-color: rgb(249, 249, 249);
    padding: 5px 5px 5px 5px;
    font-size: 95%;
}

div.imagemap-inline div { display: inline; }

.signature p {
    font: 10pt courier; 
    padding: 0 5px 0 25px;
    text-indent: -20px;
    white-space: pre;
}

.apitable {
    margin: 1em 1em 1em 0; 
    border: solid 1px #AAAAAA; 
    border-collapse: collapse; 
    background-color: #F9F9F9; 
    font-size: 90%; 
    empty-cells:show;
}

.apitable td {
    padding: 5px;
    line-height: 120%;
}

.api-constructor p {
    border:solid 1px #AAAAAA; 
    font: 10pt courier; 
    white-space: pre; 
    color: black; 
    background: #F9F9F9; 
    padding: 10px 0 10px 30px; 
    text-indent: -20px
}

.lltable {
    margin: 1em 1em 1em 0; 
    border: 1px solid black; 
    border-collapse: collapse; 
    background-color: #F9F9F9; 
    font-size: 95%; 
    empty-cells:show;
}
 
.lltable td, .lltable th {
    padding: 7px;
    line-height: 120%;
    vertical-align: top;
}
 
.lltable tr th {
    background-color: #A7C1F2;
    font-size: 110%;
}

/* This hides the Main Page title */
body.page-Main_Page h1.firstHeading { display:none; }


/* Readability tweaks:
     - Changed body text to black for better contrast
     - Optimized header sizes AND edit links
     - Made code blocks elegant, with subtle highlight
*/
#bodyContent, .firstHeading, h1 { color: black; }

#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5, #bodyContent h6 {
     padding: 0px 0px 4px 0px;
     margin: 20px 0px 0px 0px;
     font-family: Arial, Helvetica, Sans-Serif;
     font-weight: bold;
     color: black; }

h1 .editsection, h2 .editsection , h3 .editsection , h4 .editsection , h5 .editsection , h6 .editsection {
     padding: 0px;
     margin: 0px;
     font-family: Arial, Helvetica, Sans-Serif;
     font-size: 14px;
     font-weight: bold;
     color: black; }

#bodyContent h1, firstHeading { font-size: 24px; }
#bodyContent h2 { font-size: 22px; }
#bodyContent h3 { font-size: 20px; }
#bodyContent h4 { font-size: 18px; }
#bodyContent h5 { font-size: 16px; }
#bodyContent h6 { font-size: 14px; }

code { font-size: 12px; background-color: #ffffcc; }

pre { font-size: 12px; border-style: solid; border-color: #cccccc; background-color: #eeeeee }


/* Languages styling from Zai Lynch and Kuraiko Yoshikawa */
#p-lang {
  background-color: rgb(254,255,204);

  border: 1px solid #AAAAAA;
  margin-bottom: 10px;
  margin-left: 2.5px;
}

#p-lang .pBody, #p-lang h5{ 
  background-color: rgb(254,255,204);
}


/* Thumbnail hover fix */
html .thumbimage {
border: 0px;
}


/* Beautiful tables in Knowledge Base articles - based on {{KBtable}} and needs to be fixed */
.kbtable {
    border: 0;
    cellspacing: 0;
    cellpadding: 8px;
    rules: cols;
    margin: 1em;
    border-collapse: collapse;
    background-color: #f9f9f9;
    font-size: 110%;
    empty-cells: show;
}