@import "src/main/scss/index.scss"; .page-summary { background: $white; border: 1px solid $grey-border; position: fixed; top: 25%; max-height: 70vh; right: -2px; width: 250px; z-index: 8; transition: width .2s; &.hidden { width: 3em; writing-mode: vertical-rl; text-orientation: mixed; .content-wrapper { h4 { margin: 0; padding: 8px; } } } .content-wrapper { padding: 0.5em 0 1em 0; letter-spacing: 0.2px; h4 { margin: 0 2em; font-weight: 600; } ul { list-style-type: none; width: 100%; padding: 0; margin: 1em 0; overflow-x: hidden; overflow-y: auto; max-height: 60vh; li { width: 100%; padding: 4px 0; &:hover { background: $list-background-hover; } &>a { margin: 0 2em; cursor: pointer; } &.selected { border-left: 4px solid $hover-link-color; } } } } } @media screen and (max-width: 759px){ /* hide it on smaller screens since it looks super weird when displayed with hidden menu */ .page-summary { display: none; } }