mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved footnote styles on :target and :focus
This commit is contained in:
parent
4feba2ebcf
commit
6c6dd2a0db
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.ccbd2aba.min.css.map
Normal file
1
material/assets/stylesheets/main.ccbd2aba.min.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e35208c4.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.ccbd2aba.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.ef6f36e2.min.css' | url }}">
|
||||
|
@ -34,20 +34,6 @@
|
||||
// Scoped in typesetted content to match specificity of regular content
|
||||
.md-typeset {
|
||||
|
||||
// Footnote reference
|
||||
[id^="fnref:"]:target {
|
||||
scroll-margin-top: initial;
|
||||
margin-top: -1 * px2rem(48px + 24px - 4px);
|
||||
padding-top: px2rem(48px + 24px - 4px);
|
||||
}
|
||||
|
||||
// Footnote
|
||||
[id^="fn:"]:target {
|
||||
scroll-margin-top: initial;
|
||||
margin-top: -1 * px2rem(48px + 24px - 3px);
|
||||
padding-top: px2rem(48px + 24px - 3px);
|
||||
}
|
||||
|
||||
// Footnote container
|
||||
.footnote {
|
||||
color: var(--md-default-fg-color--light);
|
||||
@ -86,6 +72,11 @@
|
||||
.footnote-ref {
|
||||
font-weight: 700;
|
||||
font-size: px2em(12px, 16px);
|
||||
|
||||
// Hack: increase specificity to override default
|
||||
html & {
|
||||
outline-offset: px2rem(2px);
|
||||
}
|
||||
}
|
||||
|
||||
// Footnote backreference
|
||||
@ -140,4 +131,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user