/* * Navbar * Styles for Navbar * * Dependencies: * styles/settings/colors.scss * styles/settings/responsive.scss * styles/tools/_box-shadow.scss * styles/tools/_flex.scss * styles/tools/_responsive.scss * styles/tools/_transform.scss * * Version: * 1.0.0 - 2018/02/23 */ $c-navbar--z-index: 100; $c-navbar--link-border: $s-border--default; $c-navbar--background: white; $c-navbar--link-offset: 5px; .c-navbar { position: fixed; top: 0; left: 0; width: 100%; background: $c-navbar--background; z-index: $c-navbar--z-index; @extend %t-flexbox; } //Menu Button .c-navbar__menu-button { font-size: 1.5em; padding: 0.5em 0.75em; } //Logo .c-navbar__logo-container { @include t-align-self(center); width: 12.5em; } .c-navbar__logo { width: 100%; height: 100%; } //Links .c-navbar__links { width: 100%; text-align: right; display: none; } .c-navbar__link { @extend %s-font--navigation; height: 100%; font-size: 1.2em; padding: 0 1.5em; display: inline-table; } .c-navbar__link-text { display: table-cell; vertical-align: middle; } //Responsive queries @include t-media-query($s-xsmall-up) { .c-navbar__menu-button { font-size: 2em; } } @include t-media-query($s-small-up) { .c-navbar { width: 90%; top:3em; left: 2%; @include t-box-shadow(-10px, 10px, 0px, rgba(0, 0, 0, 0.5)); } .c-navbar__links { displaY: block; } .c-navbar__link { background: white; transition: all 0.2s $s-animation--ease-out-curve; margin-left: $c-navbar--link-offset; @include t-translate(0em, 0em); @include t-box-shadow(0px, 0px, 0px, rgba(0, 0, 0, 0.5)); &:hover { @include t-translate($c-navbar--link-offset, -$c-navbar--link-offset); @include t-box-shadow(-$c-navbar--link-offset, $c-navbar--link-offset, 0px, rgba(0, 0, 0, 0.5)); } } }