ajout d'une variable --path : chemin d'acces au theme

This commit is contained in:
Pierre Cadeot 2021-02-05 10:20:14 +04:00
parent fda8577ac7
commit 325de094d0
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(/ninegate/bundles/cadolescore/themes/metice2021/small-logo.svg) no-repeat;
background: url(var(--path) 'small-logo.svg') no-repeat;
width: 62px; /* Width of new image */
height: 23px; /* Height of new image */
padding-left: 62px; /* Equal to width of new image */
@ -235,7 +235,7 @@ div.header {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(/ninegate/bundles/cadolescore/themes/metice2021/small-logo.svg) no-repeat;
background: url(var(--path) 'small-logo.svg') no-repeat;
width: 62px; /* Width of new image */
height: 23px; /* Height of new image */
padding-left: 62px; /* Equal to width of new image */

View File

@ -29,6 +29,7 @@
--fontfacebody: {{ app.session.get('fontfacebody') }};
--header: url(/{{ alias }}/{{ header }});
--logo: url(/{{ alias }}/{{ logo }});
--path: url(/{{ alias }}/);
{% if not app.session.get('sublogo') is empty %}
--sublogo: url(/{{ alias }}/{{ app.session.get('sublogo') }});
{% else %}