65 lines
1.2 KiB
CSS
65 lines
1.2 KiB
CSS
|
#right-panel {
|
||
|
order: 3;
|
||
|
}
|
||
|
|
||
|
.arrow {
|
||
|
border: solid var(--fg);
|
||
|
border-width: 0 3px 3px 0;
|
||
|
display: none;
|
||
|
padding: 0.3em;
|
||
|
}
|
||
|
.right {
|
||
|
transform: rotate(135deg);
|
||
|
-webkit-transform: rotate(135deg);
|
||
|
}
|
||
|
|
||
|
#right-container {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
width: var(--nav-size);
|
||
|
height: calc(100vh - (3 * var(--unit-size)));
|
||
|
position: fixed;
|
||
|
background-color: var(--bg1);
|
||
|
margin-top: calc(3 * var(--main-size));
|
||
|
z-index: 0;
|
||
|
border-left: solid 1px var(--accent-low);
|
||
|
}
|
||
|
|
||
|
input.larger {
|
||
|
width: var(--main-size);
|
||
|
height: calc( 2 * var(--main-size));
|
||
|
}
|
||
|
|
||
|
/* untoggled */
|
||
|
#right-container {
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
transition: 0.3s ease;
|
||
|
}
|
||
|
.arrow label {
|
||
|
display: block;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
#toggle-right {
|
||
|
position: absolute;
|
||
|
z-index: 2;
|
||
|
cursor: pointer;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
#toggle-right:not(:checked)+.arrow {
|
||
|
transform: rotate(135deg);
|
||
|
transition: 0.3s ease;
|
||
|
}
|
||
|
|
||
|
/* toggled */
|
||
|
#toggle-right:checked~#right-container {
|
||
|
display: flex;
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
transition: 0.3s ease;
|
||
|
}
|
||
|
#toggle-right:checked+.arrow {
|
||
|
transform: rotate(-45deg);
|
||
|
transition: 0.3s ease;
|
||
|
}
|