quitar media print css
This commit is contained in:
@@ -0,0 +1,601 @@
|
||||
{% liquid
|
||||
if section.settings.heading != blank
|
||||
assign heading = section.settings.heading
|
||||
else
|
||||
assign heading = 'skin_match.heading' | t
|
||||
endif
|
||||
|
||||
if section.settings.subheading != blank
|
||||
assign subheading = section.settings.subheading
|
||||
else
|
||||
assign subheading = 'skin_match.subheading' | t
|
||||
endif
|
||||
|
||||
if section.settings.lead != blank
|
||||
assign lead = section.settings.lead
|
||||
else
|
||||
assign lead = 'skin_match.lead' | t
|
||||
endif
|
||||
|
||||
if section.settings.rest != blank
|
||||
assign rest = section.settings.rest
|
||||
else
|
||||
assign rest = 'skin_match.rest' | t
|
||||
endif
|
||||
|
||||
if section.settings.button_label != blank
|
||||
assign button_label = section.settings.button_label
|
||||
else
|
||||
assign button_label = 'skin_match.button' | t
|
||||
endif
|
||||
|
||||
assign serum_alt = 'skin_match.photos.serum' | t
|
||||
assign jar_alt = 'skin_match.photos.jar' | t
|
||||
assign dropper_alt = 'skin_match.photos.dropper' | t
|
||||
assign cheek_alt = 'skin_match.photos.cheek' | t
|
||||
%}
|
||||
|
||||
<section class="skin-match full-width">
|
||||
<div class="skin-match__canvas">
|
||||
<div class="skin-match__blob skin-match__blob--blue" aria-hidden="true">
|
||||
<img
|
||||
src="{{ 'skin-match-blob-blue.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="308"
|
||||
height="301"
|
||||
loading="lazy"
|
||||
>
|
||||
</div>
|
||||
<div class="skin-match__blob skin-match__blob--peach" aria-hidden="true">
|
||||
<img
|
||||
src="{{ 'skin-match-peach.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="327"
|
||||
height="302"
|
||||
loading="lazy"
|
||||
>
|
||||
</div>
|
||||
<div class="skin-match__blob skin-match__blob--green" aria-hidden="true">
|
||||
<img
|
||||
src="{{ 'skin-match-mint.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="277"
|
||||
height="311"
|
||||
loading="lazy"
|
||||
>
|
||||
</div>
|
||||
<div class="skin-match__blob skin-match__blob--pink" aria-hidden="true">
|
||||
<img
|
||||
src="{{ 'skin-match-lilac.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="338"
|
||||
height="324"
|
||||
loading="lazy"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="skin-match__content">
|
||||
<header class="skin-match__header">
|
||||
<h2 class="skin-match__heading">{{ heading | escape }}</h2>
|
||||
{% if subheading != blank %}
|
||||
<p class="skin-match__subheading">{{ subheading | escape }}</p>
|
||||
{% endif %}
|
||||
</header>
|
||||
|
||||
<div class="skin-match__gallery">
|
||||
<div class="skin-match__photo skin-match__photo--serum">
|
||||
{% if section.settings.image_serum != blank %}
|
||||
{{
|
||||
section.settings.image_serum
|
||||
| image_url: width: 1400
|
||||
| image_tag:
|
||||
alt: serum_alt,
|
||||
widths: '400, 800, 1400',
|
||||
sizes: '(max-width: 1024px) 70vw, 480px',
|
||||
class: 'skin-match__image skin-match__image--serum',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% else %}
|
||||
<img
|
||||
class="skin-match__image skin-match__image--serum"
|
||||
src="{{ 'skin-match-photo-serum.avif' | asset_url }}"
|
||||
alt="{{ serum_alt | escape }}"
|
||||
width="1333"
|
||||
height="2000"
|
||||
loading="lazy"
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="skin-match__photo skin-match__photo--dropper">
|
||||
{% if section.settings.image_dropper != blank %}
|
||||
{{
|
||||
section.settings.image_dropper
|
||||
| image_url: width: 1000
|
||||
| image_tag:
|
||||
alt: dropper_alt,
|
||||
widths: '320, 640, 1000',
|
||||
sizes: '(max-width: 1024px) 46vw, 320px',
|
||||
class: 'skin-match__image skin-match__image--dropper',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% else %}
|
||||
<img
|
||||
class="skin-match__image skin-match__image--dropper"
|
||||
src="{{ 'skin-match-photo-dropper.avif' | asset_url }}"
|
||||
alt="{{ dropper_alt | escape }}"
|
||||
width="2498"
|
||||
height="3123"
|
||||
loading="lazy"
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="skin-match__photo skin-match__photo--cheek">
|
||||
{% if section.settings.image_cheek != blank %}
|
||||
{{
|
||||
section.settings.image_cheek
|
||||
| image_url: width: 1000
|
||||
| image_tag:
|
||||
alt: cheek_alt,
|
||||
widths: '320, 640, 1000',
|
||||
sizes: '(max-width: 1024px) 46vw, 320px',
|
||||
class: 'skin-match__image skin-match__image--cheek',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% else %}
|
||||
<img
|
||||
class="skin-match__image skin-match__image--cheek"
|
||||
src="{{ 'skin-match-photo-cheek.avif' | asset_url }}"
|
||||
alt="{{ cheek_alt | escape }}"
|
||||
width="3043"
|
||||
height="3043"
|
||||
loading="lazy"
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="skin-match__photo skin-match__photo--jar">
|
||||
{% if section.settings.image_jar != blank %}
|
||||
{{
|
||||
section.settings.image_jar
|
||||
| image_url: width: 1600
|
||||
| image_tag:
|
||||
alt: jar_alt,
|
||||
widths: '480, 960, 1600',
|
||||
sizes: '(max-width: 1024px) 70vw, 480px',
|
||||
class: 'skin-match__image skin-match__image--jar',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% else %}
|
||||
<img
|
||||
class="skin-match__image skin-match__image--jar"
|
||||
src="{{ 'skin-match-photo-jar.avif' | asset_url }}"
|
||||
alt="{{ jar_alt | escape }}"
|
||||
width="4096"
|
||||
height="2731"
|
||||
loading="lazy"
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="skin-match__body">
|
||||
<span class="skin-match__lead">{{ lead | escape }}</span><span class="skin-match__rest">. {{ 'skin_match.bridge' | t }} <strong>{{ 'skin_match.brand' | t }}</strong> {{ rest | escape }}</span>
|
||||
</p>
|
||||
|
||||
{% if section.settings.button_link != blank %}
|
||||
<a class="skin-match__button" href="{{ section.settings.button_link }}">
|
||||
{{ button_label | escape }}
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="skin-match__button">{{ button_label | escape }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.skin-match {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding-bottom: 75px;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.skin-match__canvas {
|
||||
position: relative;
|
||||
width: min(1705px, calc(100% - 200px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.skin-match__blob {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.skin-match__blob img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.skin-match__blob--blue {
|
||||
top: 0;
|
||||
left: 64.81%;
|
||||
width: 18.01%;
|
||||
aspect-ratio: 307 / 300;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach {
|
||||
top: 11.82%;
|
||||
left: 12.32%;
|
||||
width: 14.31%;
|
||||
aspect-ratio: 244 / 264;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach img {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 108.2%;
|
||||
height: 92.42%;
|
||||
transform: translate(-50%, -50%) rotate(90deg);
|
||||
}
|
||||
|
||||
.skin-match__blob--green {
|
||||
top: 60.02%;
|
||||
left: 81.23%;
|
||||
width: 13.2%;
|
||||
aspect-ratio: 225 / 253;
|
||||
}
|
||||
|
||||
.skin-match__blob--pink {
|
||||
top: 70.05%;
|
||||
left: 2.11%;
|
||||
width: 16.3%;
|
||||
aspect-ratio: 278 / 266;
|
||||
}
|
||||
|
||||
.skin-match__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 37px 0 25px;
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: 1.15;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.skin-match__subheading {
|
||||
margin: 10px 0 0;
|
||||
color: #000;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 3fr 3fr 2fr;
|
||||
gap: 30px;
|
||||
align-items: center;
|
||||
margin-top: 53px;
|
||||
padding-left: 0.88%;
|
||||
}
|
||||
|
||||
.skin-match__photo {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.skin-match__photo--cheek {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.skin-match__photo--serum {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.skin-match__photo--jar {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.skin-match__photo--dropper {
|
||||
order: 4;
|
||||
}
|
||||
|
||||
.skin-match__image {
|
||||
position: absolute;
|
||||
max-width: none;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.skin-match__image--serum {
|
||||
top: -25.21%;
|
||||
left: 0;
|
||||
width: 100.42%;
|
||||
}
|
||||
|
||||
.skin-match__image--jar {
|
||||
top: -8.33%;
|
||||
left: -49.38%;
|
||||
width: 208.75%;
|
||||
}
|
||||
|
||||
.skin-match__image--dropper {
|
||||
top: -7.71%;
|
||||
left: 0;
|
||||
width: 101.25%;
|
||||
}
|
||||
|
||||
.skin-match__image--cheek {
|
||||
top: 0;
|
||||
left: -2.71%;
|
||||
width: 103.75%;
|
||||
}
|
||||
|
||||
.skin-match__body {
|
||||
max-width: 990px;
|
||||
margin: 50px auto 0;
|
||||
color: #808181;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.skin-match__lead {
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.skin-match__rest strong {
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.skin-match__button {
|
||||
display: flex;
|
||||
width: 326px;
|
||||
height: 50px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 50px auto 0;
|
||||
padding: 15px;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.skin-match__button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a.skin-match__button:hover {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
a.skin-match__button:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.skin-match__canvas {
|
||||
width: min(1705px, calc(100% - 80px));
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.skin-match__subheading,
|
||||
.skin-match__body {
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
gap: 20px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.skin-match__body,
|
||||
.skin-match__button {
|
||||
margin-top: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.skin-match {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.skin-match__canvas {
|
||||
width: min(382px, calc(100% - 30px));
|
||||
}
|
||||
|
||||
.skin-match__blob--blue {
|
||||
top: 3%;
|
||||
left: 58%;
|
||||
width: 42%;
|
||||
aspect-ratio: 199 / 194;
|
||||
}
|
||||
|
||||
.skin-match__blob--peach {
|
||||
top: 16%;
|
||||
left: -8%;
|
||||
width: 36%;
|
||||
aspect-ratio: 179 / 194;
|
||||
}
|
||||
|
||||
.skin-match__blob--green {
|
||||
top: 44%;
|
||||
left: 62%;
|
||||
width: 46%;
|
||||
aspect-ratio: 224 / 253;
|
||||
}
|
||||
|
||||
.skin-match__blob--pink {
|
||||
top: 62%;
|
||||
left: -18%;
|
||||
width: 52%;
|
||||
aspect-ratio: 246 / 236;
|
||||
}
|
||||
|
||||
.skin-match__content {
|
||||
padding: 0 0 8px;
|
||||
}
|
||||
|
||||
.skin-match__heading {
|
||||
font-size: 20px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.skin-match__subheading {
|
||||
max-width: 198px;
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.skin-match__gallery {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
margin-top: 30px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.skin-match__photo--serum {
|
||||
order: 1;
|
||||
grid-column: 1 / -1;
|
||||
width: 65.45%;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.skin-match__photo--dropper {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.skin-match__photo--cheek {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.skin-match__photo--jar {
|
||||
order: 4;
|
||||
grid-column: 1 / -1;
|
||||
width: 65.45%;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.skin-match__body {
|
||||
max-width: none;
|
||||
margin-top: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.skin-match__button {
|
||||
width: min(300px, 100%);
|
||||
height: 45px;
|
||||
margin-top: 30px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:skin_match.name",
|
||||
"tag": "section",
|
||||
"class": "skin-match-section",
|
||||
"disabled_on": {
|
||||
"groups": ["header", "footer"]
|
||||
},
|
||||
"settings": [
|
||||
{
|
||||
"type": "text",
|
||||
"id": "heading",
|
||||
"label": "t:skin_match.heading",
|
||||
"default": "¿Qué necesita tu piel hoy?"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "subheading",
|
||||
"label": "t:skin_match.subheading",
|
||||
"default": "Encuentra tu match de cuidado facial con Seasons."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "lead",
|
||||
"label": "t:skin_match.lead",
|
||||
"default": "No necesitas ser experta en skincare para cuidar de ti"
|
||||
},
|
||||
{
|
||||
"type": "textarea",
|
||||
"id": "rest",
|
||||
"label": "t:skin_match.rest",
|
||||
"default": "te acompañamos a encontrar los productos ideales para tu rutina, según lo que tu rostro necesita y cómo quieres sentirte cada día."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "button_label",
|
||||
"label": "t:skin_match.button_label",
|
||||
"default": "Buscar producto ideal"
|
||||
},
|
||||
{
|
||||
"type": "url",
|
||||
"id": "button_link",
|
||||
"label": "t:skin_match.button_link"
|
||||
},
|
||||
{
|
||||
"type": "image_picker",
|
||||
"id": "image_serum",
|
||||
"label": "t:skin_match.image_serum",
|
||||
"info": "t:skin_match.image_info"
|
||||
},
|
||||
{
|
||||
"type": "image_picker",
|
||||
"id": "image_jar",
|
||||
"label": "t:skin_match.image_jar",
|
||||
"info": "t:skin_match.image_info"
|
||||
},
|
||||
{
|
||||
"type": "image_picker",
|
||||
"id": "image_dropper",
|
||||
"label": "t:skin_match.image_dropper",
|
||||
"info": "t:skin_match.image_info"
|
||||
},
|
||||
{
|
||||
"type": "image_picker",
|
||||
"id": "image_cheek",
|
||||
"label": "t:skin_match.image_cheek",
|
||||
"info": "t:skin_match.image_info"
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"name": "t:skin_match.name"
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
Reference in New Issue
Block a user