13 lines
1.1 KiB
Twig
13 lines
1.1 KiB
Twig
{% block custom_stylesheets %}
|
|
{% do assets.addCss('theme://css/text.css', 10) %}
|
|
{% if page.header.bgimage != '' %}{% do assets.addInlineCss("#textbg-#{ page.id } { z-index: 1; position: relative; } #textbg-#{ page.id }::before { content: ''; background-image: url(#{ page.media[page.header.bgimage].url }); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-position: center top; background-size: cover; background-repeat: no-repeat; #{ page.header.bgimgstyle } }", 10) %}{% endif %}
|
|
{% if page.header.bgcolor != '' %}{% do assets.addInlineCss("#textbg-#{ page.id } { background-color: #{ page.header.bgcolor } }") %}{% endif %}
|
|
{% if page.header.textstyle != '' %}{% do assets.addInlineCss("#textbg-#{ page.id } { #{ page.header.textstyle } }") %}{% endif %}
|
|
{% endblock %}
|
|
<div id="textbg-{{ page.id }}" class="page-cell{% if page.header.fullwidth == 1 %}-fullwidth{% endif %}">
|
|
<div class="page-content-wrapper">
|
|
<div class="page-text-wrapper">
|
|
<div class="text-inner">{{ page.content|raw }}</div>
|
|
</div>
|
|
</div>
|
|
</div> |