Demas ajustes
This commit is contained in:
@@ -144,232 +144,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.routine {
|
||||
padding: 50px 0;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.routine__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 849fr) minmax(0, 850fr);
|
||||
gap: 21px;
|
||||
align-items: stretch;
|
||||
padding-inline: 100px;
|
||||
}
|
||||
|
||||
.routine__cover {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.routine__cover-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.routine__heading {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 50px;
|
||||
font-weight: 400;
|
||||
line-height: 0.98;
|
||||
}
|
||||
|
||||
.routine__steps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.routine__card {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-width: 0;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.routine__media {
|
||||
position: relative;
|
||||
display: block;
|
||||
aspect-ratio: 415 / 436;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.routine__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.45s ease;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__image,
|
||||
.routine__card:focus-visible .routine__image {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.routine__shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
|
||||
pointer-events: none;
|
||||
transition: background 0.35s ease;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__shade,
|
||||
.routine__card:focus-visible .routine__shade {
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.routine__image,
|
||||
.routine__shade {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.routine__card:hover .routine__image,
|
||||
.routine__card:focus-visible .routine__image {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.routine__caption {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: #fff;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: clamp(16px, 7.2cqi, 30px);
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.routine__label {
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.routine__arrow {
|
||||
display: grid;
|
||||
flex: 0 0 30px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
}
|
||||
|
||||
.routine__arrow-icon {
|
||||
display: block;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.routine__empty {
|
||||
grid-column: 1 / -1;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.routine__cover:focus-visible,
|
||||
.routine__card:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.routine__layout {
|
||||
padding-inline: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.routine {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.routine__layout {
|
||||
display: block;
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.routine__cover {
|
||||
height: 391px;
|
||||
margin-inline: 15px;
|
||||
}
|
||||
|
||||
.routine__heading {
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
width: 155px;
|
||||
font-size: 25px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.routine__steps {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 0;
|
||||
padding: 20px 15px;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
scroll-padding-inline: 15px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.routine__steps::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.routine__card {
|
||||
flex: 0 0 245px;
|
||||
width: 245px;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.routine__media {
|
||||
height: 258px;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.routine__caption {
|
||||
position: static;
|
||||
margin-top: 10px;
|
||||
color: #000;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.routine__arrow {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:routine.name",
|
||||
|
||||
Reference in New Issue
Block a user