.icon-right { position: fixed; top: 0; right: 0; padding: calc(3 * var(--unit-size)); width: var(--main-size); height: auto; fill: var(--white); stroke-width: 0; vertical-align: middle; } #right-container > div { opacity: 0; } #right-container[open] > div { opacity: 100%; } #right-container[open] { order: 3; border-left: solid 1px var(--bg2); } #right-panel { display: flex; flex-direction: column; }