Перейти к содержанию

MediaWiki:Common.css: различия между версиями

Материал из Horny Jail WIKI
Нет описания правки
Нет описания правки
Строка 89: Строка 89:
/* чтобы таблицы в архиве выглядели нормально на тёмном фоне */
/* чтобы таблицы в архиве выглядели нормально на тёмном фоне */
.hj-legacy .wikitable { background: #111; color: inherit; }
.hj-legacy .wikitable { background: #111; color: inherit; }
/* ===========================
  ОКАНТОВКА ДЛЯ КОНТЕЙНЕРА
  =========================== */
/* Базовый контейнер, теперь с плавными переходами */
.hj-chaos-container {
    margin-bottom: 1.5em;
    border: 4px solid transparent;
    border-radius: 10px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
/* Цвета контейнера = цвета активных вкладок */
.hj-chaos-container.chaos-overview {
    border-color: #2f3b4d;
    background: rgba(47, 59, 77, 0.08);
}
.hj-chaos-container.chaos-calm {
    border-color: #234526;
    background: rgba(35, 69, 38, 0.08);
}
.hj-chaos-container.chaos-medium {
    border-color: #5c4716;
    background: rgba(92, 71, 22, 0.10);
}
.hj-chaos-container.chaos-high {
    border-color: #5c1f1f;
    background: rgba(92, 31, 31, 0.12);
}
/* Дополнительный контраст, чтобы светилось */
.hj-chaos-container.chaos-overview {
    box-shadow: 0 0 10px rgba(47, 59, 77, 0.25);
}
.hj-chaos-container.chaos-calm {
    box-shadow: 0 0 10px rgba(35, 69, 38, 0.25);
}
.hj-chaos-container.chaos-medium {
    box-shadow: 0 0 10px rgba(92, 71, 22, 0.25);
}
.hj-chaos-container.chaos-high {
    box-shadow: 0 0 10px rgba(92, 31, 31, 0.3);
}

Версия от 21:58, 15 ноября 2025

/* Контейнер */
.hj-chaos-container { margin-bottom: 1.5em; }

/* Ряд вкладок */
.hj-chaos-tabs {
  display: flex;
  border: 1px solid #555;
  border-bottom: 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;
}
.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: 1px solid #555;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #111; /* дефолт, если JS не отработал */
}
.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; }

/* ===========================
   ОКАНТОВКА ДЛЯ КОНТЕЙНЕРА
   =========================== */

/* Базовый контейнер, теперь с плавными переходами */
.hj-chaos-container {
    margin-bottom: 1.5em;
    border: 4px solid transparent;
    border-radius: 10px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Цвета контейнера = цвета активных вкладок */
.hj-chaos-container.chaos-overview {
    border-color: #2f3b4d;
    background: rgba(47, 59, 77, 0.08);
}

.hj-chaos-container.chaos-calm {
    border-color: #234526;
    background: rgba(35, 69, 38, 0.08);
}

.hj-chaos-container.chaos-medium {
    border-color: #5c4716;
    background: rgba(92, 71, 22, 0.10);
}

.hj-chaos-container.chaos-high {
    border-color: #5c1f1f;
    background: rgba(92, 31, 31, 0.12);
}

/* Дополнительный контраст, чтобы светилось */
.hj-chaos-container.chaos-overview {
    box-shadow: 0 0 10px rgba(47, 59, 77, 0.25);
}
.hj-chaos-container.chaos-calm {
    box-shadow: 0 0 10px rgba(35, 69, 38, 0.25);
}
.hj-chaos-container.chaos-medium {
    box-shadow: 0 0 10px rgba(92, 71, 22, 0.25);
}
.hj-chaos-container.chaos-high {
    box-shadow: 0 0 10px rgba(92, 31, 31, 0.3);
}