Skip to content

Instantly share code, notes, and snippets.

.box {
width: XXpx;
min-width: XXpx;
max-width: XXpx;
}
.box {
display: inline-block;
min-width: 50%;
max-width: 100%;
width: calc((480px - 100%) * 480);
}
{% if product.tags.size > 0 %}
<div class="product-single__tags">
<p>
Tags:
{% for tag in product.tags %}
{% assign tag_coll = '/collections/all/' | append: tag %}
{{ tag | capitalize | link_to: tag_coll }}{% unless forloop.last %},{% endunless %}
{% endfor %}
</p>
</div>
.block {
display: inline-block;
min-width: 50%; /* 300px */
max-width: 100%; /* 600px */
width: calc((480px - 100%) * 480); /* or [calc((480px - 600px) * 480);], which equals -57,600px */
}
<div class="product-form__item product-form__item--lip">
<label for="Engraving">Engraving</label>
<input type="text" id="engraving" name="properties[Engraving]">
</div>
.block {
display: inline-block;
min-width: 50%; /* 150px */
max-width: 100%; /* 300px */
width: calc((480px - 100%) * 480); /* or [calc((480px - 300px) * 480);], which equals 86,400px */
}
<input type="radio" id="itemA-1" />
<input type="radio" id="itemA-2" />
<input type="radio" id="itemA-3" />
<label for="itemA-1" />Carousel</label>
<label for=“itemD-11" />div</label>
}
#itemA-3:checked ~
#itemB-6:checked ~
#itemC-2:checked ~
#itemD-11:checked ~
#itemE-5:not:checked ~
#itemF-2:checked ~
#itemG-5:checked ~ * .div1 {
display: block;
}