MediaWiki:Common.css: различия между версиями

Материал из Томская энциклопедии
 
 
Строка 1: Строка 1:
/* При добавлении правил, которые должны также действовать в мобильной версии, не забудьте добавить
+
/**
  аналогичные правила в [[MediaWiki:Mobile.css]]. */
+
*  [Содержание]
 +
*
 +
*  1. Интерфейс
 +
*  1.1 Теги
 +
*  1.2 Классы
 +
*  1.3 Расширения
 +
*  1.4 Редакторы
 +
*  2. Служебные классы
 +
*  3. Общие классы
 +
*  3.1 Списки
 +
*  3.2 Примечания
 +
*  3.3 Колонки
 +
*  3.4 Таблицы
 +
*  3.5 Порталы
 +
*  4. Шаблоны
 +
*  5. Страницы
 +
*
 +
При добавлении правил, которые должны также действовать в мобильной версии,
 +
не забудьте добавить аналогичные правила в [[MediaWiki:Mobile.css]].
 +
*/
  
/* Стили для [[Заглавная страница]] */
+
/* ================================================
body.page-Заглавная_страница #ca-current,
+
  ИНТЕРФЕЙС
body.page-Заглавная_страница #ca-delete,
+
  ================================================ */
body.page-Заглавная_страница #t-cite,
 
body.page-Заглавная_страница #catlinks,
 
body.page-Заглавная_страница #lastmod,
 
body.page-Заглавная_страница #footer-info-lastmod,
 
body.page-Заглавная_страница.action-view h1.firstHeading,
 
body.page-Заглавная_страница.action-view #siteSub,
 
body.page-Заглавная_страница.action-view #contentSub,
 
body.page-Заглавная_страница.action-view #mw-data-after-content {
 
display: none !important;
 
}
 
  
.globegris {
+
/* ТЕГИ ------------------------------------------- */
background:url(//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png);
 
}
 
  
/* MediaWiki interface */
+
/* Избавляемся от дважды жирного шрифта (2019-09-08) */
.allpagesredirect,
+
b {
span.redirect-in-category a {
+
font-weight: 700;
font-style: italic;
 
 
}
 
}
  
#mw-subcategories,
+
/* Сбрасываем курсивное оформление, применяемое браузером */
#mw-pages {
+
cite, dfn {
clear: both;
+
font-style: inherit;
}
 
 
 
.gallerybox .thumb img,
 
.filehistory a img,
 
#file img {
 
background: url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
 
}
 
 
 
.mw-tag-markers {
 
font: italic 90% sans-serif;
 
 
}
 
}
  
Строка 64: Строка 60:
 
}
 
}
  
/* Служебные классы для показа сообщений отдельным группам пользователей */
+
/* fix for line-breaking references */
 +
sub,
 +
sup {
 +
line-height: 1em;
 +
}
 +
 
 +
blockquote {
 +
margin: 0.7em 0 0.7em 5%;
 +
padding: 0.7em 2% 0.7em 4%;
 +
background: #f8f9fa;
 +
overflow: hidden;
 +
}
 +
 
 +
/* КЛАССЫ ----------------------------------------- */
 +
 
 +
/* Уточнение ширины логотипа на экранах с большей плотностью пикселей (сами
 +
  изображения задаются в файле стилей, не изменяемом локально; помогает
 +
  избежать сглаживания? 136 = 204 / 1,5; 204px — ширина картинки) */
 +
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
 +
#p-logo a {
 +
background-size: 136px auto;
 +
}
 +
}
 +
 
 +
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
 +
#p-logo a {
 +
background-size: 135px auto;
 +
}
 +
}
 +
 
 +
.filehistory a img,
 +
#file img {
 +
background: url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
 +
}
 +
 
 +
/* Remove "external" icon from links to WP */
 +
body.ns-talk a.external[href*="//ru.wikipedia.org/"],
 +
body.ns-4 a.external[href*="//ru.wikipedia.org/"],
 +
body.ns-104 a.external[href*="//ru.wikipedia.org/"],
 +
body.ns-106 a.external[href*="//ru.wikipedia.org/"] {
 +
background: none !important;
 +
padding-right: 0 !important;
 +
}
 +
 
 +
/* PDF icon next to external PDF link for Mozilla and Opera and for {PDFlink} template */
 +
a[href$=".pdf"].external,
 +
a[href*=".pdf?"].external,
 +
a[href*=".pdf#"].external,
 +
a[href$=".PDF"].external,
 +
a[href*=".PDF?"].external,
 +
a[href*=".PDF#"].external,
 +
span.PDFlink a {
 +
background: url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) center right no-repeat !important;
 +
padding-right: 18px !important;
 +
}
 +
 
 +
.hatnote,
 +
.dablink,
 +
.rellink {
 +
font-style: italic;
 +
padding-left: 1.6em;
 +
}
 +
 
 +
.allpagesredirect,
 +
span.redirect-in-category a {
 +
font-style: italic;
 +
}
 +
 
 +
/* Clickable speaker in {Audio} ... */
 +
.audiolink a {
 +
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png) center left no-repeat !important;
 +
padding-left: 16px !important;
 +
padding-right: 0 !important;
 +
}
 +
 
 +
.clickable-image a:hover {
 +
text-decoration: none;
 +
}
 +
 
 +
/* Скрыть пункт «Элемент Викиданных» до начала работы гаджета
 +
  [[MediaWiki:Gadget-sidebarRelated.js]] */
 +
.client-js .action-view #t-wikibase {
 +
display: none;
 +
}
 +
 
 +
#mw-subcategories,
 +
#mw-pages {
 +
clear: both;
 +
}
 +
 
 +
#disambig {
 +
border-top: 3px double #c8ccd1;
 +
border-bottom: 3px double #c8ccd1;
 +
}
 +
 
 +
/* Лечим растягивание СН, страниц истории и вклада, если текст описания правки
 +
  негде перенести. Удалить при добавлении этого правила на глобальном уровне. */
 +
.comment {
 +
overflow-wrap: break-word;
 +
word-break: break-word;
 +
}
 +
 
 +
/* Не отображать множественные уведомления о запрете редактирования списком */
 +
.permissions-errors {
 +
list-style: none;
 +
margin: 0;
 +
}
 +
 
 +
.sitedir-ltr .mw-dismissable-notice-body {
 +
margin-right: 5em !important; /* was 20% */
 +
}
 +
 
 +
/* Fix of default <maplink> display */
 +
.mw-kartographer-maplink {
 +
margin-left: 0 !important;
 +
padding: 2px 0 2px 20px !important;
 +
}
 +
 
 +
/* Временный фикс [[Обсуждение MediaWiki:Common.css#Для чего .catlinks li параметр margin: 0.125em 0;?]],
 +
  пока не исправят в нативных стилях */
 +
.mediawiki .catlinks li {
 +
margin: 2px 0;
 +
}
 +
 
 +
.mw-tag-markers {
 +
font: italic 90% sans-serif;
 +
}
 +
 
 +
.printonly {
 +
display: none;
 +
}
 +
 
 +
/* Фикс выравнивания галереи при заданном параметре perrow (2019-10-03) */
 +
.mw-gallery-traditional.center,
 +
.mw-gallery-nolines.center {
 +
margin-left: auto;
 +
margin-right: auto;
 +
}
 +
 
 +
/* Блок «Это старая/текущая версия этой страницы». Надо предложить это в движок */
 +
.mw-revision,
 +
#mw-revision-nav {
 +
margin-top: 0.5em;
 +
}
 +
 
 +
/* РАСШИРЕНИЯ ------------------------------------- */
 +
 
 +
/* Стили для расширения [[mw:Extension:Babel]] (03-09-17) */
 +
/* Скрытие буквы N у родных языков, по аналогии со стандарными шаблонами */
 +
.mw-babel-box-level-N {
 +
display: none;
 +
}
 +
 
 +
/* FlaggedRevs */
 +
/* Скрываем верхнюю таблицу для анонимов и показываем
 +
для зарегистрированных с помощью [[MediaWiki:Group-user.css]] */
 +
#mw-fr-revisiontag {
 +
display: none;
 +
}
 +
.mw-fr-reviewlink,
 +
.fr-hist-basic-user,
 +
.fr-hist-basic-auto {
 +
font-weight: normal;
 +
font-size: 85%;
 +
}
 +
.flaggedrevs-pending {
 +
background: #ffc;
 +
}
 +
.sitedir-ltr div.flaggedrevs_short {
 +
float: none;
 +
padding: 1px;
 +
}
 +
.sitedir-ltr div.flaggedrevs_short_details {
 +
width: 95%;
 +
display: none;
 +
}
 +
/* Лишний отступ */
 +
div.flaggedrevs_notice {
 +
    margin-right: 0;
 +
}
 +
 
 +
/* Remove popup from Content translation tool, if not opted in */
 +
.cx-callout:not(.cx-campaign-contributionsmenu):not(.cx-entrypoint-dialog) { display: none !important; }
 +
 
 +
/* Покрасить "неприоритетные" ссылки в библиографических ссылках в черный цвет (касается только ссылок, генерируемых Lua) */
 +
.wef_low_priority_links a,
 +
.wef_low_priority_links a.extiw,
 +
.wef_low_priority_links a.external,
 +
.wef_low_priority_links a:visited,
 +
.wef_low_priority_links a.extiw:visited,
 +
.wef_low_priority_links a.external:visited {
 +
color: #202122;
 +
}
 +
 
 +
/* РЕДАКТОРЫ -------------------------------------- */
 +
 
 +
/* Visual editor related */
 +
.mw-ve-editNotice .mbox-image,
 +
.ve-active .ve-hide,
 +
.ve-show {
 +
display: none;
 +
}
 +
 
 +
.ve-active div.ve-show,
 +
.ve-active p.ve-show {
 +
display: block;
 +
}
 +
 
 +
.ve-active span.ve-show,
 +
.ve-active small.ve-show {
 +
display: inline;
 +
}
 +
 
 +
.ve-active li.ve-show {
 +
display: list-item;
 +
}
 +
 
 +
/* ================================================
 +
  СЛУЖЕБНЫЕ КЛАССЫ
 +
  ================================================ */
 +
 
 +
/* Классы для показа сообщений отдельным группам пользователей */
 
.group-checkuser-show,
 
.group-checkuser-show,
 
.group-bureaucrat-show,
 
