/** Размещённый здесь CSS будет применяться ко всем темам оформления */
/* 

Always check with the [http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ruesp.net.ru%2Fw%2Findex.php%3Ftitle%3DMediaWiki%3ACommon.css%26action%3Draw%26ctype%3Dtext%2Fcss%26smaxage%3D18000&usermedium=all css validator] after making any changes.

<pre><nowiki>*/

/* temporary workaround to try to get maps displaying correctly on image pages */
@import url(http://www.ruesp.net.ru/maps/map.css);

/* Changes the logo to the new version */
#p-logo a {
  background: url(http://www.ruesp.net.ru/images/Wiki.jpg) 35% 50% no-repeat !important;
}

/* Bread Crumb Trail Class */
div.breadcrumb,
table.breadcrumb {
  position: absolute;
  border-collapse: collapse;
  z-index: 1;
  right: 1em;
  top: 2.5em;
  float:right;
  margin: 0.2em;
  padding: 0;
  font-size: 90%;
}

div.breadcrumb p,
table.breadcrumb p {
  background-color: #FBEFD5;
}

/* Explicitly set padding (and no margins) for ul and ol elements to fix inconsistencies caused by 
   Firefox applying padding but IE applying margins */
ul, ol {margin-left: 0; padding-left: 1.5em;}

/* Move headings to a lower z-index so their horizontal rules are behind floating images and tables */
h1, h2, h3, h4, h5, h6, hr {z-index: -100;}
div.thumb, table.wikitable, table.prettytable {z-index: 100;}

/* Makes redirects appear in italics on [[Special:Allpages]] */
.allpagesredirect {
    font-style: italic;
}

/* Change default vertical alignment for all tables */
td, th, tr {
    vertical-align: top;
}

/* Wikitable - Adds another table variant for editors */
table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}

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

table.wikitable th,
table.prettytable th {
  background: #efefef;
  text-align: center;
}

table.wikitable caption,
table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
  margin-bottom: -0.5em;
  font-weight: bold;
}

/* Greylapse - Collapsed table with grey coloration. */
table.graylapse,
table.greylapse {
    border-collapse: collapse;
    border-color: #aaaaaa;
    border-style: solid;
    border-width: 1px;
    background: #f9f9f9;
}

table.graylapse tr,
table.greylapse tr {
    vertical-align: top;
}

table.graylapse th,
table.greylapse th {
    vertical-align: top;
    text-align: left;
    background: #efefef;
    border-color: #aaaaaa;
    border-style: solid;
    border-width: 1px;
    padding-left: 4px;
    padding-right: 4px;
}

table.graylapse td,
table.greylapse td {
    vertical-align: top;
    border-color: #aaaaaa;
    border-style: solid;
    border-width: 1px;
    padding-left: 4px;
    padding-right: 4px;
}

table.graylapse td p, 
table.graylapse ul, table.graylapse ol, table.graylapse dl, 
table.graylapse li, table.graylapse dd, table.graylapse dt,
table.greylapse td p, 
table.greylapse ul, table.greylapse ol, table.greylapse dl, 
table.greylapse li, table.greylapse dd, table.greylapse dt {
    margin-top: 0;
    border-top-width: 0;
    padding-top: 0;
    margin-bottom: 0;
    border-bottom-width: 0;
    padding-bottom: 0;
}

/* hiddentable - Table with no borders, padding, spacing, etc. (needed with nested tables) */
table.hiddentable {
  margin: 0px;
  background: transparent;
  border: 0px none;
}
table.hiddentable th, table.hiddentable td {
  border: 0px none;
  padding: 0px;
  background: transparent;
}

/* classes to alter individual features of tables; should only be used in conjunction
   with another class (e.g., class="wikitable compress" */
/* compress: reduce whitespace in table */
table.compress th {
  padding: 1px 4px 1px 4px;
}
table.compress td {
  padding: 0 4px 0 4px;
}
table.compress caption {
  margin-bottom: -0.8em;
}

table.compress td p, 
table.compress ul, table.compress ol, table.compress dl, 
table.compress li, table.compress dd, table.compress dt {
    margin-top: 0;
    border-top-width: 0;
    padding-top: 0;
    margin-bottom: 0;
    border-bottom-width: 0;
    padding-bottom: 0;
}

/* vmid: all elements vertically centered in cells */
table.vmid td, table.vmid th, table.vmid tr {
    vertical-align: middle;
}

/* vtop: all elements vertically aligned at top of cells */
table.vtop td, table.vtop th, table.vtop tr {
    vertical-align: top;
}

