mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed copy-to-clipboard adding blank lines when using line anchors (8.1.0 regression)
This commit is contained in:
parent
d7155fc523
commit
687466d7ba
2
material/assets/stylesheets/main.840a26e4.min.css
vendored
Normal file
2
material/assets/stylesheets/main.840a26e4.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.840a26e4.min.css.map
Normal file
1
material/assets/stylesheets/main.840a26e4.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
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.fc338f16.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.840a26e4.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.dc90facb.min.css' | url }}">
|
||||
|
@ -204,9 +204,12 @@
|
||||
// Code block line anchors - Chrome and Safari seem to have a strange bug
|
||||
// where scroll margin is not applied to anchors inside code blocks. Setting
|
||||
// positioning to absolute seems to fix the problem. Interestingly, this does
|
||||
// not happen in Firefox.
|
||||
// not happen in Firefox. Furthermore we must set `visibility: hidden` or
|
||||
// the copy to clipboard functionality will include an empty line between
|
||||
// each set of lines.
|
||||
code a[id] {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
// Button on focus/hover
|
||||
&:where(:focus, :hover) {
|
||||
&:is(:focus, :hover) {
|
||||
color: var(--md-accent-fg-color);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user