/* Header */ @include keyframes('reveal-header') { 0% { top: -5em; } 100% { top: 0; } } #header { background: _palette(header, bg); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.075); color: _palette(header, fg); cursor: default; font-size: 0.8em; left: 0; padding: 1em 1.5em; position: fixed; top: 0; width: 100%; z-index: 10000; h1 { font-weight: 900; margin: 0; span { font-weight: 300; } } nav { letter-spacing: 0.075em; position: absolute; right: 1.5em; text-transform: uppercase; top: 0.75em; ul { list-style: none; padding-left: 0; li { display: inline-block; margin-left: 1.5em; padding-left: 0; > ul { display: none; } a { border: solid 1px transparent; color: inherit; display: inline-block; line-height: 1em; padding: 0.6em 0.75em; text-decoration: none; } input[type="button"], input[type="submit"], input[type="reset"], button, .button { font-size: 1em; min-width: 0; width: auto; } &.submenu { > a { @include icon; &:before { content: '\f107'; margin-right: 0.65em; } } } &.active, &:hover { > a { @include vendor('transition', 'all 0.2s ease-in-out'); background: rgba(188,202,206,0.15); } } &.current { > a { font-weight: 900; } } } } } &.reveal { @include vendor('animation', 'reveal-header 0.5s'); } &.alt { @include vendor('animation', 'none'); background: _palette(header, alt-bg); box-shadow: none; color: _palette(header, alt-fg); padding: 2em 2.5em; position: absolute; nav { right: 2.5em; top: 1.75em; ul { li { &.active, &:hover { > a { border: solid 1px; } } } } } } }