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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 17 промежуточных версий этого же участника)
Строка 1: Строка 1:
.chem-grid {
.ss14-rules {
  display: grid;
    width: 100%;
  grid-template-columns: repeat(4, 1fr);
    border-collapse: separate;
  gap: 12px;
    border-spacing: 0 8px; /* Расстояние между строками */
  align-items: start;
    background-color: transparent;
  margin: 8px 0;
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}


@media (max-width: 1200px) {
.ss14-rules th {
  .chem-grid { grid-template-columns: repeat(3, 1fr); }
    background: #1a1a1e;
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a42;
}
}
@media (max-width: 900px) {
 
  .chem-grid { grid-template-columns: repeat(2, 1fr); }
.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; /* Акцентная полоса слева */
}
}
@media (max-width: 520px) {
 
  .chem-grid { grid-template-columns: 1fr; }
.ss14-rules td:first-child {
    white-space: nowrap;
    color: #ffca28; /* Золотистый цвет для номера */
    width: 10%;
}
}


.chem-card {
/* Описание правила (третья колонка) */
  --card-bg: #0f1113;          /* по умолчанию фон карточки (тёмный) */
.ss14-rules td:last-child {
  --card-accent: #2a9d8f;      /* акцент/градиент (можно задавать) */
    background: #1e1e22;
  --card-border: #203030;      /* цвет рамки по умолчанию */
    padding: 15px;
  --section-bg: rgba(255,255,255,0.02);
    line-height: 1.6;
  color: #e6eef1;
    border-right: 1px solid #3a3a42;
  background: linear-gradient(90deg, var(--card-bg) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  min-height: 120px;
  transition: transform .08s ease, box-shadow .08s ease;
}
}


.chem-card:hover {
.ss14-rules td big {
  transform: translateY(-4px);
    display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.65);
    color: #7daeff; /* Голубой акцент */
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.chem-header {
.ss14-rules ul {
  display: flex;
    margin-top: 10px;
  justify-content: space-between;
    list-style-type: square;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
}
.chem-header h3 {
 
  margin: 0;
.ss14-rules li {
  font-size: 1.05rem;
    margin-bottom: 8px;
  line-height: 1;
}
.chem-header .formula {
  opacity: 0.9;
  font-size: 0.95rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
}


.chem-section {
.ss14-rules tr:hover td {
  margin: 6px 0;
    background-color: #2d2d35 !important;
  padding: 6px;
    transition: background 0.2s ease;
  background: var(--section-bg);
  border-radius: 6px;
  font-size: 0.95rem;
}
}


.chem-recipe {
@media screen and (max-width: 720px) {
  display: flex;
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  gap: 8px;
        display: block;
  flex-wrap: wrap;
        width: 100%;
  align-items: flex-start;
    }
}
    .ss14-rules td {
.chem-recipe .recipe-group {
        box-sizing: border-box;
  flex: 1 1 48%;
    }
  min-width: 160px;
    .ss14-rules td:first-child {
  background: rgba(0,0,0,0.12);
        border-bottom: none;
  padding: 6px;
        padding-bottom: 5px;
  border-radius: 6px;
    }
  border: 1px solid rgba(255,255,255,0.03);
}
.chem-recipe .recipe-group b { display:block; margin-bottom:6px; }
.chem-recipe .recipe-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.9rem;
}
}
.chem-recipe .recipe-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chem-recipe .recipe-item .qty { opacity: 0.85; }
.chem-effects { margin: 0; padding-left: 18px; }
.chem-effects li { margin: 4px 0; font-size: 0.92rem; }
.chem-desc { font-size: 0.9rem; opacity: 0.95; }

Текущая версия от 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;
    }
}