Fixed permalink characters being part of textContent

This commit is contained in:
squidfunk 2020-02-16 00:53:45 +01:00
parent a399540940
commit ca260e0faf
6 changed files with 21 additions and 11 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.a0e3393a.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.a0e3393a.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.a111dfc8.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.a111dfc8.min.js.map",
"assets/javascripts/worker/packer.js": "assets/javascripts/worker/packer.c14659e8.min.js",
"assets/javascripts/worker/packer.js.map": "assets/javascripts/worker/packer.c14659e8.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.3144ce89.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.3144ce89.min.js.map",
"assets/stylesheets/app-palette.scss": "assets/stylesheets/app-palette.8c25017f.min.css",
"assets/stylesheets/app.scss": "assets/stylesheets/app.3d7b25ce.min.css"
"assets/stylesheets/app.scss": "assets/stylesheets/app.4918cd9c.min.css"
}

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.3d7b25ce.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.4918cd9c.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/app-palette.8c25017f.min.css' | url }}">
{% endif %}
@ -190,7 +190,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.a0e3393a.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.a111dfc8.min.js' | url }}"></script>
<script id="__lang" type="application/json">
{%- set translations = {} -%}
{%- for key in [

View File

@ -33,10 +33,14 @@
margin-left: px2rem(10px);
transform: translate(0, px2rem(5px));
transition:
transform 0.25s 0.25s,
color 0.25s,
opacity 0.125s 0.25s;
transform 0.25s 0.25s,
color 0.25s,
opacity 0.125s 0.25s,
visibility 0s 0.5s;
opacity: 0;
// Hack: If we don't set visibility hidden, the text content of the node
// will include the headerlink character, which is why Google indexes them.
visibility: hidden;
// Adjust for RTL languages
[dir="rtl"] & {
@ -85,7 +89,13 @@
&:target .headerlink,
& .headerlink:focus {
transform: translate(0, 0);
transition:
transform 0.25s 0.25s,
color 0.25s,
opacity 0.125s 0.25s,
visibility 0s;
opacity: 1;
visibility: visible;
}
// Active or targeted permalink