MediaWiki:Common.css

Материал из Guild Wars 2 wiki
Версия от 10:14, 15 июня 2016; Blood (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
/* Размещённый здесь CSS будет применяться ко всем темам оформления */

/* Universal styles */
.hidelist ul { list-style:none none; margin:0; padding:0; }
.hidelist p { font-style:italic; margin:0 0 .2em; }
.hidelist p + ul { margin-bottom:.5em; }
.infobox .clear, .nav .clear, .recipe-box .clear { height:5px; }
#content .hiddenlinks a, #content .hiddenlinks a:link, #content .hiddenlinks a:visited { color:inherit; }

/* revenant */
  .table.revenant > :first-child > tr:first-child,
  .table.revenant > tbody > tr.heading,
  .table.revenant > :first-child > tr:first-child > *,
  .table.revenant > tbody > tr.heading > * {
    background-color:#B1574C !important;
    border-color:#A65747 !important;
  }
  .table.revenant > tbody > tr > th,
  table.table > tbody > tr.revenant > th {
    background-color:#E3B4AA;
    border-color:#BFA8A0;
  }
  .table.revenant > tbody > tr:nth-child(odd),
  .table > tbody > tr.revenant:nth-child(odd) {
    background-color:#F6ECE9;
  }

div.infobox.revenant dd,
div.infobox.revenant dt { border-color:#861313!important; }

div.infobox.revenant .heading,
div.infobox.revenant .subheading { background-color:#861313!important; }

div.nav.revenant .heading,
div.nav.revenant .subheading { background-color:#C23F3A; }

div.nav.revenant dd,
div.nav.revenant dt,
div.nav.revenant table th { border-color:#C23F3A; }

/* skin */
.table.skin > :first-child > tr:first-child,
.table.skin > tbody > tr.heading,
.table.skin > :first-child > tr:first-child > *,
.table.skin > tbody > tr.heading > * {
  background-color:#E07A98 !important;
  border-color:#996574 !important;
}
.table.skin > tbody > tr > th,
.table.skin > tfoot > tr > th,
.table.skin > thead > tr > th,
table.table > tbody > tr.skin > th {
  background-color:#FFD4DF;
  border-color:#B3A1A5;
}
.table.skin > tbody > tr:nth-child(odd),
.table > tbody > tr.skin:nth-child(odd) {
  background-color:#FFEDF4;
}

div.infobox.skin dd,
div.infobox.skin dt { border-color:#C4003E; }

div.infobox.skin .heading,
div.infobox.skin .subheading { background:#C4003E; }

/* specialization and effect infoboxes */
div.infobox.specialization,
div.infobox.trait,
div.infobox.effect {
  width: 260px;
}

div.infobox.specialization dt, 
div.infobox.trait dt,
div.infobox.effect dt {
  width: 87px;
  line-height: 20px;
}

/* crafting and item infoboxes */
div.infobox.crafting,
div.infobox.item {
  width: 260px;
}

div.infobox.crafting dt,
div.infobox.item dt {
  width: 87px;
  line-height: 20px;
}

/* Recipe boxes that don't look like infoboxes */
div.recipe-box dt {
  width:88px;
}

/* Trading Post prices (MediaWiki:TPprices.js) */
.gw2-tpprice {
  white-space: nowrap;
  text-align: right;
} 
.gw2-tpprice > img {
  position: relative;
  bottom: 1px;
  width: 15px;
  height: 15px;
}

/* Game links (MediaWiki:GameLinks.js) */
input.chatlink {
    font-size: 1em;
    position: absolute;
    margin-left: -2px;
    display: none;
    width: 6.6em;
}

/** NAV BARS (headings are done with infobox headings) **/
div.nav.condition .heading { background-color:#51A651; }

div.nav.condition dd,
div.nav.condition dt,
div.nav.condition table th { border-color:#51A651; }

/**
 * Style for horizontal lists (separator following item).
 * @source mediawiki.org/wiki/Snippets/Horizontal_lists
 * @revision 6 (2014-05-09)
 * @author mediawiki.org/wiki/User:Edokter
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ") ";
    font-weight: normal;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) " ";
    white-space: nowrap;
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}