.group-bureaucrat-show,
Строка 76: Строка 293:
 
display: none;
 
display: none;
 
}
 
}
 +
 +
/* ================================================
 +
  ОБЩИЕ КЛАССЫ
 +
  ================================================ */
 +
 +
/* СПИСКИ ----------------------------------------- */
  
 
/* Style for horizontal lists (separator following item).
 
/* Style for horizontal lists (separator following item).
Строка 116: Строка 339:
 
.hlist dd:after,
 
.hlist dd:after,
 
.hlist li:after {
 
.hlist li:after {
content: " ";
+
content: "\00a0• ";
 
}
 
}
 
.hlist dd:last-child:after,
 
.hlist dd:last-child:after,
Строка 153: Строка 376:
  
 
/* Немаркированные списки */
 
/* Немаркированные списки */
.plainlist ol,
+
.plainlist ol:not(.references),
 +
.plainlist dl,
 
.plainlist ul {
 
.plainlist ul {
 
line-height: inherit;
 
line-height: inherit;
Строка 159: Строка 383:
 
margin: 0;
 
margin: 0;
 
}
 
}
.plainlist ol li,
+
.plainlist ol:not(.references) li,
 +
.plainlist dl dt,
 +
.plainlist dl dd,
 
.plainlist ul li {
 
.plainlist ul li {
margin-bottom: 0;
+
margin: 0;
 +
}
 +
.plainlist dl dt:after {
 +
content: ": ";
 +
}
 +
 
 +
/* Неразрывные пробелы в горизонтальных списках */
 +
.nowrap,
 +
.nowraplinks a,
 +
.nowraplinks .selflink,
 +
.hlist-items-nowrap dd,
 +
.hlist-items-nowrap dt,
 +
.hlist-items-nowrap li {
 +
white-space: nowrap;
 +
}
 +
 
 +
/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
 +
.wrap,
 +
.wraplinks a,
 +
.wraplinks .selflink,
 +
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
 +
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
 +
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
 +
white-space: normal;
 +
}
 +
 
 +
/* ПРИМЕЧАНИЯ ------------------------------------- */
 +
 
 +
ol.references {
 +
font-size: 100%;
 +
}
 +
.reflist,
 +
.references-small {
 +
font-size: 90%;
 +
margin-bottom: 0.5em;
 +
}
 +
.reflist ol.references,
 +
.references-small ol.references {
 +
list-style-type: inherit;  /* Enable custom list style types */
 +
}
 +
.reflist-narrow .mw-references-columns {
 +
-webkit-column-width: 20em;
 +
-moz-column-width: 20em;
 +
column-width: 20em;
 +
}
 +
.reflist-wide .mw-references-columns {
 +
-webkit-column-width: 40em;
 +
-moz-column-width: 40em;
 +
column-width: 40em;
 +
}
 +
 
 +
/* highlight focused footnotes and references in some browsers */
 +
sup.reference:target,
 +
ol.references li:target,
 +
.highlight-target:target,
 +
cite:target,
 +
span.citation:target {
 +
background: #eaf3ff;
 +
}
 +
sup.reference:target {
 +
font-weight: bold;
 +
}
 +
 
 +
.ref-info {
 +
font-size: 85%;
 +
color: #72777d;
 +
}
 +
 
 +
/* КОЛОНКИ ---------------------------------------- */
 +
 
 +
/* Авторазбиение списков на колонки. Будет работать только для однострочных списков. 35em является предварительным числом, а фактическое будет посчитано исходя из ширины элементов. Должно использоваться только для UL внутри DIV. Пример использования — шаблон {{Wikidata/SisterCities}} */
 +
.autocolumns {
 +
-moz-columns: 35em auto;
 +
columns: 35em auto;
 +
white-space: nowrap;
 +
}
 +
 
 +
/* Reset top margin for lists embedded in columns */
 +
div.columns {
 +
margin-top: 0.3em;
 +
}
 +
div.columns dl,
 +
div.columns ol,
 +
div.columns ul {
 +
margin-top: 0;
 +
}
 +
 
 +
/* Avoid elements from breaking between columns */
 +
.nocolbreak,
 +
div.columns li,
 +
div.columns dd dd {
 +
-webkit-column-break-inside: avoid;
 +
page-break-inside: avoid;
 +
break-inside: avoid-column;
 
}
 
}
 +
 +
/* ТАБЛИЦЫ ---------------------------------------- */
  
 
/* [[Википедия:Оформление таблиц]] */
 
/* [[Википедия:Оформление таблиц]] */
Строка 213: Строка 534:
 
}
 
}
 
table.graytable caption span.subcaption {
 
table.graytable caption span.subcaption {
font-size: 80%;
+
font-size: 88.5%;
 
font-weight: normal;
 
font-weight: normal;
 
}
 
}
 
table.graytable th,
 
table.graytable th,
 
table.graytable td {
 
table.graytable td {
font-size: 80%;
+
font-size: 88.5%;
 
}
 
}
  
Строка 251: Строка 572:
 
background: #ccc;
 
background: #ccc;
 
}
 
}
 +
 +
/* ПОРТАЛЫ ---------------------------------------- */
 +
 +
/* For portals, added 2011-12-07 -bv
 +
  On wide screens, show these as two columns
 +
  On narrow and mobile screens, let them collapse into a single column */
 +
.portal-column-left {
 +
float: left;
 +
width: 50%;
 +
}
 +
.portal-column-right {
 +
float: right;
 +
width: 49%;
 +
}
 +
.portal-column-left-wide {
 +
float: left;
 +
width: 60%;
 +
}
 +
.portal-column-right-narrow {
 +
float: right;
 +
width: 39%;
 +
}
 +
.portal-column-left-extra-wide {
 +
float: left;
 +
width: 70%;
 +
}
 +
.portal-column-right-extra-narrow {
 +
float: right;
 +
width: 29%;
 +
}
 +
@media only screen and (max-width: 800px) {
 +
/* Decouple the columns on narrow screens */
 +
.portal-column-left,
 +
.portal-column-right,
 +
.portal-column-left-wide,
 +
.portal-column-right-narrow,
 +
.portal-column-left-extra-wide,
 +
.portal-column-right-extra-narrow {
 +
float: inherit;
 +
width: inherit;
 +
}
 +
}
 +
 +
/* ================================================
 +
  ШАБЛОНЫ
 +
  ================================================ */
 +
 +
/* ПРЕДУПРЕЖДЕНИЯ И УВЕДОМЛЕНИЯ ------------------- */
  
 
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
 
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
Строка 277: Строка 646:
 
width: 1px;
 
width: 1px;
 
}
 
}
 
  
 
/* Image message box styles */
 
/* Image message box styles */
Строка 553: Строка 921:
 
}
 
}
  
/* Style for compact ambox */
+
/* Стили нотификаций для мобильного устройсва */
/* Hide the images */
+
@media (max-width: 719px) {
.compact-ambox table .mbox-image,
+
table.ombox,
.compact-ambox table .mbox-imageright,
+
table.tmbox,
.compact-ambox table .mbox-empty-cell {
+
table.ambox {
display: none;
+
margin-left: 0;
 +
margin-right: 0;
 +
}
 
}
 
}
/* Remove borders, backgrounds, padding, etc. */
+
 
.compact-ambox table.ambox {
+
.notice {
border: none;
+
text-align: justify;
border-collapse: collapse;
+
margin: 1em 0.5em;
background: transparent;
+
padding: 0.5em;
margin: 0 0 0 1.6em !important;
 
padding: 0 !important;
 
width: auto;
 
display: block;
 
 
}
 
}
body.mediawiki .compact-ambox table.mbox-small-left {
+
 
font-size: 100%;
+
/* Устаревший стиль, на данный момент практически везде используется
width: auto;
+
  неверно, почистить и удалить при первой возможности */
margin: 0;
+
.messagebox {
 +
border: thin solid #aaa;
 +
background: #f9f9f9;
 +
width: 88%;
 +
margin: 0 auto 1em auto;
 +
padding: .4em;
 +
vertical-align: middle;
 +
font-size: 90%
 
}
 
}
/* Style the text cell as a list item and remove its padding */
+
.messagebox.standard-talk {
.compact-ambox table .mbox-text {
+
border: 1px solid #c0c090;
padding: 0 !important;
+
background: #f8eaba;
margin: 0 !important;
 
 
}
 
}
.compact-ambox table .mbox-text-span {
+
.messagebox .floatleft {
display: list-item;
+
vertical-align: middle;
line-height: 1.5em;
+
clear: both;
list-style-type: square;
+
margin: 2px;
list-style-image: url(/w/skins/MonoBook/bullet.gif);
+
padding: 0;
 
}
 
}
.skin-vector .compact-ambox table .mbox-text-span {
+
.messagebox .image {
list-style-type: disc;
+
margin: 0;
list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);
+
padding: 0;
list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9;
 
}
 
/* Allow for hiding text in compact form */
 
.compact-ambox .hide-when-compact {
 
display: none;
 
 
}
 
}
  
/* needs desc */
+
/* КАРТОЧКА --------------------------------------- */
  
 
.infobox {
 
.infobox {
Строка 606: Строка 973:
 
float: right;
 
float: right;
 
clear: right;
 
clear: right;
font-size: 88%;
+
font-size: 90%;
 
width: 23em;
 
width: 23em;
 
vertical-align: middle;
 
vertical-align: middle;
Строка 624: Строка 991:
 
}
 
}
  
/* temporarily for [[Template:Карточка]] */
+
/* Компоненты карточки */
table.infobox td p {
+
.infobox-above {
margin: 0 !important;
+
font-size: 120%;
 +
text-align: center;
 +
}
 +
.infobox-image {
 +
padding-left: 0;
 +
padding-right: 0;
 +
text-align: center;
 +
}
 +
.infobox-header {
 +
text-align: center;
 +
}
 +
.infobox-below {
 +
text-align: center;
 +
}
 +
.infobox-table,
 +
.infobox-tablebox,
 +
.infobox-medals {
 +
padding: 0;
 
}
 
}
 
