variable --themespath plus générique pour viser un fichier du dossier theme de son choix

This commit is contained in:
Pierre Cadeot 2021-02-05 17:16:49 +04:00
parent 3e1145da88
commit d878f3ca9f
2 changed files with 3 additions and 3 deletions

View File

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

View File

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