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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 200 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Основные стили страницы */
body:before {
.species-page {
    content: "";
     padding: 20px;
    position: fixed;
     max-width: 1200px;
    top: 0;
     margin: 0 auto;
    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;
}
}


.page-title {
@keyframes snowmove {
     font-size: 3.5rem;
     from { background-position: 0 0; }
    color: #0C9456;
     to { background-position: 500px 1000px; }
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
     display: inline-flex;
    align-items: center;
}
}


.quick-nav {
h1, h2, h3, h4, h5 {
     background: rgba(12, 148, 86, 0.33);
     text-shadow: 0 0 6px rgba(179, 229, 252, 0.7), 0 0 12px rgba(179, 229, 252, 0.4);
     padding: 1rem;
     transition: text-shadow 0.3s;
    border-radius: 8px;
    margin-bottom: 2rem;
}
}


/* Сетка рас */
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover {
.species-grid {
     text-shadow: 0 0 12px rgba(179, 229, 252, 0.9), 0 0 20px rgba(179, 229, 252, 0.6);
     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}
}


.species-card {
a, a:visited {
     background: #1a1a1a;
     transition: color 0.3s, text-shadow 0.3s;
    border-radius: 12px;
    transition: transform 0.2s;
    cursor: pointer;
}
}


.species-card:hover {
a:hover {
     transform: scale(1.03);
     color: #b3e5fc !important;
    text-shadow: 0 0 6px #b3e5fc;
}
}


.species-name {
.wikitable {
     background: #0C9456;
     border-color: rgba(179, 229, 252, 0.6) !important;
    padding: 0.8rem;
     border-radius: 6px;
    text-align: center;
     border-radius: 0 0 12px 12px;
}
}


/* Секретные элементы */
.wikitable th {
.classified {
     background: rgba(179, 229, 252, 0.1);
     position: relative;
    filter: grayscale(1) blur(3px);
    transition: 0.3s;
}
}


.classified:hover {
.mw-page-title-main:before {
     filter: grayscale(0.5) blur(1px);
     content: " ";
}
}


/* Аккордеоны */
.mw-page-title-main:after {
.accordion {
     content: " ";
    background: #1a1a1a;
    margin: 1rem 0;
    border-radius: 8px;
}
 
.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 {
        font-size: 2.5rem;
    }
}
 
@keyframes pulse {
     0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
}

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