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

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

Материал из Horny Jail WIKI
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
/* Контейнер */
/* Контейнер */
.hj-chaos-container {
.hj-chaos-container {  
   margin-bottom: 1.5em;
   margin-bottom: 1.5em;  
  border: 4px solid #555;      /* будет перекрашиваться JS-ом */
  border-radius: 10px;
  padding: 0;                  /* если не нужно доп. пространство вокруг */
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
}


Строка 28: Строка 24:
   background: #191919;
   background: #191919;
   border-right: 1px solid #555;
   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-button:last-child { border-right: none; }
Строка 51: Строка 49:
   display: none;
   display: none;
   padding: 16px 18px;
   padding: 16px 18px;
   border: 1px solid #555;
   border: 2px solid #555;             /* теперь полноценная рамка */
   border-top: none;
   border-top: none;
   border-radius: 0 0 6px 6px;
   border-radius: 0 0 6px 6px;
   background: #111; /* дефолт, если JS не отработал */
   background: #111; /* дефолт, если JS не отработал */
  transition: border-color .25s ease,
              background-color .25s ease,
              box-shadow .25s ease;
}
}
.hj-chaos-block.active { display: block; }
.hj-chaos-block.active { display: block; }

Версия от 22:21, 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;
  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: 2px solid #555;             /* теперь полноценная рамка */
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #111; /* дефолт, если JS не отработал */
  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; }