template: remove msie_css_page_picture block (#81090)
gitea/publik-base-theme/pipeline/head This commit looks good
Details
gitea/publik-base-theme/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0abb69b7a2
commit
00e5e8e0c1
|
@ -37,16 +37,6 @@
|
|||
:root {
|
||||
--page-picture: url("{{site_base}}{{page.picture.url}}");
|
||||
}
|
||||
{% block msie_css_page_picture %}
|
||||
{# IE11 doesn't support CSS variable and supports() API, so we set it here #}
|
||||
{# and themes that do need a different CSS will have to redefine the #}
|
||||
{# msie_css_page_picture block. #}
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
body.has-picture nav::after {
|
||||
background-image: url("{{site_base}}{{page.picture.url}}");
|
||||
}
|
||||
}
|
||||
{% endblock %}
|
||||
</style>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
{% extends "combo/page_template.html" %}
|
||||
|
||||
{% block msie_css_page_picture %}
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
.collectivity-header--default {
|
||||
background-image: url("{{site_base}}{{page.picture.url}}");
|
||||
}
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyclasses %}
|
||||
{{ block.super }}
|
||||
{% if not page.exclude_from_navigation and page.parent is None %}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "combo/page_template.html" %}
|
||||
|
||||
{% block msie_css_page_picture %}
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
body.has-picture {
|
||||
background-image: url("{{site_base}}{{page.picture.url}}");
|
||||
}
|
||||
}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue