No notes defined.

<div class="masthead">
    <div class="masthead-bkg">
        <div class="wrap">
            <div class="grid">
                <div class="col-9/13@desktop offset-2/13@desktop col-11/13@tabletwide offset-1/13@tabletwide">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Level 1</a></li>
                        <li><a href="#">Level 2</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <img src="../../img/masthead-image.png" class="masthead-image" />
        <div class="wrap">
            <div class="grid">
                <div class="col-9/13@desktop offset-2/13@desktop col-11/13@tabletwide offset-1/13@tabletwide masthead-inner">
                    <div class="page-title">
                        <h1>This is the H1 page title</h1>
                        <p>This is a sub heading</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="masthead">
    <div class="masthead-bkg">
        <div class="wrap">
            <div class="grid">
                <div class="col-9/13@desktop offset-2/13@desktop col-11/13@tabletwide offset-1/13@tabletwide">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Level 1</a></li>
                        <li><a href="#">Level 2</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <img src="../../img/masthead-image.png" class="masthead-image" />
        <div class="wrap">
            <div class="grid">
                <div class="col-9/13@desktop offset-2/13@desktop col-11/13@tabletwide offset-1/13@tabletwide masthead-inner">
                    <div class="page-title">
                        <h1>{{ heading }}</h1>
                        <p>{{ sub }}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
  • Content:
    .page-title {
    	margin-bottom: 1rem;
    
    	h1 {
    		margin: 0;
    	}
    	p {
    		font-weight: 300;
    		margin: 0.5rem 0 0;
    	}
    }
    
    
    .breadcrumbs {
    	list-style: none;
    	padding-inline-start: 0;
    	margin-top: 1rem;
    	margin-bottom: 0.65rem;
    
    	> li {
    		display: inline-block;
    		color: #fff;
    		font-weight: 300;
    
    		&:after {
    			padding-left: 1rem;
    			content: '/';
    		}
    		&:not(last-child) {
    			margin-right: 1rem;
    		}
    	}
    	a, a:visited {
    		color: #fff;
    		font-weight: 300;
    		font-size: 0.85rem;
    	}
    }
    
    [dir="rtl"] {
    	.breadcrumbs > li::after {
    		padding-left: 0;
    		padding-right: 1rem;
    	}
    }
    
    
    .siteHeader__bar + .masthead {
    	border-top: $spacing-sm solid white;
    }
    .masthead {
    	z-index: 25;
    	background: $navy;
    	background: linear-gradient(90deg, $blue 0%, #5F307D 100%);
    	position: relative;
    
    	&:before {
    		content: "";
    		position: absolute;
    		z-index: -1;
    		top: 0;
    		right: 0;
    		bottom: 0;
    		left: 0;
    		background: linear-gradient(180deg, $navy -5rem, rgba($navy, 0) 100%);
    	}
    
    	.masthead-bkg {
    		position: relative;
    
    		&:before, &:after {
    			content: "";
    			position: absolute;
    			z-index: -1;
    			top: 0;
    			right: 0;
    			bottom: 0;
    			left: 0;
    		}
    		&:before {
    			background: url(../img/masthead01.png) top left no-repeat;
    			background-size: 85rem auto;
    			@media (min-width: map_get($breakpoint-stages, desktop)) {
    				background-size: 75vw auto;
    			}
    
    		}
    		&:after {
    			background: url(../img/masthead02.png) bottom right no-repeat;
    			background-size: 75rem auto;
    			@media (min-width: map_get($breakpoint-stages, desktop)) {
    				background-size: 75vw auto;
    			}
    
    		}
    
    		video {
    			position: absolute;
    			top: 0;
    			left: 0;
    			object-fit: cover;
    			width: 100%;
    			height: 100%;
    			opacity: 0.6;
    			mix-blend-mode: luminosity;
    		}
    	}
    
    	.masthead-inner {
    		min-height: auto;
    		height: 40vh;
    		max-height: 15rem;
    		display: flex;
    		align-items: flex-end;
    	}
    
    	&.masthead--home {
    		.masthead-inner {
    			height: 60vh;
    			max-height: 30rem;
    			@media (min-width: map_get($breakpoint-stages, tablet)) {
    				align-items: center;
    			}
    
    		}
    	}
    
    	.masthead-image {
    		position: absolute;
    		top: 0;
    		right: 0;
    		width: 30vmin;
    		height: 50vmin;
    		clip-path: polygon(64% 0%, 100% 0%, 100% 100%, 0% 39%);
    		object-fit: cover;
    		z-index: 2;
    
    		@media (min-width: map_get($breakpoint-stages, mobile)) {}
    		@media (min-width: map_get($breakpoint-stages, mobilewide)) {}
    		@media (min-width: map_get($breakpoint-stages, tablet)) {}
    		@media (min-width: map_get($breakpoint-stages, tabletwide)) {}
    		@media (min-width: map_get($breakpoint-stages, desktop)) {}
    
    		@media (min-width: map_get($breakpoint-stages, desktop)) {
    			width: 45vmin;
    			height: 75vmin;
    		}
    
    		&.masthead-image-home {
    			width: 43vw;
    			height: 59vw;
    			clip-path: polygon(37.5% 0%, 100% 0%, 100% 100%, 0% 27%);
    
    		}
    
    
    
    	}
    
    	.breadcrumbs {
    		@include text-small;
    
    		> li {
    			color: #fff;
    		}
    		a, a:visited {
    			color: #fff;
    		}
    	}
    	.page-title {
    		margin-bottom: $spacing-2xl;
    		padding-bottom: $spacing-md;
    		color: #fff;
    		position: relative;
    		z-index: 2;
    
    		h1 {
    			color: #fff;
    		}
    	}
    
    	&.masthead--home {
    		.page-title {
    			@media (max-width: map_get($breakpoint-stages, tablet)) {
    				margin-bottom: 6rem;
    			}
    
    		}
    	}
    }
    
    main .page-title {
    	padding-bottom: $spacing-xl;
    	p {
    		font-weight: 400;
    		margin: 0.5rem 0 0;
    	}
    
    }
    
    .mastehad--home-logo {
    	width: 45vmin;
    	margin: 0 0 2rem;
    
    	@media (min-width: map_get($breakpoint-stages, tablet)) {
    		width: 35vmin;
    	}
    
    }
    
    .masthead-anim-home {
    	position: absolute;
    	top: 0;
    	right: 0;
    	bottom: 0;
    	z-index: 2;
    	width: 100%;
    	height: 100%;
    	opacity: 0.3;
    	mix-blend-mode: luminosity;
    
    	@media (min-width: map_get($breakpoint-stages, tablet)) {
    		opacity: 1;
    	}
    
    	&:after {
    		content: '';
    		position: absolute;
    		top: 0;
    		right: 0;
    		bottom: 0;
    		width: 60em;
    		height: 100%;
    		background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.03) 65%, rgba(255, 255, 255, 0) 90%);
    	}
    
    
    	img {
    		position: absolute;
    		top: 0;
    		right: 8vw;
    		height: 100%;
    	}
    
    }
    
    
    
    // animations
    
    @keyframes titles {
    	0% {
    		left: -3vw;
    		opacity: 0;
    	}
    	100% {
    		left: 0;
    		opacity: 1;
    	}
    }
    @keyframes rtl {
    	0% {
    		right: -3vw;
    		opacity: 0;
    	}
    	100% {
    		right: 0;
    		opacity: 1;
    	}
    }
    @keyframes masthead-bkg-before {
    	0% {
    		background-position: 0 -10%;
    		opacity: 0.5;
    	}
    	100% {
    		background-position: 0 0;
    		opacity: 1;
    	}
    }
    
    @keyframes masthead-bkg-after {
    	0% {
    		background-position: 100% 110%;
    		opacity: 0.5;
    	}
    	100% {
    		background-position: 100% 100%;
    		opacity: 1;
    	}
    }
    
    @keyframes masthead-image {
    	0% {
    		opacity: 0;
    		right: -5vw;
    	}
    	100% {
    		opacity: 1;
    		right: 0;
    	}
    }
    
    @keyframes animate-fade {
    	0% {
    		opacity: 0;
    	}
    	100% {
    		opacity: 1;
    	}
    }
    
    
    .js {
    	.page-title img {
    		position: relative;
    		left: -3vw;
    		opacity: 0;
    
    		animation-name: titles;
    		animation-duration: 1s;
    		animation-timing-function: ease-out;
    		animation-delay: 0.8s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    	.page-title h1 {
    		position: relative;
    		left: -3vw;
    		opacity: 0;
    
    		animation-name: titles;
    		animation-duration: 1s;
    		animation-timing-function: ease-out;
    		animation-delay: 1s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    	.page-title h1 + p {
    		position: relative;
    		left: -3vw;
    		opacity: 0;
    
    		animation-name: titles;
    		animation-duration: 1s;
    		animation-timing-function: ease-out;
    		animation-delay: 1.2s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    	.masthead-image {
    		opacity: 0;
    		right: -5vw;
    
    		animation-name: masthead-image;
    		animation-duration: 0.7s;
    		animation-timing-function: ease-out;
    		animation-delay: 0.7s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    	.masthead-bkg:before {
    		background-position: 0 -10%;
    		opacity: 0.5;
    
    		animation-name: masthead-bkg-before;
    		animation-duration: 3s;
    		animation-timing-function: ease-out;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    
    
    	}
    
    	.masthead-bkg:after {
    		background-position: 100% 110%;
    		opacity: 0.5;
    
    		animation-name: masthead-bkg-after;
    		animation-duration: 3.5s;
    		animation-timing-function: ease-out;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    
    
    	}
    
    	.animate-slide-ltr {
    		position: relative;
    		left: -3vw;
    		opacity: 0;
    
    		animation-name: titles;
    		animation-duration: 1s;
    		animation-timing-function: ease-out;
    		animation-delay: 1s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    	.animate-slide-rtl {
    		position: relative;
    		right: -3vw;
    		opacity: 0;
    
    		animation-name: rtl;
    		animation-duration: 1s;
    		animation-timing-function: ease-out;
    		animation-delay: 1s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    	.animate-fade {
    		opacity: 0;
    
    		animation-name: animate-fade;
    		animation-duration: 0.7s;
    		animation-timing-function: ease-out;
    		animation-delay: 0.7s;
    		animation-iteration-count: 1;
    		animation-fill-mode: forwards;
    	}
    
    }
    
    
  • URL: /components/raw/masthead/_masthead.scss
  • Filesystem Path: app/components/03-groups/masthead/_masthead.scss
  • Size: 6.9 KB