@mixin header_link($color, $hover-color) { a { color: $color; text-decoration: none; &:visited { color: $color; } &:hover { color: $hover-color; } } } header { background-color: var(--crust); margin-bottom: 3rem; } nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; flex-direction: row; max-width: var(--main-width); margin: 0 auto; .home-title { flex: 3 auto; font-size: 2.5rem; font-weight: 100; text-transform: uppercase; @include header_link(var(--text), var(--text)); } .nav-bar { flex: 1 auto; @include header_link(var(--text), var(--subtext0)); ul { padding: 0; display: flex; align-items: center; list-style: none; } .nav-links { margin-top: 0; margin-bottom: 0; font-size: 1.2rem; text-transform: lowercase; flex-wrap: wrap; flex-direction: row; justify-content: space-between; li { flex: 2 auto; text-align: center; } .menu-icons-container { flex: 1 auto; } .menu-icons-group { color: var(--text); justify-content: space-around; } } } }