/
Menz
/
project
Обзор
Документация
Войти
/
Menz
/
project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
static/css/main.css
508 строк
10 KB
Menzelechek
version
25 дек 2024, 20:39
25 дек 2024, 20:39
2dcd361
Код
Авторство
О чём код?
/* HEADER */ header{ position: sticky; top: 0; padding: 10px; z-index: 1000; background: rgb(243, 171, 104); -webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.30); box-shadow: 0 5px 25px rgba(85, 132, 81, 0.30); margin-left: 310px; } .pic-main-menu img{ width: 41px; height: 41px; position: relative; top: -1px; left: 1px; } .fs-4{ /*color: rgb(45, 95, 65);*/ color: white; font-family: 'Comic Sans MS', cursive; text-shadow: 0.5px 0.5px 5px rgb(243, 171, 104); } .nav-link{ color: white!important; } .nav-link:hover{ color: rgb(243, 171, 104)!important; } .nav-link:active, .nav-link:focus{ color: rgb(243, 171, 104)!important; } /* Sidebar */ .sidebar{ overflow-y: auto; width: 310px !important; background-color: rgb(243, 178, 117); position: fixed; /* Закрепляем меню */ flex-grow: 0; /* Меню фиксированной ширины, не растягивается по горизонтали */ height: 100%; top: 0; -webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.30); box-shadow: 0 5px 25px rgba(85, 132, 81, 0.30); transition: width 0.3s; z-index: 1000; } .sidebar.collapsed{ width: 0 !important; overflow: hidden; } #menu-toggle { position: absolute; top: 20px; left: 10px; z-index: 1001; } #toggleButton { background-color: rgb(243, 178, 117); /* Измените цвет фона */ border: none; position: fixed; /* Закрепляем меню */ } /* Изменение некоторых свойств конкретных элементов-подпунктов левого бокового меню */ .pic-left-menu img{ width: 20px; /* Установите нужную ширину */ height: 20px; /* Установите нужную высоту */ position: relative; top: -5px; left: 1px; max-width: none; max-height: none; } /*#specific-element-2{ position: absolute; top: 1px; left: 22px; }*/ .large-title { font-size: 19px !important; /*font-style: italic;*/ font-family: 'Comic Sans MS', cursive; color: rgb(255, 255, 255); /*height: 32 !important;*/ padding: 6.5px; } .list-group-item-action{ position: relative; /* Важно для псевдоэлемента ::before */ background: rgb(243, 178, 117); border-color: rgb(242, 148, 61); transition: all 2s ease; /* Плавная смена цвета текста */ border-radius: 5px; overflow: hidden; } /* .list-group-item-action:hover { background-color: rgb(45, 95, 65); color: white; } */ .list-group-item-action:before { content: ""; position: absolute; top: 0; left: 0; width: 0; /* Изначальная ширина - 0, чтобы не было видно */ height: 100%; background: rgb(242, 148, 61); /* Цвет при наведении */ transition: width 0.3s ease; /* Плавное увеличение ширины */ z-index: 0; /* Псевдоэлемент находится под текстом */ } .list-group-item-action:hover::before { width: 100%; background-color: rgb(242, 148, 61); color: rgb(255, 255, 255); } .list-group-item-action > * { position: relative; z-index: 1; /* Текст выше по уровню чем анимация фона */ } .list-group-item-action:active, .list-group-item-action:focus { background-color: rgb(243, 178, 117); color: white; } .mb-1{ color: white; font-size: 12.5px; /*font-family: 'Roboto Condensed', sans-serif;*/ font-family: 'Gill Sans', sans-serif; font-weight: 550; text-transform: uppercase; padding: 0.5px 0.5px 0.5px; letter-spacing: 0.5px; } .small{ font-size: 14px; font-family: 'Roboto Condensed', sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0.5px; left: 28px; } body{ margin: 0; } *, *:before, *:after{ box-sizing: border-box; } /* Footer */ footer{ padding: 20px; /* background-color: rgb(44, 95, 64); */ background-color: rgb(140, 140, 140); margin-left: 250px; } .my-4{ margin-bottom: 0rem !important; } .text-muted { color: white !important; } .page{ display: flex; flex-direction: column; min-height: 100vh; /* background-color: rgb(70, 150, 101); */ } /* Content */ .content{ max-width: 100vw; margin-left: 250px; /* flex: 1 1 auto; */ flex-grow: 1; /* Контентная часть занимает оставшееся пространство */ display: flex; flex-direction: column; justify-content: start; align-items: center; padding: 0 20px 0 20px; background-color: white; width: calc(100% - 250px); } .content.collapsed, #header.collapsed, #footer.collapsed{ margin-left:0 !important; } .information { width: 90%; } .anchor-target::before { content: ""; display: block; height: 70px; /* Высота шапки */ margin-top: -60px; } .heading{ text-align: center; /*border-bottom: 3px solid rgb(70, 150, 101);*/ padding-bottom: 5px; } .principles{ background-color: white; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0 0, 0.2); padding: 15px 0 0 30px; border-left:5px solid rgb(243, 178, 117); } .text-with-image { overflow: auto; /* Обеспечивает правильное обтекание */ } .float-left { float: left; margin-right: 15px; width: 200px; } .float-right { float: right; margin-left: 15px; width: 200px; } .text-content { overflow: hidden; /* Скрывает лишний текст при обтекании */ } .centered-heading { display: flex; align-items: center; text-align: center; font-size: 40px; position: relative; margin: -8px 0; padding-top: 10px; padding-bottom: 15px; } .centered-heading:before, .centered-heading:after { content: ""; flex: 1; /* Занимает оставшееся пространство */ height: 2px; /* Высота линий */ background-color: rgb(243, 178, 117); } .centered-heading:before { margin-right: 10px; } .centered-heading:after { margin-left: 10px; } h1 { font-family: 'Comic Sans MS', cursive; color: rgb(243, 178, 117); } h2 { font-family: 'Arial', sans-serif; font-size: 27px; color: #333; transition: color 0.3s ease, transform 0.3s ease; text-align: left; margin: 20px 0; } h2:hover { color: rgb(243, 178, 117); transform: scale(1.05); } p { font-family: 'Arial', sans-serif; font-size: 17px; color: #141414; line-height: 1.5; margin: 15px 0; line-height: 1.7; text-indent: 5px; /* отступ первой строки */ } /* p::first-letter { font-family: 'Merriweather', serif; font-size: 24px; font-weight: bold; color: rgb(70, 150, 101); float: left; margin-right: 5px; } */ /* ??? */ .content { max-width: 100vw; margin-left: 250px; flex-grow: 1; padding: 20px; background: rgb(252, 254, 252); border: 0.5px solid #f1f0f0f3; /* Тонкая граница */ border-radius: 8px; color: #333; } .principles { background: rgb(232, 239, 232); } ul { color: rgb(0, 0, 0); font-size: 16.5px; line-height: 1.8; } ol { color: black; font-size: 17px; line-height: 1.7; } dt { color: rgb(243, 178, 117); font-size: 18px; font-family: 'Arial', sans-serif; text-decoration: underline; text-decoration-color: rgb(243, 178, 117); } dd, p1 { font-size: 17px; font-family: 'Arial', sans-serif; } a { color: rgb(243, 178, 117); text-decoration: underline; } a:hover { color: rgb(243, 178, 117);; /* Цвет при наведении */ } a:visited { color: rgba(45, 95, 65, 0.467); /* Цвет для посещенных ссылок */ } .highlight-list-item { position: relative; overflow: hidden; display: inline-block; /* Позволяет подсветке занимать только пространство текста */ border-radius: 8px; /* Закругление углов */ transition: background-color 0.4s ease; /* Плавный переход */ } .highlight-list-item:hover { background-color: rgba(70, 150, 101, 0.2); /* Легкое окрашивание при наведении */ } .highlight-list-item > * { position: relative; z-index: 1; /* Текст выше по уровню */ } .form-control{ border-radius: 0 !important; } .btn-primary{ background-color: rgb(243, 178, 117); border:rgb(243, 178, 117); border-radius: 0 !important; } .btn-primary:hover{ background-color: rgb(243, 178, 117);; } .btn-primary:active, .btn-primary:focus{ background-color: rgb(243, 178, 117) !important; } .btn-secondary{ background-color: rgb(140, 140, 140); border:rgb(140, 140, 140); border-radius: 0 !important; } .btn-secondary:hover{ background-color: rgb(112, 111, 111); } .btn-secondary:active, .btn-secondary:focus{ background-color: rgb(112, 111, 111) !important; } .videogpt{ display: flex; text-align: center; justify-content: center; } .carousel { width: 800px; height: 400px; overflow: hidden; margin: 50px auto; position: relative; } .carousel-images { display: flex; width: 100%; animation: slide 30s infinite; } .carousel-images img { width: 100%; height: 100%; object-fit: cover; } @keyframes slide { 0% { transform: translateX(0); } 25% { transform: translateX(-100%); } 50% { transform: translateX(0); } } .parallax { /* Общие стили для всех параллакс-секций */ background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; height: 460px; /* Регулируйте высоту по необходимости */ position: relative; } /* Параллакс перед Header */ .parallax-top { background-image: url("/static/image/Parallax.jpg"); } .parallax-bottom{ background-image: url("/static/image/Parallax.jpg"); } @media (max-width: 768px) { .parallax { background-attachment: scroll; } }