+
.infobox-table > table,
/* списки в карточках */
+
.infobox-tablebox > table,
.infobox th>ul,
+
.infobox-medals > table {
.infobox td>ul,
+
width: 100%;
.infobox [data-wikidata-property-id]>ul{
+
display: table;
list-style-type: none;
 
list-style-image: none;
 
 
margin: 0;
 
margin: 0;
 +
background: transparent;
 
}
 
}
.infobox th>ol,
+
.infobox-tablebox > table {
.infobox td>ol {
+
background: #ffffff;
line-height: 1.1em;
+
border: 1px solid #a2a9b1;
margin: 0 0 0 2em;
 
 
}
 
}
.infobox li {
+
.infobox-medals > table {
margin-bottom: 0;
+
border-collapse: separate;
 
}
 
}
 
+
.infobox-medals .NavFrame {
.notice {
+
padding: 0;
text-align: justify;
+
border: none;
margin: 1em 0.5em;
+
font-size: 100%;
padding: 0.5em;
 
 
}
 
}
 
+
.infobox-medals .NavFrame .NavHead {
/* Устаревший стиль, на данный момент практически везде используется
+
padding: 1px 5em;
неверно, почистить и удалить при первой возможности */
 
.messagebox {
 
border: thin solid #aaa;
 
background: #f9f9f9;
 
width: 88%;
 
margin: 0 auto 1em auto;
 
padding: .4em;
 
vertical-align: middle;
 
font-size: 90%
 
 
}
 
}
.messagebox.standard-talk {
+
.infobox-medals .NavFrame .NavToggle {
border: 1px solid #c0c090;
+
position: absolute;
background: #f8eaba;
+
top: 1px;
 +
right: 1px;
 
}
 
}
.messagebox .floatleft {
+
.infobox-medals .NavFrame .NavContent {
vertical-align: middle;
+
font-size: 95%;
clear: both;
 
margin: 2px;
 
padding: 0;
 
 
}
 
}
.messagebox .image {
+
 
 +
/* Встраиваемая карточка */
 +
.infobox-child {
 +
width: 100%;
 
margin: 0;
 
margin: 0;
 
padding: 0;
 
padding: 0;
 +
border: none;
 +
font-size: 100%;
 
}
 
}
  
blockquote {
+
/* Списки в карточках */
margin: 0.7em 0 0.7em 5%;
+
.infobox th:not(.noplainlist) > ul,
padding: 0.7em 2% 0.7em 4%;
+
.infobox td:not(.noplainlist) > ul,
background: #f8f9fa;
+
.infobox [data-wikidata-property-id] > ul {
overflow: hidden;
+
list-style-type: none;
 +
list-style-image: none;
 +
margin: 0;
 +
}
 +
.infobox .noplainlist > ul:first-child {
 +
margin-top: 0;
 +
}
 +
.infobox th > ol,
 +
.infobox td > ol,
 +
.infobox [data-wikidata-property-id] > ol {
 +
margin: 0 0 0 2em;
 +
}
 +
.infobox th > dl,
 +
.infobox td > dl,
 +
.infobox [data-wikidata-property-id] > dl {
 +
margin: 0;
 
}
 
}
 
+
.infobox li,
ol.references {
+
.infobox dt,
font-size: 100%;
+
.infobox dd {
 +
margin-bottom: 0;
 
}
 
}
.references-small {
+
.infobox th > ol.references,
font-size: 90%;
+
.infobox td > ol.references {
 +
line-height: 1.25em;
 
}
 
}
/* highlight focused footnotes and references in some browsers */
+
.infobox th > ol.references li,
sup.reference:target,
+
.infobox td > ol.references li {
ol.references li:target,
+
margin-bottom: 0.1em;
.highlight-target:target,
 
cite:target,
 
span.citation:target {
 
background: #eaf3ff;
 
 
}
 
}
sup.reference:target {
+
.infobox th > ol.references li:last-child,
font-weight: bold;
+
.infobox td > ol.references li:last-child {
 +
margin-bottom: 0;
 
}
 
}
  
/* fix for line-breaking references */
+
/* ToDo: temporarily fix */
sub,
+
.infobox td p {
sup {
+
margin: 0 !important;
line-height: 1em;
 
 
}
 
}
  
.clickable-image a:hover {
+
/* [[Шаблон:Tree list]] --------------------------- */
text-decoration: none;
+
 
 +
.treeview ul {
 +
padding: 0;
 +
margin: 0;
 +
}
 +
.treeview li {
 +
padding: 0;
 +
margin: 0;
 +
list-style-type: none;
 +
list-style-image: none;
 
}
 
}
 
+
.treeview li li {
.printonly {
+
background: url("//upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
display: none;
+
/* @noflip */
 +
padding-left: 20px;
 +
text-indent: 0.3em;
 
}
 
}
 
+
.treeview li li.lastline {
.dablink,
+
background-position: 0 -5971px
.rellink {
 
font-style: italic;
 
padding-left: 1.6em;
 
 
}
 
}
 
+
.treeview li.emptyline > ul {
#disambig {
+
/* @noflip */
border-top: 3px double #c8ccd1;
+
margin-left: -1px;
border-bottom: 3px double #c8ccd1;
 
 
}
 
}
 
+
.treeview li.emptyline > ul > li:first-child {
/*{TOClimit} & TOC w/o numbers*/
+
background-position: 0 9px
.toclimit-2 .toclevel-2,
 
.toclimit-3 .toclevel-3,
 
.toclimit-4 .toclevel-4,
 
.toclimit-5 .toclevel-5,
 
.toclimit-6 .toclevel-6,
 
.toclimit-7 .toclevel-7,
 
.nonumtoc .tocnumber {
 
display: none;
 
 
}
 
}
  
 +
/* [[Шаблон:Math]] -------------------------------- */
  
/* PDF icon next to external PDF link for Mozilla and Opera and for {PDFlink} template */
+
.math-template {
a[href$=".pdf"].external,
+
white-space: nowrap;
a[href*=".pdf?"].external,
+
font-family: times, serif, palatino linotype, new athena unicode, athena, gentium, code2000;
a[href*=".pdf#"].external,
+
font-size: 120%;
a[href$=".PDF"].external,
 
a[href*=".PDF?"].external,
 
a[href*=".PDF#"].external,
 
span.PDFlink a {
 
background: url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) center right no-repeat !important;
 
padding-right: 18px !important;
 
 
}
 
}
  
/* Clickable speaker in  {Template:Audio} ... */
+
/* СКРЫТЫЙ ---------------------------------------- */
.audiolink a {
 
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png) center left no-repeat !important;
 
padding-left: 16px !important;
 
padding-right: 0 !important;
 
}
 
 
 
/* {Навигация} */
 
table.navigation-box th,
 
table.navigation-box td {
 
vertical-align: middle;
 
height: 30px;
 
}
 
  
/*{Навигационная полоса}, {Hider}, ... */
+
/* {Навигационная полоса}, {Hider}, ... */
div.Boxmerge,
 
 
div.NavFrame {
 
div.NavFrame {
 
margin: 0;
 
margin: 0;
 
padding: 2px;
 
padding: 2px;
 +
overflow: hidden;
 
border: 1px solid #a2a9b1;
 
border: 1px solid #a2a9b1;
text-align: center;
 
 
border-collapse: collapse;
 
border-collapse: collapse;
 
font-size: 95%;
 
font-size: 95%;
}
 
div.Boxmerge div.NavFrame {
 
border-style: none;
 
border-style: hidden;
 
 
}
 
}
 
div.NavFrame + div.NavFrame {
 
div.NavFrame + div.NavFrame {
Строка 791: Строка 1156:
 
}
 
}
 
div.NavFrame div.NavHead {
 
div.NavFrame div.NavHead {
height: 1.6em;
+
text-align: center;
 
font-weight: bold;
 
font-weight: bold;
 
font-size: 100%;
 
font-size: 100%;
 
background: #eaecf0;
 
background: #eaecf0;
 
position: relative;
 
position: relative;
 +
}
 +
div.NavFrame div.NavContent {
 +
overflow-x: auto;
 +
overflow-y: hidden;
 +
clear: both;
 
}
 
}
 
div.NavFrame p,
 
div.NavFrame p,
Строка 801: Строка 1171:
 
div.NavFrame div.NavContent p {
 
div.NavFrame div.NavContent p {
 
font-size: 100%
 
font-size: 100%
}
 
div.NavEnd {
 
margin: 0;
 
padding: 0;
 
line-height: 1px;
 
clear: both;
 
 
}
 
}
 
a.NavToggle {
 
a.NavToggle {
Строка 815: Строка 1179:
 
}
 
}
  
/* {coord}s */
+
/* Отдельно перезаписывем NavFrame для свернутых блоков */
#mw-indicator-0-coord + .mw-indicator {
+
.collapsibleBox {
border-left: 1px solid #A7D7F9;
+
box-sizing: border-box;
margin-left: 0.25em;
 
padding-left: 0.5em;
 
 
}
 
}
  
.mw-body-content .geo-services {
+
.collapsibleBox .NavHead {
font-size: 82%;
+
line-height: 1.6em;
 +
min-height: 1.2em;
 +
padding: .1em 6em;
 +
}
 +
.collapsibleBox .NavToggle {
 +
font-size: inherit;
 +
position: absolute;
 +
top: .1em;
 +
width: 5em;
 +
}
 +
.collapsibleBox-title-rightHideLink .NavToggle {
 +
text-align: right;
 +
right: 1em;
 
}
 
}
 
+
.collapsibleBox-title-leftHideLink .NavToggle {
.geo-services a > span {
+
text-align: left;
margin: 0.25em;
+
left: 1em;
 
}
 
}
.geo-services > :first-child a > span {
+
.collapsibleBox .collapsibleBox-title-rightTitle.collapsibleBox-title-rightHideLink {
margin-left: 0.4em;
+
padding-right: 6.5em;
 
}
 
}
 
+
:not(.collapsibleBox-transparent) .collapsibleBox-title-leftTitle.collapsibleBox-title-rightHideLink {
.geo-geo-dec .geo-dec,
+
padding-left: 1em;
.geo-geo-dms .geo-dms {
 
display: inline;
 
 
}
 
}
.geo-geo-dec .geo-dms,
+
.collapsibleBox .collapsibleBox-title-leftTitle.collapsibleBox-title-leftHideLink {
.geo-geo-dms .geo-dec,
+
padding-left: 6.5em;
.geo-multi-punct {
 
display: none;
 
 
}
 
}
.geo-lat,
+
:not(.collapsibleBox-transparent) .collapsibleBox-title-rightTitle.collapsibleBox-title-leftHideLink {
.geo-lon {
+
padding-right: 1em;
white-space: nowrap;
 
 
}
 
}
  
