/* Table of Contents ================================================== # Aside # Colors # Media Queries */ /* # Aside ================================================== */ .aside { background: $color-white; background-clip: padding-box; box-shadow: 0 0 3px transparentize($color-dark-black, 0.7); display: none; height: 100%; left: initial; margin-left: 0; outline: 0; position: fixed; right: 0; top: 0; width: 560px; z-index: 1050; } .aside > form { height: 100%;} .aside-alt { left: 0; right: initial; } .aside.fade { right: -100%; @include transition((opacity 0.2s linear, right 0.4s ease-in-out)); } .aside-alt.fade { left: -100%; right: 0; @include transition((opacity 0.2s linear, left 0.4s ease-in-out)); } .aside.fade.in { right: 0; } .aside-alt.fade.in { left: 0; right: initial; } .aside-header { border-bottom: 1px solid $color-haze; padding: 21px 15px 19px 15px; } .aside-header > h3 { font-size: 14px; letter-spacing: 1px; line-height: 1; margin: 0; padding: 0; text-align: center; text-transform: uppercase; } .aside-body { display: block; height: calc(100% - 142px); overflow-y: auto; padding: 15px 18px; } .aside-body .container { width: 100%; } .aside-body p:last-child { margin-bottom: 0; } .aside-footer { border-top: 1px solid $color-haze; } .aside-footer:after { clear: both; } .aside-footer-btn { @include appearance(none); background: $color-transparent; border: 0; border-right: 1px solid $color-haze; box-sizing: border-box; color: inherit; cursor: pointer; float: left; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 11px; font-weight: bold; line-height: 1; margin: 0; padding: 22px 0 23px 0; text-align: center; text-indent: 0; text-rendering: geometricPrecision; text-transform: uppercase; touch-action: manipulation; vertical-align: middle; width: 100%; } .aside-footer-btn:last-child { border-right: 0; } .aside-footer-btn[disabled] { color: $color-gray; cursor: not-allowed; } .aside-footer-btn-group > .aside-footer-btn { width: 50%; } /* # Colors ================================================== */ .aside-dark { background: $color-black; color: $color-white; } .aside-light { background: $color-light-haze; } .aside-dark .aside-header, .aside-dark .aside-footer, .aside-dark .aside-footer-btn { border-color: $color-dark-black; } .aside-light .aside-header, .aside-light .aside-footer, .aside-light .aside-footer-btn { border-color: $color-dark-haze; } /* # Media Queries ================================================== */ @media only screen and (max-width: 767px) { .aside { width: 300px; } } @media only screen and (min-width: 480px) and (max-width: 767px) { .aside { width: 460px; } } @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) { .aside-header > h3 { letter-spacing: 0.5px; } }