Demas ajustes
This commit is contained in:
@@ -196,404 +196,7 @@
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.hero {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 650px;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
background: #c8c2bc;
|
||||
}
|
||||
|
||||
.hero__media {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.hero__video,
|
||||
.hero__poster,
|
||||
.hero__still,
|
||||
.hero__poster-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
.hero__poster,
|
||||
.hero__still {
|
||||
z-index: 1;
|
||||
transition: opacity 0.45s ease;
|
||||
}
|
||||
|
||||
.hero.is-playing .hero__poster {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
min-height: 650px;
|
||||
padding: 104px 160px 80px 100px;
|
||||
}
|
||||
|
||||
.hero__copy {
|
||||
width: min(100%, 800px);
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 70px;
|
||||
font-weight: 500;
|
||||
line-height: 69px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero__title-line {
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero__title-line--light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.hero__title-line--medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hero__rule {
|
||||
display: block;
|
||||
width: 578px;
|
||||
max-width: 100%;
|
||||
height: 1px;
|
||||
margin-top: 40px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hero__label {
|
||||
margin: 40px 0 20px;
|
||||
color: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.hero__products {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.hero__card {
|
||||
display: grid;
|
||||
grid-template-columns: 100px minmax(0, 1fr) 50px;
|
||||
column-gap: 10px;
|
||||
align-items: center;
|
||||
width: 384px;
|
||||
height: 120px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
background: rgba(249, 249, 250, 0.5);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.hero__card--empty {
|
||||
display: flex;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.hero__card-media {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.hero__card-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
transition: transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.hero__card-image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease, transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image--hover,
|
||||
.hero__card:focus-within .hero__card-image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
background-image: linear-gradient(currentColor, currentColor);
|
||||
background-position: 0 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 0 1px;
|
||||
transition: background-size 0.25s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-title,
|
||||
.hero__card-title:focus-visible {
|
||||
background-size: 100% 1px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero__card-image,
|
||||
.hero__card-image--hover,
|
||||
.hero__card-title {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.hero__card-copy {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
text-decoration: none;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.hero__card-price {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.hero__form {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.hero__cart {
|
||||
display: grid;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hero__cart:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.hero__cart.is-added {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.hero__cart-icon {
|
||||
display: block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.hero__cart-icon svg {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
position: absolute;
|
||||
top: 151px;
|
||||
right: 100px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.hero__social-label {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: normal;
|
||||
text-transform: uppercase;
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
.hero__social-line {
|
||||
display: block;
|
||||
width: 1px;
|
||||
height: 80px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hero__social-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.hero__social-item {
|
||||
display: flex;
|
||||
width: 37px;
|
||||
height: 37px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hero__social-item svg {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.hero__content {
|
||||
padding-right: 120px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.hero,
|
||||
.hero__content {
|
||||
min-height: 550px;
|
||||
}
|
||||
|
||||
.hero__video,
|
||||
.hero__poster-image {
|
||||
object-position: center 22%;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
align-items: flex-end;
|
||||
padding: 24px 20px 15px;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
font-size: 35px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.hero__rule {
|
||||
width: 253px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.hero__label {
|
||||
margin: 10px 0;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.hero__products {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.hero__card {
|
||||
grid-template-columns: 70px minmax(0, 1fr) 40px;
|
||||
width: 100%;
|
||||
max-width: 297px;
|
||||
height: 80px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.hero__card-media {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.hero__card-price {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.hero__cart {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.hero__cart-icon,
|
||||
.hero__cart-icon svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.hero__social {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.hero__title-line {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero__video {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero__poster {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
<script nolazy>
|
||||
(() => {
|
||||
|
||||
Reference in New Issue
Block a user