MediaWiki:Gadget-common-site.css
Перейти к навигации
Перейти к поиску
Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
- Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
- Internet Explorer / Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
- Opera: Нажмите Ctrl+F5.
/** * Этот файл должен быть как можно менее большим. Он объединяет приоритетные стили для мобильных и десктопных устройств. * Неприоритетные стили для мобильных стоит размещать в [[MediaWiki:Mobile.css]] * Приоритетные стили *только* для мобильных стоит размещать в [[MediaWiki:Minerva.css]] * Стили только для десктопа стоит размещать в [[MediaWiki:Common.css]] * * [Содержание] * * 0. CSS-переменные * 1. Интерфейс * 1.1 Теги * 1.2 Расширения * 2. Служебные классы * 3. Общие классы * 3.1 Списки * 3.2 Примечания * 3.4 Таблицы * 4. Шаблоны */ /* ================================================ CSS-ПЕРЕМЕННЫЕ ================================================ */ :root, .skin-invert, .notheme { --ruwiki-background-color-blue150: #dcebff; --ruwiki-background-color-blue200: #cfe3ff; } @media screen { html.skin-theme-clientpref-night { --ruwiki-background-color-blue150: #1d2a42; --ruwiki-background-color-blue200: #233a67; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os { --ruwiki-background-color-blue150: #1d2a42; --ruwiki-background-color-blue200: #233a67; } } /* ================================================ ИНТЕРФЕЙС ================================================ */ /* ТЕГИ ------------------------------------------- */ blockquote { quotes: '\00AB' '\00BB'; } /* Добавление горизонтального скролла для <pre>, для избежания бага с очень длинными строками */ pre { overflow-x: auto; overflow-y: hidden; } /* Размер таба для обычного редактора и для тега <code> */ pre, textarea { tab-size: 4; } /* Consistent size for <small>, <sub> and <sup> */ .mw-parser-output small, .mw-parser-output sub, .mw-parser-output sup { font-size: 85%; } /* РАСШИРЕНИЯ ------------------------------------- */ /* Исправление «подробных» стилей патрулирования */ .mw-fr-basic.cdx-message { margin-top: 0.25em; padding: 0.4em 1em; } .mw-fr-basic.mw-fr-draft-synced.cdx-message, .mw-fr-basic.mw-fr-stable-synced.cdx-message, .mw-fr-basic.mw-fr-stable-not-synced.cdx-message { /* проверенные/стабилизированные страницы */ background: none; border: none; color: var(--color-subtle, #54595d); padding: 0; } .mw-fr-basic.cdx-message .cdx-message__icon { height: 1.25rem; } .mw-fr-basic.cdx-message .cdx-message__content { /* хак для исправления шрифтов от Кодекса */ --font-size-medium: 1em; --line-height-small: inherit; font-size: 1em; line-height: inherit; hyphens: none; margin-left: 0.5em; word-wrap: normal; } /* Стили для расширения [[mw:Extension:Babel]] (13-07-17) */ /* Скрытие буквы N у родных языков, по аналогии со старыми языковыми шаблонами */ .mw-babel-box-level-N { display: none; } /* Remove popup from Content translation tool, if not opted in */ .cx-callout:not(.cx-campaign-contributionsmenu):not(.cx-entrypoint-dialog) { display: none !important; } /* Make <math display="block"> be left aligned with one space indent for compatibility with style conventions */ .mwe-math-fallback-image-display, .mwe-math-mathml-display { margin-left: 1.6em !important; margin-top: 0.6em; margin-bottom: 0.6em; } .mwe-math-mathml-display math { display: inline; } /* ================================================ СЛУЖЕБНЫЕ КЛАССЫ ================================================ */ /* Служебные классы для показа сообщений отдельным группам пользователей */ .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; } /* Списки без маркеров */ .plainlist ol:not(.references), .plainlist dl, .plainlist ul { line-height: inherit; list-style: none none; margin: 0; padding: 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, .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; } /* ПРИМЕЧАНИЯ ------------------------------------- */ .reflist-narrow .mw-references-columns { column-width: 20em; } .reflist-wide .mw-references-columns { column-width: 40em; } /* Enable custom list style types */ .reflist ol.references { list-style-type: inherit; } /* Показать содержимое устаревших классов */ .NavFrame, .NavHead, .NavContent { display: block !important; } /* ================================================ ШАБЛОНЫ ================================================ */ /* КАРТОЧКА --------------------------------------- */ /* Списки в карточках */ .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; padding: 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; padding: 0; } .infobox th > dl, .infobox td > dl, .infobox [data-wikidata-property-id] > dl { margin: 0; } .infobox.infobox li, .infobox.infobox dt, .infobox.infobox dd { margin-bottom: 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: Временные правки стилей элементов внутри карточек */ table.infobox td p { margin: 0 !important; } table.infobox td .NavContent { margin-left: 0 !important; } /* [[Шаблон:Ref-info]] ---------------------------- */ .ref-info { font-size: 85%; cursor: help; color: #72777d; } @media screen { html.skin-theme-clientpref-night .ref-info { color: #a2a9b1; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .ref-info { color: #a2a9b1; } }