Simplified footnote CSS

This commit is contained in:
squidfunk 2021-12-08 18:08:41 +01:00
parent 3f8a0578b8
commit 7dcc0a1e3a
6 changed files with 13 additions and 23 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-8.0.5+insiders-4.x.x (2021-xx-xx)
* Updated German translations for cookie consent
mkdocs-material-8.0.5 (2012-12-04)
* Fixed #3302: Footer refactoring induced ellipsis in some browsers

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cdfe358e.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e306df54.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

View File

@ -85,6 +85,11 @@
}
}
// Show outline for all devices
[id^="fnref:"]:target > .footnote-ref {
outline: auto;
}
// Footnote backreference
.footnote-backref {
display: inline-block;
@ -137,23 +142,4 @@
}
}
}
// Footnote reference wrapper
[id^="fnref:"]:target {
scroll-margin-top: initial;
margin-top: -1 * px2rem(48px + 24px - 4px);
padding-top: px2rem(48px + 24px - 4px);
// Show outline for all devices
> .footnote-ref {
outline: auto;
}
}
// Footnote wrapper
[id^="fn:"]:target {
scroll-margin-top: initial;
margin-top: -1 * px2rem(48px + 24px - 3px);
padding-top: px2rem(48px + 24px - 3px);
}
}