mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Adjusted targeted link and footnote offsets
This commit is contained in:
parent
d492e613a1
commit
507d44f264
@ -1,3 +1,7 @@
|
|||||||
|
mkdocs-material-2.x.x (2017-xx-xx)
|
||||||
|
|
||||||
|
* Adjusted targeted link and footnote offsets
|
||||||
|
|
||||||
mkdocs-material-2.2.1 (2017-12-02)
|
mkdocs-material-2.2.1 (2017-12-02)
|
||||||
|
|
||||||
* Fixed #616: Minor styling error with title-only admonition blocks
|
* Fixed #616: Minor styling error with title-only admonition blocks
|
||||||
|
File diff suppressed because one or more lines are too long
@ -46,7 +46,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.41c6761c.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.ac64251e.css">
|
||||||
{% if palette.primary or palette.accent %}
|
{% if palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
// Targeted anchor
|
// Targeted anchor
|
||||||
&:target {
|
&:target {
|
||||||
margin-top: -(4.8rem + 2.4rem + 1.6rem);
|
margin-top: -(4.8rem + 1.2rem + 1.6rem);
|
||||||
padding-top: (4.8rem + 2.4rem + 1.6rem);
|
padding-top: (4.8rem + 1.2rem + 1.6rem);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,8 +52,8 @@
|
|||||||
// Targeted anchor
|
// Targeted anchor
|
||||||
&:target::before {
|
&:target::before {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: -(4.8rem + 2.4rem + 1rem);
|
margin-top: -(4.8rem + 1.2rem + 1rem);
|
||||||
padding-top: (4.8rem + 2.4rem + 1rem);
|
padding-top: (4.8rem + 1.2rem + 1rem);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,9 +56,9 @@
|
|||||||
|
|
||||||
// Correct anchor offset for link blurring
|
// Correct anchor offset for link blurring
|
||||||
@each $level, $delta in (
|
@each $level, $delta in (
|
||||||
h2: 0.4rem,
|
h2: 0.8rem,
|
||||||
h3: 0.7rem,
|
h3: 0.9rem,
|
||||||
h4: 0.8rem,
|
h4: 0.9rem,
|
||||||
h5: 1.1rem,
|
h5: 1.1rem,
|
||||||
h6: 1.1rem
|
h6: 1.1rem
|
||||||
) {
|
) {
|
||||||
@ -72,10 +72,10 @@
|
|||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Targeted anchor (48px from header, 24px from sidebar offset)
|
// Targeted anchor (48px from header, 12px from sidebar offset)
|
||||||
&:target::before {
|
&:target::before {
|
||||||
margin-top: -(4.8rem + 2.4rem + $delta);
|
margin-top: -(4.8rem + 1.2rem + $delta);
|
||||||
padding-top: (4.8rem + 2.4rem + $delta);
|
padding-top: (4.8rem + 1.2rem + $delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make permalink visible on hover
|
// Make permalink visible on hover
|
||||||
|
Loading…
Reference in New Issue
Block a user