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

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

Материал из Horny Jail WIKI
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Контейнер */
.page-Заглавная_страница .mw-parser-output a {
.hj-chaos-container {
   color: #DBFEFF !important
   margin-bottom: 1.5em;
}
img {
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}
}


/* Контейнер для закладок */
/* Ряд вкладок */
.hj-chaos-tabs {
.hj-chaos-tabs {
   display: flex;
   display: flex;
   gap: 4px;
   border: 1px solid #555;
   margin: 1em 0 0;
   border-bottom: none;
   border-bottom: 1px solid #555;
  border-radius: 6px 6px 0 0;
   overflow: hidden;
}
}


/* Кнопки-вкладки */
/* Кнопки-вкладки как большие карточки */
.hj-chaos-tab-button {
.hj-chaos-tab-button {
   padding: 6px 12px;
   flex: 1 1 0;
  border: 1px solid #555;
   padding: 10px 14px;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
   background: #222;
  color: #ddd;
   cursor: pointer;
   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-weight: bold;
   font-size: 0.95em;
   font-size: 1em;
}
 
.hj-chaos-tab-desc {
  font-size: 0.85em;
  opacity: 0.9;
}
}


/* Цвета для разных уровней, чтобы как закладки в тетрадке */
/* Базовые цвета вкладок (не активные) */
.hj-chaos-tab-button[data-chaos="ext"] { background: #3498db22; }
.hj-chaos-tab-button[data-chaos="overview"] { background: #222833; }
.hj-chaos-tab-button[data-chaos="low"] { background: #2ecc7122; }
.hj-chaos-tab-button[data-chaos="calm"]     { background: #1e2b20; }
.hj-chaos-tab-button[data-chaos="med"] { background: #f1c40f22; }
.hj-chaos-tab-button[data-chaos="medium"]   { background: #2b2615; }
.hj-chaos-tab-button[data-chaos="high"] { background: #e74c3c22; }
.hj-chaos-tab-button[data-chaos="high"]     { background: #2b1818; }


/* Активная вкладка */
/* Активная вкладка — более яркая и подсвеченная */
.hj-chaos-tab-button.active {
.hj-chaos-tab-button.active[data-chaos="overview"] {
   background: #2c3e50;
   background: #2f3b4d;
   color: #fff;
}
   border-color: #f1c40f;
.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 {
.hj-chaos-block {
   display: none;
   display: none;
  padding: 16px 18px;
   border: 1px solid #555;
   border: 1px solid #555;
   border-radius: 0 6px 6px 6px;
   border-top: none;
  padding: 12px 16px;
   border-radius: 0 0 6px 6px;
   margin-bottom: 1em;
   background: #111;
   background: #111;
}
}


/* Активный контент показываем */
/* Активный блок */
.hj-chaos-block.active {
.hj-chaos-block.active {
   display: block;
   display: block;
}
}


/* Немного отступов внутри */
/* Фон под контентом подкрашиваем под режим */
.hj-chaos-block[data-chaos="overview"] {
  background: #111821;
}
.hj-chaos-block[data-chaos="calm"] {
  background: #101c11;
}
.hj-chaos-block[data-chaos="medium"] {
  background: #181209;
}
.hj-chaos-block[data-chaos="high"] {
  background: #190808;
}
 
/* Заголовок внутри блока */
.hj-chaos-block h2 {
.hj-chaos-block h2 {
   margin-top: 0;
   margin-top: 0;
}
}

Версия от 13:16, 11 ноября 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;
}

/* Активный блок */
.hj-chaos-block.active {
  display: block;
}

/* Фон под контентом подкрашиваем под режим */
.hj-chaos-block[data-chaos="overview"] {
  background: #111821;
}
.hj-chaos-block[data-chaos="calm"] {
  background: #101c11;
}
.hj-chaos-block[data-chaos="medium"] {
  background: #181209;
}
.hj-chaos-block[data-chaos="high"] {
  background: #190808;
}

/* Заголовок внутри блока */
.hj-chaos-block h2 {
  margin-top: 0;
}