ldc-tousenselle/resources/sass/layout/teaser.scss
2021-06-14 11:04:13 +02:00

41 lines
972 B
SCSS
Vendored

#app.teaser {
min-height: calc(100vh - #{$topMenuHeight + $footerHeight + 0.2rem});
display: flex;
flex-direction: column;
#content {
flex-grow: 1;
}
& .teaser {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: calc(100% + 0.35rem);
z-index: 6;
background-color: rgba(0,0,0,0.7);
& > img {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
& > span {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%) rotate(-8deg);
font-size: 6rem;
margin-left: 3rem;
}
@include max-width($mobile) {
& > img {
width: 13rem;
}
& > span {
font-size: 4rem;
}
}
}
}