mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-30 09:43:05 -04:00
Merge branch 'master' into refactor/sidebar-height-spacing
This commit is contained in:
@@ -80,18 +80,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Hide anchor for top-level heading, as it makes no sense
|
||||
h1[id] .headerlink {
|
||||
display: none;
|
||||
// Correct headline offset with padding due to margin layering
|
||||
h1[id] {
|
||||
padding-top: 0.8rem;
|
||||
|
||||
// Hide anchor for top-level heading, as it makes no sense
|
||||
&.headerlink {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Correct anchor offset for link blurring
|
||||
@each $level, $delta in (
|
||||
h2: 0.2rem,
|
||||
h3: 0.4rem,
|
||||
h4: 0.6rem,
|
||||
h5: 1rem,
|
||||
h6: 1rem
|
||||
h2: 0.4rem,
|
||||
h3: 0.7rem,
|
||||
h4: 0.8rem,
|
||||
h5: 1.1rem,
|
||||
h6: 1.1rem
|
||||
) {
|
||||
|
||||
// Un-targeted anchor
|
||||
|
||||
Reference in New Issue
Block a user