src/assets/css/header.scss (59 lines of code) (raw):
.header {
background-color: $dark-blue;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
min-height: 80vh;
}
.header-overlay {
background-color: transparentize($black, 0.5);
height: 100%;
// stylelint-disable-next-line selector-class-pattern
.header--no-featured-image & {
background-color: transparent;
}
}
.header-wrapper {
align-items: center;
display: grid;
grid-template-columns: auto;
grid-template-rows: 92px auto;
height: 100%;
}
.header-logo {
// This is width / height of the source SVG.
$aspect-ratio: 4.3125;
$small-height: 48px;
$small-width: $small-height * $aspect-ratio;
align-self: end;
// Important: we use a relative path in order to ease the process of building
// the WordPress theme, and we cannot use the `/assets/` prefix in this file
// (and other Sass files).
background-image: url('../img/logo.svg');
background-repeat: no-repeat;
background-size: $small-width $small-height;
display: block;
height: $small-height;
margin: 20px auto;
outline-color: $white;
width: $small-width;
@include respond-to(l) {
margin: 0 0 0 48px;
}
}
.header-title {
color: $white;
font-size: 5vh;
line-height: 1.2;
margin: 0 auto;
max-width: 1100px;
text-align: center;
text-transform: uppercase;
width: 70%;
@include respond-to(m-height) {
width: 90%;
}
@include respond-to(l) {
font-size: 54px;
}
@include respond-to(xxl) {
font-size: 72px;
margin-top: -16px;
width: 100%;
}
}