Skip to content

Commit 7dcc0a1

Browse files
committed
Simplified footnote CSS
1 parent 3f8a057 commit 7dcc0a1

File tree

6 files changed

+13
-23
lines changed

6 files changed

+13
-23
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
mkdocs-material-8.0.5+insiders-4.x.x (2021-xx-xx)
2+
3+
* Updated German translations for cookie consent
4+
15
mkdocs-material-8.0.5 (2012-12-04)
26

37
* Fixed #3302: Footer refactoring induced ellipsis in some browsers

material/assets/stylesheets/main.cdfe358e.min.css.map

-1
This file was deleted.

material/assets/stylesheets/main.cdfe358e.min.css renamed to material/assets/stylesheets/main.e306df54.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.e306df54.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
{% endblock %}
3636
{% block styles %}
37-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cdfe358e.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e306df54.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

src/assets/stylesheets/main/extensions/markdown/_footnotes.scss

+5-19
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
}
8686
}
8787

88+
// Show outline for all devices
89+
[id^="fnref:"]:target > .footnote-ref {
90+
outline: auto;
91+
}
92+
8893
// Footnote backreference
8994
.footnote-backref {
9095
display: inline-block;
@@ -137,23 +142,4 @@
137142
}
138143
}
139144
}
140-
141-
// Footnote reference wrapper
142-
[id^="fnref:"]:target {
143-
scroll-margin-top: initial;
144-
margin-top: -1 * px2rem(48px + 24px - 4px);
145-
padding-top: px2rem(48px + 24px - 4px);
146-
147-
// Show outline for all devices
148-
> .footnote-ref {
149-
outline: auto;
150-
}
151-
}
152-
153-
// Footnote wrapper
154-
[id^="fn:"]:target {
155-
scroll-margin-top: initial;
156-
margin-top: -1 * px2rem(48px + 24px - 3px);
157-
padding-top: px2rem(48px + 24px - 3px);
158-
}
159145
}

0 commit comments

Comments
 (0)