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

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

Материал из Horny Jail WIKI
Нет описания правки
Нет описания правки
Строка 42: Строка 42:
.hj-chaos-tab-button.active[data-chaos="high"]    { background: #5c1f1f; }
.hj-chaos-tab-button.active[data-chaos="high"]    { background: #5c1f1f; }


/* Блок контента */
/* Блок контента — ВАЖНО: без верхней границы */
.hj-chaos-block {
.hj-chaos-block {
   display: none;
   display: none;
   padding: 16px 18px;
   padding: 16px 18px;
   border: 3px solid transparent;
   border-style: solid;
  border-width: 0 3px 3px; /* top 0, left/right/bottom 3px */
  border-color: transparent;
   border-radius: 0 0 6px 6px;
   border-radius: 0 0 6px 6px;
   background: #111;
   background: #111;
Строка 56: Строка 58:
/* OVERVIEW (синий) — фон тёмный, рамка светлее */
/* OVERVIEW (синий) — фон тёмный, рамка светлее */
.hj-chaos-container.chaos-overview .hj-chaos-tabs {
.hj-chaos-container.chaos-overview .hj-chaos-tabs {
   border-bottom: none; /* убрали нижнюю линию, остаётся только рамка блока */
   border-bottom: none;
}
}
.hj-chaos-container.chaos-overview  
.hj-chaos-container.chaos-overview  
Строка 63: Строка 65:
   border-bottom: none;
   border-bottom: none;
   border-radius: 6px 6px 0 0;
   border-radius: 6px 6px 0 0;
   margin-bottom: -3px;
   margin-bottom: -3px; /* вкладка накрывает стык с блоком */
   z-index: 2;
   z-index: 2;
}
}
Строка 124: Строка 126:
   border-color: #c33a3a;
   border-color: #c33a3a;
   background: #5c1f1f;
   background: #5c1f1f;
}
/* Убираем двойную линию между вкладками и блоком */
.hj-chaos-block.active {
  border-top-width: 3px;
}
}



Версия от 11:46, 16 ноября 2025

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

/* Ряд вкладок */
.hj-chaos-tabs {
  display: flex;
  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: none;
  position: relative;
}
.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-style: solid;
  border-width: 0 3px 3px; /* top 0, left/right/bottom 3px */
  border-color: transparent;
  border-radius: 0 0 6px 6px;
  background: #111;
}
.hj-chaos-block.active { display: block; }

/* ----- ОКАНТОВКА ПО РЕЖИМАМ (чистый CSS, без JS-стилей) ----- */

/* OVERVIEW (синий) — фон тёмный, рамка светлее */
.hj-chaos-container.chaos-overview .hj-chaos-tabs {
  border-bottom: none;
}
.hj-chaos-container.chaos-overview 
  .hj-chaos-tab-button.active[data-chaos="overview"] {
  border: 3px solid #4b6284;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px; /* вкладка накрывает стык с блоком */
  z-index: 2;
}
.hj-chaos-container.chaos-overview 
  .hj-chaos-block[data-chaos="overview"] {
  border-color: #4b6284;
  background: #2f3b4d;
}

/* CALM (зелёный) */
.hj-chaos-container.chaos-calm .hj-chaos-tabs {
  border-bottom: none;
}
.hj-chaos-container.chaos-calm 
  .hj-chaos-tab-button.active[data-chaos="calm"] {
  border: 3px solid #3f7a47;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}
.hj-chaos-container.chaos-calm 
  .hj-chaos-block[data-chaos="calm"] {
  border-color: #3f7a47;
  background: #234526;
}

/* MEDIUM (жёлто-коричневый) */
.hj-chaos-container.chaos-medium .hj-chaos-tabs {
  border-bottom: none;
}
.hj-chaos-container.chaos-medium 
  .hj-chaos-tab-button.active[data-chaos="medium"] {
  border: 3px solid #c9982b;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}
.hj-chaos-container.chaos-medium 
  .hj-chaos-block[data-chaos="medium"] {
  border-color: #c9982b;
  background: #5c4716;
}

/* HIGH (красный) */
.hj-chaos-container.chaos-high .hj-chaos-tabs {
  border-bottom: none;
}
.hj-chaos-container.chaos-high 
  .hj-chaos-tab-button.active[data-chaos="high"] {
  border: 3px solid #c33a3a;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  z-index: 2;
}
.hj-chaos-container.chaos-high 
  .hj-chaos-block[data-chaos="high"] {
  border-color: #c33a3a;
  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 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; }