МедиаВики:Common.css: юрамалар арасында аерма

Контент бетерелгән Контент өстәлгән
ESanders (WMF) (бәхәс | кертем)
кТөзәтмә аңлатмасы юк
Тамга: кире кагылган
Юл номеры - 1:
/**
/*MediaWiki interface*/
* [Содержание]
*
* 1. Интерфейс
* 1.1 Теги
* 1.2 Классы
* 1.3 Расширения
* 1.4 Редакторы
* 2. Служебные классы
* 3. Общие классы
* 3.1 Списки
* 3.2 Примечания
* 3.3 Колонки
* 3.4 Таблицы
* 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 {
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 {
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;
}
 
Строка 10 ⟶ 139 :
}
 
/* Лечим растягивание СН, страниц истории и вклада, если текст описания правки
.gallerybox .thumb img,
негде перенести. Удалить при добавлении этого правила на глобальном уровне. */
.filehistory a img,
.comment {
#file img {
overflow-wrap: break-word;
background: url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
word-break: break-word;
}
 
/* Не отображать множественные уведомления о запрете редактирования списком */
#wpSave {
.permissions-errors {
font-weight: bold;
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;
}
 
Строка 24 ⟶ 172 :
}
 
.warningboxprintonly {
backgrounddisplay: #ff9none;
border: 1px solid #ee0;
background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Nuvola_apps_important.png/30px-Nuvola_apps_important.png);
}
 
.informationbox {
/* Фикс выравнивания галереи при заданном параметре perrow (2019-10-03) */
background: #f4fbff;
.mw-gallery-traditional.center,
border: 1px solid #d5d9e6;
.mw-gallery-nolines.center {
background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/2/28/Information.svg/30px-Information.svg.png);
margin-left: auto;
margin-right: auto;
}
 
.warningbox,
/* Блок «Это старая/текущая версия этой страницы». Надо предложить это в движок */
.informationbox {
.mw-revision,
padding: 10px 10px 10px 50px;
#mw-revision-nav {
background-position: 10px center;
margin-top: 0.5em;
background-repeat: no-repeat;
vertical-align: middle;
font-size: smaller;
}
 
