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

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