<hr class="spacer" data-size="s">
<hr class="spacer" data-size="{{ size }}">
{
"size": "s"
}
import $ from "jquery";
$('.video-preview').click(function() {
$(this).parent().find('.video-overlay').addClass('is-open');
});
$('.video-dimmer').click(function() {
$(this).parent().removeClass('is-open');
$(this).parent().find('.youtube-iframe').attr('src', $(this).parent().find('.youtube-iframe').attr('src'));
});
$('.close-video-btn').click(function() {
$(this).parent().removeClass('is-open');
$(this).parent().find('.youtube-iframe').attr('src', $(this).parent().find('.youtube-iframe').attr('src'));
});
.spacer {
border: none !important;
height: 5rem;
&[data-size="xs"] {
height: 4rem;
}
&[data-size="s"] {
height: 5rem;
}
&[data-size="m"] {
height: 7.5rem;
}
&[data-size="l"] {
height: 10rem;
}
&[data-size="xl"] {
height: 15rem;
}
}
There are no notes for this item.