gnu-social/public/assets/css/right/right_mid.css
2021-09-14 13:12:54 +01:00

64 lines
1.2 KiB
CSS

/* RIGHT PANEL */
#right-panel {
order: 3;
}
.arrow {
border: solid var(--bg1);
border-width: 0 3px 3px 0;
display: inline-block;
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));
border: solid 1px var(--accent-low);
}
input.larger {
width: var(--main-size);
height: calc( 2 * var(--main-size));
}
/* untoggled */
#right-container {
right: -100%;
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;
}