/* {tl} */
+
.collapsibleBox .NavContent {
.wp-templatelink {
+
padding: .25em 1em;
color: #72777d;
 
 
}
 
}
  
/* FlaggedRevs */
+
.collapsibleBox-transparent.NavFrame {
/* Скрываем верхнюю таблицу для анонимов и показываем
+
border: none;
для зарегистрированных с помощью [[MediaWiki:Group-user.css]] */
+
}
#mw-fr-revisiontag {
+
.collapsibleBox-transparent.NavFrame .NavHead {
display: none;
+
background: transparent;
 +
padding: .1em 5.5em;
 
}
 
}
 
+
.collapsibleBox-transparent .collapsibleBox-title-rightHideLink .NavToggle {
.mw-fr-reviewlink,
+
text-align: right;
.fr-hist-basic-user,
+
right: 0;
.fr-hist-basic-auto {
 
font-weight: normal;
 
font-size: 85%;
 
 
}
 
}
.flaggedrevs-pending {
+
.collapsibleBox-transparent .collapsibleBox-title-leftHideLink .NavToggle {
background: #ffc;
+
text-align: left;
 +
left: 0;
 
}
 
}
.sitedir-ltr div.flaggedrevs_short {
+
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-rightTitle.collapsibleBox-title-rightHideLink,
float: none;
+
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-leftTitle.collapsibleBox-title-rightHideLink {
padding: 1px;
+
padding-left: 0;
 
}
 
}
.sitedir-ltr div.flaggedrevs_short_details {
+
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-rightTitle.collapsibleBox-title-leftHideLink,
width: 95%;
+
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-leftTitle.collapsibleBox-title-leftHideLink {
display: none;
+
padding-right: 0;
 
}
 
}
 
+
.collapsibleBox-transparent .NavContent {
 
+
padding: .25em 0;
/* Remove "external" icon from links to WP */
 
body.ns-talk a.external[href*="//ru.wikipedia.org/"],
 
body.ns-4 a.external[href*="//ru.wikipedia.org/"],
 
body.ns-104 a.external[href*="//ru.wikipedia.org/"] {
 
background: none !important;
 
padding-right: 0 !important;
 
 
}
 
}
  
 
+
/* НАВИГАЦИОННЫЙ ШАБЛОН --------------------------- */
.sitedir-ltr .mw-dismissable-notice-body {
 
margin-right: 5em !important; /* was 20% */
 
}
 
  
 
/* Default style for navigation boxes */
 
/* Default style for navigation boxes */
Строка 898: Строка 1256:
 
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
 
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
 
clear: both;
 
clear: both;
font-size: 88%;
+
font-size: 90%;
 
text-align: center;
 
text-align: center;
 
padding: 1px;
 
padding: 1px;
Строка 950: Строка 1308:
 
}
 
}
 
.navbox-even {
 
.navbox-even {
background: #f7f7f7;   /* Even row striping */
+
background: #f5f5f5;   /* Even row striping */
 
}
 
}
 
.navbox-odd {
 
.navbox-odd {
Строка 973: Строка 1331:
 
.navbar {
 
.navbar {
 
display: inline;
 
display: inline;
font-size: x-small;
+
font-size: 11px;
 
font-weight: normal;
 
font-weight: normal;
 
}
 
}
Строка 1023: Строка 1381:
 
}
 
}
  
 +
/* Reduce page jumps by hiding collapsed/dismissed content */
 +
.client-js .collapsible.collapsed > tbody > tr:not(:first-child),
 +
.client-js .NavFrame.collapsed > .NavContent,
 +
.client-js .tochidden-wrapper > .toc > ul {
 +
display: none;
 +
}
  
/* Неразрывные пробелы в горизонтальных списках */
+
/* [[Шаблон:Coord]] ------------------------------- */
.nowrap,
+
 
.nowraplinks a,
+
#mw-indicator-0-coord + .mw-indicator {
.nowraplinks .selflink,
+
border-left: 1px solid #A7D7F9;
.hlist-items-nowrap dd,
+
margin-left: 0.25em;
.hlist-items-nowrap dt,
+
padding-left: 0.5em;
.hlist-items-nowrap li {
 
white-space: nowrap;
 
 
}
 
}
  
/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
+
.mw-body-content .geo-services {
.wrap,
+
font-size: 82%;
.wraplinks a,
 
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
 
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
 
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
 
white-space: normal;
 
 
}
 
}
  
/* [[Шаблон:Tree list]] */
+
.geo-services a > span {
.treeview ul {
+
margin: 0.25em;
padding: 0;
 
margin: 0;
 
 
}
 
}
.treeview li {
+
.geo-services > :first-child a > span {
padding: 0;
+
margin-left: 0.4em;
margin: 0;
 
list-style-type: none;
 
list-style-image: none;
 
}
 
.treeview li li {
 
background: url("//upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
 
/* @noflip */
 
padding-left: 20px;
 
text-indent: 0.3em;
 
}
 
.treeview li li.lastline {
 
background-position: 0 -5971px
 
}
 
.treeview li.emptyline > ul {
 
/* @noflip */
 
margin-left: -1px;
 
}
 
.treeview li.emptyline > ul > li:first-child {
 
background-position: 0 9px
 
 
}
 
}
  
/* Watchlist details */
+
.geo-geo-dec .geo-dec,
.watchlist-msg {
+
.geo-geo-dms .geo-dms {
float: right;
+
display: inline;
background: #ffffe0;
 
border: 1px solid #fd4;
 
font-size: 8pt;
 
padding: 0.5em 0.7em;
 
margin-left: 1em;
 
line-height: 1.4em;
 
 
}
 
}
#mw-watchlist-form {
+
.geo-geo-dec .geo-dms,
clear: both;
+
.geo-geo-dms .geo-dec,
 +
.geo-multi-punct {
 +
display: none;
 
}
 
}
 
+
.geo-lat,
 
+
.geo-lon {
/* {{math}} */
 
.math-template {
 
 
white-space: nowrap;
 
white-space: nowrap;
font-family: times, serif, palatino linotype, new athena unicode, athena, gentium, code2000;
 
font-size: 120%;
 
 
}
 
}
  
/* Visual editor related */
+
/* [[Шаблон:Tl]] ---------------------------------- */
.mw-ve-editNotice .mbox-image,
+
 
.ve-active .ve-hide,
+
.wp-templatelink {
.ve-show {
+
color: #72777d;
display: none;
 
 
}
 
}
  
.ve-active div.ve-show,
+
/* [[Шаблон:TOClimit]] & TOC w/o numbers ---------- */
.ve-active p.ve-show {
 
display: block;
 
}
 
  
.ve-active span.ve-show,
+
.toclimit-2 .toclevel-2,
.ve-active small.ve-show {
+
.toclimit-3 .toclevel-3,
display: inline;
+
.toclimit-4 .toclevel-4,
 +
.toclimit-5 .toclevel-5,
 +
.toclimit-6 .toclevel-6,
 +
.toclimit-7 .toclevel-7,
 +
.nonumtoc .tocnumber {
 +
display: none;
 
}
 
}
  
.ve-active li.ve-show {
+
/* ================================================
display: list-item;
+
  СТРАНИЦЫ
}
+
  ================================================ */
  
/* For portals, added 2011-12-07 -bv
+
/* [[Заглавная страница]] ------------------------- */
  On wide screens, show these as two columns
 
  On narrow and mobile screens, let them collapse into a single column */
 
.portal-column-left {
 
float: left;
 
width: 50%;
 
}
 
.portal-column-right {
 
float: right;
 
width: 49%;
 
}
 
.portal-column-left-wide {
 
float: left;
 
width: 60%;
 
}
 
.portal-column-right-narrow {
 
float: right;
 
width: 39%;
 
}
 
.portal-column-left-extra-wide {
 
float: left;
 
width: 70%;
 
}
 
.portal-column-right-extra-narrow {
 
float: right;
 
width: 29%;
 
}
 
@media only screen and (max-width: 800px) {
 
/* Decouple the columns on narrow screens */
 
.portal-column-left,
 
.portal-column-right,
 
.portal-column-left-wide,
 
.portal-column-right-narrow,
 
.portal-column-left-extra-wide,
 
.portal-column-right-extra-narrow {
 
float: inherit;
 
width: inherit;
 
}
 
}
 
  
/* Уточнение ширины логотипа на экранах с большей плотностью пикселей (сами
+
body.page-Заглавная_страница #ca-current,
  изображения задаются в файле стилей, не изменяемом локально; помогает
+
body.page-Заглавная_страница #ca-delete,
  избежать сглаживания? 136 = 204 / 1,5; 204px — ширина картинки) */
+
body.page-Заглавная_страница #t-cite,
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
+
body.page-Заглавная_страница #catlinks,
#p-logo a {
+
body.page-Заглавная_страница #lastmod,
background-size: 136px auto;
+
body.page-Заглавная_страница #footer-info-lastmod,
}
+
body.page-Заглавная_страница.action-view h1.firstHeading,
 +
body.page-Заглавная_страница.action-view #siteSub,
 +
body.page-Заглавная_страница.action-view #contentSub,
 +
body.page-Заглавная_страница.action-view #mw-data-after-content {
 +
display: none !important;
 
}
 
}
  
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
+
/*
#p-logo a {
+
* Костыли-префиксы для поддержки устаревших браузеров заглавной страницей
background-size: 135px auto;
+
* Будут переведены на TemplateStyles, см. [[phab:T162379]]
}
+
*/
 +
.main-top-right > ul {
 +
display: -webkit-box;
 +
display: -webkit-flex;
 +
-webkit-flex-wrap: wrap;
 
}
 
}
  
/* Remove popup from Content translation tool, if not opted in */
+
.main-featuredLists > .main-featuredLists-item {
.cx-callout:not(.cx-campaign-contributionsmenu):not(.cx-entrypoint-dialog) { display: none !important; }
+
-webkit-box-align: stretch;
 
+
-webkit-align-items: stretch;
/* Покрасить "неприоритетные" ссылки в библиографических ссылках в черный цвет (касается только ссылок, генерируемых Lua) */
+
-webkit-column-break-inside: avoid;
.wef_low_priority_links a, .wef_low_priority_links a.extiw, .wef_low_priority_links a.external, .wef_low_priority_links a:visited, .wef_low_priority_links a.extiw:visited, .wef_low_priority_links a.external:visited {
+
display: -webkit-box;
color: #000;
+
display: -webkit-flex;
 
}
 
}
  
