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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 63 промежуточные версии этого же участника)
Строка 1: Строка 1:
  :root {
.ss14-rules {
     --width-layout: 100vw;
     width: 100%;
     --card-bg: #2b2b2b;
     border-collapse: separate;
     --header-bg: #333;
     border-spacing: 0 8px; /* Расстояние между строками */
     --recipe-bg: #3a3a3a;
     background-color: transparent;
    --section-bg: transparent;
     color: #cecece;
     --border-color: #555;
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --accent-color: #ffd;
}
     --text-color: #e0e0e0;
    --subtext-color: #ccc;
  }


  .infoblocks {
.ss14-rules th {
     display: flex;
     background: #1a1a1e;
     flex-wrap: wrap;
     color: #7daeff;
     gap: 1.5em;
     padding: 12px;
     justify-content: flex-start;
     text-transform: uppercase;
     padding: 2em;
     font-size: 0.9em;
     max-width: var(--width-layout);
     letter-spacing: 1px;
     margin: 0 auto;
     border-bottom: 2px solid #3a3a42;
  }
}


  .infoblock {
.ss14-rules td:first-child,
    background: var(--card-bg);
.ss14-rules td:nth-child(2) {
    color: var(--text-color);
     background: #25252b;
     flex: 1 1 calc(25% - 1.5em);
     font-weight: bold;
     min-width: 300px;
     color: #ffffff;
     border: 1px solid var(--border-color);
     vertical-align: top;
     border-radius: 8px;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
     display: flex;
}
    flex-direction: column;
  }


  .infoblock .header {
.ss14-rules td:first-child {
     display: flex;
     white-space: nowrap;
    align-items: center;
     color: #ffca28; /* Золотистый цвет для номера */
     padding: 0.75em 1em;
     width: 10%;
    background: var(--header-bg);
}
     border-bottom: 1px solid var(--border-color);
  }
  .infoblock .header img { width: 24px; margin-right: 0.5em; }
  .infoblock .header .title { font-weight: bold; font-size: 1.2em; }


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


  /* Блок рецептов: сетка материалов, стрелка и результата */
.ss14-rules td big {
  .recipe-block {
     display: block;
     display: grid;
     color: #7daeff; /* Голубой акцент */
     grid-template-columns: auto 1fr auto;
     font-size: 1.1em;
     align-items: center;
     margin-bottom: 10px;
    gap: 0.5em;
     border-bottom: 1px solid #333;
     padding: 0.75em;
     padding-bottom: 5px;
    background: var(--recipe-bg);
}
     border-radius: 6px;
 
     margin-bottom: 1em;
.ss14-rules ul {
  }
     margin-top: 10px;
  .materials, .result {
     list-style-type: square;
    background: var(--recipe-bg);
}
  }
 
  .materials .section-title, .result .section-title {
.ss14-rules li {
     font-weight: bold;
     margin-bottom: 8px;
    font-size: 1em;
}
     color: var(--accent-color);
    margin-bottom: 0.4em;
  }
  .materials ul, .result ul {
     margin: 0;
    padding: 0 0 0 1.2em;
  }
  .materials li, .result li { font-size: 0.95em; line-height: 1.4; }


  .action {
.ss14-rules tr:hover td {
     text-align: center;
     background-color: #2d2d35 !important;
    color: var(--subtext-color);
     transition: background 0.2s ease;
     font-size: 0.95em;
}
    display: flex;
    flex-direction: column;
  }
  .action img { width: 24px; margin-bottom: 0.2em; }


  /* Секции эффектов и описания */
@media screen and (max-width: 720px) {
  .section {
     .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
    margin-bottom: 1em;
        display: block;
     background: var(--section-bg);
        width: 100%;
  }
     }
  .section-title {
    .ss14-rules td {
    font-weight: bold;
        box-sizing: border-box;
    font-size: 1.05em;
     }
     color: var(--subtext-color);
    .ss14-rules td:first-child {
     margin-bottom: 0.6em;
        border-bottom: none;
  }
        padding-bottom: 5px;
  .section ul {
    }
    margin: 0;
}
    padding-left: 1.4em;
  }
  .section ul li { margin-bottom: 0.4em; }

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