Last active
March 24, 2024 19:45
-
-
Save mariohernandez/eee31dc4762feff7e3e96e61a16635d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.featured-movie { | |
align-items: center; | |
background: $color-black; | |
display: flex; | |
height: 480px; | |
overflow: hidden; | |
position: relative; | |
width: 100%; | |
@include breakpoint($bp-sm) { | |
height: 640px; | |
} | |
@include breakpoint($bp-lg) { | |
height: 740px; | |
} | |
} | |
.featured-movie__cover-image { | |
background-color: $color-black; | |
height: 100%; | |
left: 0; | |
position: absolute; | |
top: 0; | |
width: 100%; | |
&::after { | |
@include breakpoint($bp-md) { | |
background-image: linear-gradient(to right, $color-black 15%, rgba($color-black, 0) 100%); | |
content: ''; | |
display: block; | |
height: 100%; | |
opacity: 0.85; | |
left: 0; | |
position: absolute; | |
top: 0; | |
width: 100%; | |
} | |
} | |
img { | |
@include center-align($position: absolute); | |
height: 110%; | |
opacity: 0.35; | |
max-width: none; | |
width: auto; | |
z-index: $zi-ground; | |
@include breakpoint($bp-md) { | |
opacity: 1; | |
} | |
@include breakpoint($bp-lg) { | |
height: auto; | |
max-width: none; | |
width: 110%; | |
} | |
} | |
} | |
.featured-movie__meta { | |
color: $color-white; | |
display: flex; | |
flex-wrap: wrap; | |
padding: 20px; | |
position: relative; | |
@include breakpoint($bp-sm) { | |
padding: 20px 40px; | |
} | |
@include breakpoint($bp-md) { | |
padding: 40px 50px; | |
max-width: 50%; | |
} | |
} | |
.featured-movie__title { | |
width: 100%; | |
.heading { | |
font-size: 4.8rem; | |
line-height: 1; | |
@include breakpoint($bp-lg) { | |
font-size: 6rem; | |
} | |
} | |
} | |
.featured-movie__promo { | |
font-size: 1.8rem; | |
font-weight: $font-weight-bold; | |
padding: 12px 0; | |
width: 100%; | |
@include breakpoint($bp-md) { | |
font-size: 2.4rem; | |
} | |
.eyebrow { | |
text-transform: none; | |
white-space: normal; | |
} | |
} | |
.featured-movie__settings { | |
align-items: center; | |
display: flex; | |
padding: 12px 0; | |
} | |
.featured-movie__favorites-toggle { | |
margin-right: 10px; | |
} | |
.featured-movie__mpaa-rating { | |
margin-right: 10px; | |
.mpaa-rating { | |
border-color: $color-white; | |
color: $color-white; | |
} | |
} | |
.featured-movie__synopsis { | |
font-size: 1.4rem; | |
padding: 12px 0; | |
width: 100%; | |
@include breakpoint($bp-sm) { | |
font-size: 1.6rem; | |
} | |
} | |
.featured-movie__cta { | |
padding: 12px 0; | |
width: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="demo"> | |
This is a demo. | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment