body { background-color: #c3dbd7; } .content-area { position: relative; weight: 100%; } @media (max-width: calc(250px * 3 + (20px * (3 - 1)) + 40px)) { /* Условие для одной карточки */ .top_panel { display: none !important; } .bottom_panel { display: block !important; } body { padding-bottom: 60px; } } .top_panel { background-color: #e3f2fd; height: 60px; z-index: 15; border-bottom: 1px solid #707070; } .top_panel .container-fluid .navbar-brand svg { position: relative; top: 4px; } .top_panel .container-fluid .navbar-brand .link { cursor: pointer; position: absolute; top: 0; left: 0; width: 90px; height: 100%; z-index: 10; } .top_panel .navbar-nav .nav-item .nav-link { position: relative; } .top_panel .navbar-nav .nav-item .active svg g path { stroke-width: 2.2; } .top_panel .navbar-nav .nav-item .active svg path { stroke-width: 2.5; } .top_panel .navbar-nav .nav-item .active .link-icon-small g path { stroke-width: 6.0; } .top_panel .navbar-nav .nav-item .active .nav-link-name { font-weight: 600 !important; } .top_panel .navbar-nav .nav-item .nav-link .nav-link-name { text-decoration: none; color: #000000; font-weight: 400; font-size: 14px; } .top_panel .navbar-nav .nav-item .nav-link .nav-link-svg { position: relative; top: -14px; } .top_panel .navbar-nav .nav-item .nav-link .link { cursor: pointer; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; } .bottom_panel { background-color: #e3f2fd; position: fixed; bottom: 0; width: 100%; display: none; height: 60px; z-index: 15; border-top: 1px solid #707070; } .bottom_panel .navbar-nav { display: flex; justify-content: space-between; width: 100%; } .bottom_panel .navbar-nav .nav-item { flex: 1; text-align: center; } .bottom_panel .navbar-nav .nav-item .nav-link { position: relative; } .bottom_panel .navbar-nav .nav-item .active svg g path { stroke-width: 2.2; } .bottom_panel .navbar-nav .nav-item .active svg path { stroke-width: 2.5; } .bottom_panel .navbar-nav .nav-item .active .link-icon-small g path { stroke-width: 6.0; } .bottom_panel .navbar-nav .nav-item .active .nav-link-name { font-weight: 600 !important; } .bottom_panel .navbar-nav .nav-item .nav-link .nav-link-name { text-decoration: none; color: #000000; font-weight: 400; font-size: 9px; position: relative; top: -8px; } .bottom_panel .navbar-nav .nav-item .nav-link .nav-link-svg { position: relative; top: -9px; } .bottom_panel .navbar-nav .nav-item .nav-link .link { cursor: pointer; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; } @media (max-width: calc(250px * 3 + (20px * (3 - 1)) + 40px)) { /* Условие для одной карточки */ .sidebar-data { /*top: -60px !important;*/ } } @media (min-width: calc(250px * 3 + (20px * (3 - 1)) + 40px)) { /* Условие для одной карточки */ .sidebar-data { /*top: 60px !important;*/ position: fixed; top: 60px !important; } } .sidebar { position: fixed; top: 0; right: -100%; /* Скрываем панель за пределами экрана справа */ width: 100%; max-width: 450px; /* Максимальная ширина */ height: 100%; background-color: #e7f0e6; transition: right 0.4s ease; /* Изменяем left на right */ z-index: 10; } .data-sidebar { height: 100%; width: 100%; position: fixed; overflow-y: auto; } body.no-scroll { overflow: hidden; } .sidebar.active { right: 0; /* Показываем панель */ box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); /* Изменяем направление тени */ } .overlay { display: none; /* Скрываем оверлей по умолчанию */ position: fixed; /* Фиксированное позиционирование */ top: 50%; /* Сдвигаем элемент на 50% вниз от верхней границы */ left: 50%; /* Сдвигаем элемент на 50% вправо от левой границы */ width: 100vw; /* Ширина 100% от ширины окна */ height: 100vh; /* Высота 100% от высоты окна */ transform: translate(-50%, -50%); /* Сдвигаем элемент обратно на половину его ширины и высоты */ background-color: rgba(0, 0, 0, 0.5); /* Пример фона с прозрачностью */ color: white; /* Цвет текста */ justify-content: center; /* Центрируем по горизонтали */ align-items: center; /* Центрируем по вертикали */ background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */ z-index: 9; } .overlay.active { display: block; /* Показываем оверлей */ } .sidebar .container { position: absolute; /* Позволяет разместить элемент в любом месте */ top: 10px; /* Располагает элемент вверху */ left: 0; /* Располагает элемент слева */ } .sidebar .container div { position: relative; /* Позволяет позиционировать дочерние элементы относительно этого контейнера */ width: 23px; /* Ширина контейнера */ height: 23px; /* Высота контейнера */ } .sidebar .container svg { width: 23px; /* Ширина SVG */ height: 23px; /* Высота SVG */ } #closeSidebar { position: absolute; /* Позволяет перекрывать другие элементы */ top: 0; /* Располагает элемент вверху */ left: 0; /* Располагает элемент слева */ width: 23px; /* Ширина ссылки */ height: 23px; /* Высота ссылки */ background-color: transparent; /* Прозрачный фон, если нужно */ cursor: pointer; /* Указывает, что это кликабельный элемент */ } .data-sidebar-button { font-size: 18px; font-weight: 600; padding: 0; } .data-sidebar-text { font-size: 16px; padding-left: 20px; } .text-centre { text-align: center; }