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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показана 121 промежуточная версия этого же участника)
Строка 1: Строка 1:
/* ==================================================
body:before {
  Begin стиль для выпадающего списка (ПК)
    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 {
.dropdown-container {
     from { background-position: 0 0; }
     position: relative;
     to { background-position: 500px 1000px; }
     margin-left: 10px;
}
}


.dropdown {
h1, h2, h3, h4, h5 {
     border: 2px solid #000;
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    border-radius: 10px;
     transition: text-shadow 0.3s;
    background-color: #28303e;
    width: auto;
    padding: 5px;
     transition: background-color 0.3s ease;
}
}


.dropdown-item {
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
    color: white;
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    font-size: 16px;
    background: #232323;
    padding: 8px 12px;
    display: block;
     text-decoration: none;
    border: 2px solid #000;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
}


.dropdown-item:hover {
a, a:visited {
     background: #3b3b3b;
     transition: color 0.3s, text-shadow 0.3s;
    transform: scale(1.05); /* Эффект увеличения при наведении */
}
}


/* Скрытие и отображение выпадающего списка */
a:hover {
.dropdown-list {
     color: #b3e5fc !important;
     display: none;
     text-shadow: 0 0 6px #b3e5fc;
    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 {
.wikitable {
     display: block;
     border-color: rgba(179, 229, 252, 0.6) !important;
    max-height: 500px;
     border-radius: 6px;
    opacity: 1;
     transition-delay: 0.2s;
}
}


/* Анимация при открытии */
.wikitable th {
.dropdown-container.open .dropdown-list {
     background: rgba(179, 229, 252, 0.1);
     display: block;
    max-height: 500px;
    opacity: 1;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}
}


/* ПК стили */
.mw-page-title-main:before {
@media screen and (min-width: 1120px) {
     content: " ";
     .dropdown-container {
        margin-left: 20px;
    }
}
}


/* ==================================================
.mw-page-title-main:after {
  End стиль для выпадающего списка (ПК)
    content: " ";
  ================================================== */
}

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