Terraria Wiki
Terraria Wiki
1735
страниц
Нет описания правки
мНет описания правки
Строка 65: Строка 65:
 
/* Класс для предупреждений */
 
/* Класс для предупреждений */
 
.warning {
 
.warning {
color:#AFCFE2;
+
color:#5ca0e0;
 
}
 
}
 
/* ------------------ */
 
/* ------------------ */

Версия от 04:15, 31 января 2017

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


/* Скрывает заголовок страницы на заглавной */
body.page-Заглавная_страница h1.firstHeading {
   display:none; 
}
/* ------------------ */

/* Стиль шаблонов-карточек */
.infobox {
   border: 1px #AAA solid;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px #AAA solid;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}
/* ------------------ */


/* таблицы класса «terraria» */
table.terraria {
	margin: 1em 1em 1em 0;
	background: #F9F9F9;
        border: 1px #AFCFE2 solid;
        padding: 0.2em;
        border-radius: .7em;
	-moz-border-radius: .7em;
        -webkit-border-radius: .7em;
}
.terraria th, .terraria td {
	padding: 0.2em;
}
.terraria th {
	background: #E4F0F7;
        color: black;
	text-align: center;
}
.terraria caption {
	font-weight: bold;
}
/* ------------------ */

/* Класс для предупреждений */
.warning {
        color:#5ca0e0;
}
/* ------------------ */

/* Автоматические разделители строк в таблицах */
table.lined td {
        border-bottom:1px #AFCFE2 solid;
}
table.lined tr:last-of-type td {
        border-bottom:0;
}
table tr.bottomline td {
        border-bottom:1px #AFCFE2 solid;
}
table tr.topline td {
        border-top:1px #AFCFE2 solid;
}
/* ------------------ */


/* Ломает «border-collapse» и «border-radius» в одой и той же таблице
   ...с помощью одной таблицы, вложенной в другую */
table.outer {
        white-space:nowrap;
}
table.inner {
        border-collapse:collapse; 
        background:inherit; 
        width:100%;
}
table.inner th {
        border:solid #FFF; 
        border-width:2px 2px 2px 2px;
}
/*
table.inner th:first-of-type {
        border-width:0px 0px 0px 0px;
}
*/
/* ------------------ */


/* Пользовательский стиль списка, использующийся в небольших маркированных списках внутри разворачивающихся шаблонов-карточек */
span.dropSub ul {
  list-style: none;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}
span.dropSub li {
  padding-left: 1em;
  text-indent: -1em;
}
span.dropSub li:before {
  content: "•";
}
/* ------------------ */


/* Стиль для вкладок расширения Tabber */
body ul.tabbernav li a,
body ul.tabbernav li a:link,
body ul.tabbernav li a:visited,
body ul.tabbernav li a:hover {
    border-radius: .5em .5em 0 0;
}
/* ------------------ */


/* Убирает квадратные скобки из ссылок «показать/скрыть» для сворачивающихся элементов с указанным классом «plaincollapse» */
.plaincollapse .mw-collapsible-toggle {
    color:rgba(0, 0, 0, 0.0);
}
/* ------------------ */


/* Другой стиль «plaincollapse» */
.plaincollapse .mw-collapsible-toggle  a,
.plaincollapse .mw-collapsible-toggle  a:link,
.plaincollapse .mw-collapsible-toggle  a:visited,
.plaincollapse .mw-collapsible-toggle  a:hover {
    font-weight:bold;
    color:#11688F;
}
/* ------------------ */


/* Смещение ссылок на якори */
.anchor {
    display: block;
    height: 100px; 
    margin-top: -100px; 
    z-index:-9999;
    visibility: hidden;
}
/* ------------------ */


/*Стилизует «sitenotice» (панель уведомлений) и исправляет этот ужасный отступ (почему это в таблице!?) */
#siteNotice #localNotice,
.page-MediaWiki_Sitenotice .mw-content-ltr > div
 {
    background-color: #FFFFFF;
    border: 1px solid #D3D3D3;
    margin-bottom: 12px;
    text-align: center
}
#siteNotice #mw-dismissable-notice #localNotice {
    /* Примечание для других языков: Change this to the same width as the "dismiss" button in your language, this makes the sitenotice centred better */
    margin-left: 55px
}

#siteNotice td:first-child {
    width: 100%
}

#localNotice div p {
    padding: 0.4em 0 0.5em;
    margin: 0;
}

.dablink,
.rellink {
	font-style: italic;
	padding-left: 1.6em;
}
/* ------------------ */


// Помечать внешние ссылки как внутренние
#content a.external[href^="http://terraria-ru.gamepedia.com"], 
#content a.external[href^="//terraria-ru.gamepedia.com"]	{
		background: none;
		padding-right: 0px;
		}