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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 122 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* ==================================================
.ss14-rules {
  Begin стиль для выпадающего списка (ПК)
    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 {
.dropdown-container {
     background: #1a1a1e;
     position: relative;
    color: #7daeff;
     margin-left: 10px;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
     border-bottom: 2px solid #3a3a42;
}
}


.dropdown {
.ss14-rules td:first-child,
     border: 2px solid #000;
.ss14-rules td:nth-child(2) {
     border-radius: 10px;
     background: #25252b;
     background-color: #28303e;
     font-weight: bold;
     width: auto;
     color: #ffffff;
     padding: 5px;
     vertical-align: top;
    transition: background-color 0.3s ease;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


.dropdown-item {
.ss14-rules td:first-child {
     color: white;
     white-space: nowrap;
    font-size: 16px;
     color: #ffca28; /* Золотистый цвет для номера */
     background: #232323;
     width: 10%;
     padding: 8px 12px;
}
    display: block;
 
     text-decoration: none;
/* Описание правила (третья колонка) */
     border: 2px solid #000;
.ss14-rules td:last-child {
     margin-bottom: 5px;
     background: #1e1e22;
     transition: background-color 0.3s ease, transform 0.3s ease;
     padding: 15px;
     line-height: 1.6;
     border-right: 1px solid #3a3a42;
}
}


.dropdown-item:hover {
.ss14-rules td big {
     background: #3b3b3b;
     display: block;
     transform: scale(1.05); /* Эффект увеличения при наведении */
     color: #7daeff; /* Голубой акцент */
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


/* Скрытие и отображение выпадающего списка */
.ss14-rules ul {
.dropdown-list {
     margin-top: 10px;
     display: none;
     list-style-type: square;
     list-style-type: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}
}


.dropdown-container:hover .dropdown-list {
.ss14-rules li {
     display: block;
     margin-bottom: 8px;
    max-height: 500px;
    opacity: 1;
    transition-delay: 0.2s;
}
}


/* Анимация при открытии */
.ss14-rules tr:hover td {
.dropdown-container.open .dropdown-list {
     background-color: #2d2d35 !important;
     display: block;
     transition: background 0.2s ease;
    max-height: 500px;
    opacity: 1;
     transition: opacity 0.5s ease, max-height 0.5s ease;
}
}


/* ПК стили */
@media screen and (max-width: 720px) {
@media screen and (min-width: 1120px) {
     .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
     .dropdown-container {
         display: block;
         margin-left: 20px;
        width: 100%;
    }
    .ss14-rules td {
        box-sizing: border-box;
    }
    .ss14-rules td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
     }
     }
}
}
/* ==================================================
  End стиль для выпадающего списка (ПК)
  ================================================== */

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