{% set spacerClassName = random() %}
{% set className = className ?? '' %}
{% set containerId = containerId ?? null %}
{% set height = height ?? null %}
{% set mediumHeight = mediumHeight ?? null %}
{% set largeHeight = largeHeight ?? null %}
{% set xlargeHeight = xlargeHeight ?? null %}
{% set width = width ?? null %}
{% set mediumWidth = mediumWidth ?? null %}
{% set largeWidth = largeWidth ?? null %}
{% set xlargeWidth = xlargeWidth ?? null %}
<div class="spacer-{{ spacerClassName }} {{ className }}" {% if containerId != null %}id="{{ containerId }}"{% endif %}></div>
<style>
.spacer-{{ spacerClassName }} {
{% if height %}
height: {{ height / 16 }}rem;
{% endif %}
{% if width %}
flex: 0 0 {{ width / 16 }}rem;
width: {{ width / 16 }}rem;
{% endif %}
}
@media screen and (min-width: 640px) {
.spacer-{{ spacerClassName }} {
{% if mediumHeight is not null %}
height: {{ mediumHeight / 16 }}rem;
{% endif %}
{% if mediumWidth is not null %}
flex: 0 0 {{ mediumWidth / 16 }}rem;
width: {{ mediumWidth / 16 }}rem;
{% endif %}
}
}
@media screen and (min-width: 1024px) {
.spacer-{{ spacerClassName }} {
{% if largeHeight is not null %}
height: {{ largeHeight / 16 }}rem;
{% endif %}
{% if largeWidth is not null %}
flex: 0 0 {{ largeWidth / 16 }}rem;
width: {{ largeWidth / 16 }}rem;
{% endif %}
}
}
@media screen and (min-width: 1200px) {
.spacer-{{ spacerClassName }} {
{% if xlargeHeight is not null %}
height: {{ xlargeHeight / 16 }}rem;
{% endif %}
{% if xlargeWidth is not null %}
flex: 0 0 {{ xlargeWidth / 16 }}rem;
width: {{ xlargeWidth / 16 }}rem;
{% endif %}
}
}
</style>