123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- // Header styling
- #header {
- @extend .default-animation;
- @extend .padding-horiz;
- position: fixed;
- z-index: 10;
- width: 100%;
- height: $header-height;
- background-color: rgba(255,255,255,0.90);
- box-shadow: 0 0.05rem 1rem rgba(0,0,0, 0.15);
- // scroll based changes
- &.scrolled {
- height: $header-height - 2rem;
- background-color: rgba(255,255,255,0.90) !important;
- box-shadow: 0 0.05rem 1rem rgba(0,0,0, 0.15) !important;
- #logo h3 {
- color: $core-text !important;
- font-size: 1.6rem !important;
- }
- #logo a, #navbar span {
- color: $core-text !important;
- }
- #navbar a {
- color: $core-accent !important;
- &:hover {
- color: darken($core-accent, 20%) !important;
- }
- }
- #navbar a:before, #navbar a:after {
- background-color: $core-accent !important;
- }
- }
- // set heights for vertical centering
- > .grid, #logo, #navbar {
- height: 100%;
- }
- #logo {
- float: left;
- h3 {
- @extend .default-animation;
- @extend %vertical-align;
- font-size: 2rem;
- line-height: 2rem;
- margin: 0;
- text-transform: uppercase;
- a {
- color: $core-text;
- }
- }
- }
- #navbar {
- font-size: $core-font-size - 0.1rem;
- ul {
- margin: 0;
- padding: 0;
- list-style: none;
- &.navigation {
- @extend %vertical-align;
- display: inline-block;
-
- float: right;
- li {
- float: left;
- position: relative;
- a {
- font-family: $font-family-header;
- display: inline-block;
- padding: 0.3rem 0.8rem;
- &:before, &:after {
- content: "";
- position: absolute;
- width: 100%;
- height: 1px;
- bottom: 0;
- left: 0;
- background-color: $core-accent;
- visibility: hidden;
- @include transform(scaleX(0));
- @include transition(all 0.2s ease);
- }
- &:hover:before {
- visibility: visible;
- @include transform(scaleX(0.75));
- }
- &.active:after {
- top: 0;
- visibility: visible;
- @include transform(scaleX(0.75));
- }
- }
- &.active {
- a:after {
- top: 0;
- visibility: visible;
- @include transform(scaleX(0.75));
- }
- }
- // Dropdown Menu Styles
- ul {
- display: none;
- padding: 0;
- box-shadow: 0 0.05rem 1rem rgba(0,0,0, 0.15) !important;
- }
- ul ul {
- left: 100%;
- top: 0;
- }
- &:hover {
- & > ul {
- display: block;
- position: absolute;
- background: rgba($white, 0.9);
- width: 10rem;
- }
- li {
- float: none;
- margin: 0;
- padding: 0;
- a {
- padding: 0.5rem 0.8rem;
- display: block;
- &:before, &:after {
- display: none;
- }
- }
- &.active {
- & > a {
- background: $core-accent;
- color: $white;
- }
- }
- }
- }
- }
- @include breakpoint(desktop-only) {
- display: none;
- }
- }
- }
- .panel-activation {
- @extend %vertical-align;
- padding: 1rem;
- display: none;
- font-size: 1.8rem;
- cursor: pointer;
- float: right;
- @include breakpoint(desktop-only) {
- display: inline-block;
- }
- }
- }
- }
- // Header Image
- .header-image {
- &.fullwidth {
- #body {
- padding-left: 0;
- padding-right: 0;
- >.listing-row {
- padding-left: $padding-horiz;
- padding-right: $padding-horiz;
- }
- }
- }
- .listing-row:last-child {
- margin-bottom: 2rem;
- }
- #body {
- .flush-top {
- margin-top: - $header-height - $padding-vert - 1.5rem;
- padding-top: $header-height + 4rem;
- }
- }
- #breadcrumbs {
- margin-top: 1rem;
- }
- #header {
- background-color: rgba($header-text,0);
- box-shadow: none;
- #logo h3, #logo a {
- color: $header-text;
- }
- a, .menu-btn {
- color: $header-text;
- }
- a:before, a:after {
- background-color: rgba($header-text,0.7) !important;
- }
- #navbar ul.navigation {
- ul li a {
- color: $core-accent;
- &:hover {
- color: darken($core-accent, 20%);
- }
- }
- }
- }
- }
|