/* Кнопки [показать]/[скрыть], создаваемые mw-collapsible */
pre {
.mw-collapsible-toggle {
overflow-x: auto;
font-weight: normal;
overflow-y: hidden;
}
 
/* Кнопки [показать]/[скрыть], создаваемые динамически функцией collapsibleTables()
pre,
в [[MediaWiki:Common.js]] */
textarea {
.collapseButton {
tab-size: 4;
/* @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 */
/* rm white border */
.client-js .collapsible.collapsed > tbody > tr:not(:first-child),
div.thumb {
.client-js .NavFrame.collapsed > .NavContent,
border: none;
.client-js .tochidden-wrapper > .toc > ul {
display: none;
}
 
div.tright {
/* РАСШИРЕНИЯ ------------------------------------- */
border: none;
 
margin: 0.5em 0 0.8em 1.4em;
/* Стили для расширения [[mw:Extension:Babel]] (03-09-17) */
/* Скрытие буквы N у родных языков, по аналогии со стандарными шаблонами */
.mw-babel-box-level-N {
display: none;
}
 
div.tleft {
/* FlaggedRevs */
border: none;
/* Скрываем верхнюю таблицу для анонимов и показываем
margin: 0.5em 1.4em 0.8em 0;
для зарегистрированных с помощью [[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;
margin-left: 0;
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 */
/* Style for horizontal lists (separator following item) */
.cx-callout:not(.cx-campaign-contributionsmenu):not(.cx-entrypoint-dialog) { display: none !important; }
.skin-monobook .hlist dl,
 
.skin-modern .hlist dl,
/* Покрасить "неприоритетные" ссылки в библиографических ссылках в черный цвет (касается только ссылок, генерируемых Lua) */
.skin-vector .hlist dl {
.wef_low_priority_links a,
line-height: 1.5em;
.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;
}
 
/* Костыль исправляющий дублирование иконки в сообщениях об ошибках (Editnotice)
при сохранении правки в визуальном редакторе */
.ve-ui-mwSaveDialog .oo-ui-flaggedElement-error.oo-ui-iconElement table.fmbox {
margin-top: 0;
}
.ve-ui-mwSaveDialog .oo-ui-flaggedElement-error.oo-ui-iconElement .mbox-image {
display: none;
}
 
/* ================================================
СЛУЖЕБНЫЕ КЛАССЫ
================================================ */
 
/* Классы для показа сообщений отдельным группам пользователей */
.group-checkuser-show,
.group-bureaucrat-show,
.group-sysop-show,
.group-engineer-show,
.group-closer-show,
.group-filemover-show,
.group-editor-show,
.group-autoreview-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 {
display: inline;
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist dl dl.inline,
.hlist.inline ol oldl,
.hlist.inline ul ul {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;
}
/* GenerateHide interpunctsempty 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,
Строка 102 ⟶ 365 :
content: none;
}
/* Add parentheses around nested lists */
/* for IE 8 */
.hlist dd dd:first-child:before, .hlist dd dt:first-lastchild:before, .hlist dd li:first-child:afterbefore,
.hlist dt dd:first-child:before, .hlist dt dt:first-lastchild:before, .hlist dt li:first-child:afterbefore,
.hlist li dd:first-child:before, .hlist li dt:first-lastchild:before, .hlist li li:first-child:afterbefore {
content: none" (";
}
/* Add parens around nested lists */
.hlist dl dl dd:first-child:before,
.hlist ol ol li:first-child:before,
.hlist ul ul li:first-child:before {
content: "(";
}
.hlist dl dl dd:last-child:after,
.hlist ol ol li:last-child:after,
.hlist ul ul li:last-child:after {
content: ")";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
/* For IE8 */
.hlist dl dldt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist olli oldd:last-child:after, li.hlist- li dt:last-child:after, .hlist li li:last-child:after {
.hlist ul ul li.hlist-last-child:after {
content: ")";
font-weight: normal;
}
/* Put numbersordinals in front of ordered listslist items */
.hlist.hnum ol li {
counter-incrementreset: level1listitem;
}
.hlist.hnum ol > li:before {
counter-increment: listitem;
content: counter(level1) " ";
}
.hlist.hnum ol ol> li:before {
content: " " counter(listitem) "\a0";
counter-increment: level2;
}
.hlist.hnum oldd ol > li:first-child:before {,
.hlist dt ol > li:first-child:before,
content: "(" counter(level2) " ";
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
 
.hlist.hnum ol ol li:before {
/* Немаркированные списки */
content: counter(level2) " ";
.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,
table.standard,
.wraplinks a,
table.wide,
.wraplinks .selflink,
table.prettytable {
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
border: 1px solid #aaa;
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
border-collapse: collapse;
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
white-space: normal;
}
 
table.standard th,
/* ПРИМЕЧАНИЯ ------------------------------------- */
table.wide th,
 
table.prettytable th {
ol.references {
border: 1px solid #aaa;
paddingfont-leftsize: 0.2em100%;
padding-right: 0.2em;
background: #eef;
}
.reflist,
table.standard td,
.references-small {
table.wide td,
font-size: 90%;
table.prettytable td {
margin-bottom: 0.5em;
border: 1px solid #aaa;
padding-left: 0.2em;
padding-right: 0.2em;
}
.reflist ol.references,
table.standard caption,
.references-small ol.references {
table.wide caption,
list-style-type: inherit; /* Enable custom list style types */
table.tiles caption {
}
.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;
padding-top: 0.2em;
padding-bottom: 0.2em;
}
 
table.wide {
.ref-info {
width: 100%;
font-size: 85%;
color: #72777d;
}
 
/* КОЛОНКИ ---------------------------------------- */
table.simple {
 
border-color: #aaa;
/* Авторазбиение списков на колонки. Будет работать только для однострочных списков. 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;
}
 
table.simple th,
.standard > tr > th,
table.simple td {
.standard > tr > td,
border-color: #aaa;
.standard > * > tr > th,
padding-left: 0.2em;
.standard > * > tr > td,
padding-right: 0.2em;
.wide > tr > th,
.wide > tr > td,
.wide > * > tr > th,
.wide > * > tr > td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
 
.standard > tr > th,
table.tiles {
.standard > * > tr > th,
border-collapse: separate;
.wide > tr > th,
border-spacing: 2px;
.wide > * > tr > th {
background-color: #eaf3ff;
}
 
table.tiles th {
.standard > caption,
padding-left: 0.2em;
.wide > caption {
padding-right: 0.2em;
backgroundfont-weight: #eefbold;
}
 
table.tiles td {
.wide {
padding-left: 0.2em;
width: 100%;
padding-right: 0.2em;
background: #f0f0f0;
}
 
Строка 215 ⟶ 553 :
}
table.graytable caption span.subcaption {
font-size: 8088.5%;
font-weight: normal;
}
table.graytable th,
table.graytable td {
font-size: 8088.5%;
}
 
/* Оформление ячеек */
 
tr.highlight th,
table tr th.highlight {
background: #eefdcebff;
}
tr.highlight td,
Строка 235 ⟶ 573 :
tr.bright th,
table tr th.bright {
background: #ccfcfe3ff;
}
tr.bright td,
Строка 252 ⟶ 590 :
table tr td.dark {
background: #ccc;
}
.transparent {
background: transparent !important;
}
 
/* ================================================
table.toccolours th {
ШАБЛОНЫ
background: #ccf;
================================================ */
}
 
/* ПРЕДУПРЕЖДЕНИЯ И УВЕДОМЛЕНИЯ ------------------- */
 
/* 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 */
Строка 275 ⟶ 612 :
text-align: center;
}
td.mbox-imageright { /* The right image cell */
border: none;
/* @noflip */
Строка 281 ⟶ 618 :
text-align: center;
}
td.mbox-empty-cell { /* An empty narrow cell */
border: none;
padding: 0px;
width: 1px;
}
.mbox-text .mbox-multiply {
 
display: none;
}
 
/* 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: 3px2px solid #1e90ff; /* Blue */
}
table.imbox-speedy {
border: 3px2px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.imbox-delete {
border: 3px2px solid #b22222; /* Red */
}
table.imbox-content {
border: 3px2px solid #f28500; /* Orange */
}
table.imbox-style {
border: 3px2px solid #f4c430; /* Yellow */
}
table.imbox-move {
border: 3px2px solid #9932cc; /* Purple */
}
table.imbox-protection {
border: 3px2px solid #bba; /* Gray-gold */
}
table.imbox-license {
border: 3px2px solid #88a; /* Dark gray */
background: #f7f8ff; /* Light gray */
}
table.imbox-featured {
border: 3px2px 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 #aaaa2a9b1; /* Default "notice" gray */
background: #f9f9f9f8f9fa;
}
 
table.ombox-notice {
border: 1px solid #aaaa2a9b1; /* 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 */
width: auto;
border: 1px solid #a2a9b1;
margin: 0 10%;
/* @noflip */
border-collapse: collapse;
border-left: 10px solid #36c; /* Default "notice" blue */
background: #fbfbfb;
border: 1px solid #aaa;
border-left: 10px solid #1e90ff;
}
.ambox + .ambox { /* Single border between stacked boxes. */
table.ambox th,
margin-top: -1px;
table.ambox td {
padding: 0.25em 0.5em;
}
table.ambox td.amboxmbox-widthhack {text,
.ambox .mbox-text { /* The message body cell(s) */
padding: 0;
padding: 0 0.5em; /* 0.5em left/right */
}
.ambox .mbox-image { /* The left image cell */
table.ambox td.ambox-text {
/* @noflip */
width: 100%;
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
}
.ambox .mbox-imageright { /* The right image cell */
table.ambox td.ambox-text .ambox-text-small {
/* @noflip */
font-size: smaller;
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
}
 
table.ambox td.ambox-image {
.navbox + .ambox { /* for ambox 1em before navbox */
width: 52px;
margin-top: 1em;
padding: 2px 0 2px 0.5em;
text-align: center;
}
 
table.ambox td.ambox-imageright {
.ambox-notice {
width: 52px;
/* @noflip */
padding: 2px 4px 2px 0;
border-left: 10px solid #36c; /* Blue */
text-align: center;
}
table.ambox td.ambox-imagespeedy div,{
/* @noflip */
table.ambox td.ambox-imageright div {
border-left: 10px solid #b22222; /* Red */
/* Фикс для изображений разной ширины */
background: #fee7e6; /* Pink */
width: 52px;
}
table.ambox-delete,
table.ambox-serious {
/* @noflip */
border-left: 10px solid #b22222;
border-left: 10px solid #b22222; /* Red */
}
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500;
border-left: 10px solid #f28500; /* Orange */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #f4c430;
border-left: 10px solid #f4c430; /* Yellow */
}
table.ambox-good {
border-left: 10px solid #66cc44;
}
table.ambox-discussion {
border-left: 10px solid #339966;
}
table.ambox-noticemerge {
border-left: 10px solid #1e90ff;
}
table.ambox-merge {
border-left: 10px solid #9932cc;
}
table.ambox.ambox-minimove {
/* @noflip */
float: right;
border-left: 10px solid #9932cc; /* Purple */
clear: right;
}
margin: 0 0 0.5em 1em;
.ambox-protection {
width: 20%;
/* @noflip */
border-left: 10px solid #a2a9b1; /* Gray-gold */
}
 
/* Footer and header message box styles */
table.fmbox {
clear: both;
margin: 0.2em 0;
Строка 509 ⟶ 850 :
background: #f9f9f9;
}
table.fmbox-system {
background: #f9f9f9;
}
table.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background: #ffdbdb; /* Pink */
}
table.fmbox-editnotice {
background: transparent;
}
Строка 544 ⟶ 885 :
ambox/tmbox/ombox etc classes. "body.mediawiki" is so
they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small.mbox-small { /* For the "small=yes" option. */
/* @noflip */
clear: right;
Строка 555 ⟶ 896 :
line-height: 1.25em;
}
body.mediawiki table.mbox-small.mbox-small-left { /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
Строка 564 ⟶ 905 :
}
 
/* Style for {{rq}} */
.infobox {
/* Hide the extra cells */
border: 1px solid #aaa;
.ambox-multiple_issues .ambox .mbox-image,
background: #f9f9f9;
.ambox-multiple_issues .ambox .mbox-imageright,
margin-bottom: 0.5em;
.ambox-multiple_issues .ambox .mbox-empty-cell,
margin-left: 1em;
.ambox-multiple_issues .ambox .mbox-text-div,
padding: .4em;
.ambox-multiple_issues .ambox .mbox-textsmall-div {
float: right;
cleardisplay: rightnone;
font-size: 88%;
width: 22em;
vertical-align: middle;
text-align: left;
line-height: 1.5em;
border-collapse: separate;
border-spacing: 2px;
}
.infobox > caption {
font-size: 125%;
font-weight: bold;
}
.infobox td,
.infobox th {
vertical-align: top;
}
 
/* Remove borders, backgrounds, padding, etc. */
/* temporarily for [[Template:Карточка]] */
.ambox-multiple_issues .ambox {
table.infobox td p {
border: none;
margin: 0 !important;
border-collapse: collapse;
background: transparent;
margin: 0 0 0 1.6em;
padding: 0;
width: auto;
display: block;
}
.ambox-multiple_issues .mbox-small-left {
 
font-size: 100%;
/* списки в карточках */
width: auto;
.infobox th>ul,
.infobox td>ul {
list-style-type: none;
list-style-image: none;
margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.infobox th>ol,
.ambox-multiple_issues .ambox .mbox-text {
.infobox td>ol {
padding: 0;
line-height: 1.1em;
margin: 0 0 0 2em;
}
.ambox-multiple_issues .ambox .mbox-multiply {
.infobox li {
display: list-item;
margin-bottom: 0;
line-height: 1.5em;
list-style-image: url(/w/skins/Vector/resources/common/images/bullet-icon.svg);
}
.skin-monobook .ambox-multiple_issues .ambox .mbox-multiply {
list-style-type: square;
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
/* Allow for hiding text in compact form */
.ambox-multiple_issue .hide-when-compact {
display: none;
}
 
/* Стили нотификаций для ноутбуков */
.notice {
@media (max-width: 1366px) {
text-align: justify;
.ombox,
margin: 1em 0.5em;
.tmbox,
padding: 0.5em;
.ambox {
margin-left: 6%;
margin-right: 6%;
}
}
 
/* Стили нотификаций для мобильного устройсва */
@media (max-width: 719px) {
.ombox,
.tmbox,
.ambox {
margin-left: 0;
margin-right: 0;
}
}
 
/* Устаревший стиль, на данный момент практически везде используется
неверно, почистить и удалить при первой возможности */
.messagebox {
border: thin solid #aaa;
Строка 625 ⟶ 980 :
font-size: 90%
}
.messagebox.standard-talk {
 
border: 1px solid #c0c090;
blockquote {
background: #f8eaba;
margin: 0.7em 0 0.7em 5%;
}
padding: 0.7em 2% 0.7em 4%;
.messagebox .floatleft {
background: #f5f5f5;
vertical-align: middle;
clear: both;
margin: 2px;
padding: 0;
}
.messagebox .image {
margin: 0;
padding: 0;
}
 
/* КАРТОЧКА --------------------------------------- */
ol.references {
 
font-size: 100%;
.infobox {
}
border: 1px solid #a2a9b1;
.references-small {
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 {
/* highlight focused footnotes and references in some browsers */
font-size: 125%;
sup.reference:target,
ol.references li:target,
.highlight-target:target,
cite:target,
span.citation:target {
background: #DEF;
}
sup.reference:target {
font-weight: bold;
padding: .2em;
}
.infobox td,
/* scrollable references */
.infobox th {
.references-scroll {
vertical-align: top;
overflow: auto;
padding: 3px;
}
 
/* Компоненты карточки */
/* fix for line-breaking references */
.infobox-above {
sub,
background: #cfe3ff;
sup {
linefont-heightsize: 1em120%;
text-align: center;
}
.infobox-image {
 
padding-left: 0;
.plainlinksneverexpand,
padding-right: 0;
.plainlinksneverexpand a {
text-align: center;
background: none !important;
padding: 0 !important;
}
.infobox-header {
.plainlinksneverexpand a.external.text:after,
background: #dcebff;
.plainlinksneverexpand a.external.autonumber:after,
text-align: center;
.plainlinksneverexpand .urlexpansion {
display: none !important;
}
.infobox-below {
 
background: #dcebff;
.clickable-image a:hover {
text-decorationalign: nonecenter;
}
.infobox-table,
 
.infobox-tablebox,
.printonly {
.infobox-medals {
display: none;
padding: 0;
}
.infobox-inner-table,
 
.infobox-table > table,
.dablink,
.infobox-tablebox > table,
.rellink {
.infobox-medals > table {
font-style: italic;
width: 100%;
padding-left: 1.6em;
display: table;
margin: 0;
background: transparent;
}
.infobox-tablebox > table {
 
background: #ffffff;
#disambig {
border-top: 3px1px doublesolid #ccca2a9b1;
border-bottom: 3px double #ccc;
}
.infobox-medals > table {
 
border-collapse: separate;
/*{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;
}
.infobox-medals .NavFrame {
 
padding: 0;
 
border: none;
/* PDF icon next to external PDF link for Mozilla and Opera and for {PDFlink} template */
font-size: 100%;
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;
}
.infobox-medals .NavFrame .NavHead {
 
padding: 1px 5em;
/* 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;
}
.infobox-medals .NavFrame .NavToggle {
 
position: absolute;
/* Medialist templates {Listen}, {Multi-listen_start}, {Video}, {Multi-video_start} */
top: 1px;
div.listenlist {
right: 1px;
background: url(//upload.wikimedia.org/wikipedia/commons/3/3f/Gnome_speakernotes_30px.png);
padding-left: 40px;
}
.infobox-medals .NavFrame .NavContent {
div.videolist,
font-size: 95%;
div.multivideolist {
background: url(//upload.wikimedia.org/wikipedia/en/thumb/2/20/Tango-video-x-generic.png/40px-Tango-video-x-generic.png);
padding-left: 50px;
}
 
div.medialist {
/* Встраиваемая карточка */
min-height: 50px;
.infobox-child {
margin: 1em;
width: 100%;
background-position: top left;
margin: 0;
background-repeat: no-repeat;
padding: 0;
border: none;
font-size: 100%;
}
 
div.medialist ul {
/* Списки в карточках */
.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 {
div.medialist ul li {
paddingmargin-bottomtop: 0.5em;
}
.infobox th > ol,
div.medialist ul li li {
.infobox td > ol,
font-size: 91%;
.infobox [data-wikidata-property-id] > ol {
padding-bottom: 0;
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 {
table.navigation-box th,
margin: 0 !important;
table.navigation-box td {
vertical-align: middle;
height: 30px;
}
 
/* СКРЫТЫЙ ---------------------------------------- */
/*{Навигацион тасма}, {Hider}, ... */
 
div.Boxmerge,
/* {Навигационная полоса}, {Hider}, ... */
div.NavFrame {
margin: 0;
padding: 2px;
overflow: hidden;
border: 1px solid #aaa;
border: 1px solid #a2a9b1;
text-align: center;
border-collapse: collapse;
font-size: 95%;
}
div.Boxmerge div.NavFrame {
border-style: none;
border-style: hidden;
}
div.NavFrame + div.NavFrame {
Строка 783 ⟶ 1155 :
}
div.NavFrame div.NavHead {
text-align: center;
height: 1.6em;
font-weight: bold;
font-size: 100%;
background: #efefefeaecf0;
position: relative;
}
div.NavFrame div.NavContent {
overflow-x: auto;
overflow-y: hidden;
clear: both;
}
div.NavFrame p,
Строка 793 ⟶ 1170 :
div.NavFrame div.NavContent p {
font-size: 100%
}
div.NavEnd {
margin: 0;
padding: 0;
line-height: 1px;
clear: both;
}
a.NavToggle {
float: right;
topmargin-right: 03px;
right: 11px;
font-weight: normal;
font-size: smaller90%;
}
 
/* НАВИГАЦИОННЫЙ ШАБЛОН --------------------------- */
 
.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;
}
 
 
/* {coord}s */
#coordinates {
position: absolute;
z-index: 1;
right: 9em;
top: 3.7em;
float: right;
line-height: 1.5em;
text-align: right;
font-size: 85%;
white-space: nowrap;
}
#coordinates,
.coordinates {
text-transform: none;
margin: 0;
padding: 0;
}
.geo-google,
.geo-osm,
.geo-yandex {
font-family: serif;
font-weight: bold;
line-height: 1em;
}
.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: #9098a0;
}
 
/* FlaggedRevs */
.mw-fr-reviewlink,
.fr-hist-basic-user,
.fr-hist-basic-auto {
font-weight: normal;
font-size: smaller;
}
.flaggedrevs-pending {
background: #ffc;
}
.sitedir-ltr div.flaggedrevs_short {
float: none;
padding: 1px;
}
.sitedir-ltr div.flaggedrevs_short_details {
width: 95%;
display: none;
}
 
 
/* Remove "external" icon from links to WP */
body.ns-talk a.external[href*="//tt.wikipedia.org/"],
body.ns-4 a.external[href*="//tt.wikipedia.org/"] {
background: none !important;
padding-right: 0 !important;
}
 
 
.sitedir-ltr .mw-dismissable-notice-body {
margin-right: 5em !important; /* was 20% */
}
 
/* {Навигацион тасма} - старый CSS */
table.navbox th {
background: #ccf;
padding-left: 1em;
padding-right: 1em;
text-align: right;
}
 
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
box-sizing: border-box;
background: #f9f9f9;
border: 1px solid #aaaa2a9b1;
width: 100%;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
clear: both;
font-size: 90%;
text-align: center;
margin: 1em 0em 0em;
padding: 2px3px;
width: 100%;
margin: auto;
}
.navbox-inner,
Строка 927 ⟶ 1198 :
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-grouptitle { /* Group style */
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 */
Строка 938 ⟶ 1220 :
.navbox,
.navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
border-color: #fdfdfd; /* Must match background color */
line-height: 1.8em;
border-color: #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background: #ccccffcfe3ff; /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
background: #ddddffdcebff; /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: #e6e6ffeaf3ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7f5f5f5; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.navbox .hlist td dl,
Строка 972 ⟶ 1250 :
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 1px 0.125em 0; /* Adjust hlist padding in navboxes */
}
ol.navbox + table.navbox, {
margin-top: 0; /* No top margin for nested navboxes */
ul + table.navbox {
}
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */
.navbox + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
 
Строка 982 ⟶ 1262 :
.navbar {
display: inline;
font-size: 88%11px;
font-weight: normal;
}
Строка 989 ⟶ 1269 :
white-space: nowrap;
}
.mw-body-content .navbar liul {
wordline-spacingheight: -0.125eminherit;
}
.navbar.mini li span {
fontword-variantspacing: small-caps0.1em;
}
.navbar.mini span abbr[title] {
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
 
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
Строка 1010 ⟶ 1296 :
/* @noflip */
margin-right: 0.5em;
width: 6em5em;
}
 
/* [[Шаблон:Coord]] ------------------------------- */
 
#mw-indicator-0-coord + .mw-indicator {
/* Watchlist details */
border-left: 1px solid #A7D7F9;
.watchlist-msg {
margin-left: 0.25em;
float: right;
padding-left: 0.5em;
background: #ffffe0;
border: 1px solid #fd4;
font-size: 8pt;
padding: 0.5em 0.7em;
margin-left: 1em;
line-height: 1.4em;
}
 
#mw-watchlist-form {
.mw-body-content .geo-services {
clear: both;
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,
/* {{math}} */
.geo-geo-dms .geo-dms {
.math-template {
display: inline;
}
.geo-geo-dec .geo-dms,
.geo-geo-dms .geo-dec,
.geo-multi-punct {
display: none;
}
.geo-lat,
.geo-lon {
white-space: nowrap;
font-family: times, serif, palatino linotype, new athena unicode, athena, gentium, code2000;
font-size: 120%;
}
 
/* ================================================
/* Visual editor related */
СТРАНИЦЫ
.mw-ve-editNotice .mbox-image {
================================================ */
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 #siteSub,
body.page-Заглавная_страница.action-view #contentSub,
body.page-Заглавная_страница.action-view #contentSub2,
body.page-Заглавная_страница.action-view #mw-data-after-content {
display: none !important;
}
 
/*
/* [[Phabricator:T37337]], improve resolution of logo on high-resolution screens. Copied from en.wiki. */
* Костыли-префиксы для поддержки устаревших браузеров заглавной страницей
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
* Будут переведены на TemplateStyles, см. [[phab:T162379]]
#p-logo a {
*/
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/0/09/Wikipedia-logo-v2-tt.svg/204px-Wikipedia-logo-v2-tt.svg.png") !important;
.main-top-right > ul {
background-size: 136px auto;
display: -webkit-box;
}
display: -webkit-flex;
-webkit-flex-wrap: wrap;
}
 
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
.main-featuredLists > .main-featuredLists-item {
#p-logo a {
-webkit-box-align: stretch;
background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/0/09/Wikipedia-logo-v2-tt.svg/270px-Wikipedia-logo-v2-tt.svg.png") !important;
-webkit-align-items: stretch;
background-size: 135px auto;
-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;
}
}