/* Авторазбиение списков на колонки. Будет работать только для однострочных списков. 35em является предварительным числом, а фактическое будет посчитано исходя из ширины элементов. Должно использоваться только для UL внутри DIV. Пример использования — шаблон {{Wikidata/SisterCities}} */
+
.main-featuredLists-item > img {
.autocolumns {
+
-webkit-box-flex: 0;
-moz-columns: 35em auto;
+
-webkit-flex: 0 auto;
columns: 35em auto;
 
white-space: nowrap;
 
 
}
 
}
  
/* Reduce page jumps by hiding collapsed/dismissed content */
+
.main-footer {
.client-js .mw-collapsible.mw-collapsed .mw-collapsible-content,
+
display: -webkit-box;
.client-js table.mw-collapsible.mw-collapsed > tbody > tr:not(:first-child),
+
display: -webkit-flex;
.client-js .collapsible.collapsed > tbody > tr:not(:first-child),
+
-webkit-box-pack: end;
.client-js .NavFrame.collapsed > .NavContent,
+
-webkit-justify-content: flex-end;
.client-js .tochidden-wrapper > .toc > ul {
 
display: none;
 
 
}
 
}
  
/* Fix of default <maplink> display */
+
.main-footer-actions {
.mw-kartographer-maplink {
+
-webkit-box-flex: 1;
margin-left: 0 !important;
+
-webkit-flex: 1;
background-position: -3px -3px !important;
 
padding: 2px 0 2px 16px !important;
 
 
}
 
}
  
/* Временный фикс [[Обсуждение MediaWiki:Common.css#Для чего .catlinks li параметр margin: 0.125em 0;?]],
+
.main-footer-actions > ul {
  пока не исправят в нативных стилях */
+
-webkit-box-align: center;
.mediawiki .catlinks li {
+
-webkit-align-items: center;
margin: 2px 0;
+
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
  
.ref-info {
+
.main-footer-menu {
font-size: 85%;
+
-webkit-box-align: stretch;
color: #72777d;
+
-webkit-align-items: stretch;
 +
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
  
/* Ряд исправлений для режима галереи slideshow */
+
.main-footer-menuToggle {
.ruwiki-slideshow ul.gallery .mw-gallery-slideshow-buttons {
+
-webkit-box-align: center;
padding:0 0 1em;
+
-webkit-align-items: center;
 +
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
  
.ruwiki-slideshow .mw-gallery-slideshow-buttons::after {
+
.main-wikimedia-list {
clear:both;
+
-webkit-column-count: 4;
content:'';
+
-webkit-column-width: 15em;
display:block;
 
 
}
 
}
  
.ruwiki-slideshow ul.gallery .mw-gallery-slideshow-buttons > div > .oo-ui-buttonElement {
+
.main-wikimedia-list > .main-wikimedia-listItem {
margin:0 0.5em;
+
-webkit-box-align: stretch;
 +
-webkit-align-items: stretch;
 +
-webkit-column-break-inside: avoid;
 +
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
  
.ruwiki-slideshow .mw-gallery-slideshow-buttons > div > .oo-ui-buttonElement:nth-child(2) {
+
.main-wikimedia-listItem > img {
display:none;
+
-webkit-box-flex: 0;
 +
-webkit-flex: 0 auto;
 
}
 
}
  
.ruwiki-slideshow .oo-ui-panelLayout-scrollable {
+
.main-wikimedia-listItem > a {
/* Для Firefox */
+
-webkit-box-flex: 1;
overflow:hidden;
+
-webkit-flex: 1;
 
}
 
}
  
.ruwiki-slideshow .mw-gallery-slideshow-caption,
+
@media (max-width: 719px) {
.ruwiki-slideshow .gallerytext p {
+
.main-wikimedia-list {
margin-bottom:0;
+
-webkit-column-width: 10em;
 +
}
 
}
 
}
  
.ruwiki-slideshow .gallerytext {
+
@media (min-width: 1000px) {
padding-bottom:0; padding-top:0;
+
.main-wrapper {
text-align:left;
+
display: -webkit-box;
}
+
display: -webkit-flex;
 +
}
  
/* Reset top margin for lists embedded in columns */
+
.main-wrapper-column {
div.columns {
+
-webkit-box-flex: 1;
margin-top: 0.3em;
+
-webkit-flex: 1;
}
+
}
div.columns dl,
 
div.columns ol,
 
div.columns ul {
 
margin-top: 0;
 
}
 
  
/* Avoid elements from breaking between columns */
+
.main-top {
.nocolbreak,
+
-webkit-box-align: center;
div.columns li,
+
-webkit-align-items: center;
div.columns dd dd {
+
display: -webkit-box;
-webkit-column-break-inside: avoid;
+
display: -webkit-flex;
page-break-inside: avoid;
+
}
break-inside: avoid-column;
 
}
 
  
/* Стили для расширения [[mw:Extension:Babel]] (03-09-17) */
+
.main-top-left {
/* Скрытие буквы N у родных языков, по аналогии со стандарными шаблонами */
+
background-image: -webkit-linear-gradient(left, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
.mw-babel-box-level-N {
+
-webkit-box-flex: 3;
display: none;
+
-webkit-flex: 3;
}
+
}
 +
 +
.main-top-right {
 +
-webkit-box-flex: 2;
 +
-webkit-flex: 2;
 +
}
  
/* Скрыть пункт «Элемент Викиданных» до начала работы гаджета
+
.main-top-right > ul {
  [[MediaWiki:Gadget-sidebarRelated.js]] */
+
-webkit-box-align: center;
.client-js .action-view #t-wikibase {
+
-webkit-align-items: center;
display: none;
+
-webkit-box-orient: horizontal;
 +
-webkit-box-direction: reverse;
 +
-webkit-flex-direction: row-reverse;
 +
-webkit-box-pack: left;
 +
-webkit-justify-content: left;
 +
}
 
}
 
}

Текущая версия на 11:56, 27 июля 2020

/**
 *  [Содержание]
 *
 *  1. Интерфейс
 *  1.1 Теги
 *  1.2 Классы
 *  1.3 Расширения
 *  1.4 Редакторы
 *  2. Служебные классы
 *  3. Общие классы
 *  3.1 Списки
 *  3.2 Примечания
 *  3.3 Колонки
 *  3.4 Таблицы
 *  3.5 Порталы
 *  4. Шаблоны
 *  5. Страницы
 *
 *  При добавлении правил, которые должны также действовать в мобильной версии,
 *  не забудьте добавить аналогичные правила в [[MediaWiki:Mobile.css]].
 */

/* ================================================
   ИНТЕРФЕЙС
   ================================================ */

/* ТЕГИ ------------------------------------------- */

/* Избавляемся от дважды жирного шрифта (2019-09-08) */
b {
	font-weight: 700;
}

/* Сбрасываем курсивное оформление, применяемое браузером */
cite, dfn {
	font-style: inherit;
}

/* Добавление горизонтального скролла для <pre>,
   для избежания бага с очень длинными строками */
pre {
	overflow-x: auto;
	overflow-y: hidden;
}

/* Размер таба для обычного редактора и для тега <code> */
pre,
textarea {
	tab-size: 4;
}

/* Consistent size for <small>, <sub> and <sup> */
small {
	font-size: 85%;
}
.mw-body-content sub,
.mw-body-content sup,
span.reference /* for Parsoid */ {
	font-size: 80%;
}

/* fix for line-breaking references */
sub,
sup {
	line-height: 1em;
}

blockquote {
	margin: 0.7em 0 0.7em 5%;
	padding: 0.7em 2% 0.7em 4%;
	background: #f8f9fa;
	overflow: hidden;
}

/* КЛАССЫ ----------------------------------------- */

/* Уточнение ширины логотипа на экранах с большей плотностью пикселей (сами
   изображения задаются в файле стилей, не изменяемом локально; помогает
   избежать сглаживания? 136 = 204 / 1,5; 204px — ширина картинки) */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
	#p-logo a {
		background-size: 136px auto;
	}
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
	#p-logo a {
		background-size: 135px auto;
	}
}

.filehistory a img,
#file img {
	background: url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}

/* Remove "external" icon from links to WP */
body.ns-talk a.external[href*="//ru.wikipedia.org/"],
body.ns-4 a.external[href*="//ru.wikipedia.org/"],
body.ns-104 a.external[href*="//ru.wikipedia.org/"],
body.ns-106 a.external[href*="//ru.wikipedia.org/"] {
	background: none !important;
	padding-right: 0 !important;
}

/* PDF icon next to external PDF link for Mozilla and Opera and for {PDFlink} template */
a[href$=".pdf"].external,
a[href*=".pdf?"].external,
a[href*=".pdf#"].external,
a[href$=".PDF"].external,
a[href*=".PDF?"].external,
a[href*=".PDF#"].external,
span.PDFlink a {
	background: url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) center right no-repeat !important;
	padding-right: 18px !important;
}

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

.allpagesredirect,
span.redirect-in-category a {
	font-style: italic;
}

/* Clickable speaker in {Audio} ... */
.audiolink a {
	background: url(//upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png) center left no-repeat !important;
	padding-left: 16px !important;
	padding-right: 0 !important;
}

.clickable-image a:hover {
	text-decoration: none;
}

/* Скрыть пункт «Элемент Викиданных» до начала работы гаджета
   [[MediaWiki:Gadget-sidebarRelated.js]] */
.client-js .action-view #t-wikibase {
	display: none;
}

#mw-subcategories,
#mw-pages {
	clear: both;
}

#disambig {
	border-top: 3px double #c8ccd1;
	border-bottom: 3px double #c8ccd1;
}

/* Лечим растягивание СН, страниц истории и вклада, если текст описания правки
   негде перенести. Удалить при добавлении этого правила на глобальном уровне. */
