ui: make sidepanel resizable (#230)

This commit is contained in:
jean-emmanuel 2018-03-14 15:57:20 +01:00
parent e711cdb11c
commit 847a766047
4 changed files with 59 additions and 0 deletions

View file

@ -14,6 +14,7 @@ body {
padding:2rem;
opacity: 0;
transition: opacity .1s;
min-width: 45rem;
&.show {
opacity: 1;
}

View file

@ -3,6 +3,8 @@
position:absolute;
z-index: 999999;
width:var(--sidepanel-size);
max-width: calc(100% - 45rem);
min-width: 300rem;
border-top: 2rem solid var(--color-bg);
border-bottom: 2rem solid var(--color-bg);
border-right: 2rem solid var(--color-bg);
@ -124,3 +126,29 @@
}
}
#sidepanel-handle {
position: absolute;
top: 12rem!important;
left: 10rem!important;
height: auto;
width: auto;
background: transparent;
color: var(--color-bg);
opacity: 0.5;
cursor: col-resize;
font-size: 20rem;
&:after {
content:none;
}
i {
transform: rotate(90deg);
pointer-events: none;
font-size:13rem;
display: block
}
}
#sidepanel.resizing {
transition: none;
}