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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
/* Основные стили страницы */
/* Основные стили */
.species-page {
.species-page {
     padding: 20px;
     padding: 2rem 1rem;
     max-width: 1200px;
     max-width: 1400px;
     margin: 0 auto;
     margin: 0 auto;
    background: radial-gradient(circle at top, #0C945622 0%, transparent 30%);
}
}


.page-title {
/* Заголовок */
     font-size: 3.5rem;
.title-container {
     color: #0C9456;
     position: relative;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 3rem 0;
     display: inline-flex;
     padding: 1.5rem;
     align-items: center;
     background: linear-gradient(45deg, #0C945633, #0a774433);
     border-radius: 16px;
     border: 2px solid #0C945655;
}
}


.quick-nav {
.page-title span {
     background: rgba(12, 148, 86, 0.33);
     background: linear-gradient(45deg, #0C9456, #0a7744);
     padding: 1rem;
     -webkit-background-clip: text;
     border-radius: 8px;
     -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}
}


/* Сетка рас */
/* Навигация */
.species-grid {
.quick-nav span {
     display: grid;
     display: inline-block;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 0.3rem;
     gap: 1.5rem;
    padding: 0.4rem 1.2rem;
     padding: 1rem;
     background: #0C9456;
    border-radius: 25px;
     transition: 0.2s;
     box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
}


.species-card {
.quick-nav span:hover {
     background: #1a1a1a;
     transform: translateY(-2px);
     border-radius: 12px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s;
    cursor: pointer;
}
}


.species-card:hover {
/* Сетка рас */
     transform: scale(1.03);
.species-card {
}
     position: relative;
 
     overflow: hidden;
.species-name {
     border: 2px solid #0C945644;
     background: #0C9456;
    padding: 0.8rem;
    text-align: center;
     border-radius: 0 0 12px 12px;
}
}


/* Секретные элементы */
.species-card::after {
.classified {
    content: "";
     position: relative;
     position: absolute;
     filter: grayscale(1) blur(3px);
     top: 0; left: 0;
     transition: 0.3s;
    width: 100%; height: 100%;
     background: linear-gradient(45deg, #0C945622, transparent);
}
}


.classified:hover {
.species-image {
     filter: grayscale(0.5) blur(1px);
     padding: 1.5rem;
    background: #00000033;
}
}


/* Аккордеоны */
/* Аккордеоны */
.accordion {
    background: #1a1a1a;
    margin: 1rem 0;
    border-radius: 8px;
}
.accordion-header {
.accordion-header {
     padding: 1rem;
     position: relative;
     background: #0C9456;
     padding-left: 3rem;
     border-radius: 8px 8px 0 0;
     transition: 0.2s;
    cursor: pointer;
}
}


.accordion-content {
.accordion-header::before {
     padding: 0 1rem;
     content: "▶";
     max-height: 0;
     position: absolute;
     overflow: hidden;
     left: 1rem;
     transition: 0.3s;
     transition: 0.3s;
}
}


.accordion-content.active {
.accordion-header.active::before {
     max-height: 500px;
     transform: rotate(90deg);
    padding: 1rem;
}
}


/* Адаптивность */
/* Адаптивность */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .species-grid {
     .species-card {
         grid-template-columns: repeat(2, 1fr);
         grid-column: span 2;
     }
     }
     .page-title {
   
         font-size: 2.5rem;
     .accordion-header {
         font-size: 0.9rem;
     }
     }
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
}

Версия от 21:21, 23 февраля 2025

/* Основные стили */
.species-page {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background: radial-gradient(circle at top, #0C945622 0%, transparent 30%);
}

/* Заголовок */
.title-container {
    position: relative;
    margin: 3rem 0;
    padding: 1.5rem;
    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;
}

/* Навигация */
.quick-nav span {
    display: inline-block;
    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 {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Сетка рас */
.species-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #0C945644;
}

.species-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #0C945622, transparent);
}

.species-image {
    padding: 1.5rem;
    background: #00000033;
}

/* Аккордеоны */
.accordion-header {
    position: relative;
    padding-left: 3rem;
    transition: 0.2s;
}

.accordion-header::before {
    content: "▶";
    position: absolute;
    left: 1rem;
    transition: 0.3s;
}

.accordion-header.active::before {
    transform: rotate(90deg);
}

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