/* firstleft: first column left-aligned, rest center aligned */
table.firstleft {text-align: center;}
table.firstleft td:first-child, table.firstleft th:first-child { text-align: left; }

/* centered: horizontally centered table (can also be used for any other block-level element) */
.centered, table.centered { margin-left:auto; margin-right:auto;}

/* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for
   instance, will limit to showing ==headings== and ===headings=== but no further (as long as
   there are no =headings= on the page, which there shouldn't be according to the MoS).
   Code taken from wikipedia's common.css settings. */
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-4 .toclevel-4 {display:none;}
.toclimit-5 .toclevel-5 {display:none;}
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-7 .toclevel-7 {display:none;}

/* experiment with different paragraph formatting for books */
div.book {font-size: 130%; font-family:serif; }
.book p {text-indent: 1.5em; margin: 0 1.5em 0 1.5em;}

/* experiment with different paragraph formatting for poems+plays */
div.poem {font-size: 130%; font-family:serif; }
.poem p {text-indent: 0em; margin: 0 1.5em 0 1.5em;}

/* Classes to allow magic school colors to all be defined in one central place without having to rely on templates
   Only designed to work with tables:
   - If used as a table class, all headers will be the associated background color
   - Or it can be used on individual rows or cells to override the background color in that part of the table
   Includes some fairly specific css tags in order to override other table color requests */
