/*----------------------------------------------------------------------------*\ HERO (header) \*----------------------------------------------------------------------------*/ /* Variables \*----------------------------------------------------------------------------*/ /* Component \*----------------------------------------------------------------------------*/ .header-container { height: 38rem !important; margin-top: $header-mobile-height; &.dashboard-header { height: 50rem !important; @include media-query(lg){ height: 65rem !important; } @include media-query(xxl) { height: 76.5rem !important; } @include media-query(lg) { .container { .header-content { padding: 0; max-width: 60rem; } } } @include media-query(xl) { .container { .header-content { padding: 0; max-width: 65rem; } } } } @include media-query(lg) { height: 60rem !important; margin-top: 0; } @include media-query(xxl) { height: 76.5rem !important; } &.header-container--5, &.header-container--6 { margin-bottom: 20rem; @include media-query(lg) { margin-bottom: 0; } } .container { position: relative; height: 100%; .header-content { position: absolute; height: 100%; width: -webkit-calc(100% - 6rem); width: calc(100% - 6rem); max-width: 58rem; text-align: left; padding: 8rem 0 3rem 0; @include media-query(lg) { position: absolute; top: 50%; max-width: 85rem; height: auto; padding: 3rem; -webkit-transform: translateY(-50%); transform: translateY(-50%); padding-top: 7rem; } @include media-query(xxl) { max-width: 65rem; } &.header-content--homepage { p { &:last-child { display: block; } &:not(:last-child) { display: none; @include media-query(lg) { display: block; } } } } @include media-query(lg) { padding-left: 5rem; position: absolute; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .header-content-inner { min-height: 25rem; @include media-query(lg) { padding-top: 3rem; padding-left: 5rem; } @include media-query(xl) { padding-top: 0; min-height: auto; } h4 { color: rgba(color(brand), 0.4); } h1 { color: color(brand); padding-right: 2rem; padding-bottom: 2rem; font-size: 3rem; line-height: 4.2rem; @include media-query(sm) { padding-right: 10rem; } } p { display: none; font-weight: normal; font-size: 1.7rem; line-height: 2.7rem; color: color(brand); @include media-query(lg) { display: block; line-height: 3.3rem; } } } .tiles-wrapper { padding-left: 3rem; padding-right: 3rem; position: relative; top: -webkit-calc(100% - 20rem); top: calc(100% - 20rem); @include media-query(md) { top: -webkit-calc(100% - 23rem); top: calc(100% - 23rem); padding-left: 0; } .tiles { display: flex; padding: 0; margin: 2rem 0 0 0; width: -webkit-calc(100% + 10rem); width: calc(100% + 10rem); position: relative; left: -4.5rem; @include media-query(md) { bottom: auto; left: 0; margin: 5rem 0 0 0; } .tile { margin-right: 1.5rem; .inner { position: relative; display: inline-block; padding: 1.5rem; width: 16rem; height: 100%; text-align: center; background: color(green); text-decoration: none; -webkit-transform: translateY(0%); transform: translateY(0%); -webkit-transition: all 300ms ease; transition: all 300ms ease; -webkit-box-shadow: 0px 0px 5px 2px rgba(color(brand),0.1); box-shadow: 0px 0px 5px 2px rgba(color(brand),0.1); &:hover { @include media-query(lg) { -webkit-transform: translateY(-5%); transform: translateY(-5%); } } .tile__icon { position: relative; height: 12rem; border-bottom: 0.1rem solid rgba(color(brand-sec), 0.2); img { position: absolute; top: 50%; left: 50%; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } } p { display: block; color: color(brand-sec); font-size: 1.7rem; line-height: 2.7rem; padding-bottom: 1rem; } &:after { content: ""; position: absolute; width: 0.7rem; height: 0.4rem; background: url('/igolf/img/icon-arrow-down-white.svg'); background-size: 0.7rem 0.4rem; left: 50%; bottom: 1.5rem; } } &:first-child { .inner { background: color(brand-sec); .tile__icon { border-bottom: 0.1rem solid rgba(color(brand), 0.2); } p { color: color(brand); } &:after { background: url('/igolf/img/icon-arrow-down.svg'); background-size: 0.7rem 0.4rem; } } } &:last-child { .inner { background: color(blue); } } } } } } .booking { position: absolute; width: -webkit-calc(100% - 7rem); width: calc(100% - 7rem); background: color(brand-sec); padding: 3rem; z-index: 3; bottom: 0; -webkit-transform: translateY(25%); transform: translateY(25%); @include box-shadow(); @include media-query(lg) { -webkit-transform: translateY(50%); transform: translateY(50%); } h2 { font-size: 3rem; margin-bottom: 1rem; } form { display: flex; align-items: flex-end; flex-direction: column; @include media-query(lg){ flex-direction: row; } } .custom-list { margin-bottom: 0; margin-right: 15px; >input { margin-bottom: 0; } } .select { position: relative; border-bottom: 0; width: 100%; margin-bottom: 0; @include media-query(lg) { margin: 0 15px 0 0; } &:before { content: ""; position: absolute; width: 1.6rem !important; height: 1.6rem !important; background: url("/igolf/img/icon-route.svg") no-repeat center center; background-size: contain !important; top: 5.2rem !important; @include media-query(xs) { top: 4.2rem !important; } } select { margin-bottom: 0; padding-left: 2rem; } } .button { position: relative; width: 100%; margin-top: 2.5rem; flex-grow: 0; flex-shrink: 0; @include media-query(lg){ width: auto; } } } .block { display: none; @include media-query(lg) { display: block; position: absolute; right: 3.5rem; width: 30rem; max-height: 33rem; top: 50%; transform: translateY(-50%); z-index: 7; &:hover { transform: translateY(-51%); } } main { height: 16.5rem; } .button { &:hover { color: color(brand-sec); } } } } }