Usus2: различия между версиями

Материал из SS220 SS14 WIKI
мНет описания правки
мНет описания правки
Строка 16: Строка 16:
.tabs {
.tabs {
     position: relative;
     position: relative;
     margin: 30px 0;
     margin: 20px 0;
}
}


Строка 28: Строка 28:
.tabs label {
.tabs label {
     display: inline-block;
     display: inline-block;
     padding: 5px 5px;
     padding: 12px 25px;
     margin: 0 10px;
     margin: 0;
     cursor: pointer;
     cursor: pointer;
     color: #fff;
     color: #fff;
     background: linear-gradient(145deg, #8B0000, #6A0000);
     background: linear-gradient(145deg, #8B0000, #6A0000);
     border: none;
     border: none;
    border-radius: 0px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     font-family: 'Arial Rounded MT', Arial, sans-serif;
     font-family: 'Arial Rounded MT', Arial, sans-serif;
     font-size: 16px;
     font-size: 16px;
     box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
     box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
     transform: scale(0.95);
     transform: scale(0.98);
    border-right: 1px solid #630000;
}
 
/* Убираем границу у последней вкладки */
.tabs label:last-child {
    border-right: none;
}
}


Строка 45: Строка 50:
.tabs input:checked + label {
.tabs input:checked + label {
     background: linear-gradient(145deg, #6A0000, #8B0000);
     background: linear-gradient(145deg, #6A0000, #8B0000);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
    z-index: 2;
}
/* Эффекты при наведении */
.tabs label:hover {
    background: linear-gradient(145deg, #A60000, #8B0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.35);
}
/* Анимированный контент */
.tab-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    margin-top: 20px;
    border-radius: 20px;
    background: rgba(112, 46, 46, 0.95);
    color: white;
    transition: all 0.6s ease-in-out;
    transform: translateY(-10px);
}
/* Анимация появления контента */
.tabs input:checked ~ .tab-content {
    opacity: 1;
    max-height: 1000px;
    padding: 25px;
    margin-top: 15px;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
/* Стили для таблиц с анимацией */
.wikitable {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background: rgba(70, 25, 25, 0.9);
    transform: scale(0.98);
    transition: transform 0.3s ease;
}
.wikitable:hover {
     transform: scale(1);
     transform: scale(1);
     box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
     box-shadow: 0 8px 20px rgba(139, 0, 0, 0.
}
 
.wikitable th,
.wikitable td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}
 
.wikitable th {
    background: linear-gradient(145deg, #8B0000, #6A0000);
    color: #fff;
    font-weight: 600;
}
 
.wikitable tr:hover td {
    background: rgba(139, 0, 0, 0.1);
}
 
/* Эффект свечения для активных элементов */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(139, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(139, 0, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(139, 0, 0, 0.3); }
}
 
.tabs input:checked + label {
    animation: glow 1.5s infinite;
}
</style>
 
<div class="tabs">
    <input type="radio" name="tabs" id="tab1" checked>
    <label for="tab1">Первая вкладка</label>
    <div class="tab-content">
        <table class="wikitable">
            <tr>
                <th>Заголовок</th>
                <th>Таблица</th>
            </tr>
            <tr>
                <td>Анимированные</td>
                <td>Элементы</td>
            </tr>
        </table>
    </div>
 
    <input type="radio" name="tabs" id="tab2">
    <label for="tab2">Вторая вкладка</label>
    <div class="tab-content">
        Контент с плавным появлением
    </div>
</div>
}}

Версия от 15:39, 1 апреля 2025

тест

мега тест

тестик

Нихуя себе

{{#css: <style> /* Стили для контейнера вкладок */ .tabs {

   position: relative;
   margin: 20px 0;

}

/* Скрываем радио-кнопки */ .tabs input[type="radio"] {

   opacity: 0;
   position: absolute;

}

/* Стили для заголовков вкладок */ .tabs label {

   display: inline-block;
   padding: 12px 25px;
   margin: 0;
   cursor: pointer;
   color: #fff;
   background: linear-gradient(145deg, #8B0000, #6A0000);
   border: none;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   font-family: 'Arial Rounded MT', Arial, sans-serif;
   font-size: 16px;
   box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
   transform: scale(0.98);
   border-right: 1px solid #630000;

}

/* Убираем границу у последней вкладки */ .tabs label:last-child {

   border-right: none;

}

/* Анимация для активной вкладки */ .tabs input:checked + label {

   background: linear-gradient(145deg, #6A0000, #8B0000);
   transform: scale(1);
   box-shadow: 0 8px 20px rgba(139, 0, 0, 0.