MediaWiki:Common.css: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 5: | Строка 5: | ||
* 1. Шрифты | * 1. Шрифты | ||
* 2. Теги | * 2. Теги | ||
* 3. | * 3. Шаблоны | ||
* 4. | * 4. Модули | ||
* 5. | * 5. Расширение | ||
* 6. | * 6. Основной интерфейс пользователя | ||
* 7. | * 7. Классы | ||
* 8. Интерфейс MediaWiki | * 8. Интерфейс MediaWiki | ||
* 9. Неотсортированные | * 9. Неотсортированные | ||
| Строка 879: | Строка 879: | ||
/* ============ */ | /* ============ */ | ||
/* #region | /* #region Шаблоны */ | ||
/* ============ */ | /* ============ */ | ||
/* | /*=== Навигационный шаблон ===*/ | ||
. | /* Default style for navigation boxes */ | ||
border: 1px solid var(--theme-border-color- | .navbox { /* Navbox container style */ | ||
box-sizing: border-box; | |||
border: 1px solid var(--theme-border-color-base); | |||
width: 100%; | |||
padding: | margin: 2em auto 0; /* Prevent preceding content from clinging to navboxes */ | ||
clear: both; | |||
font-size: 90%; | |||
text-align: center; | |||
padding: 3px; | |||
} | |||
.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 { | |||
height: | position: relative; | ||
line-height: 1.6em; /* Standard 1.6em for title */ | |||
border-bottom: 2px solid var(--color-darkened-border); | |||
border-radius: var(--border-radius-low); | |||
bottom: | border-top: 1px solid var(--color-lighter-alpha-x); | ||
border-bottom: 2px solid var(--color-darkened-border); | |||
box-shadow: var(--box-shadow-medium); | |||
} | } | ||
/* 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: 1px solid var(--theme-bg-color-100); /* Must match background color */ | |||
border-bottom: 1px solid var(--theme-bg-color-100); | |||
} | } | ||
th.navbox-group { /* Group style */ | |||
/* | |||
white-space: nowrap; | white-space: nowrap; | ||
/* @noflip */ | |||
text-align: left; | |||
- | |||
} | } | ||
.navbox th, | |||
. | .navbox-title { | ||
background: var(--color-contrast2); /* Level title color */ | |||
} | } | ||
.navbox, | |||
. | .navbox-subgroup { | ||
background: | background: var(--theme-bg-color-100); /* Level 1 color */ | ||
} | } | ||
.navbox-subgroup .navbox-group, | |||
.navbox-subgroup .navbox-abovebelow { | |||
background- | background: var(--theme-bg-color-200); /* Level 2 color */ | ||
border-right: 1px solid var(--theme-bg-color-150); | |||
border-bottom: 1px solid var(--theme-bg-color-150); | |||
border-top: none; | |||
} | } | ||
.navbox-abovebelow, | |||
. | th.navbox-group, | ||
.navbox-subgroup .navbox-title { | |||
background: var(--theme-bg-color-250); /* Level 3 color */ | |||
} | } | ||
.navbox-even { | |||
background: transparent; /* Even row striping */ | |||
background: | |||
} | } | ||
.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 */ | |||
} | } | ||
. | .navbox td:not(:has(table)), .navbox ul { | ||
background: var(--theme-bg-color-150); | |||
padding: 4px 2px !important; | |||
} | } | ||
@media screen and (max-width: 650px) { | |||
th.navbox-group { | |||
white-space: unset; | |||
} | |||
} | } | ||
/* КОНЕЦ */ | |||
/* #endregion */ | |||
/* ============ */ | |||
/* #region Модули */ | |||
/* ============ */ | |||
/*=== Модуль:Краткий вызов ===*/ | |||
font-size: | .shortcut { | ||
clear: right; | |||
float: right; | |||
margin-left: 0.75em; | |||
font-size: smaller; | |||
background: var(--bg-color-code-light); | |||
border: 1px solid var(--border-color-code-light); | |||
} | } | ||
. | .shortcut-1, .shortcut-2 { | ||
padding: 4px; | |||
} | } | ||
. | .shortcut-2 { | ||
line-height: 1.25em; | |||
font-weight: bold; | |||
vertical-align: middle; | |||
} | } | ||
/* #endregion */ | |||
/* ============ */ | |||
/* #region Расширение */ | |||
/* ============ */ | |||
. | /*=== CodeMirror ===*/ | ||
.CodeMirror { | |||
height: 600px; | |||
position: relative; | |||
overflow: hidden; | |||
background: var(--theme-bg-color-base); | |||
color: inherit; | |||
} | } | ||
. | .CodeMirror-gutters { | ||
border-right: 1px solid var(--theme-bg-color-100); | |||
background: var(--theme-bg-color-100); | |||
white-space: nowrap; | |||
} | } | ||
. | .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { | ||
background: var(--color-contrast2-dark); | |||
} | } | ||
. | /*=== Расширение:Popups ===*/ | ||
/* Всплывающие окна */ | |||
.mwe-popups { | |||
background: var(--ooui--gradient-light); | |||
box-shadow: 0 5px 30px 0px rgba(0, 0, 0, 0.35), 0 0 1px 1px rgba(0, 0, 0, 0.1); | |||
} | } | ||
. | .mwe-popups img { | ||
image-rendering: auto; | |||
} | } | ||
. | .mwe-popups .mwe-popups-container { | ||
background: var(--ooui--gradient-light); | |||
} | } | ||
. | .mwe-popups .mwe-popups-extract { | ||
color: #dddddd; | |||
} | } | ||
. | .mwe-popups .mwe-popups-extract:hover { | ||
color: #e8e8e8; | |||
} | } | ||
. | .mwe-popups .mwe-popups-extract[dir='ltr']::after { | ||
background: linear-gradient(90deg, #ffffff00 0%, #2a2a3387 50%); | |||
} | } | ||
. | .mwe-popups .mwe-popups-extract[dir='rtl']::after { | ||
background: linear-gradient(90deg, #2a2a3387 50%, #ffffff00 0%); | |||
} | } | ||
. | /* Настройки */ | ||
.mwe-popups-overlay { | |||
background: rgba(0, 0, 0, 0.6); | |||
} | } | ||
#mwe-popups-settings { | |||
border: 1px solid #41414d; | |||
background: #27272f; | |||
} | } | ||
#mwe-popups-settings header { | |||
border-bottom: 1px solid #41414d; | |||
} | } | ||
#mwe-popups-settings main#mwe-popups-settings-form p { | |||
color: var(--ooui--text-color); | |||
} | } | ||
#mwe-popups-settings main#mwe-popups-settings-form form label > span { | |||
color: #dddddd; | |||
} | } | ||
. | /*=== Расширение:InputBox ===*/ | ||
.mw-ui-input { | |||
background: var(--ooui--bg-color); | |||
color: var(--ooui--text-color-light); | |||
} | } | ||
. | form:not(.oo-ui-layout) textarea, form:not(.oo-ui-layout) input { | ||
border-radius: var(--border-radius-low); | |||
border-color: var(--ooui--border-color); | |||
} | } | ||
. | .mw-ui-input:hover { | ||
border-color: var(--ooui--border-color-light); | |||
} | } | ||
/*=== Расширение:SyntaxHighlight ===*/ | |||
.mw-content-ltr.mw-highlight-lines pre, .mw-content-ltr.content .mw-highlight-lines pre { | |||
background: var(--theme-bg-color-100); | |||
border-color: var(--ooui--border-color); | |||
box-shadow: var(--ooui--bg-color-dark) 2.75em 0px 0px inset; | |||
font-size: 90%; | |||
color: var(--ooui--text-color); | |||
} | } | ||
.mw-content-ltr.mw-highlight .linenos { | |||
. | color: var(--ooui--text-color-dark); | ||
. | |||
. | |||
} | } | ||
. | /*=== GrowthExperiments ===*/ | ||
. | body.mw-special-Homepage.growthexperiments-homepage-desktop .growthexperiments-homepage-container .growthexperiments-homepage-group-main { | ||
. | --width: clamp(300px, 50vw, 480px); | ||
width: var(--width); | |||
flex: 1 0 var(--width); | |||
} | |||
.growthexperiments-homepage-module-suggested-edits .suggested-edits-module-wrapper .se-card-no-results, .growthexperiments-homepage-module-suggested-edits .suggested-edits-module-wrapper .se-card-error, .growthexperiments-homepage-module-suggested-edits .suggested-edits-module-wrapper .se-card-end-of-queue { | |||
width: 300px; | |||
} | } | ||
.growthexperiments-homepage-module-suggested-edits .suggested-edits-filters .oo-ui-buttonGroupWidget { | |||
. | gap: 0.2em; | ||
} | } | ||
. | .mw-ge-help-panel-widget-overlay, | ||
. | .oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-active > .oo-ui-window-frame { | ||
max-width: calc(100% - 2em); | |||
max-height: calc(100% - 2em); | |||
} | } | ||
.mw-echo-ui-notificationItemWidget-initiallyUnseen { | |||
. | animation-fill-mode: unset; | ||
} | } | ||
.ext-discussiontools-init-targetcomment { | |||
. | background: var(--bg-color-hover); | ||
border-radius: var(--border-radius-low); | |||
} | } | ||
@media screen and (max-width: 850px) { | |||
.mw-ge-help-panel-popup .oo-ui-dialog.oo-ui-window-setup { | |||
box-shadow: var(--box-shadow-overlay); | |||
} | |||
} | } | ||
/* #endregion */ | |||
. | /* ============ */ | ||
/* #region Основной интерфейс пользователя */ | |||
} | /* ============ */ | ||
.mw-footer .footer-icons a { | |||
background: var(--theme-bg-color-100); | |||
border: 1px solid var(--theme-border-color-base); | |||
padding-right: 15px; | |||
padding-left: 15px; | |||
min-height: 44px; | |||
display: inline-flex; | |||
align-items: center; | |||
} | |||
.mw-json th, .mw-json td { | |||
. | border: 1px solid black; | ||
} | } | ||
. | .mw-json tr { | ||
background: var(-- | background: var(--theme-bg-color-100); | ||
} | } | ||
. | .mw-json th { | ||
background: | background: var(--theme-bg-color-250); | ||
color: var(--theme-text-color); | |||
} | } | ||
.mw-json-value, .mw-json-single-value { | |||
. | background: var(--bg-color-emerald-50); | ||
color: var(--theme-text-color); | |||
} | } | ||
.mw-json-empty { | |||
. | background: var(--bg-color-emerald-50); | ||
color: var(--theme-text-color); | |||
} | } | ||
. | .mw-ui-button { | ||
color: var(--theme-text-color); | |||
} | } | ||
. | .mw-ui-button:not(:disabled):hover { | ||
color: var(--theme-text-color-light); | |||
} | } | ||
/*=== Страница ===*/ | |||
#mw-page-base { | |||
background: var(--theme-bg-color-base); | |||
color: var(--theme-text-color); | |||
border: var(--theme-bg-color-base) | |||
} | } | ||
#mw-header-nav-hack { | |||
background: var(--theme-bg-color-base); | |||
border-color: var(--theme-bg-color-200); | |||
} | |||
.mediawiki, .mw-page-container { | |||
background: var(--theme-bg-color-base); | |||
color: var(--theme-text-color); | |||
border: var(--theme-bg-color-base) | |||
} | |||
#mw-panel { | |||
background: var(--theme-bg-color-base); | |||
color: var(--theme-text-color); | |||
border: var(--theme-bg-color-base) | |||
} | } | ||
#mw-content-container,#mw-header-container,#mw-content-wrapper,#mw-content,#p-logo { | |||
. | background: var(--theme-bg-color-base); | ||
color: var(--theme-text-color); | |||
} | border: var(--theme-bg-color-base) | ||
} | |||
.mw-code { | |||
background: var(--theme-bg-color-100); | |||
color: var(--theme-text-color) | |||
} | |||
.wikiEditor-ui-toolbar .group .tool-select .options { | |||
border: none; | |||
} | |||
a.extiw:visited,a.external:visited,.mw-parser-output a.extiw:visited,.mw-parser-output a.external:visited,body.skin--responsive #p-cactions li a.external:visited { | |||
color: var(--text-color-link-external) | |||
} | |||
.vector-menu-tabs li { | |||
background: var(--theme-bg-color-100) | |||
} | |||
#mw-changeslist-links { | |||
background: var(--theme-bg-color-100); | |||
color: var(--theme-text-color); | |||
} | } | ||
#simpleSearch { | |||
background: var(--theme-bg-color-150); | |||
border-color: var(--theme-border-color-base); | |||
color: var(--theme-text-color); | |||
border-radius: var(--border-radius-low); | |||
} | } | ||
#searchInput { | |||
color: var(--theme-text-color-light) | |||
} | |||
#pt-createaccount { | |||
display: none !important; | |||
} | } | ||
. | |||
. | .vector-menu-tabs .selected { | ||
background: var(--theme-bg-color-base) | |||
} | } | ||
#mw-footer-container { | |||
border-top: solid 4px #14866d; | |||
background: var(--theme-bg-color-100); | |||
} | } | ||
. | |||
@media screen and (max-width: 850px) { | |||
.wikitable:not(.no-img-adaptive) img[width="64"][height="64"] { | |||
width: 32px; | |||
height: 32px; | |||
} | |||
*:not(.no-img-adaptive) img[width="64"][height="128"] { | |||
width: 32px; | |||
height: 64px; | |||
} | |||
*:not(.no-img-adaptive) img[width="128"][height="128"] { | |||
width: 64px; | |||
height: 64px; | |||
} | |||
} | } | ||
@media screen and (max-width: 650px) { | |||
.mw-parser-output table { | |||
table-layout: auto !important; | |||
overflow: auto; | |||
max-width: 100%; | |||
} | |||
} | } | ||
/* Заголовок */ | |||
.mw-body h1.firstHeading { | |||
border-width: 3px; | |||
} | } | ||
. | /* Содержание */ | ||
background: var(--color- | .mw-body { | ||
background: var(--theme-bg-color-100); | |||
color: var(--theme-text-color); | |||
padding: 12px 14px; | |||
border-radius: var(--border-radius-low); | |||
box-shadow: var(--box-shadow-outline); | |||
border: none; | |||
border-top: 1px solid var(--color-lighter-alpha-x); | |||
} | } | ||
. | @media screen and (max-width: 850px) { | ||
.mw-body { | |||
padding: 6px; | |||
} | |||
} | } | ||
/* Категории */ | |||
#content-bottom-stuff .catlinks { | |||
border- | margin-top: 6px; | ||
border- | border-radius: var(--border-radius-low); | ||
border: none; | |||
box-shadow: var(--box-shadow-outline); | |||
border-top: 1px solid var(--color-lighter-alpha-x); | |||
} | } | ||
. | |||
/*=== Заглавный поисковик ===*/ | |||
. | /* Выдвижной блок */ | ||
background: var(--theme-bg-color- | .suggestions { | ||
box-shadow: var(--box-shadow-high); | |||
border-radius: 0 0 0.3em 0.3em; | |||
background: var(--theme-bg-color-100); | |||
border: 1px solid var(--ooui--border-color); | |||
border-top: 2px solid var(--color-contrast); | |||
padding-top: 4px; | |||
} | } | ||
. | |||
.suggestions .suggestions-results, /* Блок страниц */ | |||
.suggestions .suggestions-special /* Блок поиска страниц, содержащих введённый текст */ { | |||
. | border-radius: 0.4em; | ||
background: | margin: 0.5em; | ||
background: var(--ooui--bg-color); | |||
border: 1px outset rgb(0 0 0 / 20%); | |||
} | } | ||
/* Страницы */ | |||
. | .suggestions .suggestions-result { | ||
color: var(--ooui--text-color-light); | |||
margin: 6px; | |||
} | } | ||
/* Если пустой */ | |||
.suggestions .suggestions-results:empty { | |||
. | display: none; | ||
} | } | ||
. | .suggestions-special .special-label { | ||
color: var(--ooui--text-color); | |||
} | } | ||
.suggestions-special .special-query { | |||
color: var(--ooui--text-color-light); | |||
} | } | ||
/* | /* Подсветка при наведении */ | ||
.suggestions .suggestions-result-current { | |||
background: var(--color-contrast-dark); | |||
outline: 1px solid var(--color-contrast); | |||
border-radius: var(--border-radius-low); | |||
border-color: var(--color-contrast-dark); | |||
} | |||
/* | /* Общие стили */ | ||
.suggestions .suggestions-result, | |||
.suggestions .suggestions-special { | |||
padding: 0.5em 0.5em 0.35em; | |||
. | |||
} | } | ||
. | /*=== Боковая панель ===*/ | ||
padding: | /* Основной блок */ | ||
#mw-site-navigation .sidebar-chunk, #mw-site-navigation .sidebar-chunk, #mw-related-navigation .sidebar-chunk, body.skin--responsive .portlet, body.skin--responsive .pBody { | |||
padding: 0; | |||
border: 0; | |||
border-radius: 0; | |||
background: none; | |||
} | } | ||
/* Блок навигации */ | |||
@media (min-width: 1100px) { | |||
#mw-related-navigation { | |||
margin-top: 0; | |||
} | |||
} | } | ||
/* | /* Блоки */ | ||
@media (min-width: 1100px) { | |||
.sidebar-inner .mw-portlet { | |||
padding: 0; | |||
margin: 0.5em 8px 2px 6px !important; | |||
border-radius: 0.2em; | |||
box-shadow: var(--box-shadow); | |||
} | |||
} | |||
@media screen and (min-width: 1340px) { | |||
#mw-site-navigation .sidebar-chunk .mw-portlet > div, #mw-site-navigation .sidebar-chunk .mw-portlet-body { | |||
margin-bottom: 1em; | |||
} | |||
} | } | ||
@media screen and (min-width: 1100px) and (max-width: 1339px) { | |||
#mw-site-navigation .sidebar-chunk .mw-portlet > div, #mw-related-navigation .sidebar-chunk .mw-portlet > div, #mw-site-navigation .sidebar-chunk .mw-portlet-body, #mw-related-navigation .sidebar-chunk .mw-portlet-body { | |||
margin-bottom: 1em; | |||
} | |||
} | } | ||
. | /* Заголовок */ | ||
@media (min-width: 1100px) { | |||
#mw-site-navigation .sidebar-chunk h3, | |||
#mw-related-navigation .sidebar-chunk h3 { | |||
margin: 0; | |||
padding: calc(0.4em + 2px); | |||
border-top: 2px solid var(--color-lighter-alpha-x); | |||
border-bottom: 2px solid var(--color-darkened-border); | |||
border-radius: var(--border-radius-low) var(--border-radius-low) 0 0; | |||
background: var(--ooui--bg-color); | |||
font-size: 1.05em; | |||
font-weight: bold; | |||
} | |||
} | } | ||
/* | /* Содержание */ | ||
@media (min-width: 1100px) { | |||
. | #mw-site-navigation .sidebar-chunk .mw-portlet-body, | ||
#mw-related-navigation .sidebar-chunk .mw-portlet-body { | |||
margin: 0; | |||
padding: 0.3em 0.5em; | |||
border: 2px solid rgba(var(--theme-color-lighter--rgb), var(--alpha-x)); | |||
border-top: 0; | |||
border-radius: 0 0 var(--border-radius-low) var(--border-radius-low); | |||
background: var(--theme-bg-color-100); | |||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 -2px 4px rgba(0, 0, 0, 0.15); | |||
} | |||
} | } | ||
. | /* Для телефонов */ | ||
@media screen and (max-width: 1099px) { | |||
#mw-site-navigation .sidebar-inner, | |||
#mw-related-navigation .sidebar-inner { | |||
padding: 1em 2em; | |||
background: var(--ooui--bg-color); | |||
border-color: var(--ooui--border-color); | |||
} | |||
#mw-related-navigation .sidebar-inner::before, #mw-related-navigation .sidebar-inner::after { | |||
display: none; | |||
} | |||
} | } | ||
@media screen and (max-width: 850px) { | |||
#mw-content-block { | |||
background: var(--theme-bg-color-100); | |||
} | |||
} | } | ||
/*=== Верхняя панель ===*/ | |||
/* Контейнер и сетка заголовка */ | |||
#mw-header-container { | |||
} | } | ||
#mw-header { | |||
display: grid; | |||
align-items: center; | |||
grid-template-columns: auto 1fr auto; | |||
gap: 6px; | |||
grid-template-areas: | |||
"a c b"; | |||
} | } | ||
/* Логотип */ | |||
#p-logo-text { | |||
grid-area: a; | |||
padding: 0; | |||
position: unset; | |||
} | } | ||
. | #p-logo-text a.long { | ||
color: var(--ooui--text-color); | |||
font-size: 1.3em; | |||
font-weight: bold; | |||
font-style: italic; | |||
font-family: unset; | |||
} | } | ||
/* | /* Пользовательские инструменты */ | ||
#personal-extra ul, | |||
#user-tools { | |||
display: flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
gap: 0.2em; | |||
grid-area: b; | |||
} | } | ||
# | #user-tools ul { | ||
list-style: none; | |||
margin: 0; | |||
} | } | ||
# | /* Поиск */ | ||
#p-search { | |||
grid-area: c; | |||
} | } | ||
# | /* Персональный блок внутри пользовательских инструментов */ | ||
#personal { | |||
padding: 0; | |||
} | } | ||
#personal h2 { | |||
margin: 0; | |||
padding: 0; | |||
font-size: 1em; | |||
font-weight: bold; | |||
display: flex; | |||
align-items: center; | |||
position: unset; | |||
font-family: unset; | |||
background-image: none; | |||
} | } | ||
#personal h2::before { | |||
mask-image: var(--icon-personal); | |||
} | } | ||
#personal h2::after { | |||
display: none; | |||
} | } | ||
#personal h2 span { | |||
margin-left: 4px; | |||
} | } | ||
#site-navigation h2 { | |||
mask-image: var(--icon-menu-large); | |||
- | background: var(--theme-text-color-light) !important; | ||
} | } | ||
/* Медиа-запросы для экранов меньше 850px */ | |||
@media screen and (max-width: 850px) { | |||
} | #mw-header-container { | ||
padding: 0.7em 0.45em 0.35em; | |||
} | |||
#mw-header { | |||
grid-template-columns: 1fr 0.6fr; | |||
grid-template-areas: | |||
"a b" | |||
"c c"; | |||
} | |||
#p-logo-text { | |||
margin-left: calc(30px + 6px + 0.3em); | |||
} | |||
#user-tools { | |||
justify-content: flex-start; | |||
flex-direction: row-reverse; | |||
} | |||
#user-tools h2::after, .sidebar-chunk h2::after { | |||
display: none; | |||
} | |||
#user-tools h2 span { | |||
display: none; | |||
} | |||
} | } | ||
. | /*=== Полоса прок ===*/ | ||
. | body:not(.wgl-theme-light)::-webkit-scrollbar, | ||
body:not(.wgl-theme-light) *::-webkit-scrollbar { | |||
background: #313137; | |||
} | } | ||
. | body:not(.wgl-theme-light)::-webkit-scrollbar-thumb, | ||
body:not(.wgl-theme-light) *::-webkit-scrollbar-thumb { | |||
border-style: solid; | |||
border-width: 3px; | |||
border-radius: 0.3em; | |||
} | } | ||
body::-webkit-scrollbar-thumb, | |||
background: | body *::-webkit-scrollbar-thumb { | ||
border-radius: | background: #505057; | ||
border-color: #313137; | |||
border-radius: 0.3em; | |||
} | } | ||
body:not(.wgl-theme-light)::-webkit-scrollbar-thumb:hover, | |||
body:not(.wgl-theme-light) *::-webkit-scrollbar-thumb:hover { | |||
background: #616169; | |||
} | } | ||
body:not(.wgl-theme-light)::-webkit-scrollbar-thumb:active, | |||
body:not(.wgl-theme-light) *::-webkit-scrollbar-thumb:active { | |||
background: #72727b; | |||
. | |||
} | } | ||
@media (hover: none) and (pointer: coarse) { | |||
::-webkit-scrollbar { | |||
} | all: unset; | ||
width: 0; | |||
height: 0; | |||
} | |||
::-webkit-scrollbar-thumb { | |||
all: unset; | |||
} | |||
} | } | ||
. | /*=== Чекбоксы ===*/ | ||
/* При нажатии */ | |||
.oo-ui-checkboxInputWidget.oo-ui-widget-enabled [type='checkbox']:checked:focus + span, .oo-ui-checkboxInputWidget.oo-ui-widget-enabled [type='checkbox']:indeterminate:focus + span { | |||
box-shadow: none; | |||
} | } | ||
. | /* В фокусе */ | ||
.oo-ui-checkboxInputWidget.oo-ui-widget-enabled [type='checkbox']:focus + span { | |||
box-shadow: none; | |||
} | } | ||
. | /*=== Стиль для таблиц ===*/ | ||
background: var(--bg-color- | /* wikitable */ | ||
.wikitable { | |||
background-color: var(--theme-bg-color-100); | |||
color: var(--theme-text-color); | color: var(--theme-text-color); | ||
margin: 1em 0; | |||
border: 1px solid var(--theme-bg-color-250); | |||
padding: 3px; | |||
border-collapse: separate; | |||
border-spacing: 1px; | |||
border-radius: var(--border-radius-medium); | |||
} | } | ||
.mw- | .mw_metadata > tr > th, .mw-datatable > tr > th, .wikitable > tr > th, .mw_metadata > tr > td, .mw-datatable > tr > td, .wikitable > tr > td, .mw_metadata > * > tr > th, .mw-datatable > * > tr > th, .wikitable > * > tr > th, .mw_metadata > * > tr > td, .mw-datatable > * > tr > td, .wikitable > * > tr > td { | ||
border: none; | |||
padding: 0.4em 0.5em; | |||
} | } | ||
. | .wikitable>*>tr>th { | ||
background: var(--theme-bg-color-250); | |||
} | } | ||
.wikitable>*>tr>td { | |||
background: var(--theme-bg-color-175); | |||
background: var(--theme-bg-color- | |||
} | } | ||
.wikitable.plainrowheaders th[scope=row] { | |||
font-weight: normal; | |||
text-align: left | |||
} | } | ||
. | .wikitable td ul,.wikitable td ol,.wikitable td dl { | ||
text-align: left | |||
} | } | ||
/* Закругление верхнего левого угла первой ячейки */ | |||
.wikitable thead tr:first-child th:first-child, | |||
.wikitable thead tr:first-child td:first-child, | |||
border: var(-- | .wikitable:not(:has(thead)) tr:first-child th:first-child, | ||
.wikitable:not(:has(thead)) tr:first-child td:first-child { | |||
border-top-left-radius: var(--border-radius-low); | |||
} | } | ||
/* Закругление верхнего правого угла последней ячейки */ | |||
.wikitable thead tr:first-child th:last-child, | |||
.wikitable thead tr:first-child td:last-child, | |||
.wikitable:not(:has(thead)) tbody > tr:first-child th:last-child, | |||
.wikitable:not(:has(thead)) tbody > tr:first-child td:last-child { | |||
border-top-right-radius: var(--border-radius-low); | |||
} | } | ||
. | /* Закругление нижнего левого угла первой ячейки последнего ряда | ||
.wikitable tbody tr:last-child th:first-child, | |||
.wikitable tbody tr:last-child td:first-child { | |||
border-bottom-left-radius: var(--border-radius-low); | |||
}*/ | |||
/* Закругление нижнего правого угла последней ячейки последнего ряда | |||
.wikitable tbody tr:last-child th:last-child, | |||
.wikitable tbody tr:last-child td:last-child { | |||
border-bottom-right-radius: var(--border-radius-low); | |||
}*/ | |||
/* Таблицы на телефонах */ | |||
@media screen and (max-width: 850px) { | |||
.wikitable { | |||
font-size: 0.8em; | |||
} | |||
} | } | ||
. | /* standard */ | ||
border: | .standard { | ||
background: none; | |||
margin-top: 1em; | |||
margin-bottom: 1em; | |||
border: 1px solid var(--theme-border-color-base); | |||
border-collapse: collapse; | |||
} | } | ||
.standard > tr > th, .standard > * > tr > th { | |||
color: var(-- | background-color: var(--theme-bg-color-150); | ||
} | } | ||
. | .standard > tr > th, .standard > tr > td, .standard > * > tr > th, .standard > * > tr > td { | ||
border: 1px solid var(--theme-border-color-base); | |||
padding: 0.2em 0.4em; | |||
} | } | ||
/* КОНЕЦ */ | |||
/*=== Сollapsible ===*/ | |||
.mw-parser-output .mw-collapsible-toggle { | |||
position: relative; | |||
font-weight: normal; | |||
text-align: right; | |||
top: 0; | |||
right: 0; | |||
} | } | ||
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { | |||
float: left; | |||
text-align: left | |||
} | } | ||
.mw-collapsible-toggle-default .mw-collapsible-text { | |||
color: var(- | color: var(--text-color-link); | ||
} | } | ||
.mw-collapsible-toggle-default .mw-collapsible-text:hover { | |||
color: var(--text-color-link); | |||
} | } | ||
. | .mw-collapsible-toggle-default .mw-collapsible-text:active { | ||
color: var(--text-color-link); | |||
} | } | ||
/*=== Картинки с обёрткой ===*/ | |||
figure[typeof~='mw:File/Thumb'], figure[typeof~='mw:File/Frame'] { | |||
background: var(--theme-bg-color-100); | background: var(--theme-bg-color-100); | ||
border-color: var(--theme-border-color-base); | |||
border-radius: var(--border-radius-low) var(--border-radius-low) 0 0; | |||
border-collapse: unset; | |||
} | } | ||
figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element, figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element { | |||
margin: 0.5em; | |||
border-radius: var(--border-radius-high); | |||
border: none; | |||
} | } | ||
figure[typeof~='mw:File/Thumb'] > figcaption, figure[typeof~='mw:File/Frame'] > figcaption { | |||
. | padding: 0.25em 0.5em 0.5em 0.5em; | ||
background: var(--theme-bg-color-150); | |||
border-color: var(--theme-border-color-base); | |||
border-radius: var(--border-radius-low); | |||
} | } | ||
/* | /*=== Gallery ===*/ | ||
.mw-body | .mw-body li.gallerybox div.thumb { | ||
border- | background: var(--theme-bg-color-150); | ||
border-color: var(--theme-border-color-base); | |||
border-radius: var(--border-radius-low) var(--border-radius-low) 0 0; | |||
} | } | ||
/* | /*=== Медиа-просмотрщике ===*/ | ||
.mw- | .mw-mmv-post-image { | ||
background: var(--theme-bg-color-100); | background: var(--theme-bg-color-100); | ||
color: var(--theme-text-color); | color: var(--theme-text-color); | ||
} | } | ||
.mw-mmv-image-metadata { | |||
background: var(--theme-border-color-base); | |||
border-color: var(--theme-border-color-200); | |||
} | } | ||
.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive { | |||
background: var(--color-contrast-dark); | |||
border-color: var(--color-contrast); | |||
border- | |||
} | } | ||
.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover { | |||
background: var(--color-contrast); | |||
. | border-color: var(--color-contrast); | ||
border- | |||
} | } | ||
. | .cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon { | ||
. | background: var(--theme-bg-color-base); | ||
background: var(-- | |||
} | } | ||
.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon { | |||
. | background: var(--theme-bg-color-base); | ||
} | |||
.cdx-button:enabled.cdx-button--weight-quiet:hover, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover { | |||
border-color: transparent; | |||
} | } | ||
.cdx-button:enabled.cdx-button--weight-quiet:hover, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover { | |||
. | background: var(--bg-color-focus); | ||
} | } | ||
. | .cdx-button:enabled, .cdx-button.cdx-button--fake-button--enabled { | ||
background: var(--theme-bg-color-150); | |||
color: var(--theme-text-color); | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
. | .cdx-button:enabled:hover, .cdx-button.cdx-button--fake-button--enabled:hover { | ||
background: var(--theme-bg-color-200); | |||
color: var(--theme-text-color-light); | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
.mw-mmv-title-para.mw-mmv-ttf-normal { | |||
. | font-size: 18px; | ||
font-weight: bold; | |||
} | } | ||
.mw-mmv-dialog { | |||
background-color: var(--theme-bg-color-100); | |||
} | } | ||
.mw-mmv-dialog .mw-mmv-dialog-warning { | |||
background-color: var(--bg-color-warning-subtle); | |||
} | } | ||
.mw-mmv-download-dialog .mw-mmv-dialog-down-arrow { | |||
background-color: var(--theme-bg-color-100); | |||
} | } | ||
.mw-mmv-dialog .mw-mmv-dialog-down-arrow { | |||
background-color: var(--theme-bg-color-100); | |||
} | } | ||
.cdx-select:enabled { | |||
background-color: var(--theme-bg-color-150); | |||
color: var(--theme-text-color); | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
.cdx-select:enabled:hover { | |||
background-color: var(--theme-bg-color-150); | |||
color: var(--theme-text-color-light); | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
.cdx-tabs:not(.cdx-tabs--framed)>.cdx-tabs__header { | |||
background-color: transparent; | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
.cdx-tabs:not(.cdx-tabs--framed)>.cdx-tabs__header .cdx-tabs__list__item[aria-selected=false] { | |||
color: var(--theme-text-color-dark); | |||
} | } | ||
.cdx-text-input__input:enabled { | |||
background-color: var(--theme-bg-color-150); | |||
color: var(--theme-text-color-light); | |||
border-color: var(--theme-border-color-base); | |||
} | } | ||
.cdx-text-input__input:enabled:hover { | |||
border-color: var(--theme-border-color-100); | |||
} | } | ||
/*=== | /*=== ace ===*/ | ||
.ace-tm .ace_gutter { | |||
background: var(--theme-bg-color-100); | |||
color: var(--ooui--text-color-dark); | |||
} | } | ||
.ace-tm .ace_print-margin { | |||
width: 1px; | |||
background: var(--theme-bg-color-base) | |||
} | } | ||
.ace_mobile-menu { | |||
color: var(--theme-text-color); | |||
background: var(--ooui--bg-color); | |||
border-color: var(--ooui--border-color-light); | |||
box-shadow: var(--box-shadow-medium); | |||
} | } | ||
.ace-tm { | |||
background: var(--theme-bg-color-base); | |||
color: var(--ooui--text-color); | color: var(--ooui--text-color); | ||
} | } | ||
.ace-tm .ace_cursor { | |||
color: var(--ooui--text-color-light); | |||
} | |||
body:not(.wgl-theme-light) .ace-tm .ace_storage,.ace-tm .ace_keyword { | |||
color: rgb(153,153,255); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_constant { | |||
color: rgb(241,89,92); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_support.ace_function { | |||
color: rgb(68,118,235); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_support.ace_constant { | |||
color: rgb(23,202,33); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class { | |||
color: rgb(182,187,236); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_string { | |||
color: rgb(6,142,13); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_comment { | |||
color: rgb(103,193,150); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_constant.ace_numeric { | |||
color: rgb(153,153,255); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_marker-layer .ace_selection { | |||
background: rgb(28,45,68); | |||
background: | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_marker-layer .ace_bracket { | |||
margin: -1px 0 0 -1px; | |||
border: 1px solid rgb(94,94,94); | |||
} | |||
body:not(.wgl-theme-light) .ace-tm .ace_marker-layer .ace_active-line { | |||
background: rgb(153,153,183,7%); | |||
} | } | ||
body:not(.wgl-theme-light) .ace-tm .ace_marker-layer .ace_selected-word { | |||
body:not(.wgl-theme-light) | background: rgb(37,59,89); | ||
border: 1px solid rgb(36,36,42); | |||
} | } | ||
/*=== tabs ===*/ | |||
/* Стили для блока */ | |||
.tabs-tabbox, .tabs-togglebox { | |||
display: flow-root; | |||
} | } | ||
/* Стили для активных вкладок */ | |||
.tabs-tabbox > .tabs-input:checked + .tabs-label, | |||
background: | .tabs-input-0:checked + .tabs-input-1 + .tabs-label { | ||
border-color: | background: var(--theme-bg-color-200); | ||
border-top: 1px solid rgba(var(--color-lighter--rgb), var(--alpha-xs)); | |||
border-bottom: 1px solid var(--color-contrast); | |||
z-index: 2; | |||
} | } | ||
/* Стили для стили для вкладок */ | |||
.tabs-tabbox > .tabs-input + .tabs-input + .tabs-label { | |||
margin: 0; | |||
} | } | ||
.tabs-tabbox > .tabs-label { | |||
cursor: pointer; | |||
padding: 1px 6px; | |||
margin: 0; | |||
vertical-align: baseline; | |||
border-radius: 0; | |||
background: transparent; | |||
border: 1px solid var(--theme-bg-color-base); | |||
border-top: 1px solid rgba(var(--color-lighter--rgb), var(--alpha-xs)); | |||
} | } | ||
.tabs-tabbox > .tabs-label:hover { | |||
z-index: 2; | |||
background: var(--theme-bg-color-200); | |||
transition: all 0.1s; | |||
: | |||
} | } | ||
/* | /* Стили для контейнера вкладок */ | ||
.tabs-tabbox > .tabs-container { | |||
padding: 14px 10px; | |||
background: var(--theme-bg-color-175); | |||
border: 1px solid var(--theme-bg-color-base); | |||
border-top: 1px solid rgba(var(--theme-color-lighter--rgb), var(--alpha-x)); | |||
border-radius: var(--border-radius-low); | |||
} | } | ||
/*=== toc ===*/ | |||
ul#filetoc, .toc, .toccolours, .mw-warning { | |||
border-radius: 0.5em; | |||
background: var(--theme-bg-color-150); | |||
padding: 12px; | |||
/*=== | box-sizing: border-box; | ||
margin: 12px 0; | |||
. | min-width: 12em; | ||
padding: | |||
border- | |||
border: none; | border: none; | ||
box-shadow: var(--box-shadow-outline); | |||
line-height: 1.3; | |||
} | } | ||
. | .toc, .toc * { | ||
box-sizing: border-box; | |||
} | } | ||
. | .toc .toctitle { | ||
font-size: 0.95em; | |||
padding: 0 8px; | |||
display: flex; | |||
align-items: center; | |||
position: relative; | |||
overflow: hidden; | |||
text-align: left; | |||
border: none; | |||
} | } | ||
. | .toc .toctitle h2 { | ||
font-weight: | font-size: 1.1em; | ||
font-weight: bold; | |||
display: flex; | |||
align-items: center; | |||
} | } | ||
. | .toc .toctitle h2::before { | ||
content: ""; | |||
display: block; | |||
width: 12px; | |||
/ | height: 12px; | ||
. | --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewbox='0 0 12 12'%3E%3Cpath id='bulleted-list-tiny' d='M1.29 9.277c-.181.19-.29.45-.29.71 0 .26.109.52.29.71.189.18.45.29.71.29.26 0 .519-.11.71-.29.18-.19.29-.45.29-.71 0-.26-.11-.52-.29-.71-.38-.37-1.05-.37-1.42 0M10 9H6a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2M6 3h4a1 1 0 1 0 0-2H6a1 1 0 1 0 0 2m4 2H6a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2M1.29 1.277c.37-.37 1.04-.37 1.42 0 .18.19.29.45.29.71 0 .26-.11.52-.29.71-.191.18-.45.29-.71.29-.26 0-.521-.11-.71-.29-.181-.19-.29-.45-.29-.71 0-.26.109-.52.29-.71zM2.55 5.17c.06.03.11.08.16.12.18.19.29.45.29.71 0 .26-.11.521-.29.71-.05.04-.1.09-.16.12a.559.559 0 0 1-.17.09c-.06.03-.12.05-.19.06-.06.01-.13.02-.19.02-.26 0-.52-.11-.71-.29A1.05 1.05 0 0 1 1 6c0-.26.11-.52.29-.71.24-.23.58-.34.9-.269a.6.6 0 0 1 .19.058c.06.021.12.051.17.091z'%3E%3C/path%3E%3C/svg%3E") no-repeat; | ||
. | -webkit-mask: var(--mask); | ||
mask: var(--mask); | |||
-webkit-mask-size: 100% 100%; | |||
mask-size: 100% 100%; | |||
-webkit-mask-position: center center; | |||
mask-position: center center; | |||
background: var(--theme-icon-color); | |||
margin: 0 6px 0 0; | |||
} | } | ||
.toc .toctogglelabel { | |||
position: absolute; | |||
width: 100%; | |||
height: 100%; | |||
left: 0; | |||
top: 0; | |||
padding: 0 8px; | |||
font-size: unset; | |||
line-height: unset; | |||
display: flex; | |||
align-items: center; | |||
justify-content: flex-end; | |||
font-family: "noto sans"; | |||
} | } | ||
.toctogglecheckbox:not(:checked) + .toctitle .toctogglelabel:after, | |||
. | .toctogglecheckbox:checked + .toctitle .toctogglelabel:after { | ||
content: ""; | |||
display: block; | |||
} | pointer-events: none; | ||
--mask: var(--icon-chevron-down) no-repeat; | |||
-webkit-mask: var(--mask); | |||
mask: var(--mask); | |||
-webkit-mask-size: 100% 100%; | |||
mask-size: 100% 100%; | |||
-webkit-mask-position: center center; | |||
mask-position: center center; | |||
background: var(--theme-icon-color); | |||
width: 14px; | |||
height: 14px; | |||
flex: 0 0 auto; | |||
transform: scaleY(-1); | |||
} | |||
.toctogglecheckbox:checked + .toctitle .toctogglelabel:after { | |||
. | transform: none; | ||
. | |||
} | } | ||
.toc > ul { | |||
. | margin: 6px 0 0 0; | ||
border-top: 1px solid var(--theme-border-color-base); | |||
padding-top: 2px; | |||
} | } | ||
#searchInput:focus { | |||
outline: 2px solid var(--color-contrast); | |||
} | } | ||
. | .toctogglecheckbox:focus + .toctitle .toctogglelabel { | ||
outline: none; | |||
} | } | ||
/* | /* #endregion */ | ||
/*=== | /* ============ */ | ||
/* #region Классы */ | |||
/* ============ */ | |||
. | /* Key press */ | ||
.keyboard-key { | |||
text- | border: 1px solid var(--theme-border-color-100); | ||
border-radius: var(--border-radius-low); | |||
background-image: linear-gradient(to bottom, var(--theme-bg-color-100), var(--theme-bg-color-250), var(--theme-bg-color-100)); | |||
color: var(--theme--text-color); | |||
padding: 0.1em 0.3em; | |||
font-family: inherit; | |||
font-size: 0.8em; | |||
} | } | ||
. | /* Кнопка вверх [[Файл:AnomalyElectricityPulse.png]] */ | ||
#scroll-top { | |||
display: none !important; | |||
background: url(https://station14.ru/images/0/00/AnomalyElectricityPulse.png) 0% 0%/57px 57px no-repeat; | |||
opacity: 0.5; | |||
width: 57px; | |||
height: 57px; | |||
cursor: pointer; | |||
position: fixed; | |||
right: calc(0.95em + 6px); | |||
bottom: 30px; | |||
z-index: 10000; | |||
image-rendering: pixelated; | |||
filter: var(--filter-drop-shadow); | |||
} | } | ||
#scroll-top:hover { | |||
opacity: 0.8; | |||
} | } | ||
@media screen and (max-width: 850px) { | |||
#scroll-top { | |||
transform: translate(-50%, -50%); | |||
left: 50%; | |||
right: 50%; | |||
bottom: 15px; | |||
opacity: 0.3; | |||
} | |||
} | } | ||
/* | /* Необходим для использования fonts.google.com/icons */ | ||
.material-symbols-outlined { | |||
font-family: 'Material Symbols Outlined'; | |||
font-weight: normal; | |||
font-style: normal; | |||
font-size: 24px; | |||
line-height: 1; | |||
letter-spacing: normal; | |||
text-transform: none; | |||
display: inline-block; | |||
white-space: nowrap; | |||
word-wrap: normal; | |||
direction: ltr; | |||
-webkit-font-feature-settings: 'liga'; | |||
-webkit-font-smoothing: antialiased | |||
} | } | ||
.tools-inline li:hover { | |||
border-bottom-width: 2px; | |||
border- | } | ||
.tools-inline li.selected { | |||
background: transparent !important; | |||
border-bottom-width: 2px; | |||
} | } | ||
#mw-indicator-mw-helplink a { | |||
background-image: none; | |||
background | |||
} | } | ||
.mw-body-content sub,.mw-body-content sup,span.reference { | |||
.mw-body | font-size: 80% | ||
} | } | ||
#mw-content-block #catlinks { | |||
background: var(--theme-bg-color-100); | background: var(--theme-bg-color-100); | ||
} | } | ||
.mw- | .ns-talk .mw-body-content dd { | ||
margin-top: 0.4em; | |||
margin-bottom: 0.4em | |||
} | } | ||
#interwiki-completelist { | |||
font-weight: bold | |||
} | } | ||
. | .biglink { | ||
font-family: "Oswald"; | |||
font-style: oblique 10deg; | |||
font-variant-caps: small-caps; | |||
text-shadow: var(--theme-bg-color-base) 1px 2px,#595959dd 2px 2px 1px | |||
} | } | ||
. | .client-js .mw-special-Watchlist #watchlist-message,.client-js .collapsible:not(.mw-made-collapsible).collapsed>tbody>tr:not(:first-child),#editpage-specialchars { | ||
display: none | |||
} | } | ||
. | .mw-rcfilters-enabled .mw-specialpage-summary { | ||
margin-top: 1em | |||
} | } | ||
. | .citation:target { | ||
background: rgba(0, 127, 255, 0.133) | |||
} | } | ||
. | .citation { | ||
word-wrap: break-word | |||
} | } | ||
. | ol.references { | ||
font-size: 90%; | |||
margin-bottom: 0.5em | |||
} | } | ||
. | .hlist dl,.hlist ol,.hlist ul { | ||
margin: 0; | |||
padding: 0 | |||
} | } | ||
. | .hlist dd,.hlist dt,.hlist li { | ||
margin: 0; | |||
display: 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 | |||
} | } | ||
. | .hlist .mw-empty-li { | ||
display: none | |||
} | } | ||
. | .hlist dt:after { | ||
content: ":" | |||
} | } | ||
. | .hlist dd:after,.hlist li:after { | ||
content: " · "; | |||
font-weight: bold | |||
} | } | ||
. | .hlist dd:last-child:after,.hlist dt:last-child:after,.hlist li:last-child:after { | ||
content: none | |||
} | } | ||
. | .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 | |||
} | } | ||
. | .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,.plainlist ul { | ||
line-height: inherit; | |||
list-style: none none; | |||
margin: 0 | |||
} | } | ||
. | .plainlist ol li,.plainlist ul li { | ||
margin-bottom: 0 | |||
} | } | ||
@media (max-width: 800px) { | |||
.grid-adaptive { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | } | ||
. | .grid-item-adaptive { | ||
display: grid; | |||
gap: 8px; | |||
grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 300px), 1fr)); | |||
} | } | ||
.grid-small-item-adaptive { | |||
display: grid; | |||
gap: 8px; | |||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | |||
} | } | ||
.grid-item-compressed { | |||
display: grid; | |||
gap: 10px; | |||
grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 0fr)); | |||
} | } | ||
.grid-item-compressed { | |||
display: grid; | |||
gap: 10px; | |||
grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 0fr)); | |||
} | } | ||
.link-card__flex-container { | |||
display: flex; | |||
gap: 10px; | |||
justify-content: center; | |||
flex-grow: 1; | |||
align-items: flex-start; | |||
flex-wrap: wrap; | |||
align-content: center; | |||
} | } | ||
@media (max-width: 800px) { | |||
.link-card__flex-container { | |||
gap: 8px; | |||
} | |||
} | } | ||
/* Удаление верхних и нижних отступов для первого и последнего дочернего элемента */ | |||
.no-margin-edges > :first-child, | |||
.tabs-content > :first-child, | |||
.doc > :first-child { | |||
margin-top: 0 !important; | |||
} | } | ||
.no-margin-edges > :last-child, | |||
.tabs-content > :last-child, | |||
.doc > :last-child { | |||
margin-bottom: 0 !important; | |||
} | } | ||
/* Сброс и настройка отступов для списков */ | |||
.list-reset-margin ol { | |||
margin: 0 0 0 24px; | |||
padding: 0; | |||
} | } | ||
.list-reset-margin > ol:not(:first-child) > li:not(:first-child), | |||
.list-reset-margin > ul:nth-of-type(n+2) { | |||
margin-top: 10px; | |||
} | } | ||
/* Кнопка копирования текста */ | |||
.copy-icon { | |||
cursor: pointer; | |||
} | } | ||
/* Кнопка копирования текста */ | |||
background: | .brightness-overlay::before { | ||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
z-index: -1; | |||
background: var(--background-color); | |||
} | } | ||
/* Псевдоэлемент для добавления фона, который изменяет яркость при наведении */ | |||
.brightness-overlay::before { | |||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
z-index: 0; | |||
background: var(--background-color); | |||
} | } | ||
.brightness-overlay:hover::before { | |||
filter: brightness(103%); | |||
. | |||
} | } | ||
/* | /* Уменьшеная полоса прокрутки */ | ||
. | .short-scrollbar::-webkit-scrollbar { | ||
width: 10px; | |||
} | } | ||
.short-scrollbar::-webkit-scrollbar-track { | |||
. | background: var(--ooui--bg-color-light); | ||
} | } | ||
. | .short-scrollbar::-webkit-scrollbar-thumb { | ||
background: #44444d; border: 2px solid var(--ooui--bg-color-light); border-radius: 0; | |||
background: | |||
} | } | ||
. | /* Для для динамичного вида кнопки "[развернуть]" */ | ||
.collapsible-absolute .mw-collapsible-toggle { | |||
position: absolute; | |||
left: 0; | |||
right: 0; | |||
} | } | ||
/* | /* Обводка тенью изображений и текста */ | ||
. | .with-drop-shadow, | ||
.mw-wiki-logo.timeless-logo img { | |||
filter: var(--filter-drop-shadow); | |||
} | } | ||
.tooltip { | |||
position: relative; | |||
display: inline; | |||
} | } | ||
. | .tooltiptext { | ||
position: absolute; | |||
min-width: 240px; | |||
max-width: 100%; | |||
left: -240px; | |||
right: -240px; | |||
padding: | top: 125%; | ||
margin-left: auto; | |||
margin-right: auto; | |||
z-index: 99; | |||
padding: 22px; | |||
pointer-events: none; | |||
visibility: hidden; | |||
transition: all 0.05s; | |||
border: 1px solid var(--color-contrast); | |||
border-radius: 1.4rem; | |||
background: var(--ooui--bg-color); | |||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); | |||
} | } | ||
. | .tooltip:hover>.tooltiptext { | ||
visibility: visible; | |||
opacity: 1; | |||
} | } | ||
@media screen and (min-width: 851px) { | |||
.mobile { | |||
display:none | |||
} | |||
.headder { | |||
width: 25%; | |||
float: right; | |||
margin-left: 1em | |||
} | |||
.stiky { | |||
position: sticky; | |||
top: 0.1em | |||
} | |||
} | } | ||
@media screen and (max-width: 850px) { | |||
.nomobile { | |||
display: none !important; | |||
} | |||
} | |||
. | .headder { | ||
width: 100%; | |||
margin-left: 0; | |||
} | |||
} | |||
. | .tooltip { | ||
position: static; | |||
} | } | ||
. | .tooltiptext { | ||
box-shadow: var(--box-shadow-overlay); | |||
position: fixed!important; | |||
width: 80vw !important; | |||
top: 40vh !important; | |||
left: 0 !important; | |||
margin: 0 auto !important; | |||
right: 0!important; | |||
} | |||
/* | |||
.mobilefont { | |||
font-size: 80% | |||
} | |||
*/ | |||
.mobile-image img { | |||
width: 32px; | |||
height: 32px; | |||
} | |||
} | } | ||
/* Класс для уменьшения яркости фона tabs */ | |||
.tabs-no-background > .tabs-container { | |||
background: rgba(var(--theme-color-lighter--rgb), 0.02); | |||
. | |||
} | } | ||
/* #endregion */ | /* #endregion */ | ||