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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 115 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основные стили для контейнера выпадающего списка */
body:before {
.DropdownContainer {
    content: "";
     position: relative;
    position: fixed;
     width: 200px;
    top: 0;
     margin: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    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 {
     from { background-position: 0 0; }
     to { background-position: 500px 1000px; }
}
 
h1, h2, h3, h4, h5 {
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}
 
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}
}


/* Стили кнопки выпадающего списка */
a, a:visited {
.DropdownButton {
     transition: color 0.3s, text-shadow 0.3s;
     background-color: #28303e;
    color: white;
    padding: 10px;
    width: 100%;
    border: 2px solid black;
    border-radius: 5px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
}


.DropdownButton:hover {
a:hover {
     background-color: #3b3b3b;
     color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}
}


/* Стили для скрытого списка */
.wikitable {
.DropdownList {
     border-color: rgba(179, 229, 252, 0.6) !important;
     display: none;
     border-radius: 6px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #232323;
    border: 2px solid black;
     border-radius: 5px;
    list-style-type: none;
    box-sizing: border-box;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
}


/* Отображение списка при наведении */
.wikitable th {
.DropdownContainer:hover .DropdownList {
     background: rgba(179, 229, 252, 0.1);
     display: block;
    opacity: 1;
    transform: translateY(0);
}
}


/* Стили для каждого элемента списка */
.mw-page-title-main:before {
.DropdownList li a {
     content: " ";
    display: block;
    padding: 8px 10px;
    color: white;
    text-decoration: none;
    background: #232323;
    border: 2px solid black;
    font-size: 14px;
     transition: background-color 0.3s ease, transform 0.3s ease;
}
}


.DropdownList li a:hover {
.mw-page-title-main:after {
     background-color: #3b3b3b;
     content: " ";
    transform: scale(1.05); /* Эффект увеличения при наведении */
}
}

Текущая версия от 08:23, 13 ноября 2025

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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 {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

h1, h2, h3, h4, h5 {
    text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    transition: text-shadow 0.3s;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
}

a, a:visited {
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}

.wikitable {
    border-color: rgba(179, 229, 252, 0.6) !important;
    border-radius: 6px;
}

.wikitable th {
    background: rgba(179, 229, 252, 0.1);
}

.mw-page-title-main:before {
    content: " ";
}

.mw-page-title-main:after {
    content: " ";
}