mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update postInit api, add nav_logo opt
This commit is contained in:
1 parent
13e3e0ec98
commit
3eb593d134
16 files changed
+137
-47
No files matched your search
@@ -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
@@ -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 %} */
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user