Difference between revisions of "MediaWiki:Common.css"

From ELWiki
Jump to navigation Jump to search
m (Slight adjustement for new skin, you might have to reload the wiki holding shift or press ctrl-f5 or somesuch to force the complete reload)
(wikitable, as requested in http://forum.el-wiki.net/viewtopic.php?f=3&t=703 users might have to force a reload to get their css files updated)
Line 77: Line 77:
 
       border-right:1px solid grey;
 
       border-right:1px solid grey;
 
     }
 
     }
 +
 +
/* wikitable class for skinning normal tables */
 +
/* see http://forum.el-wiki.net/viewtopic.php?f=3&t=703
 +
/*
 +
  Notes on el-wiki colors (from dark to light):
 +
  current nav menu: #d1d7b1  (good for table heading)
 +
  approx (bg+nav)/2: #dde1bf  (too dark for table content; too light for table heading)
 +
  approx (bg+nav)/3: #e0e4c5  (good for table content)
 +
  approx (bg+nav)/4: #e3e7c7  (too similar to background)
 +
  current background: #e9eccf
 +
*/
 +
table.wikitable
 +
{
 +
  margin: 1em 1em 1em 0;
 +
  background: #e0e4c5;
 +
  border: 1px solid gray;
 +
  border-collapse: collapse;
 +
}
 +
 +
table.wikitable th,
 +
table.wikitable td
 +
{
 +
  border: 1px solid gray;
 +
  padding: 0.2em;
 +
}
 +
 +
table.wikitable th
 +
{
 +
  background: #d1d7b1;
 +
  text-align: center;
 +
}
 +
 +
table.wikitable caption
 +
{
 +
  font-weight: bold;
 +
}

Revision as of 17:43, 18 September 2010

/** CSS placed here will be applied to all skins */

/* FOCW header style */

    #g_title p, #g_footer p, #g_description p {
        margin: 0;
    }

    #g_footer {
        font-size:0.85em;
        font-family:Georgia, "Times New Roman", Times, serif;
        color:#697335;
        text-align:center;
        margin:0px;
    }

    #page-title { font-family:Georgia, "Times New Roman", Times, serif;
        text-align:left;
        font-style:italic;
        font-size:2.25em;color:#697335;margin:0;border-bottom:3px solid #A0AA6D;  
        padding-top:75px;
        border:none;
    }

    #container {
        width: 718px;
        text-align: left;
        padding: 0px;
        background-color:#E9ECCF;
        margin:0px auto;
    }

    #page-title { font-family:Georgia, "Times New Roman", Times, serif;
        text-align:left;
        font-style:italic;
        padding-top:75px;
        border:none;
    }

    #g_description { font-family:Georgia, "Times New Roman", Times, serif;
        text-align:right;
        padding-left:25px;
        padding-right:25px;
        font-style:italic;
        color:#A0AA6D;
        line-height:4.75em;
    }

    #header {
        background: URL("./skins/common/images/skin_branch_repeat.jpg") repeat-x top left;
        position: relative;
        background-color: #D2D6B1;
    }

    #header2 {
        background: URL("./skins/common/images/skin_branch_right.jpg") no-repeat top right;
        position: relative;
    }

    #header .wrapper {
        background: URL("./skins/common/images/skin_branch_top.jpg") no-repeat top left;
        padding-left: 260px;
    }

    #onecolumn #main-content .wrapper {}

    body {background:#E9ECCF; text-align:left; }

    #bodyContent {
       width: 100%;
       min-width: 540px;
       background-color:#E9ECCF;
       position: relative;
    }
/* Table specific CSS, e.g. used in Weapons and Armour */
    table.rightbordergrey * td, table.rightbordergrey * th {
       border-right:1px solid grey;
    }

/* wikitable class for skinning normal tables */
/* see http://forum.el-wiki.net/viewtopic.php?f=3&t=703
/*
  Notes on el-wiki colors (from dark to light):
  current nav menu: #d1d7b1  (good for table heading)
  approx (bg+nav)/2: #dde1bf  (too dark for table content; too light for table heading)
  approx (bg+nav)/3: #e0e4c5  (good for table content)
  approx (bg+nav)/4: #e3e7c7  (too similar to background)
  current background: #e9eccf
*/
table.wikitable
{
  margin: 1em 1em 1em 0;
  background: #e0e4c5;
  border: 1px solid gray;
  border-collapse: collapse;
}

table.wikitable th,
table.wikitable td
{
  border: 1px solid gray;
  padding: 0.2em;
}

table.wikitable th
{
  background: #d1d7b1;
  text-align: center;
}

table.wikitable caption
{
  font-weight: bold;
}