Newer
Older
Chris Lawton
committed
min-height: 300px;
padding: 10px;
background-color: $color--primary;
Chris Lawton
committed
&::after {
@extend %overlay;
height: 300px;
}
@include media-query(tablet-portrait) {
padding: 20px;
}
Chris Lawton
committed
&--light-bg {
height: auto;
min-height: 250px;
padding-bottom: 0;
Chris Lawton
committed
background: $color--white;
Chris Lawton
committed
display: none;
}
}
&--standard {
display: flex;
flex-direction: column;
justify-content: space-between;
}
&--has-bg-image {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
&--narrow {
height: auto;
min-height: initial;
&::before {
display: none;
}
}
&--white-bg {
background-color: $color--white;
}
&--homepage {
height: 555px;
padding: 20px;
@include media-query(tablet-portrait) {
height: 660px;
}
}
z-index: 8;
Chris Lawton
committed
padding: 0 10px;
Chris Lawton
committed
margin: 0 0 20px;
line-height: 1;
text-shadow: 0 2px 15px $color--black-10;
Chris Lawton
committed
@include media-query(tablet-portrait) {
padding: 0;
}
Chris Lawton
committed
Chris Lawton
committed
.header--light-bg & {
color: $color--dark-grey;
text-shadow: none;
}
.template-lab-page &,
.template-fund-page &,
.template-news-page &,
.template-project-page & {
@include responsive-font-sizes(40px, 48px);
}
&--homepage {
@include responsive-font-sizes(36px, 72px);
max-width: 750px;
line-height: 1.1;
text-shadow: 0 2px 15px $color--black-25;
&::after {
display: inline-block;
width: 15px;
height: 15px;
margin-left: 5px;
background: $color--primary;
border-radius: 50%;
content: '';
transition: height, width, 10s ease;
}
Chris Lawton
committed
}
display: flex;
justify-content: space-between;
&--mobile-buttons {
justify-content: flex-end;
@include media-query(tablet-portrait) {
display: none;
}
}
&--menu-open {
padding: 10px;
background: transparent;
transition: background $transition;
}
}
&__menus {
&--desktop {
display: none;
@include media-query(tablet-portrait) {
display: flex;
}
}
&--mobile {
position: fixed;
width: 100%;
height: 100%;
background: $color--dark-grey;
opacity: 0;
transform: translate3d(0, -100%, 0);
transition-duration: .25s;
Chris Lawton
committed
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(.65, .05, .36, 1);
&.is-visible {
opacity: 1;
transform: translate3d(0, 0%, 0);
@include media-query(tablet-portrait) {
display: none;
}
}
nav {
width: 100%;
}
}
}
&__logo {
&--mobile {
width: 60px;
height: 60px;
Chris Lawton
committed
@include media-query(tablet-landscape) {
Chris Lawton
committed
.header--light-bg & {
fill: $color--dark-grey;
}
.header__menus--mobile.is-visible & { // sass-lint:disable-line force-element-nesting
Chris Lawton
committed
fill: $color--white;
}
Chris Lawton
committed
@include media-query(tablet-landscape) {
Chris Lawton
committed
width: 215px;
Chris Lawton
committed
}
}
&--desktop-light {
@include media-query(tablet-landscape) {
display: block;
}
.header--light-bg & {
display: none;
}
}
&--desktop-dark {
display: none;
.header--light-bg & {
@include media-query(tablet-landscape) {
display: block;
}
}
}
&__menu-toggle {
@include media-query(tablet-portrait) {
display: none;
}
}
@extend %is-hidden;
}
&--pixels {
position: absolute;
bottom: 0;
display: none;
Chris Lawton
committed
@include media-query(tablet-landscape) {
Chris Lawton
committed
.header--light-bg & {
display: none;
}
&--pixels-left {
left: 0;
width: 105px;
height: 98px;
fill: $color--white;
.light-grey-bg &,
.header--grey-pixels & {
fill: $color--light-grey;
}
&--pixels-left-home {
left: 0;
width: 110px;
height: 165px;
fill: $color--white;
}
&--pixels-right {
right: 0;
width: 295px;
height: 300px;
fill: $color--dark-blue;
}
&--pixels-right-home {
right: 0;
bottom: -55px;
width: 328px;
height: 567px;
fill: $color--dark-blue;
}
@extend %is-invisible;
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: flex-end;
justify-content: center;
width: 100%;
height: 180px;
padding-bottom: 50px;
background: $color--dark-blue;
&__button-container {
display: none;
@include media-query(tablet-portrait) {
display: flex;
}
}
&__strapline {
max-width: 550px;
margin: 0 0 20px;
font-weight: $weight--bold;
color: $color--white;
}
&__link {
display: inline-block;
border: 0;
}