mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-12-10 14:46:47 -06:00
157 lines
3.3 KiB
SCSS
157 lines
3.3 KiB
SCSS
section#newsletter {
|
|
--section-spacing-y: 0;
|
|
background-color: #002332;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
|
|
.container {
|
|
gap: 0px 60px;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
|
|
@include bp(tablet) {
|
|
align-items: center;
|
|
flex-direction: row;
|
|
}
|
|
|
|
@include bp(desktop) {
|
|
align-items: flex-end;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
margin-top: 0;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
&,
|
|
p {
|
|
color: #ffffff;
|
|
}
|
|
|
|
@include bp(tablet) {
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.content {
|
|
padding: 52px 0;
|
|
|
|
@include bp(tablet) {
|
|
padding: 100px 0;
|
|
}
|
|
}
|
|
|
|
.buttons {
|
|
justify-content: flex-start;
|
|
margin-top: 20px;
|
|
|
|
@include bp(tablet) {
|
|
margin-top: 40px;
|
|
}
|
|
}
|
|
|
|
.editions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
max-width: 570px;
|
|
align-items: center;
|
|
margin-bottom: -40px;
|
|
width: 100%;
|
|
order: 1;
|
|
|
|
@include bp(tablet) {
|
|
order: -1;
|
|
flex-basis: 50%;
|
|
align-self: center;
|
|
}
|
|
@include bp(desktop) {
|
|
}
|
|
|
|
@include bp(large-desktop) {
|
|
flex-basis: 570px;
|
|
align-self: flex-end;
|
|
margin-bottom: -64px;
|
|
|
|
}
|
|
|
|
&[data-dsap]:not([data-dsap-is="in"]):not([data-dsap-is="above"]) {
|
|
|
|
// Only if scrolling down into the element
|
|
.edition {
|
|
transition-duration: 0s;
|
|
transition-delay: 0s;
|
|
|
|
&:nth-child(1) {
|
|
transform: translateY(120px);
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
transform: translateY(40px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.edition {
|
|
aspect-ratio: 571/300;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
position: relative;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
transition: transform 0.8s cubic-bezier(0.3, 1, 0.5, 1);
|
|
transition-delay: .25s;
|
|
|
|
@include bp(tablet) {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.label {
|
|
display: none;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
position: absolute;
|
|
border-radius: 0;
|
|
inset: 0;
|
|
}
|
|
|
|
&:nth-child(1) {
|
|
max-width: 80%;
|
|
height: 45px;
|
|
transition-delay: .3s;
|
|
z-index: 1;
|
|
|
|
@include bp(tablet) {
|
|
height: 70px;
|
|
}
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
max-width: 90%;
|
|
justify-self: center;
|
|
height: 50px;
|
|
transform: translateY(-20px);
|
|
z-index: 2;
|
|
|
|
@include bp(tablet) {
|
|
height: 80px;
|
|
}
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
max-width: 100%;
|
|
justify-self: center;
|
|
z-index: 3;
|
|
transform: translateY(-40px);
|
|
}
|
|
}
|
|
}
|
|
} |