/* Table of Contents ================================================== # Sidebar # Colors # Media Queries */ /* # Sidebar ================================================== */ .sidebar { background: $color-white; border-left: 1px solid $color-haze; box-sizing: border-box; height: 100%; min-width: 280px; position: fixed; width: 280px; } .sidebar-alt { border-right: 1px solid $color-haze; border-left: 0; } .sidebar-header { border-bottom: 1px solid $color-haze; font-size: 12px; line-height: 1; padding: 10px 20px 8px 10px; } .sidebar-alt > .sidebar-header { padding-left: 20px; padding-right: 10px; } .sidebar-header > h6 { font-size: 11px; font-weight: normal; letter-spacing: 1px; line-height: 1; text-transform: uppercase; } .sidebar-content { height: calc(100% - 50px); @include overflow-scrolling(touch); overflow-x: hidden; overflow-y: auto; padding: 10px 20px 10px 10px; } .sidebar-alt > .sidebar-content { padding-right: 10px; padding-left: 20px; } .sidebar-scrollable { border-bottom: 1px solid $color-light-haze; height: auto; max-height: calc(50% - 50px); @include overflow-scrolling(touch); overflow-y: auto; } /* # Colors ================================================== */ .sidebar-dark { background: $color-black; } .sidebar-dark, .sidebar-dark > .sidebar-header, .sidebar-dark > .sidebar-scrollable { border-color: $color-dark-black; } .sidebar-dark > .sidebar-header > h6 { color: $color-white; } .sidebar-light { background: $color-light-haze; } .sidebar-light, .sidebar-light > .sidebar-header, .sidebar-light > .sidebar-scrollable { border-color: $color-dark-haze; } /* # Media Queries ================================================== */ @media only screen and (max-width: 1365px) { .sidebar { min-width: 250px; width: 250px; } } @media only screen and (max-width: 1199px) { .sidebar { min-width: 220px; width: 220px; } } @media only screen and (max-width: 959px) { .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-scrollable { border-width: 0.5px; } .sidebar-header > h6 { letter-spacing: 0.5px; } }