quitar media print css
This commit is contained in:
@@ -0,0 +1,294 @@
|
||||
{% capture marquee_items %}
|
||||
{% if section.blocks.size > 0 %}
|
||||
{% for block in section.blocks %}
|
||||
<div class="marquee__item" {{ block.shopify_attributes }}>
|
||||
<span class="marquee__badge">
|
||||
<span class="marquee__glyph marquee__glyph--{{ block.settings.icon }}">
|
||||
{% case block.settings.icon %}
|
||||
{% when 'payment' %}
|
||||
{{ 'icon-marquee-card.svg' | inline_asset_content }}
|
||||
{% when 'installments' %}
|
||||
<span class="marquee__layer marquee__layer--body">{{ 'icon-marquee-wallet.svg' | inline_asset_content }}</span>
|
||||
<span class="marquee__layer marquee__layer--flap">{{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }}</span>
|
||||
<span class="marquee__layer marquee__layer--mark">{{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }}</span>
|
||||
{% when 'guarantee' %}
|
||||
{{ 'icon-marquee-guarantee.svg' | inline_asset_content }}
|
||||
{% else %}
|
||||
{{ 'icon-marquee-shipping.svg' | inline_asset_content }}
|
||||
{% endcase %}
|
||||
</span>
|
||||
</span>
|
||||
<p class="marquee__copy">
|
||||
<strong>{{ block.settings.title }}</strong>
|
||||
<span>{{ block.settings.text }}</span>
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="marquee__item">
|
||||
<span class="marquee__badge"><span class="marquee__glyph marquee__glyph--shipping">{{ 'icon-marquee-shipping.svg' | inline_asset_content }}</span></span>
|
||||
<p class="marquee__copy"><strong>{{ 'marquee.shipping_title' | t }}</strong><span>{{ 'marquee.shipping_text' | t }}</span></p>
|
||||
</div>
|
||||
<div class="marquee__item">
|
||||
<span class="marquee__badge"><span class="marquee__glyph marquee__glyph--payment">{{ 'icon-marquee-card.svg' | inline_asset_content }}</span></span>
|
||||
<p class="marquee__copy"><strong>{{ 'marquee.payment_title' | t }}</strong><span>{{ 'marquee.payment_text' | t }}</span></p>
|
||||
</div>
|
||||
<div class="marquee__item">
|
||||
<span class="marquee__badge">
|
||||
<span class="marquee__glyph marquee__glyph--installments">
|
||||
<span class="marquee__layer marquee__layer--body">{{ 'icon-marquee-wallet.svg' | inline_asset_content }}</span>
|
||||
<span class="marquee__layer marquee__layer--flap">{{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }}</span>
|
||||
<span class="marquee__layer marquee__layer--mark">{{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }}</span>
|
||||
</span>
|
||||
</span>
|
||||
<p class="marquee__copy"><strong>{{ 'marquee.installments_title' | t }}</strong><span>{{ 'marquee.installments_text' | t }}</span></p>
|
||||
</div>
|
||||
<div class="marquee__item">
|
||||
<span class="marquee__badge"><span class="marquee__glyph marquee__glyph--guarantee">{{ 'icon-marquee-guarantee.svg' | inline_asset_content }}</span></span>
|
||||
<p class="marquee__copy"><strong>{{ 'marquee.guarantee_title' | t }}</strong><span>{{ 'marquee.guarantee_text' | t }}</span></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
<div class="marquee full-width">
|
||||
<div class="marquee__track">
|
||||
<div class="marquee__set">{{ marquee_items }}</div>
|
||||
<div class="marquee__set" aria-hidden="true">{{ marquee_items }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.marquee-section {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.marquee {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(90deg, #7dcaaf 0%, #a9ddfa 70.064%, #d2ebf9 133.7%);
|
||||
}
|
||||
|
||||
.marquee__track {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
animation: marquee-scroll 36s linear infinite;
|
||||
}
|
||||
|
||||
.marquee__set {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 192px;
|
||||
padding-right: 192px;
|
||||
}
|
||||
|
||||
.marquee__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.marquee__badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
flex: 0 0 45px;
|
||||
border: 1px solid #000;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.marquee__glyph {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.marquee__glyph > svg,
|
||||
.marquee__layer {
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.marquee__layer svg {
|
||||
position: static;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.marquee__glyph--shipping svg {
|
||||
top: 2px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__glyph--payment svg {
|
||||
top: 2px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__glyph--guarantee svg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.marquee__layer--body {
|
||||
top: 6px;
|
||||
left: 1px;
|
||||
}
|
||||
|
||||
.marquee__layer--flap {
|
||||
top: 1px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.marquee__layer--mark {
|
||||
top: 2px;
|
||||
left: 7px;
|
||||
}
|
||||
|
||||
.marquee__copy {
|
||||
margin: 0;
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.marquee__copy strong {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(-50%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1119px) {
|
||||
.marquee {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.marquee__set {
|
||||
gap: 50px;
|
||||
padding-right: 50px;
|
||||
}
|
||||
|
||||
.marquee__item {
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.marquee__badge {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
flex-basis: 35px;
|
||||
}
|
||||
|
||||
.marquee__copy {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.marquee__track {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:marquee.name",
|
||||
"class": "marquee-section",
|
||||
"disabled_on": {
|
||||
"groups": ["header", "footer"]
|
||||
},
|
||||
"settings": [],
|
||||
"blocks": [
|
||||
{
|
||||
"type": "item",
|
||||
"name": "t:marquee.item",
|
||||
"settings": [
|
||||
{
|
||||
"type": "select",
|
||||
"id": "icon",
|
||||
"label": "t:marquee.icon",
|
||||
"default": "shipping",
|
||||
"options": [
|
||||
{ "value": "shipping", "label": "t:marquee.icon_shipping" },
|
||||
{ "value": "payment", "label": "t:marquee.icon_payment" },
|
||||
{ "value": "installments", "label": "t:marquee.icon_installments" },
|
||||
{ "value": "guarantee", "label": "t:marquee.icon_guarantee" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "title",
|
||||
"label": "t:marquee.title",
|
||||
"default": "Envío gratis"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "text",
|
||||
"label": "t:marquee.text",
|
||||
"default": "Desde $699 a todo México."
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"name": "t:marquee.name",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "item",
|
||||
"settings": {
|
||||
"icon": "shipping",
|
||||
"title": "Envío gratis",
|
||||
"text": "Desde $699 a todo México."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "item",
|
||||
"settings": {
|
||||
"icon": "payment",
|
||||
"title": "Pago seguro",
|
||||
"text": "Métodos confiables y cifrados."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "item",
|
||||
"settings": {
|
||||
"icon": "installments",
|
||||
"title": "Pago a plazos",
|
||||
"text": "Con Mercado Pago, Kueski Pay o Aplazo."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "item",
|
||||
"settings": {
|
||||
"icon": "guarantee",
|
||||
"title": "Garantía de entrega",
|
||||
"text": "Reenvío sin costo si algo falla."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
Reference in New Issue
Block a user