мНет описания правки |
мНет описания правки |
||
Строка 16: | Строка 16: | ||
.tabs { | .tabs { | ||
position: relative; | position: relative; | ||
margin: | margin: 20px 0; | ||
} | } | ||
Строка 28: | Строка 28: | ||
.tabs label { | .tabs label { | ||
display: inline-block; | display: inline-block; | ||
padding: | padding: 12px 25px; | ||
margin: 0 | 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; | ||
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. | 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); | transform: scale(1); | ||
box-shadow: 0 | box-shadow: 0 8px 20px rgba(139, 0, 0, 0. | ||
Версия от 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.