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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 64 промежуточные версии этого же участника)
Строка 1: Строка 1:
  :root {
.ss14-rules {
    --width-layout: 100vw;
     width: 100%;
  }
     border-collapse: separate;
  .infoblocks {
     border-spacing: 0 8px; /* Расстояние между строками */
     display: flex;
     background-color: transparent;
    flex-wrap: wrap;
     color: #cecece;
    gap: 1.2em;
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    justify-content: flex-start;
}
    padding: 2em;
    max-width: var(--width-layout);
    margin: 0 auto;
  }
  .infoblock {
    background: #2b2b2b;
    color: #e0e0e0;
    flex: 1 1 calc(25% - 1.2em);
     min-width: 280px;
    border: 1px solid #555;
     border-radius: 8px;
     display: flex;
    flex-direction: column;
     overflow: hidden;
  }
  .infoblock .header {
    display: flex;
    align-items: center;
    padding: 0.75em 1em;
    gap: 0.6em;
    background: #333;
     border-bottom: 1px solid #555;
  }
  .infoblock .header img { width: 22px; }
  .infoblock .header .title { font-weight: bold; font-size: 1.15em; }


  .infoblock .content {
.ss14-rules th {
     padding: 1em;
     background: #1a1a1e;
     display: flex;
     color: #7daeff;
     flex-direction: column;
     padding: 12px;
    line-height: 1.5;
     text-transform: uppercase;
    flex: 1;
     font-size: 0.9em;
  }
     letter-spacing: 1px;
  /* Блок рецептов: сетка материалов, действия, результата */
     border-bottom: 2px solid #3a3a42;
  .recipe-block {
}
    display: grid;
 
     grid-template-columns: 1fr auto 1fr;
.ss14-rules td:first-child,  
     align-items: center;
.ss14-rules td:nth-child(2) {
    gap: 0.5em;
     background: #25252b;
     border: 1px dashed #666;
     padding: 0.75em;
    margin-bottom: 1em;
    background: #2f2f2f;
  }
  .materials, .result {
    display: flex;
    flex-direction: column;
     gap: 0.3em;
  }
  .materials .section-title, .result .section-title {
     font-weight: bold;
     font-weight: bold;
     font-size: 1em;
     color: #ffffff;
     color: #fff;
     vertical-align: top;
     margin-bottom: 0.4em;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
  }
}
  .materials ul, .result ul {
 
     margin: 0;
.ss14-rules td:first-child {
     padding: 0;
     white-space: nowrap;
     list-style: none;
     color: #ffca28; /* Золотистый цвет для номера */
  }
     width: 10%;
  .materials li, .result li { font-size: 0.95em; }
}
  .action {
 
     text-align: center;
/* Описание правила (третья колонка) */
  }
.ss14-rules td:last-child {
  .action img {
    background: #1e1e22;
    width: 20px;
    padding: 15px;
    line-height: 1.6;
     border-right: 1px solid #3a3a42;
}
 
.ss14-rules td big {
     display: block;
     display: block;
     margin: 0 auto 0.2em;
    color: #7daeff; /* Голубой акцент */
  }
    font-size: 1.1em;
  .action span { color: #ccc; font-size: 0.95em; }
    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;
}


  .section { margin-bottom: 1em; }
@media screen and (max-width: 720px) {
  .section:last-child { margin-bottom: 0; }
    .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
  .section-title { font-weight: bold; font-size: 1.05em; color: #ccc; margin-bottom: 0.6em; }
        display: block;
  .section ul { margin: 0; padding-left: 1.4em; }
        width: 100%;
  .section ul li { margin-bottom: 0.4em; }
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

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