// ----------------------------------------------------------------------------- // This file contains all styles related to the header of the site/application. // ----------------------------------------------------------------------------- header { // background: #292929; position: fixed; width: 100%; height: 64px; z-index: 10; transition: background 0.2s ease; .wrapper { width: 80%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; img { width: 64px; } nav { .menu { display: none; flex-direction: column; .bar { width: 30px; height: 2px; background: white; &:nth-child(1) { align-self: flex-end; width: 18px; } &:nth-child(2) { margin: 6px 0; } } } .overlay { display: none; // animation-delay: 0.3s; animation-duration: 0.4s; } .links { width: 600px; display: flex; justify-content: space-between; align-items: center; .close { display: none; } a, a:visited, a:active { font-size: 10pt; color: white; text-transform: uppercase; font-weight: 500; transition: color 0.3s linear; &.active { border-bottom: 4px solid $brand-color; } &:hover { color: $brand-color; } } } .links_mobile { display: none; animation-duration: 0.4s; } } } &.scroll { background: #292929; } } @media only screen and (max-width: 960px) { header { height: 64px; .wrapper { img { width: 64px; } nav { .menu { display: flex; cursor: pointer; } .overlay { position: absolute; top: 0; left: 0; width: calc(100vw - 20rem); height: 100vh; background: rgba(black, 0.8); } .links { display: none; } .links_mobile { position: absolute; top: 0; right: 0; width: 20rem; height: 100vh; background: lighten(black, 20%); flex-direction: column; justify-content: center; align-items: center; .close { position: absolute; top: 2rem; display: block; cursor: pointer; } a, a:active, a:visited { display: block; margin: .5rem 0; padding: 1rem 0; font-size: 1rem; color: white; text-transform: uppercase; font-weight: 500; text-align: center; &.active { width: 100%; background: $brand-color; border: none; } } } } } } }