update postInit api, add nav_logo opt

This commit is contained in:
undefined committed 2020-07-13 19:19:21 +08:00
1 parent 13e3e0ec98
commit 3eb593d134
16 files changed
+137 -47

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
</div>
<div class="error__text-container">
<h1>{{ _('Oops!') }}</h1>
<p>{{ _(error.message).format(error.params) }}</p>
<p>{{ _(error.message).format.apply(error.params) }}</p>
<p>{{ _('Technical Information') }}:</p>
<p>{{ _('Type') }}: {{ error.code }}</p>
<p>{{ _('Arguments') }}:
+48 -4
View File
@@ -1,10 +1,54 @@
/* {% if header %} */
/* {% if header_logo %} */
.header__logo {
background: url({{ header }}) !important
background: url({{header_logo}})
}
/* {% endif %} */
/* {% if headerBackground %} */
/* {% if header_background %} */
.header {
background: url({{ headerBackground }}) !important
background: url({{header_background}})
}
/* {% endif %} */
/* {% if nav_logo_light %} */
.nav__logo, .header--mobile__domain.is--system {
background-image: url({{nav_logo_light}})
}
/* {% endif %} */
/* {% if nav_logo_dark %} */
.nav.floating .nav__logo, .nojs .nav .nav__logo {
background-image: url({{nav_logo_dark}}) !important
}
/* {% endif %} */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi) {
/* {% if header_2x %} */
.header__logo {
background-image: url({{header_2x}})
}
/* {% endif %} */
/* {% if header_background_2x %} */
.header {
background-image: url({{header_background_2x}})
}
/* {% endif %} */
/* {% if nav_logo_light_2x %} */
.nav__logo, .header--mobile__domain.is--system {
background-image: url({{nav_logo_light_2x}}) !important
}
/* {% endif %} */
/* {% if nav_logo_dark_2x %} */
.nav.floating .nav__logo, .nojs .nav .nav__logo, .header--mobile__domain.is--system {
background-image: url({{nav_logo_dark_2x}}) !important
}
/* {% endif %} */
}
+1 -1
View File
@@ -30,7 +30,7 @@
var _htmlNode = document.documentElement;
_htmlNode.className = _htmlNode.className.replace(' nojs', ' hasjs');
var UiContext = {{ handler.UIContext|json|safe }};
var UserContext = {{ currentUser|json|safe }};
var UserContext = {{ UserContext|json|safe }};
</script>
{% endif %}
</head>