.glossary { &:not(.sidebar-closed) { main { margin-left: 250px; width: calc(100vw - 250px); } .page__header-wrap, .page__content { .inner-wrap { margin-left: 1rem; max-width: initial; } } .component--glossary-toc-toggle { left: calc(250px - 25px); } } &.sidebar-closed { .component--glossary-toc { left: -250px; } .component--glossary-toc-toggle { left: 0; } } } .component--glossary-toc { width: 250px; height: calc(100vh - 4rem); top: 4rem; left: 0; background-color: $white; border-right: 1px solid rgba($gray, 0.3); font-size: 0.8rem !important; overflow-x: hidden; overflow-y: auto; padding-top: 1rem !important; position: fixed !important; z-index: 1; li:last-of-type { margin-bottom: 1rem; } } .component--glossary-toc-toggle { width: 25px; height: 104px; font-size: 0.7rem; position: absolute; text-orientation: upright; text-transform: uppercase; top: 4rem; writing-mode: vertical-rl; z-index: 1; }