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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
Строка 1: Строка 1:
body:before {
.ss14-rules {
     content: "";
     width: 100%;
     position: fixed;
     border-collapse: separate;
     top: 0;
     border-spacing: 0 8px; /* Расстояние между строками */
    left: 0;
     background-color: transparent;
    right: 0;
     color: #cecece;
    bottom: 0;
     font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
     background-repeat: repeat;
    pointer-events: none;
     opacity: 0.35;
     z-index: 2;
    animation: snowmove 60s linear infinite;
}
}


@keyframes snowmove {
.ss14-rules th {
     from { background-position: 0 0; }
     background: #1a1a1e;
     to { background-position: 500px 1000px; }
    color: #7daeff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
     border-bottom: 2px solid #3a3a42;
}
}


h1, h2, h3, h4, h5 {
.ss14-rules td:first-child,  
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
.ss14-rules td:nth-child(2) {
     transition: text-shadow 0.3s;
     background: #25252b;
    font-weight: bold;
    color: #ffffff;
     vertical-align: top;
    border-left: 4px solid #5a5a66; /* Акцентная полоса слева */
}
}


h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.ss14-rules td:first-child {
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    white-space: nowrap;
    color: #ffca28; /* Золотистый цвет для номера */
     width: 10%;
}
}


a, a:visited {
/* Описание правила (третья колонка) */
     transition: color 0.3s, text-shadow 0.3s;
.ss14-rules td:last-child {
     background: #1e1e22;
    padding: 15px;
    line-height: 1.6;
    border-right: 1px solid #3a3a42;
}
}


a:hover {
.ss14-rules td big {
     color: #b3e5fc !important;
    display: block;
     text-shadow: 0 0 6px #b3e5fc;
     color: #7daeff; /* Голубой акцент */
     font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
}


.wikitable {
.ss14-rules ul {
     border-color: rgba(179, 229, 252, 0.6) !important;
     margin-top: 10px;
     border-radius: 6px;
     list-style-type: square;
}
}


.wikitable th {
.ss14-rules li {
     background: rgba(179, 229, 252, 0.1);
     margin-bottom: 8px;
}
}


.mw-page-title-main:before {
.ss14-rules tr:hover td {
     content: " ";
    background-color: #2d2d35 !important;
     transition: background 0.2s ease;
}
}


.mw-page-title-main:after {
@media screen and (max-width: 720px) {
     content: " ";
    .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;
    }
}