Revert "Update theme-default style for accessible header-anchors"

This reverts commit 7b941cd1b0.
pull/2104/head
Alija Sabic 2 years ago committed by Evan You
parent 03e9e4206a
commit a100f88993

@ -2,7 +2,12 @@
* Headings * Headings
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
.vp-doc .header-wrapper { .vp-doc h1,
.vp-doc h2,
.vp-doc h3,
.vp-doc h4,
.vp-doc h5,
.vp-doc h6 {
position: relative; position: relative;
font-weight: 600; font-weight: 600;
outline: none; outline: none;
@ -31,8 +36,7 @@
} }
.vp-doc .header-anchor { .vp-doc .header-anchor {
position: absolute; float: left;
top: 0;
margin-left: -0.87em; margin-left: -0.87em;
padding-right: 0.23em; padding-right: 0.23em;
font-weight: 500; font-weight: 500;
@ -41,40 +45,18 @@
transition: color 0.25s, opacity 0.25s; transition: color 0.25s, opacity 0.25s;
} }
.vp-doc h1 + .header-anchor { .vp-doc h1:hover .header-anchor,
line-height: 40px; .vp-doc h1 .header-anchor:focus,
font-size: 32px; .vp-doc h2:hover .header-anchor,
} .vp-doc h2 .header-anchor:focus,
.vp-doc h3:hover .header-anchor,
.vp-doc h2 + .header-anchor { .vp-doc h3 .header-anchor:focus,
padding-top: 25px; .vp-doc h4:hover .header-anchor,
line-height: 32px; .vp-doc h4 .header-anchor:focus,
font-size: 24px; .vp-doc h5:hover .header-anchor,
} .vp-doc h5 .header-anchor:focus,
.vp-doc h6:hover .header-anchor,
.vp-doc h3 + .header-anchor { .vp-doc h6 .header-anchor:focus {
line-height: 28px;
font-size: 20px;
}
.vp-doc h1:hover + .header-anchor,
.vp-doc h1 + .header-anchor:focus,
.vp-doc h1 + .header-anchor:hover,
.vp-doc h2:hover + .header-anchor,
.vp-doc h2 + .header-anchor:focus,
.vp-doc h2 + .header-anchor:hover,
.vp-doc h3:hover + .header-anchor,
.vp-doc h3 + .header-anchor:focus,
.vp-doc h3 + .header-anchor:hover,
.vp-doc h4:hover + .header-anchor,
.vp-doc h4 + .header-anchor:focus,
.vp-doc h4 + .header-anchor:hover,
.vp-doc h5:hover + .header-anchor,
.vp-doc h5 + .header-anchor:focus,
.vp-doc h5 + .header-anchor:hover,
.vp-doc h6:hover + .header-anchor,
.vp-doc h6 + .header-anchor:focus,
.vp-doc h6 + .header-anchor:hover {
opacity: 1; opacity: 1;
} }

Loading…
Cancel
Save