Spaces:
Sleeping
Sleeping
File size: 1,733 Bytes
64aaca8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
/*
<!----- V container ----->
<div class='has-carousel'>
<!--- H container --->
<div class='carousel'>
<div>---- <div>---- <div>---- <div>---- <div>----
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
---</div> | | ---</div> | | ---</div>
---</div> ---</div>
</div>
<div>
*/
.hero {
display: flex;
position: relative;
}
.hero__image {
display: flex;
position: -webkit-sticky;
position: sticky;
top: 0;
float: left;
height: calc(var(--vbody) - 14.8rem - 1rem - 2ex);
max-height: 1024px;
}
.hero > * {
width: 50%;
}
.hero img {
margin-left: auto;
padding: 2rem;
max-width: 100%;
max-height: calc(var(--vbody) - 14.8rem - 1rem - 2ex);
object-fit: cover;
}
.hero__content {
--col: 27rem;
padding: 2rem 0;
max-width: var(--col);
font-size: var(--small);
}
.hero__content h1,
.hero__content h2,
.hero__content h3 {
margin: 4pt 0;
font: italic var(--Large) var(--rm), serif;
line-height: 1.618;
}
@media only screen and (max-width: 960px) {
.hero {
width: 100%;
}
}
@media only screen and (max-width: 640px) {
.hero {
display: flex;
flex-direction: column;
}
.hero > * {
align-self: center;
width: 86%;
}
.hero__image {
position: inherit;
width: unset;
height: unset;
}
}
@media only screen and (max-width: 480px) {
.hero img {
padding: 1rem;
}
} |