Fixed overlay of back-to-top button and header

This commit is contained in:
squidfunk 2021-07-03 16:05:43 +02:00
parent 2bcc7f3c9d
commit 3649fdac42
6 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1ff57afd.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.3d0eea20.min.css' | url }}">
{% if config.theme.palette %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f1a3b89f.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f1a3b89f.min.css' | url }}">
@ -178,7 +178,7 @@
</div> </div>
</div> </div>
{% if "navigation.top" in features %} {% if "navigation.top" in features %}
<a href="#" class="md-top md-icon" title="{{ lang.t('top.title') }}" data-md-component="top" data-md-state="hidden"> <a href="#" class="md-top md-icon" data-md-component="top" data-md-state="hidden">
{% include ".icons/material/arrow-up.svg" %} {% include ".icons/material/arrow-up.svg" %}
{{ lang.t('top.title') }} {{ lang.t('top.title') }}
</a> </a>

View File

@ -52,8 +52,9 @@
// Back-to-top button in hidden state // Back-to-top button in hidden state
&[data-md-state="hidden"] { &[data-md-state="hidden"] {
transform: translate(-50%, px2rem(+4px)); transform: translate(-50%, px2rem(4px));
opacity: 0; opacity: 0;
transition-duration: 0ms;
pointer-events: none; pointer-events: none;
} }

View File

@ -339,7 +339,6 @@
<a <a
href="#" href="#"
class="md-top md-icon" class="md-top md-icon"
title="{{ lang.t('top.title') }}"
data-md-component="top" data-md-component="top"
data-md-state="hidden" data-md-state="hidden"
> >