MediaWiki:Common.css: различия между версиями
Mei Day (обсуждение | вклад) Нет описания правки |
Mei Day (обсуждение | вклад) Нет описания правки |
||
| Строка 7: | Строка 7: | ||
.hj-chaos-tabs { | .hj-chaos-tabs { | ||
display: flex; | display: flex; | ||
border | border: none; /* убрали серую рамку вокруг всех вкладок */ | ||
border-radius: 6px 6px 0 0; | border-radius: 6px 6px 0 0; | ||
overflow: hidden; | overflow: hidden; | ||
| Строка 49: | Строка 48: | ||
display: none; | display: none; | ||
padding: 16px 18px; | padding: 16px 18px; | ||
border: | border: none; /* дефолт — без рамки */ | ||
border-radius: 0 0 6px 6px; | border-radius: 0 0 6px 6px; | ||
background: #111; | background: #111; | ||
transition: border-color .25s ease, | transition: border-color .25s ease, | ||
background-color .25s ease, | background-color .25s ease, | ||
Версия от 22:49, 15 ноября 2025
/* Контейнер */
.hj-chaos-container {
margin-bottom: 1.5em;
}
/* Ряд вкладок */
.hj-chaos-tabs {
display: flex;
border: none; /* убрали серую рамку вокруг всех вкладок */
border-radius: 6px 6px 0 0;
overflow: hidden;
}
/* Кнопки-вкладки как большие карточки */
.hj-chaos-tab-button {
flex: 1 1 0;
padding: 10px 14px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
background: #191919;
border-right: 1px solid #555;
position: relative; /* нужно для z-index и тени */
transition: box-shadow .25s ease; /* плавная обводка */
}
.hj-chaos-tab-button:last-child { border-right: none; }
/* Заголовок/подзаголовок кнопки */
.hj-chaos-tab-title { font-weight: bold; font-size: 1em; }
.hj-chaos-tab-desc { font-size: 0.85em; opacity: 0.9; }
/* Базовые цвета вкладок (не активные) */
.hj-chaos-tab-button[data-chaos="overview"] { background: #222833; }
.hj-chaos-tab-button[data-chaos="calm"] { background: #1e2b20; }
.hj-chaos-tab-button[data-chaos="medium"] { background: #2b2615; }
.hj-chaos-tab-button[data-chaos="high"] { background: #2b1818; }
/* Активные цвета */
.hj-chaos-tab-button.active[data-chaos="overview"] { background: #2f3b4d; }
.hj-chaos-tab-button.active[data-chaos="calm"] { background: #234526; }
.hj-chaos-tab-button.active[data-chaos="medium"] { background: #5c4716; }
.hj-chaos-tab-button.active[data-chaos="high"] { background: #5c1f1f; }
/* Контент под вкладками */
.hj-chaos-block {
display: none;
padding: 16px 18px;
border: none; /* дефолт — без рамки */
border-radius: 0 0 6px 6px;
background: #111;
transition: border-color .25s ease,
background-color .25s ease,
box-shadow .25s ease;
}
.hj-chaos-block.active { display: block; }
/* ДЕФОЛТНЫЙ фон по режимам (на случай без JS) */
.hj-chaos-block[data-chaos="overview"] { background: #2f3b4d; }
.hj-chaos-block[data-chaos="calm"] { background: #234526; }
.hj-chaos-block[data-chaos="medium"] { background: #5c4716; }
.hj-chaos-block[data-chaos="high"] { background: #5c1f1f; }
/* Заголовок внутри блока */
.hj-chaos-block h2 { margin-top: 0; }
/* Карточки */
.hj-rule-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 8px;
}
@media (max-width: 980px) { .hj-rule-cards { grid-template-columns: 1fr; } }
.hj-rule-card {
padding: 14px 16px;
border-radius: 8px;
border: 1px solid #00000055;
background: rgba(0,0,0,.22); /* дефолт до инициализации JS */
box-shadow: inset 0 1px 0 #ffffff10, 0 0 0 1px #00000022;
}
.hj-rule-card h3, .hj-rule-card h4 { margin: 0 0 .4em 0; }
.hj-rule-card p { margin: 0 0 .6em 0; }
.hj-rule-card ul { margin: .4em 0 0 1.2em; }
.hj-legacy {
margin-top: 20px;
padding: 0;
background: transparent;
border: 0;
}
/* чтобы таблицы в архиве выглядели нормально на тёмном фоне */
.hj-legacy .wikitable { background: #111; color: inherit; }