fix: make heading anchors `#` unselectable

This commit is contained in:
saicaca 2023-11-23 23:26:05 +08:00
parent 8c6c7c9364
commit 8848a25ec5
1 changed files with 3 additions and 3 deletions

View File

@ -14,11 +14,11 @@ const className = Astro.props.class;
<style lang="stylus" is:global> <style lang="stylus" is:global>
.custom-md .custom-md
h1,h2,h3,h4,h5,h6 h1,h2,h3,h4,h5,h6
a
margin: -2px
padding: 2px
.anchor .anchor
margin: -2px
margin-left: 0.2ch margin-left: 0.2ch
padding: 2px
user-select: none
opacity: 0 opacity: 0
transition: opacity 0.15s ease-in-out, background 0.15s ease-in-out transition: opacity 0.15s ease-in-out, background 0.15s ease-in-out
.anchor-icon .anchor-icon