gate logo image mask stuff behind @supports query

This commit is contained in:
Gwendolyn 2024-03-29 21:17:07 +01:00
parent d8735fab0b
commit 77b916f4b4

View file

@ -45,6 +45,7 @@
{% endblock %} {% endblock %}
{% if header_logo and header_logo_mask_mode %} {% if header_logo and header_logo_mask_mode %}
<style> <style>
@supports (mask-mode: {{ header_logo_mask_mode }}) and (mask-repeat: no-repeat) and (mask-size: contain) {
#header-logo-link { #header-logo-link {
mask-image: url('{% static header_logo %}'); mask-image: url('{% static header_logo %}');
mask-mode: {{ header_logo_mask_mode }}; mask-mode: {{ header_logo_mask_mode }};
@ -56,6 +57,7 @@
#header-logo-link > img { #header-logo-link > img {
visibility: hidden; visibility: hidden;
} }
}
</style> </style>
{% endif %} {% endif %}
</head> </head>