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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 169 промежуточных версий этого же участника)
Строка 1: Строка 1:
.chem-recipe {
.ss14-rules {
  border-radius: 10px;
    width: 100%;
  margin-bottom: 1em;
    border-collapse: separate;
  background-color: var(--bg, #1e1e1e);
    border-spacing: 0 8px; /* Расстояние между строками */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    background-color: transparent;
  overflow: hidden;
    color: #cecece;
  transition: 0.3s;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}


.chem-header {
.ss14-rules th {
  padding: 0.8em 1em;
    background: #1a1a1e;
  font-size: 1.2em;
    color: #7daeff;
  font-weight: bold;
    padding: 12px;
  cursor: pointer;
    text-transform: uppercase;
  background-color: var(--header-bg, #2c2c2c);
    font-size: 0.9em;
  color: var(--header-color, #fff);
    letter-spacing: 1px;
  user-select: none;
    border-bottom: 2px solid #3a3a42;
}
}


.chem-content {
.ss14-rules td:first-child,
  padding: 1em;
.ss14-rules td:nth-child(2) {
  background-color: var(--content-bg, #2a2a2a);
    background: #25252b;
  color: #e0e0e0;
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


.chem-inputs {
.ss14-rules td:first-child {
  list-style: none;
    white-space: nowrap;
  padding-left: 0;
    color: #ffca28; /* Золотистый цвет для номера */
  margin: 0 0 0.5em 0;
    width: 10%;
}
}


.chem-inputs li {
/* Описание правила (третья колонка) */
  padding: 0.2em 0;
.ss14-rules td:last-child {
  margin-left: 1em;
    background: #1e1e22;
  position: relative;
    padding: 15px;
    line-height: 1.6;
    border-right: 1px solid #3a3a42;
}
}


.chem-inputs li::before {
.ss14-rules td big {
  content: "•";
    display: block;
  position: absolute;
    color: #7daeff; /* Голубой акцент */
  left: -1em;
    font-size: 1.1em;
  color: #aaa;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.chem-arrow {
.ss14-rules ul {
  text-align: center;
    margin-top: 10px;
  margin: 0.5em 0;
    list-style-type: square;
  font-size: 1.4em;
}
}


.chem-arrow img {
.ss14-rules li {
  vertical-align: middle;
    margin-bottom: 8px;
  margin-left: 0.5em;
}
}


.chem-output {
.ss14-rules tr:hover td {
  font-weight: bold;
    background-color: #2d2d35 !important;
  margin-top: 0.5em;
    transition: background 0.2s ease;
  color: #b2ffb2;
}
}


.chem-effects {
@media screen and (max-width: 720px) {
  margin-left: 1.2em;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  margin-top: 0.5em;
        display: block;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
}
.chem-recipe hr {
  border: none;
  border-top: 1px solid #444;
  margin: 0.6em 0;
}
/* Индивидуальные цвета */
.chem-mannitol .chem-header { background-color: #6a5acd; }
.chem-chlorine .chem-header { background-color: #7ac943; }
.chem-fluorine .chem-header { background-color: #f9d423; color: #000; }
.chem-iron .chem-header { background-color: #b0b0b0; color: #000; }
.chem-zombieacid .chem-header { background-color: #228b22; }

Текущая версия от 14:16, 25 февраля 2026

.ss14-rules {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Расстояние между строками */
    background-color: transparent;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ss14-rules th {
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}

.ss14-rules td:first-child, 
.ss14-rules td:nth-child(2) {
    background: #25252b;
    font-weight: bold;
    color: #ffffff;
    vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}

.ss14-rules td:first-child {
    white-space: nowrap;
    color: #ffca28; /* Золотистый цвет для номера */
    width: 10%;
}

/* Описание правила (третья колонка) */
.ss14-rules td:last-child {
    background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
    border-right: 1px solid #3a3a42;
}

.ss14-rules td big {
    display: block;
    color: #7daeff; /* Голубой акцент */
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.ss14-rules ul {
    margin-top: 10px;
    list-style-type: square;
}

.ss14-rules li {
    margin-bottom: 8px;
}

.ss14-rules tr:hover td {
    background-color: #2d2d35 !important;
    transition: background 0.2s ease;
}

@media screen and (max-width: 720px) {
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
        display: block;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}