// Table of Contents // ================================================== // Sidebar // scss-lint:disable NestingDepth // Sidebar // ================================================== .sidebar { border-right-style: solid; border-right-width: 1px; box-sizing: border-box; display: block; height: 100%; overflow-x: hidden; overflow-y: auto; width: 100%; &.dark { .sidebar-subtitle { background: color(light-slate); color: color(white); } .sidebar-nav { > ul { background: color(light-slate); } } } &.light { .sidebar-subtitle { background: color(haze); } .sidebar-nav { > ul { background: color(white); } } } &.right { border-left-style: solid; border-left-width: 1px; border-right: 0; } } .sidebar-header, .sidebar-footer { padding: 30px 0; text-align: center; } .sidebar-body, .sidebar-subtitle { padding: 0 calc(15px + env(safe-area-inset-right) + env(safe-area-inset-left)); } .sidebar-subtitle { background: color(light-haze); border-bottom: 1px solid; border-bottom-color: inherit; font-size: text-size(xs); font-weight: text-weight(semibold); } .sidebar-nav { > a { border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; display: block; padding: 20px calc(15px + env(safe-area-inset-right) + env(safe-area-inset-left)); width: 100%; } > ul { background: color(light-haze); border-bottom-color: inherit; border-bottom-style: solid; border-bottom-width: 1px; list-style: none; padding: 15px calc(30px + env(safe-area-inset-right) + env(safe-area-inset-left)); a { display: block; padding: 5px; } } }