Add symbol for header anchor as CSS variable and rule using :before

pull/2104/head
Alija Sabic 2 years ago committed by Evan You
parent 3355fcc1df
commit 3aea38991c

@ -45,6 +45,10 @@
transition: color 0.25s, opacity 0.25s;
}
.vp-doc .header-anchor:before {
content: var(--vp-header-anchor-symbol);
}
.vp-doc h1:hover .header-anchor,
.vp-doc h1 .header-anchor:focus,
.vp-doc h2:hover .header-anchor,

@ -193,6 +193,14 @@
--vp-layout-max-width: 1440px;
}
/**
* Component: Header Anchor
* -------------------------------------------------------------------------- */
:root {
--vp-header-anchor-symbol: '#';
}
/**
* Component: Code
* -------------------------------------------------------------------------- */

Loading…
Cancel
Save