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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 200 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основные стили */
.ss14-rules {
.species-page {
     width: 100%;
     padding: 2rem 1rem;
     border-collapse: separate;
     max-width: 1400px;
     border-spacing: 0 8px; /* Расстояние между строками */
     margin: 0 auto;
     background-color: transparent;
     background: radial-gradient(circle at top, #0C945622 0%, transparent 30%);
    color: #cecece;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}


/* Заголовок */
.ss14-rules th {
.title-container {
     background: #1a1a1e;
     position: relative;
     color: #7daeff;
     margin: 3rem 0;
     padding: 12px;
     padding: 1.5rem;
     text-transform: uppercase;
     background: linear-gradient(45deg, #0C945633, #0a774433);
    font-size: 0.9em;
     border-radius: 16px;
     letter-spacing: 1px;
     border: 2px solid #0C945655;
     border-bottom: 2px solid #3a3a42;
}
}


.page-title span {
.ss14-rules td:first-child,
     background: linear-gradient(45deg, #0C9456, #0a7744);
.ss14-rules td:nth-child(2) {
     -webkit-background-clip: text;
     background: #25252b;
     -webkit-text-fill-color: transparent;
    font-weight: bold;
    color: #ffffff;
     vertical-align: top;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


/* Навигация */
.ss14-rules td:first-child {
.quick-nav span {
     white-space: nowrap;
     display: inline-block;
     color: #ffca28; /* Золотистый цвет для номера */
    margin: 0.3rem;
     width: 10%;
    padding: 0.4rem 1.2rem;
     background: #0C9456;
     border-radius: 25px;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
}


.quick-nav span:hover {
/* Описание правила (третья колонка) */
     transform: translateY(-2px);
.ss14-rules td:last-child {
     box-shadow: 0 4px 8px rgba(0,0,0,0.4);
     background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
     border-right: 1px solid #3a3a42;
}
}


/* Сетка рас */
.ss14-rules td big {
.species-card {
    display: block;
    position: relative;
    color: #7daeff; /* Голубой акцент */
     overflow: hidden;
    font-size: 1.1em;
     border: 2px solid #0C945644;
     margin-bottom: 10px;
     border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.species-card::after {
.ss14-rules ul {
     content: "";
     margin-top: 10px;
    position: absolute;
     list-style-type: square;
    top: 0; left: 0;
     width: 100%; height: 100%;
    background: linear-gradient(45deg, #0C945622, transparent);
}
}


.species-image {
.ss14-rules li {
     padding: 1.5rem;
     margin-bottom: 8px;
    background: #00000033;
}
}


/* Аккордеоны */
.ss14-rules tr:hover td {
.accordion-header {
     background-color: #2d2d35 !important;
     position: relative;
     transition: background 0.2s ease;
    padding-left: 3rem;
     transition: 0.2s;
}
}


.accordion-header::before {
@media screen and (max-width: 720px) {
     content: "▶";
     .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
    position: absolute;
        display: block;
    left: 1rem;
        width: 100%;
    transition: 0.3s;
    }
}
     .ss14-rules td {
 
         box-sizing: border-box;
.accordion-header.active::before {
    transform: rotate(90deg);
}
 
/* Адаптивность */
@media (max-width: 768px) {
     .species-card {
         grid-column: span 2;
     }
     }
   
     .ss14-rules td:first-child {
     .accordion-header {
         border-bottom: none;
         font-size: 0.9rem;
        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;
    }
}