/* Table of Contents ================================================== # Trunk # Colors # Media Queries */ /* # Trunk ================================================== */ .trunk { background: $color-white; border-bottom: 1px solid $color-haze; left: 0; position: fixed; right: 0; top: 50px; z-index: 1040; } .trunk-buffer { padding: 30px 0; } .trunk-nav, .trunk-user { list-style-type: none; margin: 0; padding: 0; } .trunk-user { margin: 10px auto 0 auto; padding-top: 10px; text-align: center; } .trunk-nav > li, .trunk-user > li { font-size: 11px; font-weight: 500; line-height: 1; margin: 5px; } .trunk-nav > li { float: left; width: calc(33.333333% - 10px); } .trunk-nav > li.title, .trunk-nav > li.divider { border-top: 1px solid $color-haze; box-sizing: border-box; display: block; float: none; margin: 0 0 0 5px; overflow: hidden; width: calc(100% - 10px); } .trunk-nav > li.title { border-bottom: 1px solid $color-haze; color: $color-primary; font-size: 12px; letter-spacing: 1px; padding: 8px 10px; text-transform: uppercase; } .trunk-nav > li.divider { height: 0; } .trunk-user > li { display: inline-block; margin-bottom: 0; width: calc(45% - 30px); } .trunk-nav > li > a, .trunk-user > li > a { @include appearance(none); border-radius: 2px; color: $color-dark-gray; cursor: pointer; display: block; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 11px; font-weight: 500; letter-spacing: 1px; padding: 11px 0 10px 0; text-align: center; text-decoration: none; text-rendering: geometricPrecision; text-transform: uppercase; @include transition(all 0.3s linear); vertical-align: middle; white-space: nowrap; } .trunk-nav > li > a { border: 1px solid $color-haze; } .trunk-user > li > a { padding: 9px 0 8px 0; } .trunk-nav > li > a:hover, .trunk-nav > li > a:active, .trunk-nav > li > a.active, .trunk-nav > li > a:focus, .trunk-user > li > a:hover, .trunk-user > li > a:active, .trunk-user > li > a.active, .trunk-user > li > a:focus { border-color: $color-primary; color: $color-primary; } .trunk-user > li.trunk-user-placeholder, .trunk-user > li.trunk-user-placeholder > img, { background: $color-gray; border-radius: 500px; color: $color-white; display: inline-block; height: 40px; margin: 0; text-align: center; width: 40px; vertical-align: middle; } .trunk-user > li.trunk-user-placeholder > i { font-size: 26px; line-height: 42px; } /* # Colors ================================================== */ .trunk-dark { background: $color-black; border-color: $color-dark-black; } .trunk-dark .trunk-nav > li.title, .trunk-dark .trunk-nav > li > a, .trunk-dark .trunk-user > li > a { color: $color-gray; } .trunk-dark .trunk-nav > li.title, .trunk-dark .trunk-nav > li.divider, .trunk-dark .trunk-nav > li > a { border-color: $color-gray; } .trunk-dark .trunk-nav > li > a:hover, .trunk-dark .trunk-nav > li > a:active, .trunk-dark .trunk-nav > li > a.active, .trunk-dark .trunk-nav > li > a:focus, .trunk-dark .trunk-user > li > a:hover, .trunk-dark .trunk-user > li > a:active, .trunk-dark .trunk-user > li > a.active, .trunk-dark .trunk-user > li > a:focus { border-color: $color-primary; color: $color-primary; } .trunk-light { background: $color-light-haze; border-color: $color-dark-haze; } .trunk-light .trunk-nav > li.title, .trunk-light .trunk-nav > li.divider, .trunk-light .trunk-nav > li > a { border-color: $color-dark-haze; } .trunk-light .trunk-nav > li > a:hover, .trunk-light .trunk-nav > li > a:active, .trunk-light .trunk-nav > li > a.active, .trunk-light .trunk-nav > li > a:focus, .trunk-light .trunk-user > li > a:hover, .trunk-light .trunk-user > li > a:active, .trunk-light .trunk-user > li > a.active, .trunk-light .trunk-user > li > a:focus { border-color: $color-primary; } /* # Media Queries ================================================== */ @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) { .trunk, .trunk-nav > li.title, .trunk-nav > li.divider, .trunk-nav > li > a { border-width: 0.5px; } .trunk-nav > li.title, .trunk-nav > li > a, .trunk-user > li > a { letter-spacing: 0.5px; } }