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

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


.page-title {
.ss14-rules th {
     font-size: 3.5rem;
     background: #1a1a1e;
     color: #0C9456;
     color: #7daeff;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding: 12px;
     display: inline-flex;
     text-transform: uppercase;
     align-items: center;
    font-size: 0.9em;
     letter-spacing: 1px;
     border-bottom: 2px solid #3a3a42;
}
}


.quick-nav {
.ss14-rules td:first-child,
     background: rgba(12, 148, 86, 0.33);
.ss14-rules td:nth-child(2) {
     padding: 1rem;
     background: #25252b;
     border-radius: 8px;
    font-weight: bold;
     margin-bottom: 2rem;
     color: #ffffff;
     vertical-align: top;
     border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


/* Сетка рас */
.ss14-rules td:first-child {
.species-grid {
     white-space: nowrap;
     display: grid;
     color: #ffca28; /* Золотистый цвет для номера */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
     width: 10%;
     gap: 1.5rem;
     padding: 1rem;
}
}


.species-card {
/* Описание правила (третья колонка) */
     background: #1a1a1a;
.ss14-rules td:last-child {
     border-radius: 12px;
     background: #1e1e22;
     transition: transform 0.2s;
     padding: 15px;
     cursor: pointer;
     line-height: 1.6;
     border-right: 1px solid #3a3a42;
}
}


.species-card:hover {
.ss14-rules td big {
     transform: scale(1.03);
    display: block;
    color: #7daeff; /* Голубой акцент */
     font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.species-name {
.ss14-rules ul {
     background: #0C9456;
     margin-top: 10px;
     padding: 0.8rem;
     list-style-type: square;
    text-align: center;
    border-radius: 0 0 12px 12px;
}
}


/* Секретные элементы */
.ss14-rules li {
.classified {
     margin-bottom: 8px;
     position: relative;
    filter: grayscale(1) blur(3px);
    transition: 0.3s;
}
}


.classified:hover {
.ss14-rules tr:hover td {
     filter: grayscale(0.5) blur(1px);
     background-color: #2d2d35 !important;
    transition: background 0.2s ease;
}
}


/* Аккордеоны */
@media screen and (max-width: 720px) {
.accordion {
     .ss14-rules, .ss14-rules tbody, .ss14-rules tr, .ss14-rules td {
    background: #1a1a1a;
        display: block;
    margin: 1rem 0;
        width: 100%;
    border-radius: 8px;
    }
}
     .ss14-rules td {
 
         box-sizing: border-box;
.accordion-header {
     padding: 1rem;
    background: #0C9456;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}
 
.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
}
 
.accordion-content.active {
    max-height: 500px;
    padding: 1rem;
}
 
/* Адаптивность */
@media (max-width: 768px) {
     .species-grid {
         grid-template-columns: repeat(2, 1fr);
     }
     }
     .page-title {
     .ss14-rules td:first-child {
         font-size: 2.5rem;
         border-bottom: none;
        padding-bottom: 5px;
     }
     }
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
}

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