/* Table of Contents ================================================== # Sidebar # Colors # Media Queries */ /* # Sidebar ================================================== */ .sidebar { background: $color-white; border-left: 1px solid; border-color: $color-haze !important; box-sizing: border-box; color: $color-black; display: block; max-height: 100%; height: 100%; max-width: 280px; width: 280px; z-index: 1030; } .sidebar-alt { border-right: 1px solid; border-color: inherit; border-left: 0; } .sidebar-header { border-bottom: 1px solid; border-color: inherit; box-sizing: border-box; display: table; font-size: 13px; line-height: 1; table-layout: fixed; vertical-align: middle; max-width: 100%; width: 100%; } .sidebar-header h1, .sidebar-header h2, .sidebar-header h3, .sidebar-header h4, .sidebar-header h5, .sidebar-header h6, .sidebar-header-btn { box-sizing: border-box; display: table-cell; line-height: 1; vertical-align: middle; } .sidebar-header h1, .sidebar-header h2, .sidebar-header h3, .sidebar-header h4, .sidebar-header h5, .sidebar-header h6 { font-size: 13px; font-weight: bold; margin: 0; padding: 10px 10px 9px 10px; } .sidebar-header-btn { border-left: 1px solid; border-color: inherit; color: $color-primary; font-size: 18px; padding-top: 2px; text-align: center; width: 33px; } .sidebar-header-btn:hover, .sidebar-header-btn.active, .sidebar-header-btn:active, .sidebar-header-btn:focus { background: $color-light-haze; } .sidebar-content { border-color: inherit; box-sizing: border-box; height: 100%; @include overflow-scrolling(touch); overflow-x: hidden; overflow-y: auto; padding: 10px; } .sidebar-header + .sidebar-content { height: calc(100% - 32px); } .sidebar-content-unpadded { padding: 0; } .sidebar-scrollable { border-bottom: 1px solid; border-color: inherit; height: calc(50% - 64px); } /* # Colors ================================================== */ .sidebar-dark { background: $color-black; border-color: $color-dark-black !important; color: $color-white; } .sidebar-dark .sidebar-header-btn:hover, .sidebar-dark .sidebar-header-btn.active, .sidebar-dark .sidebar-header-btn:active, .sidebar-dark .sidebar-header-btn:focus, .sidebar-dark .sidebar-navbar > a { background: $color-light-black; } .sidebar-light { background: lighten($color-light-haze, 2%); border-color: $color-dark-haze !important; } .sidebar-light .sidebar-header-btn:hover, .sidebar-light .sidebar-header-btn.active, .sidebar-light .sidebar-header-btn:active, .sidebar-light .sidebar-header-btn:focus, .sidebar-light .sidebar-navbar > a { background: $color-white; } /* # Media Queries ================================================== */ @media only screen and (max-width: 1365px) { .sidebar { max-width: 250px; width: 250px; } } @media only screen and (max-width: 1199px) { .sidebar { max-width: 220px; width: 220px; } } @media only screen and (max-width: 959px) { .sidebar { max-width: 200px; width: 200px; } } @media only screen and (max-width: 767px) { .sidebar { display: none; } } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx) { .sidebar, .sidebar-header, .sidebar-header-btn, .sidebar-scrollable { border-width: 0.5px; } }