mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Shop] Enable customization of body classes
This commit is contained in:
parent
f3eee82072
commit
b0ccfc064f
5 changed files with 15 additions and 1 deletions
|
|
@ -1,5 +1,16 @@
|
|||
sylius_twig_hooks:
|
||||
hooks:
|
||||
'sylius_shop.base#body_classes':
|
||||
d_flex:
|
||||
template: '@SyliusShop/shared/layout/base/body_classes/d_flex.html.twig'
|
||||
priority: 0
|
||||
flex_column:
|
||||
template: '@SyliusShop/shared/layout/base/body_classes/flex_column.html.twig'
|
||||
priority: 0
|
||||
min_vh_100:
|
||||
template: '@SyliusShop/shared/layout/base/body_classes/min_vh_100.html.twig'
|
||||
priority: 0
|
||||
|
||||
'sylius_shop.base#stylesheets':
|
||||
styles:
|
||||
template: '@SyliusShop/shared/layout/base/styles.html.twig'
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<body data-route="{{ app.request.get('_route') }}">
|
||||
{% block body %}
|
||||
<div class="d-flex flex-column min-vh-100">
|
||||
<div class="{% apply escape %}{% hook '#body_classes' with { _prefixes: prefixes } %}{% endapply %}">
|
||||
{% block header %}
|
||||
{% hook 'header' with { _prefixes: prefixes } %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
d-flex
|
||||
|
|
@ -0,0 +1 @@
|
|||
flex-column
|
||||
|
|
@ -0,0 +1 @@
|
|||
min-vh-100
|
||||
Loading…
Add table
Reference in a new issue