// Table of Contents // ================================================== // Header // Media Queries // scss-lint:disable NestingDepth // Header // ================================================== .header { background: color(transparent); border-bottom: 1px solid color(transparent); box-sizing: border-box; color: color(white); height: 76px; line-height: 1; padding: 18px 0 0; &.absolute, &.fixed { z-index: 1040; } &.absolute { position: absolute; width: inherit; } &.fixed { left: 0; position: fixed; right: 0; top: 0; } } .header-brand, .header-search, .header-nav, .header-user, .header-toggle { box-sizing: border-box; float: left; height: 40px; } .header-brand { font-size: 44px; line-height: 1; margin-top: -2px; img, svg { display: inline-block; height: 44px; } img { border-radius: border-radius(n); margin: 0 auto; } + .header-search, + .header-nav { margin-left: 20px; &.pull-right { margin-left: 0; margin-right: 20px; } } } .header-brand-label { margin: 8px 0 0 10px; } .header-search { margin-top: -2.5px; width: 260px; input { margin-bottom: 0; } + .header-nav { margin-left: 20px; &.pull-right { margin-left: 0; margin-right: 20px; } } } .header-nav { list-style: none; margin-top: 11px; padding: 0; > li { float: left; margin-right: 20px; &:last-child { margin-right: 0; } &.btn-group + .btn-group { margin-left: 0; } &.header-nav-icon { font-size: text-size(l); margin-top: -3px; .indicator { background: color(red); border-radius: border-radius(xl); height: 5px; margin-left: 17px; position: absolute; width: 5px; } } .btn { margin-top: -13.5px; } } } .header-user { float: right; img { height: 40px; display: inline-block; + i::before { line-height: 1; vertical-align: middle; } } .img-avatar { margin-top: -4px; } } // Media Queries // ================================================== @media only screen and (min-width: breakpoint-min-width(s)) and (max-width: breakpoint-max-width(b)) { .header-search { width: 220px; } } @media only screen and (max-width: breakpoint-max-width(s)) { .header { height: 54px; padding: 12px 0; } .header-brand { font-size: 26px; img, svg { height: 26px; } } .header-brand-label { margin-top: 3px; } .header-nav { margin-top: 3px; > li { &.header-nav-icon { font-size: 30px; } } } }