.comment {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Не отображать множественные уведомления о запрете редактирования списком */
.permissions-errors {
	list-style: none;
	margin: 0;
}

.sitedir-ltr .mw-dismissable-notice-body {
	margin-right: 5em !important; /* was 20% */
}

/* Fix of default <maplink> display */
.mw-kartographer-maplink {
	margin-left: 0 !important;
	padding: 2px 0 2px 20px !important;
}

/* Временный фикс [[Обсуждение MediaWiki:Common.css#Для чего .catlinks li параметр margin: 0.125em 0;?]],
   пока не исправят в нативных стилях */
.mediawiki .catlinks li {
	margin: 2px 0;
}

.mw-tag-markers {
	font: italic 90% sans-serif;
}

.printonly {
	display: none;
}

/* Фикс выравнивания галереи при заданном параметре perrow (2019-10-03) */
.mw-gallery-traditional.center,
.mw-gallery-nolines.center {
	margin-left: auto;
	margin-right: auto;
}

/* Блок «Это старая/текущая версия этой страницы». Надо предложить это в движок */
.mw-revision,
#mw-revision-nav {
	margin-top: 0.5em;
}

/* РАСШИРЕНИЯ ------------------------------------- */

/* Стили для расширения [[mw:Extension:Babel]] (03-09-17) */
/* Скрытие буквы N у родных языков, по аналогии со стандарными шаблонами */
.mw-babel-box-level-N {
	display: none;
}

/* FlaggedRevs */
/* Скрываем верхнюю таблицу для анонимов и показываем
для зарегистрированных с помощью [[MediaWiki:Group-user.css]] */
#mw-fr-revisiontag {
	display: none;
}
.mw-fr-reviewlink,
.fr-hist-basic-user,
.fr-hist-basic-auto {
	font-weight: normal;
	font-size: 85%;
}
.flaggedrevs-pending {
	background: #ffc;
}
.sitedir-ltr div.flaggedrevs_short {
	float: none;
	padding: 1px;
}
.sitedir-ltr div.flaggedrevs_short_details {
	width: 95%;
	display: none;
}
/* Лишний отступ */
div.flaggedrevs_notice {
    margin-right: 0;
}

/* Remove popup from Content translation tool, if not opted in */
.cx-callout:not(.cx-campaign-contributionsmenu):not(.cx-entrypoint-dialog) { display: none !important; }

/* Покрасить "неприоритетные" ссылки в библиографических ссылках в черный цвет (касается только ссылок, генерируемых Lua) */
.wef_low_priority_links a,
.wef_low_priority_links a.extiw,
.wef_low_priority_links a.external,
.wef_low_priority_links a:visited,
.wef_low_priority_links a.extiw:visited,
.wef_low_priority_links a.external:visited {
	color: #202122;
}

/* РЕДАКТОРЫ -------------------------------------- */

/* Visual editor related */
.mw-ve-editNotice .mbox-image,
.ve-active .ve-hide,
.ve-show {
	display: none;
}

.ve-active div.ve-show,
.ve-active p.ve-show {
	display: block;
}

.ve-active span.ve-show,
.ve-active small.ve-show {
	display: inline;
}

.ve-active li.ve-show {
	display: list-item;
}

/* ================================================
   СЛУЖЕБНЫЕ КЛАССЫ
   ================================================ */

/* Классы для показа сообщений отдельным группам пользователей */
.group-checkuser-show,
.group-bureaucrat-show,
.group-sysop-show,
.group-engineer-show,
.group-closer-show,
.group-filemover-show,
.group-editor-show,
.group-autoeditor-show,
.group-user-show {
	display: none;
}

/* ================================================
   ОБЩИЕ КЛАССЫ
   ================================================ */

/* СПИСКИ ----------------------------------------- */

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 9 (2016-08-10)
   @author [[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;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
	display: none;
}
/* Generate bullets */
.hlist dt:after {
	content: ": ";
}
.hlist dd:after,
.hlist li:after {
	content: "\00a0• ";
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li: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;
}
/* 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) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) "\a0";
}

/* Немаркированные списки */
.plainlist ol:not(.references),
.plainlist dl,
.plainlist ul {
	line-height: inherit;
	list-style: none none;
	margin: 0;
}
.plainlist ol:not(.references) li,
.plainlist dl dt,
.plainlist dl dd,
.plainlist ul li {
	margin: 0;
}
.plainlist dl dt:after {
	content: ": ";
}

/* Неразрывные пробелы в горизонтальных списках */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
.hlist-items-nowrap dd,
.hlist-items-nowrap dt,
.hlist-items-nowrap li {
	white-space: nowrap;
}

/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
.wrap,
.wraplinks a,
.wraplinks .selflink,
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
	white-space: normal;
}

/* ПРИМЕЧАНИЯ ------------------------------------- */

ol.references {
	font-size: 100%;
}
.reflist,
.references-small {
	font-size: 90%;
	margin-bottom: 0.5em;
}
.reflist ol.references,
.references-small ol.references {
	list-style-type: inherit;  /* Enable custom list style types */
}
.reflist-narrow .mw-references-columns {
	-webkit-column-width: 20em;
	-moz-column-width: 20em;
	column-width: 20em;
}
.reflist-wide .mw-references-columns {
	-webkit-column-width: 40em;
	-moz-column-width: 40em;
	column-width: 40em;
}

/* highlight focused footnotes and references in some browsers */
sup.reference:target,
ol.references li:target,
.highlight-target:target,
cite:target,
span.citation:target {
	background: #eaf3ff;
}
sup.reference:target {
	font-weight: bold;
}

.ref-info {
	font-size: 85%;
	color: #72777d;
}

/* КОЛОНКИ ---------------------------------------- */

/* Авторазбиение списков на колонки. Будет работать только для однострочных списков. 35em является предварительным числом, а фактическое будет посчитано исходя из ширины элементов. Должно использоваться только для UL внутри DIV. Пример использования — шаблон {{Wikidata/SisterCities}} */
.autocolumns {
	-moz-columns: 35em auto;
	columns: 35em auto;
	white-space: nowrap;
}

/* Reset top margin for lists embedded in columns */
div.columns {
	margin-top: 0.3em;
}
div.columns dl,
div.columns ol,
div.columns ul {
	margin-top: 0;
}

/* Avoid elements from breaking between columns */
.nocolbreak,
div.columns li,
div.columns dd dd {
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid-column;
}

/* ТАБЛИЦЫ ---------------------------------------- */

/* [[Википедия:Оформление таблиц]] */
.standard,
.wide {
	/* For align=center tables dont use shorthand margin */
	margin-top:1em;
	margin-bottom:1em;
	border: 1px solid #a2a9b1;
	border-collapse: collapse;
}

.standard > tr > th,
.standard > tr > td,
.standard > * > tr > th,
.standard > * > tr > td,
.wide > tr > th,
.wide > tr > td,
.wide > * > tr > th,
.wide > * > tr > td {
	border: 1px solid #a2a9b1;
	padding: 0.2em 0.4em;
}

.standard > tr > th,
.standard > * > tr > th,
.wide > tr > th,
.wide > * > tr > th {
	background-color: #eaf3ff;
}

.standard > caption,
.wide > caption {
	font-weight: bold;
}

.wide {
	width: 100%;
}

table.graytable {
	background: #f0f0f0;
	padding: 1em;
	width: 100%;
}
table.graytable caption {
	padding-top: 0.5em;
	background: #f0f0f0;
	font-weight: bold;
}
table.graytable caption span.subcaption {
	font-size: 88.5%;
	font-weight: normal;
}
table.graytable th,
table.graytable td {
	font-size: 88.5%;
}

/* Оформление ячеек */
tr.highlight th,
table tr th.highlight {
	background: #dcebff;
}
tr.highlight td,
table tr td.highlight {
	background: #ffe;
	font-weight: normal;
}
tr.bright th,
table tr th.bright {
	background: #cfe3ff;
}
tr.bright td,
table tr td.bright {
	background: #fec;
}
tr.shadow th,
tr.shadow td,
table tr th.shadow,
table tr td.shadow {
	background: #f0f0f0;
}
tr.dark th,
tr.dark td,
table tr th.dark,
table tr td.dark {
	background: #ccc;
}

/* ПОРТАЛЫ ---------------------------------------- */

/* For portals, added 2011-12-07 -bv
   On wide screens, show these as two columns
   On narrow and mobile screens, let them collapse into a single column */
.portal-column-left {
	float: left;
	width: 50%;
}
.portal-column-right {
	float: right;
	width: 49%;
}
.portal-column-left-wide {
	float: left;
	width: 60%;
}
.portal-column-right-narrow {
	float: right;
	width: 39%;
}
.portal-column-left-extra-wide {
	float: left;
	width: 70%;
}
.portal-column-right-extra-narrow {
	float: right;
	width: 29%;
}
@media only screen and (max-width: 800px) {
	/* Decouple the columns on narrow screens */
	.portal-column-left,
	.portal-column-right,
	.portal-column-left-wide,
	.portal-column-right-narrow,
	.portal-column-left-extra-wide,
	.portal-column-right-extra-narrow {
		float: inherit;
		width: inherit;
	}
}

/* ================================================
   ШАБЛОНЫ
   ================================================ */

/* ПРЕДУПРЕЖДЕНИЯ И УВЕДОМЛЕНИЯ ------------------- */

