qwc2
Version:
QGIS Web Client
108 lines (92 loc) • 2.1 kB
CSS
div.sidebar {
position: absolute;
top: 0;
max-height: 100%;
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: 100%;
}
div.sidebar-right {
right: 0;
}
div.sidebar-left {
left: 0;
}
div.sidebar-right:not(.sidebar-open) {
transform: translateX(100%) translateX(8px);
pointer-events: none;
visibility: hidden;
transition: transform 0.25s, visibility 0s linear 0.25s;
}
div.sidebar-left:not(.sidebar-open) {
transform: translateX(-100%) translateX(-8px);
pointer-events: none;
visibility: hidden;
transition: transform 0.25s, visibility 0s linear 0.25s;
}
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);
flex: 0 0 2.5em;
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;
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
}