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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показана 71 промежуточная версия этого же участника)
Строка 1: Строка 1:
  /* Контейнер карточек */
.ss14-rules {
  .infoblocks {
     width: 100%;
     display: flex;
     border-collapse: separate;
     flex-wrap: wrap;
     border-spacing: 0 8px; /* Расстояние между строками */
     gap: 1em;
     background-color: transparent;
    justify-content: flex-start;
     color: #cecece;
    padding: 2em;              /* больше отступов вокруг */
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 90%;            /* занимает до 90% ширины экрана */
}
    margin: 0 auto;
 
  }
.ss14-rules th {
  /* Сама карточка */
     background: #1a1a1e;
  .infoblocks .infoblock {
     color: #7daeff;
     background: #2e2e2e;       /* тёмный фон карточки */
     padding: 12px;
     color: #ddd;              /* светлый текст */
     text-transform: uppercase;
    flex: 1 1 calc(25% - 1em); /* 4 карточки в ряд, с учётом gap */
     font-size: 0.9em;
    min-width: 280px;
     letter-spacing: 1px;
    border: 1px solid #444;    /* рамка тёмной темы */
     border-bottom: 2px solid #3a3a42;
    border-radius: 0 0 8px 8px;
}
     font-family: sans-serif;
 
    display: flex;
.ss14-rules td:first-child,
    flex-direction: column;
.ss14-rules td:nth-child(2) {
     overflow: hidden;
     background: #25252b;
  }
  /* Шапка карточки */
  .infoblock .header {
     display: flex;
     align-items: center;
     padding: 0.5em;
     gap: 0.5em;
     background: #3a3a3a;       /* чуть светлее фон для заголовка */
     border-bottom: 1px solid #444;
  }
  .infoblock .header img {
     width: 20px;
    height: auto;
  }
  .infoblock .header .title {
     font-weight: bold;
     font-weight: bold;
  }
    color: #ffffff;
  /* Основной контент */
    vertical-align: top;
  .infoblock .content {
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
     padding: 0.75em;
}
     display: flex;
 
     flex-direction: column;
.ss14-rules td:first-child {
    line-height: 1.4;
     white-space: nowrap;
  }
     color: #ffca28; /* Золотистый цвет для номера */
  /* Секции внутри карточки */
     width: 10%;
  .infoblock .section {
}
     margin-bottom: 0.75em;
 
  }
/* Описание правила (третья колонка) */
  .infoblock .section:last-child {
.ss14-rules td:last-child {
     margin-bottom: 0;
     background: #1e1e22;
  }
    padding: 15px;
  .infoblock .section h4 {
    line-height: 1.6;
     margin: 0 0 0.5em;
     border-right: 1px solid #3a3a42;
     font-weight: bold;
}
     font-size: 0.95em;
 
     color: #ccc;
.ss14-rules td big {
  }
     display: block;
  .infoblock .section ul {
     color: #7daeff; /* Голубой акцент */
     margin: 0;
     font-size: 1.1em;
     padding-left: 1.2em;
    margin-bottom: 10px;
  }
     border-bottom: 1px solid #333;
  .infoblock .section ul li {
    padding-bottom: 5px;
     margin-bottom: 0.3em;
}
  }
 
  /* Отдельный блок для эффектов */
.ss14-rules ul {
  .effects-block {
     margin-top: 10px;
     border: 1px dashed #666;
     list-style-type: square;
     padding: 0.5em;
}
     margin-bottom: 0.75em;
 
    background: #333;           /* фон эффекта */
.ss14-rules li {
  }
     margin-bottom: 8px;
  .effects-block h4 {
}
    color: #fff;
 
  }
.ss14-rules tr:hover td {
  .effects-block ul li {
     background-color: #2d2d35 !important;
    color: #eee;
     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;
    }
}

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