mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved footnote accessibility and removed unnecessary code annotation CSS
This commit is contained in:
parent
a147864796
commit
ad1b964aaa
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.b5f74394.min.css.map
Normal file
1
material/assets/stylesheets/main.b5f74394.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
@ -34,7 +34,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.d5e8cd35.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b5f74394.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">
|
||||
|
@ -53,7 +53,14 @@
|
||||
color: var(--md-default-fg-color);
|
||||
}
|
||||
|
||||
// Show backreferences on footnote hover
|
||||
// Show backreferences on footnote focus without transition
|
||||
&:focus-within .footnote-backref {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
// Show backreferences on footnote hover/target
|
||||
&:hover .footnote-backref,
|
||||
&:target .footnote-backref {
|
||||
transform: translateX(0);
|
||||
|
@ -104,32 +104,12 @@
|
||||
@media (prefers-reduced-motion) {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
// Modifier for end alignment
|
||||
&--end {
|
||||
transform: translate(-100%, 0);
|
||||
}
|
||||
|
||||
// Modifier for center alignment
|
||||
&--center {
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Show outline for keyboard devices
|
||||
.focus-visible > & {
|
||||
outline: var(--md-accent-fg-color) auto;
|
||||
}
|
||||
|
||||
// Modifier for end alignment
|
||||
&--end {
|
||||
transform: translate(-100%, px2rem(8px));
|
||||
}
|
||||
|
||||
// Modifier for center alignment
|
||||
&--center {
|
||||
transform: translate(-50%, px2rem(8px));
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -202,10 +182,5 @@
|
||||
max-width: 60%;
|
||||
margin: px2em(-16px, 13.6px) px2em(10px, 13.6px) 0;
|
||||
font-family: var(--md-text-font-family);
|
||||
|
||||
// Modifier for center alignment
|
||||
&--center {
|
||||
margin-top: px2em(10px, 13.6px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user