Files
WhiteNightsAdminPanel/src/client/src/styles/TouchableLayout.css
2026-04-24 13:17:27 +03:00

79 lines
1.4 KiB
CSS

.scrollable-container {
display: flex;
flex-direction: column;
align-items: flex-start;
width: auto;
max-width: 100%;
box-sizing: border-box;
}
.scrollable-viewport {
display: flex;
align-items: stretch;
width: 100%;
position: relative;
}
.scrollable {
flex: 1;
min-width: 0;
min-height: 0; /* позволяет flex-элементу сжиматься и создавать overflow для скролла */
overflow-y: auto;
overflow-x: hidden;
touch-action: none;
cursor: grab;
/* Скрыть нативный скроллбар */
scrollbar-width: none;
-ms-overflow-style: none;
}
.scrollable::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
.scrollable:active {
cursor: grabbing;
}
.custom-scrollbar-track {
width: 5px;
flex-shrink: 0;
position: relative;
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
}
.custom-scrollbar-thumb {
position: absolute;
right: 0;
width: 5px;
min-height: 60px;
background: #fff;
border-radius: 3px;
pointer-events: auto;
cursor: grab;
touch-action: none;
}
.custom-scrollbar-thumb:active {
cursor: grabbing;
}
.side-menu-sights-block .scrollable-viewport {
height: calc(92%);
}
.side-menu-sights-block .scrollable {
height: 100%;
}
.list-of-sights-content .scrollable-viewport {
height: 700px;
}
.list-of-sights-content .scrollable {
height: 100%;
}