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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 199 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основные стили */
body:before {
.species-page {
     content: "";
     padding: 2rem 1rem;
     position: fixed;
     max-width: 1400px;
     top: 0;
     margin: 0 auto;
     left: 0;
     background: radial-gradient(circle at top, #0C945622 0%, transparent 30%);
     right: 0;
}
     bottom: 0;
 
     background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Snowflakes_falling_transparent.gif");
/* Заголовок */
     background-repeat: repeat;
.title-container {
     pointer-events: none;
     position: relative;
     opacity: 0.35;
     margin: 3rem 0;
     z-index: 2;
     padding: 1.5rem;
     animation: snowmove 60s linear infinite;
     background: linear-gradient(45deg, #0C945633, #0a774433);
     border-radius: 16px;
     border: 2px solid #0C945655;
}
 
.page-title span {
    background: linear-gradient(45deg, #0C9456, #0a7744);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
}
}


/* Навигация */
@keyframes snowmove {
.quick-nav span {
     from { background-position: 0 0; }
     display: inline-block;
     to { background-position: 500px 1000px; }
    margin: 0.3rem;
    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 {
h1, h2, h3, h4, h5 {
     transform: translateY(-2px);
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: text-shadow 0.3s;
}
}


/* Сетка рас */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.species-card {
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
    position: relative;
    overflow: hidden;
     border: 2px solid #0C945644;
}
}


.species-card::after {
a, a:visited {
     content: "";
     transition: color 0.3s, text-shadow 0.3s;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #0C945622, transparent);
}
}


.species-image {
a:hover {
     padding: 1.5rem;
     color: #b3e5fc !important;
     background: #00000033;
     text-shadow: 0 0 6px #b3e5fc;
}
}


/* Аккордеоны */
.wikitable {
.accordion-header {
     border-color: rgba(179, 229, 252, 0.6) !important;
     position: relative;
     border-radius: 6px;
     padding-left: 3rem;
    transition: 0.2s;
}
}


.accordion-header::before {
.wikitable th {
     content: "▶";
     background: rgba(179, 229, 252, 0.1);
    position: absolute;
    left: 1rem;
    transition: 0.3s;
}
}


.accordion-header.active::before {
.mw-page-title-main:before {
     transform: rotate(90deg);
     content: " ";
}
}


/* Адаптивность */
.mw-page-title-main:after {
@media (max-width: 768px) {
     content: " ";
    .species-card {
        grid-column: span 2;
     }
   
    .accordion-header {
        font-size: 0.9rem;
    }
}
}

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