/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text,
td.mbox-text {   /* The message body cell(s) */
	border: none;
	/* @noflip */
	padding: 0.25em 0.9em;	 /* 0.9em left/right */
	width: 100%;			   /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {				/* The left image cell */
	border: none;
	/* @noflip */
	padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
	text-align: center;
}
td.mbox-imageright {		   /* The right image cell */
	border: none;
	/* @noflip */
	padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
	text-align: center;
}
td.mbox-empty-cell {		   /* An empty narrow cell */
	border: none;
	padding: 0px;
	width: 1px;
}

/* Image message box styles */
table.imbox {
	margin: 4px 10%;
	border-collapse: collapse;
	border: 3px solid #1e90ff;	/* Default "notice" blue */
	background: #fbfbfb;
}
.imbox .mbox-text .imbox {  /* For imboxes inside imbox-text cells. */
	margin: 0 -0.5em;	   /* 0.9 - 0.5 = 0.4em left/right.		*/
	display: block;		 /* Fix for webkit to force 100% width.  */
}
.mbox-inside .imbox {	   /* For imboxes inside other templates.  */
	margin: 4px;
}

table.imbox-notice {
	border: 3px solid #1e90ff;	/* Blue */
}
table.imbox-speedy {
	border: 3px solid #b22222;	/* Red */
	background: #fee;			 /* Pink */
}
table.imbox-delete {
	border: 3px solid #b22222;	/* Red */
}
table.imbox-content {
	border: 3px solid #f28500;	/* Orange */
}
table.imbox-style {
	border: 3px solid #f4c430;	/* Yellow */
}
table.imbox-move {
	border: 3px solid #9932cc;	/* Purple */
}
table.imbox-protection {
	border: 3px solid #bba;	   /* Gray-gold */
}
table.imbox-license {
	border: 3px solid #88a;	   /* Dark gray */
	background: #f7f8ff;		  /* Light gray */
}
table.imbox-featured {
	border: 3px solid #cba135;	/* Brown-gold */
}

/* Category message box styles */
table.cmbox {
	margin: 3px 10%;
	border-collapse: collapse;
	border: 1px solid #aaa;
	background: #dfe8ff;	/* Default "notice" blue */
}

table.cmbox-notice {
	background: #d8e8ff;	/* Blue */
}
table.cmbox-speedy {
	margin-top: 4px;
	margin-bottom: 4px;
	border: 4px solid #b22222;	/* Red */
	background: #ffdbdb;		  /* Pink */
}
table.cmbox-delete {
	background: #ffdbdb;	/* Red */
}
table.cmbox-content {
	background: #ffe7ce;	/* Orange */
}
table.cmbox-style {
	background: #fff9db;	/* Yellow */
}
table.cmbox-move {
	background: #e4d8ff;	/* Purple */
}
table.cmbox-protection {
	background: #efefe1;	/* Gray-gold */
}

/* Other pages message box styles */
table.ombox {
	margin: 4px 10%;
	border-collapse: collapse;
	border: 1px solid #aaa;	   /* Default "notice" gray */
	background: #f9f9f9;
}

table.ombox-notice {
	border: 1px solid #aaa;	   /* Gray */
}
table.ombox-speedy {
	border: 2px solid #b22222;	/* Red */
	background: #fee;			 /* Pink */
}
table.ombox-delete {
	border: 2px solid #b22222;	/* Red */
}
table.ombox-content {
	border: 1px solid #f28500;	/* Orange */
}
table.ombox-style {
	border: 1px solid #f4c430;	/* Yellow */
}
table.ombox-move {
	border: 1px solid #9932cc;	/* Purple */
}
table.ombox-protection {
	border: 2px solid #bba;	   /* Gray-gold */
}

/* Talk page message box styles */
table.tmbox {
	margin: 4px 10%;
	border-collapse: collapse;
	border: 1px solid #c0c090;	/* Default "notice" gray-brown */
	background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
	margin: 2px 0;			   /* this declaration overrides other styles (including mbox-small above)   */
	width: 100%;				 /* For Safari and Opera */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
	line-height: 1.5em;		  /* also "nested", so reset styles that are   */
	font-size: 100%;			 /* set in "mbox-small" above.				*/
}

table.tmbox-speedy {
	border: 2px solid #b22222;	/* Red */
	background: #fee;			 /* Pink */
}
table.tmbox-delete {
	border: 2px solid #b22222;	/* Red */
}
table.tmbox-content {
	border: 2px solid #f28500;	/* Orange */
}
table.tmbox-style {
	border: 2px solid #f4c430;	/* Yellow */
}
table.tmbox-move {
	border: 2px solid #9932cc;	/* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
	border: 1px solid #c0c090;	/* Gray-brown */
}

/* {ambox} */
table.ambox {
	margin: 0 10%;				  /* 10% = Will not overlap with other elements */
	border: 1px solid #a2a9b1;
	/* @noflip */
	border-left: 10px solid #36c;  /* Default "notice" blue */
	background: #fbfbfb;
}
table.ambox + table.ambox {	  /* Single border between stacked boxes. */
	margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {			/* The message body cell(s) */
	padding: 0 0.5em;	   /* 0.5em left/right */
}
.ambox td.mbox-image {		   /* The left image cell */
	/* @noflip */
	padding: 2px 0 2px 0.5em;	/* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {	  /* The right image cell */
	/* @noflip */
	padding: 2px 0.5em 2px 0;	/* 0px left, 0.5em right */
}

table.ambox-notice {
	/* @noflip */
	border-left: 10px solid #36c;	/* Blue */
}
table.ambox-speedy {
	/* @noflip */
	border-left: 10px solid #b22222;	/* Red */
	background: #fee7e6;				   /* Pink */
}
table.ambox-delete,
table.ambox-serious {
	/* @noflip */
	border-left: 10px solid #b22222;	/* Red */
}
table.ambox-content {
	/* @noflip */
	border-left: 10px solid #f28500;	/* Orange */
}
table.ambox-style {
	/* @noflip */
	border-left: 10px solid #f4c430;	/* Yellow */
}
table.ambox-good {
	border-left: 10px solid #66cc44;
}
table.ambox-discussion {
	border-left: 10px solid #339966;
}
table.ambox-merge {
	border-left: 10px solid #9932cc;
}
table.ambox-move {
	/* @noflip */
	border-left: 10px solid #9932cc;	/* Purple */
}
table.ambox-protection {
	/* @noflip */
	border-left: 10px solid #a2a9b1;	   /* Gray-gold */
}

/* Footer and header message box styles */
table.fmbox {
	clear: both;
	margin: 0.2em 0;
	width: 100%;
	border: 1px solid #aaa;
	/* Default "system" gray */
	background: #f9f9f9;
}
table.fmbox-system {
	background: #f9f9f9;
}
table.fmbox-warning {
	border: 1px solid #bb7070;  /* Dark pink */
	background: #ffdbdb;		/* Pink */
}
table.fmbox-editnotice {
	background: transparent;
}
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background: #ffdbdb;
	padding: 0.25em 0.9em;
}
/* Div based "system" style fmbox messages.
	Used in [[MediaWiki:Readonly lag]]. */
div.mw-lag-warn-normal,
div.fmbox-system {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #aaa;
	background: #f9f9f9;
	padding: 0.25em 0.9em;
}

/* These mbox-small classes must be placed after all other
	ambox/tmbox/ombox etc classes. "body.mediawiki" is so
	they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small {   /* For the "small=yes" option. */
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	/* @noflip */
	margin: 4px 0 4px 1em;
	width: 238px;
	font-size: 88%;
	line-height: 1.25em;
}
body.mediawiki table.mbox-small-left {   /* For the "small=left" option. */
	/* @noflip */
	margin: 4px 1em 4px 0;
	width: 238px;
	border-collapse: collapse;
	font-size: 88%;
	line-height: 1.25em;
}

/* Стили нотификаций для мобильного устройсва */
@media (max-width: 719px) {
	table.ombox,
	table.tmbox,
	table.ambox {
		margin-left: 0;
		margin-right: 0;
	}
}

.notice {
	text-align: justify;
	margin: 1em 0.5em;
	padding: 0.5em;
}

/* Устаревший стиль, на данный момент практически везде используется
   неверно, почистить и удалить при первой возможности */
.messagebox {
	border: thin solid #aaa;
	background: #f9f9f9;
	width: 88%;
	margin: 0 auto 1em auto;
	padding: .4em;
	vertical-align: middle;
	font-size: 90%
}
.messagebox.standard-talk {
	border: 1px solid #c0c090;
	background: #f8eaba;
}
.messagebox .floatleft {
	vertical-align: middle;
	clear: both;
	margin: 2px;
	padding: 0;
}
.messagebox .image {
	margin: 0;
	padding: 0;
}

/* КАРТОЧКА --------------------------------------- */

.infobox {
	border: 1px solid #a2a9b1;
	background: #f8f9fa;
	margin-bottom: .5em;
	margin-left: 1em;
	padding: .4em;
	float: right;
	clear: right;
	font-size: 90%;
	width: 23em;
	vertical-align: middle;
	text-align: left;
	line-height: 1.5em;
	border-collapse: separate;
	border-spacing: 2px;
}
.infobox > caption {
	font-size: 125%;
	font-weight: bold;
		padding: .2em;
}
.infobox td,
.infobox th {
	vertical-align: top;
}

/* Компоненты карточки */
.infobox-above {
	font-size: 120%;
	text-align: center;
}
.infobox-image {
	padding-left: 0;
	padding-right: 0;
	text-align: center;
}
.infobox-header {
	text-align: center;
}
.infobox-below {
	text-align: center;
}
.infobox-table,
.infobox-tablebox,
.infobox-medals {
	padding: 0;
}
.infobox-table > table,
.infobox-tablebox > table,
.infobox-medals > table {
	width: 100%;
	display: table;
	margin: 0;
	background: transparent;
}
.infobox-tablebox > table {
	background: #ffffff;
	border: 1px solid #a2a9b1;
}
.infobox-medals > table {
	border-collapse: separate;
}
.infobox-medals .NavFrame {
	padding: 0;
	border: none;
	font-size: 100%;
}
.infobox-medals .NavFrame .NavHead {
	padding: 1px 5em;
}
.infobox-medals .NavFrame .NavToggle {
	position: absolute;
	top: 1px;
	right: 1px;
}
.infobox-medals .NavFrame .NavContent {
	font-size: 95%;
}

/* Встраиваемая карточка */
.infobox-child {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	font-size: 100%;
}

/* Списки в карточках */ 
.infobox th:not(.noplainlist) > ul,
.infobox td:not(.noplainlist) > ul,
.infobox [data-wikidata-property-id] > ul {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
}
.infobox .noplainlist > ul:first-child {
	margin-top: 0;
}
.infobox th > ol,
.infobox td > ol,
.infobox [data-wikidata-property-id] > ol {
	margin: 0 0 0 2em;
}
.infobox th > dl,
.infobox td > dl,
.infobox [data-wikidata-property-id] > dl {
	margin: 0;
}
.infobox li,
.infobox dt,
.infobox dd {
	margin-bottom: 0;
}
.infobox th > ol.references,
.infobox td > ol.references {
	line-height: 1.25em;
}
.infobox th > ol.references li,
.infobox td > ol.references li {
	margin-bottom: 0.1em;
}
.infobox th > ol.references li:last-child,
.infobox td > ol.references li:last-child {
	margin-bottom: 0;
}

/* ToDo: temporarily fix */
.infobox td p {
	margin: 0 !important;
}

/* [[Шаблон:Tree list]] --------------------------- */

