MediaWiki:Common.css
Внешний вид
Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
- Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
- Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
- Opera: Нажмите Ctrl+F5.
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
/* Переключатель темы (если он ещё виден) */
.skin-theme-selector,
.vector-appearance-selector,
.mw-appearance-selector,
.vector-appearance-selector .mw-ui-button,
.mw-appearance-selector .mw-ui-button {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
border-color: #30363d !important;
}
/* Шапка и подвал */
.mw-header,
.vector-header,
.vector-header .mw-ui-button,
.mw-footer {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
}
/* Боковая панель (если есть) */
#mw-panel,
.vector-menu-portal {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
}
/* Левое меню навигации */
.vector-menu-portal .vector-menu-content li a {
color: #c9d1d9 !important;
}
.vector-menu-portal .vector-menu-content li a:hover {
color: #58a6ff !important;
}
/* Выпадающие списки и меню */
.mw-dropdown,
.mw-dropdown .mw-ui-button,
.mw-dropdown .mw-dropdown-content {
background-color: #161b22 !important;
color: #c9d1d9 !important;
border-color: #30363d !important;
}
/* Любые оставшиеся светлые блоки */
.vector-header .vector-appearance-selector,
.vector-header .mw-appearance-selector {
background-color: #0d1117 !important;
}
/* ===== ГЛОБАЛЬНАЯ ТЁМНАЯ ТЕМА ===== */
html, body {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
}
/* Основные контейнеры */
.mw-body,
.mw-page-container,
.vector-header,
.mw-article-toolbar-container,
.mw-page-container-inner {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
}
/* Заголовки и текст */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body-content,
.mw-body-content p,
.mw-body-content li,
.mw-body-content div {
color: #c9d1d9 !important;
}
/* Ссылки */
.mw-body-content a:link,
.mw-body-content a:visited {
color: #58a6ff !important;
}
.mw-body-content a:hover {
color: #79c0ff !important;
}
/* Боковое меню */
.vector-menu-tabs li a,
.vector-menu-content li a,
#mw-panel li a {
color: #c9d1d9 !important;
}
.vector-menu-tabs li a:hover,
.vector-menu-content li a:hover {
color: #58a6ff !important;
}
/* Панель инструментов */
#mw-page-header-links a,
#mw-head a {
color: #c9d1d9 !important;
}
/* Таблицы */
.wikitable,
.wikitable th,
.wikitable td {
background-color: #161b22 !important;
border-color: #30363d !important;
color: #c9d1d9 !important;
}
.wikitable th {
background-color: #21262d !important;
}
/* Поля ввода */
input[type="text"],
input[type="search"],
textarea,
#searchInput {
background-color: #0d1117 !important;
color: #c9d1d9 !important;
border: 1px solid #30363d !important;
}
/* Кнопки */
.mw-ui-button,
button,
input[type="submit"] {
background-color: #21262d !important;
color: #c9d1d9 !important;
border: 1px solid #30363d !important;
}
.mw-ui-button:hover,
button:hover {
background-color: #30363d !important;
}
.mw-ui-button.mw-ui-primary {
background-color: #238636 !important;
color: #ffffff !important;
}
.mw-ui-button.mw-ui-primary:hover {
background-color: #2ea043 !important;
}
/* ===== ТВОИ СТИЛИ ОСТАВЬ КАК ЕСТЬ ===== */
/* ... дальше твой код ... */
/* #p-search { display:none; } */
#ca-talk { display:none!important; }
#ca-nstab-main { display:none!important; }
/* Основные стили для таблицы */
.table-container {
width: 60%;
margin: 2em auto;
}
.wikitable.hover-table {
width: 100%;
border-collapse: separate;
border-spacing: 10px;
background: transparent;
}
.table-header-cell {
text-align: center;
padding: 15px;
font-size: 1.5em;
font-weight: bold;
border: 1px solid #3a3a3a;
border-radius: 8px;
}
.table-group-header {
text-align: center;
padding: 10px;
font-weight: bold;
border-bottom: 2px solid #4d4d4d;
margin-bottom: 10px;
}
/* Стили для ячеек с эффектом при наведении */
.hover-cell {
text-align: center;
padding: 12px;
border: 1px solid #4d4d4d;
border-radius: 6px;
transition: all 0.3s ease;
background: rgba(40, 40, 40, 0.5);
display: block;
}
.hover-cell:hover {
transform: scale(1.03);
border-color: #4d9de0;
background: rgba(30, 60, 90, 0.7);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Стили кнопок-ячеек */
.cell-button {
display: block;
width: 100%;
padding: 15px;
text-align: center;
border: 1px solid #4d4d4d;
border-radius: 6px;
background: rgba(45, 45, 45, 0.6);
transition: all 0.3s ease;
cursor: pointer;
color: #e0e0e0;
text-decoration: none !important;
font-size: 1.1em;
margin-bottom: 10px;
}
.cell-button:hover {
transform: scale(1.03);
border-color: #4d9de0;
background: rgba(35, 65, 95, 0.8);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
color: #ffffff;
}
/* Убираем стандартное оформление ссылок */
.cell-button a {
color: inherit !important;
text-decoration: none !important;
display: block;
height: 100%;
width: 100%;
}
/* Дополнительные стили */
.column-divider {
border-right: 2px solid #707070 !important;
}
.center-content {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
/* ыыаааа наведение 668 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
.hover-cell {
position: relative;
padding: 0;
border: 1px solid #4d4d4d;
border-radius: 6px;
background: rgba(45, 45, 45, 0.6);
transition: all 0.3s ease;
min-height: 60px;
height: auto;
overflow: visible;
}
.hover-cell::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(77, 157, 224, 0);
transition: background 0.5s ease-out;
z-index: 0;
}
.hover-cell .cell-link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
box-sizing: border-box;
text-decoration: none !important;
color: inherit !important;
z-index: 2;
transform: scale(1);
transition: inherit;
}
.hover-cell:hover {
transform: scale(1.03);
background: rgba(35, 65, 95, 0.8);
box-shadow: 0 0 0 1px rgba(77, 157, 224, 0.3);
}
.hover-cell:hover::before {
background: rgba(77, 157, 224, 0.15);
}
.hover-cell .cell-link a {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
text-decoration: none !important;
color: inherit !important;
}
.hover-cell:hover .cell-link {
transform: scale(1.05);
height: 100%;
}
/* Принудительная тёмная тема для старой Vector */
skin-vector {
background-color: #1e1e1e !important;
color: #e0e0e0 !important;
}
/* Скрываем переключатель тем (если есть) */
.skin-theme-selector,
.vector-appearance-selector {
display: none !important;
}