MediaWiki:Common:css: различия между версиями
Burenov (обсуждение | вклад) Новая страница: «→Общие переменные (значения по умолчанию — светлая тема): :root { --bg-color: #ffffff; --text-color: #333333; --link-color: #0645ad; --header-bg: #f8f9fa; } →Темная тема: .dark-theme { --bg-color: #1a1a1a; --text-color: #e0e0e0; --link-color: #58a6ff; --header-bg: #2d2d2d; } →Применение переменных к элементам: body { background-color: var(--...» |
Burenov (обсуждение | вклад) мНет описания правки |
||
| Строка 27: | Строка 27: | ||
.mw-header { | .mw-header { | ||
background-color: var(--header-bg) !important; | background-color: var(--header-bg) !important; | ||
} | |||
/* Скрыть кнопки править у элементов с классом 'noeditsection' */ | |||
.noeditsection .mw-editsection { | |||
display: none; | |||
} | } | ||
Текущая версия от 14:12, 22 апреля 2026
/* Общие переменные (значения по умолчанию — светлая тема) */
- root {
--bg-color: #ffffff; --text-color: #333333; --link-color: #0645ad; --header-bg: #f8f9fa;
}
/* Темная тема */ .dark-theme {
--bg-color: #1a1a1a; --text-color: #e0e0e0; --link-color: #58a6ff; --header-bg: #2d2d2d;
}
/* Применение переменных к элементам */ body {
background-color: var(--bg-color); color: var(--text-color);
}
a {
color: var(--link-color);
}
.mw-header {
background-color: var(--header-bg) !important;
}
/* Скрыть кнопки править у элементов с классом 'noeditsection' */ .noeditsection .mw-editsection {
display: none;
}