table.MagicAlt th, tr.MagicAlt th, tr.MagicAlt td, th.MagicAlt, td.MagicAlt {background-color: #FFBBFF !important;}
table.MagicCon th, tr.MagicCon th, tr.MagicCon td, th.MagicCon, td.MagicCon {background-color: #FFFFCC !important;}
table.MagicDes th, tr.MagicDes th, tr.MagicDes td, th.MagicDes, td.MagicDes {background-color: #FFCCCC !important;}
table.MagicIll th, tr.MagicIll th, tr.MagicIll td, th.MagicIll, td.MagicIll {background-color: #CCFFCC !important;}
table.MagicMys th, tr.MagicMys th, tr.MagicMys td, th.MagicMys, td.MagicMys {background-color: #FFDDFF !important;}
table.MagicRes th, tr.MagicRes th, tr.MagicRes td, th.MagicRes, td.MagicRes {background-color: #CCCCFF !important;}
table.MagicErr th, tr.MagicErr th, tr.MagicErr td, th.MagicErr, td.MagicErr {background-color: #999999 !important;}

/* classes for potions and poisons */
table.Potion th, tr.Potion th, tr.Potion td, th.Potion, td.Potion {background-color: #DDFFDD !important;}
table.Poison th, tr.Poison th, tr.Poison td, th.Poison, td.Poison {background-color: #FFDDDD !important;}

/* classes for race colors, set up same way as magic school colors.
   Note these definitions do not include creatures, because then it would just get  way too long */
table.RaceAlt th, tr.RaceAlt th, tr.RaceAlt td, th.RaceAlt, td.RaceAlt {background-color: #dfbe00 !important; color: #000000 !important;}
table.RaceArg th, tr.RaceArg th, tr.RaceArg td, th.RaceArg, td.RaceArg {background-color: #86ac01 !important; color: #000000 !important;}
table.RaceBos th, tr.RaceBos th, tr.RaceBos td, th.RaceBos, td.RaceBos {background-color: #847000 !important; color: #FFFFFF !important;}
table.RaceBre th, tr.RaceBre th, tr.RaceBre td, th.RaceBre, td.RaceBre {background-color: #993365 !important; color: #FFFFFF !important;}
table.RaceDun th, tr.RaceDun th, tr.RaceDun td, th.RaceDun, td.RaceDun {background-color: #848484 !important; color: #FFFFFF !important;}
table.RaceDar th, tr.RaceDar th, tr.RaceDar td, th.RaceDar, td.RaceDar {background-color: #5f9ea0 !important; color: #FFFFFF !important;}
table.RaceDre th, tr.RaceDre th, tr.RaceDre td, th.RaceDre, td.RaceDre {background-color: #b22222 !important; color: #FFFFFF !important;}
table.RaceGol th, tr.RaceGol th, tr.RaceGol td, th.RaceGol, td.RaceGol {background-color: #ffdd00 !important; color: #000000 !important;}
table.RaceImp th, tr.RaceImp th, tr.RaceImp td, th.RaceImp, td.RaceImp {background-color: #0000ae !important; color: #FFFFFF !important;}
table.RaceKha th, tr.RaceKha th, tr.RaceKha td, th.RaceKha, td.RaceKha {background-color: #f39a00 !important; color: #000000 !important;}
table.RaceNor th, tr.RaceNor th, tr.RaceNor td, th.RaceNor, td.RaceNor {background-color: #00d8d8 !important; color: #000000 !important;}
table.RaceOrc th, tr.RaceOrc th, tr.RaceOrc td, th.RaceOrc, td.RaceOrc {background-color: #118500 !important; color: #FFFFFF !important;}
table.RaceRed th, tr.RaceRed th, tr.RaceRed td, th.RaceRed, td.RaceRed {background-color: #841a1a !important; color: #FFFFFF !important;}
table.RaceOther th, tr.RaceOther th, tr.RaceOther td, th.RaceOther, td.RaceOther {background-color: #000000 !important; color: #FFFFFF !important;}
table.RaceErr th, tr.RaceErr th, tr.RaceErr td, th.RaceErr, td.RaceErr {background-color: #dddddd !important; color: #000000 !important;}



/********************************************************************************************
*********************************************************************************************
*************                                                                  **************
************* для работы инфо-боксов типа ambox с русской части Wikipedia **************
*************                                                                  **************
*********************************************************************************************
********************************************************************************************/

/* {ambox} */
table.ambox {
  width: auto;
  margin: 0 10%;
  border-collapse: collapse;
  background: #FBFBFB;
  border: 1px solid #AAAAAA;
  border-left: 10px solid #1E90FF
}
table.ambox th, table.ambox td {
  padding: 0.25em 0.5em;
}
table.ambox td.ambox-widthhack {
  padding: 0;
}
table.ambox td.ambox-text {
  width:100%;
}
table.ambox td.ambox-text .ambox-text-small {
  font-size:smaller;
}
table.ambox td.ambox-image {
  width: 52px;
  padding: 2px 0px 2px 0.5em;
  text-align: center;
}
table.ambox td.ambox-imageright {
  width: 52px;
  padding: 2px 4px 2px 0px;
  text-align: center;
}
table.ambox td.ambox-image div,
table.ambox td.ambox-imageright div {width:52px} /* Фикс для изображений разной ширины */
table.ambox-delete,
table.ambox-serious {
  border-left: 10px solid #B22222
}
table.ambox-content {
  border-left: 10px solid #F28500
}
table.ambox-style {
  border-left: 10px solid #F4C430
}
table.ambox-good {
  border-left: 10px solid #66CC44
}
table.ambox-discussion {
  border-left: 10px solid #339966
}
table.ambox-notice {
  border-left: 10px solid #1E90ff
}
table.ambox-merge {
  border-left: 10px solid #9932CC
}
table.ambox.ambox-mini {
  float: right;
  clear: right;
  margin: 0 0 0.5em 1em;
  width: 20%;
}

/*
######################################################################
######################################################################
########   part MediaWiki:Common.CSS from Wikimedia Commons ##########
######################################################################
######################################################################
*/

/* Message box templates */
.messagebox {
   border: 1px solid #aaa;
   background-color: #f9f9f9;
   width: 80%;
   margin: 0 auto 1em;
   padding: 0.2em;
   text-align: justify;
}
.messagebox.merge {
   border: 1px solid #cf9fff;
   background-color: #f5edf5;
   text-align: center;
}
.messagebox.cleanup {
   border: 1px solid #9f9fff;
   background-color: #efefff;
   text-align: center;
}
.messagebox.standard-talk {
   border: 1px solid #c0c090;
   background-color: #f8eaba;
}

/*
######################################################################
######################################################################
########   part MediaWiki:Common.CSS from Wikimedia ##########
######################################################################
######################################################################
*/

/* Messagebox templates */
.messageboxwp {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    width: 80%;
    margin: 0 auto 1em auto;
    padding: .2em;
}
.messageboxwp.merge {
    border: 1px solid #c0b8cc;
    background-color: #f0e5ff;
    text-align: center;
}
.messageboxwp.cleanup {
    border: 1px solid #9f9fff;
    background-color: #efefff;
    text-align: center;
}
.messageboxwp.standard-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
    margin: 4px auto;
}
/* For old WikiProject banners inside banner shells. */
.mbox-insidewp.standard-talk,
.messageboxwp.nested-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
    width: 100%;
    margin: 2px 0;
    padding: 2px;
}
.messageboxwp.small {
    width: 238px;
    font-size: 85%;
    float: right;
    clear: both;
    margin: 0 0 1em 1em;
    line-height: 1.25em; 
}
.messageboxwp.small-talk {
    width: 238px;
    font-size: 85%;
    float: right;
    clear: both;
    margin: 0 0 1em 1em;
    line-height: 1.25em; 
    background: #F8EABA;
}

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

/*</nowiki></pre>*/