qwc2
Version:
QGIS Web Client
106 lines (90 loc) • 2.37 kB
CSS
div.sidebar {
position: absolute;
top: var(--topbar-height);
max-height: calc(100vh - var(--topbar-height) - var(--bottombar-height));
max-height: calc(var(--vh, 1vh) * 100 - var(--topbar-height) - var(--bottombar-height));
background-color: var(--container-bg-color);
transition: transform 0.25s;
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.75);
display: flex;
flex-direction: column;
max-width: 100vw;
}
div.sidebar-right {
right: 0;
}
div.sidebar-left {
left: 0;
}
div.sidebar-right:not(.sidebar-open) {
transform: translateX(100%) translateX(8px);
pointer-events: none;
}
div.sidebar-left:not(.sidebar-open) {
transform: translateX(-100%) translateX(-8px);
pointer-events: none;
}
div.sidebar-resize-handle {
touch-action: none;
position: absolute;
width: 6px;
top: 0;
bottom: 0;
cursor: ew-resize;
z-index: 2;
}
div.sidebar-resize-handle-left {
right: -3px;
}
div.sidebar-resize-handle-right {
left: -3px;
}
div.sidebar-resize-handle-bottom {
touch-action: none;
position: absolute;
height: 6px;
left: 0;
right: 0;
bottom: -3px;
cursor: ns-resize;
z-index: 2;
}
div.sidebar div.sidebar-titlebar {
color: var(--titlebar-text-color);
background-color: var(--titlebar-bg-color);
height: 2.5em;
flex: 0 0 auto;
display: flex;
align-items: center;
}
div.sidebar span.sidebar-titlebar-icon {
flex: 0 0 auto;
margin: 0 0.25em;
}
div.sidebar span.sidebar-titlebar-title {
font-weight: bold;
flex: 0 0 auto;
margin-right: 0.25em;
}
div.sidebar span.sidebar-titlebar-spacer {
flex: 1 1 auto;
}
div.sidebar div.sidebar-titlebar span.sidebar-title {
font-weight: bold;
display: inline-flex;
width: calc(100% - 3em);
align-items: center;
}
div.sidebar span.sidebar-titlebar-closeicon {
flex: 0 0 auto;
margin: 0 0.25em;
font-size: large;
}
div.sidebar div.sidebar-body {
overflow-y: auto;
overflow-x: hidden;
/* titlebar: 2.5em */
max-height: calc(100vh - 2.5em - var(--topbar-height) - var(--bottombar-height)); /* viewport - sidebar_titlebar - topbar - bottombar*/
max-height: calc(var(--vh, 1vh) * 100 - 2.5em - var(--topbar-height) - var(--bottombar-height)); /* viewport - sidebar_titlebar - topbar - bottombar*/
flex: 1 1 auto;
}