Common:css: различия между версиями
Новая страница: «→Общие переменные (значения по умолчанию — светлая тема): :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(--...» |
мНет описания правки |
||
| Строка 27: | Строка 27: | ||
.mw-header { | .mw-header { | ||
background-color: var(--header-bg) !important; | background-color: var(--header-bg) !important; | ||
} | |||
.tabs-container { | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | |||
.tab-content { | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
padding: 0 !important; | |||
} | } | ||
Текущая версия от 09:54, 8 апреля 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;
}
.tabs-container {
width: 100% !important; box-sizing: border-box !important;
} .tab-content {
width: 100% !important; box-sizing: border-box !important; padding: 0 !important;
}