{% set slides = page.header.slides %} {% block custom_stylesheets %} {% do assets.addCss('theme://css/slideshowext.css', 90) %} {% set slideStyle %} {% for image in slides %} #slide{{ loop.index }}:checked ~ #slide-content{{ loop.index }} { opacity: 1; visibility: visible; transition: visibility 0s 2s, opacity 2s 2s linear; } {% endfor %} {% for image in slides %} .slideshow-ext > input:nth-of-type({{ loop.index }}):checked ~ .slideshow-controls > label:nth-of-type({{ loop.index0 }}){% if loop.index < slides|length %},{% endif %} {% endfor %}{ display: block; left: 0; right: auto; -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg); } {% for image in slides %} .slideshow-ext > input:nth-of-type({{ loop.index }}):checked ~ .slideshow-controls > label:nth-of-type({{ loop.index + 1 }}){% if loop.index < slides|length %},{% endif %} {% endfor %}{ display: block; right: 0; left: auto; -moz-transform: rotate(225deg); -ms-transform: rotate(225deg); -o-transform: rotate(225deg); -webkit-transform: rotate(225deg); transform: rotate(225deg); } {% endset %} {% do assets.addInlineCss(slideStyle, 90) %} {% endblock %}