/* 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; } .sidebar-alt { border-right: 1px solid; border-color: inherit; border-left: 0; } .sidebar-title { border-bottom: 1px solid; border-color: inherit; box-sizing: border-box; font-family: $typography-heading; font-size: 18px; font-weight: 500; height: 60px; letter-spacing: 5px; line-height: 1; padding: 13px 0; text-align: center; text-transform: uppercase; vertical-align: middle; } .sidebar-title i { color: $color-primary; font-size: 32px; letter-spacing: 0; margin: 0 10px 0 5px; vertical-align: middle; } .sidebar-header { border-bottom: 1px solid; border-color: inherit; font-size: 12px; line-height: 1; padding: 10px; } .sidebar-header > h1, .sidebar-header > h2, .sidebar-header > h3, .sidebar-header > h4, .sidebar-header > h5, .sidebar-header > h6 { font-size: 11px; font-weight: normal; letter-spacing: 1px; line-height: 1; margin: 0; padding: 0; text-transform: uppercase; } .sidebar-content { border-color: inherit; box-sizing: border-box; height: calc(100% - 30px); @include overflow-scrolling(touch); overflow-x: hidden; overflow-y: auto; padding: 10px; } .sidebar-content-with-title { height: calc(100% - 91px); } .sidebar-content-unpadded { padding: 0; } .sidebar-scrollable { border-bottom: 1px solid; border-color: inherit; height: calc(50% - 50px); } .sidebar-scrollable-with-title { height: calc(50% - 91px); } /* # Colors ================================================== */ .sidebar-dark { background: $color-black; border-color: $color-dark-black !important; color: $color-white; } .sidebar-light { background: $color-light-haze; border-color: $color-dark-haze !important; } /* # 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 > h1, .sidebar-header > h2, .sidebar-header > h3, .sidebar-header > h4, .sidebar-header > h5, .sidebar-header > h6 { letter-spacing: 0.5px; } }