template: remove msie_css_page_picture block (#81090)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Thomas Jund 2023-09-12 10:08:56 +02:00 committed by Thomas Jund
parent 0abb69b7a2
commit 00e5e8e0c1
3 changed files with 0 additions and 27 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}