Merge pull request #102 from squidfunk/fix/footnote-back-reference-position

Fixed footer back reference positions
This commit is contained in:
Martin Donath 2017-01-14 18:46:21 +01:00 committed by GitHub
commit 7b653fac4e
3 changed files with 8 additions and 11 deletions

View File

@ -45,7 +45,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-fa1296f85d.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-e081c8cda4.css">
{% if config.extra.palette %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %} {% endif %}

View File

@ -83,24 +83,21 @@
.footnote-backref { .footnote-backref {
@extend %md-icon; @extend %md-icon;
position: absolute; display: inline-block;
transform: translateX(0.5rem); transform: translateX(0.5rem);
transition: transition:
transform 0.25s 0.125s, transform 0.25s 0.125s,
color 0.25s, color 0.25s,
opacity 0.125s 0.125s; opacity 0.125s 0.125s;
color: $md-color-black--lighter; color: $md-color-black--lighter;
font-size: 1.5625em;
opacity: 0;
vertical-align: middle;
// Hack: remove Unicode arrow for icon // Hack: remove Unicode arrow for icon
&::first-letter { font-size: 0;
font-size: 0; opacity: 0;
} vertical-align: text-bottom;
// Back reference icon // Back reference icon
&::after { &::before {
font-size: 1.6rem;
content: "keyboard_return"; content: "keyboard_return";
} }
} }