.treeview ul {
	padding: 0;
	margin: 0;
}
.treeview li {
	padding: 0;
	margin: 0;
	list-style-type: none;
	list-style-image: none;
}
.treeview li li {
	background: url("//upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
	/* @noflip */
	padding-left: 20px;
	text-indent: 0.3em;
}
.treeview li li.lastline {
	background-position: 0 -5971px
}
.treeview li.emptyline > ul {
	/* @noflip */
	margin-left: -1px;
}
.treeview li.emptyline > ul > li:first-child {
	background-position: 0 9px
}

/* [[Шаблон:Math]] -------------------------------- */

.math-template {
	white-space: nowrap;
	font-family: times, serif, palatino linotype, new athena unicode, athena, gentium, code2000;
	font-size: 120%;
}

/* СКРЫТЫЙ ---------------------------------------- */

/* {Навигационная полоса}, {Hider}, ... */
div.NavFrame {
	margin: 0;
	padding: 2px;
	overflow: hidden;
	border: 1px solid #a2a9b1;
	border-collapse: collapse;
	font-size: 95%;
}
div.NavFrame + div.NavFrame {
	border-top-style: none;
	border-top-style: hidden;
}
div.NavPic {
	background: #fff;
	margin: 0;
	padding: 2px;
	float: left;
}
div.NavFrame div.NavHead {
	text-align: center;
	font-weight: bold;
	font-size: 100%;
	background: #eaecf0;
	position: relative;
}
div.NavFrame div.NavContent {
	overflow-x: auto;
	overflow-y: hidden;
	clear: both;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
	font-size: 100%
}
a.NavToggle {
	float: right;
	margin-right: 3px;
	font-weight: normal;
	font-size: 90%;
}

/* Отдельно перезаписывем NavFrame для свернутых блоков */
.collapsibleBox {
	box-sizing: border-box;
}

.collapsibleBox .NavHead {
	line-height: 1.6em;
	min-height: 1.2em;
	padding: .1em 6em;
}
.collapsibleBox .NavToggle {
	font-size: inherit;
	position: absolute;
	top: .1em;
	width: 5em;
}
.collapsibleBox-title-rightHideLink .NavToggle {
	text-align: right;
	right: 1em;
}
.collapsibleBox-title-leftHideLink .NavToggle {
	text-align: left;
	left: 1em;
}
.collapsibleBox .collapsibleBox-title-rightTitle.collapsibleBox-title-rightHideLink {
	padding-right: 6.5em;
}
:not(.collapsibleBox-transparent) .collapsibleBox-title-leftTitle.collapsibleBox-title-rightHideLink {
	padding-left: 1em;
}
.collapsibleBox .collapsibleBox-title-leftTitle.collapsibleBox-title-leftHideLink {
	padding-left: 6.5em;
}
:not(.collapsibleBox-transparent) .collapsibleBox-title-rightTitle.collapsibleBox-title-leftHideLink {
	padding-right: 1em;
}

.collapsibleBox .NavContent {
	padding: .25em 1em;
}

.collapsibleBox-transparent.NavFrame {
	border: none;
}
.collapsibleBox-transparent.NavFrame .NavHead {
	background: transparent;
	padding: .1em 5.5em;
}
.collapsibleBox-transparent .collapsibleBox-title-rightHideLink .NavToggle {
	text-align: right;
	right: 0;
}
.collapsibleBox-transparent .collapsibleBox-title-leftHideLink .NavToggle {
	text-align: left;
	left: 0;
}
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-rightTitle.collapsibleBox-title-rightHideLink,
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-leftTitle.collapsibleBox-title-rightHideLink {
	padding-left: 0;
}
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-rightTitle.collapsibleBox-title-leftHideLink,
.collapsibleBox-transparent.NavFrame .collapsibleBox-title-leftTitle.collapsibleBox-title-leftHideLink {
	padding-right: 0;
}
.collapsibleBox-transparent .NavContent {
	padding: .25em 0;
}

/* НАВИГАЦИОННЫЙ ШАБЛОН --------------------------- */

/* Default style for navigation boxes */
.navbox {					 /* Navbox container style */
	box-sizing: border-box;
	border: 1px solid #a2a9b1;
	width: 100%;
	margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
	clear: both;
	font-size: 90%;
	text-align: center;
	padding: 1px;
}
.navbox-inner,
.navbox-subgroup {
	width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
	padding: 0.25em 1em;	  /* Title, group and above/below styles */
	text-align: center;
}
.navbox-title {
	line-height: 1.6em;	   /* Standard 1.6em for title */
}

/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {	/* Borders above 2nd, 3rd, etc. rows */
	border-top: 2px solid #fdfdfd; /* Must match background color */
}

th.navbox-group {			 /* Group style */
	white-space: nowrap;
	/* @noflip */
	text-align: right;
}
.navbox,
.navbox-subgroup {
	background: #fdfdfd;	  /* Background color */
}
.navbox-list {
	border-color: #fdfdfd;	/* Must match background color */
}
.navbox th,
.navbox-title {
	background: #cfe3ff;	  /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background: #dcebff;	  /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background: #eaf3ff;	  /* Level 3 color */
}
.navbox-even {
	background: #f5f5f5;	  /* Even row striping */
}
.navbox-odd {
	background: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 1px 0 0;	   /* Adjust hlist padding in navboxes */
}
.navbox .navbox {
	margin-top: 0;			/* No top margin for nested navboxes */
}
.navbox + .navbox {
	margin-top: -1px;		 /* Single pixel border between adjacent navboxes */
}

/* Default styling for Navbar template */
.navbar {
	display: inline;
	font-size: 11px;
	font-weight: normal;
}
.navbar ul {
	display: inline;
	white-space: nowrap;
}
.mw-body-content .navbar ul {
	line-height: inherit;
}
.navbar.mini {
	word-spacing: -0.1em;
}
.navbar.mini span abbr[title] {
  border-bottom: none;
  text-decoration: none;
  cursor: inherit;
}

/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
	font-size: 100%;
}
.navbox .navbar {
	display: block;
	font-size: 100%;
}
.navbox-title .navbar {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
	/* @noflip */
	margin-right: 0.5em;
	width: 5em;
}

/* Кнопки [показать]/[скрыть], создаваемые динамически функцией collapsibleTables()
   в [[MediaWiki:Common.js]] */
.collapseButton {
	/* @noflip */
	float: right;
	font-weight: normal;
	/* @noflip */
	margin-left: 0.5em;
	/* @noflip */
	text-align: right;
	width: auto;
}

/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .collapsible.collapsed > tbody > tr:not(:first-child),
.client-js .NavFrame.collapsed > .NavContent,
.client-js .tochidden-wrapper > .toc > ul {
	display: none;
}

/* [[Шаблон:Coord]] ------------------------------- */

#mw-indicator-0-coord + .mw-indicator {
	border-left: 1px solid #A7D7F9;
	margin-left: 0.25em;
	padding-left: 0.5em;
}

.mw-body-content .geo-services {
	font-size: 82%;
}

.geo-services a > span {
	margin: 0.25em;
}
.geo-services > :first-child a > span {
	margin-left: 0.4em;
}

.geo-geo-dec .geo-dec,
.geo-geo-dms .geo-dms {
	display: inline;
}
.geo-geo-dec .geo-dms,
.geo-geo-dms .geo-dec,
.geo-multi-punct {
	display: none;
}
.geo-lat,
.geo-lon {
	white-space: nowrap;
}

/* [[Шаблон:Tl]] ---------------------------------- */

.wp-templatelink {
	color: #72777d;
}

/* [[Шаблон:TOClimit]] & TOC w/o numbers ---------- */

.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7,
.nonumtoc .tocnumber {
	display: none;
}

/* ================================================
   СТРАНИЦЫ
   ================================================ */

/* [[Заглавная страница]] ------------------------- */

body.page-Заглавная_страница #ca-current,
body.page-Заглавная_страница #ca-delete,
body.page-Заглавная_страница #t-cite,
body.page-Заглавная_страница #catlinks,
body.page-Заглавная_страница #lastmod,
body.page-Заглавная_страница #footer-info-lastmod,
body.page-Заглавная_страница.action-view h1.firstHeading,
body.page-Заглавная_страница.action-view #siteSub,
body.page-Заглавная_страница.action-view #contentSub,
body.page-Заглавная_страница.action-view #mw-data-after-content {
	display: none !important;
}

/*
 * Костыли-префиксы для поддержки устаревших браузеров заглавной страницей
 * Будут переведены на TemplateStyles, см. [[phab:T162379]]
*/
.main-top-right > ul {
	display: -webkit-box;
	display: -webkit-flex;
	-webkit-flex-wrap: wrap;
}

.main-featuredLists > .main-featuredLists-item {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	-webkit-column-break-inside: avoid;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-featuredLists-item > img {
	-webkit-box-flex: 0;
	-webkit-flex: 0 auto;
}

.main-footer {
	display: -webkit-box;
	display: -webkit-flex;
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
}

.main-footer-actions {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
}

.main-footer-actions > ul {
	-webkit-box-align: center;
	-webkit-align-items: center;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-footer-menu {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-footer-menuToggle {
	-webkit-box-align: center;
	-webkit-align-items: center;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-wikimedia-list {
	-webkit-column-count: 4;
	-webkit-column-width: 15em;
}

.main-wikimedia-list > .main-wikimedia-listItem {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	-webkit-column-break-inside: avoid;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-wikimedia-listItem > img {
	-webkit-box-flex: 0;
	-webkit-flex: 0 auto;
}

.main-wikimedia-listItem > a {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
}

@media (max-width: 719px) {
	.main-wikimedia-list {
		-webkit-column-width: 10em;
	}
}

@media (min-width: 1000px) {
	.main-wrapper {
		display: -webkit-box;
		display: -webkit-flex;
	}

	.main-wrapper-column {
		-webkit-box-flex: 1;
		-webkit-flex: 1;
	}

	.main-top {
		-webkit-box-align: center;
		-webkit-align-items: center;
		display: -webkit-box;
		display: -webkit-flex;
	}

	.main-top-left {
		background-image: -webkit-linear-gradient(left, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
		-webkit-box-flex: 3;
		-webkit-flex: 3;
	}
	
	.main-top-right {
		-webkit-box-flex: 2;
		-webkit-flex: 2;
	}

	.main-top-right > ul {
		-webkit-box-align: center;
		-webkit-align-items: center;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: reverse;
		-webkit-flex-direction: row-reverse;
		-webkit-box-pack: left;
		-webkit-justify-content: left;
	}
}