diff options
| author | roninro <liumy.f@foxmail.com> | 2022-07-29 12:17:50 +0800 |
|---|---|---|
| committer | roninro <liumy.f@foxmail.com> | 2022-07-29 12:17:50 +0800 |
| commit | f0e8a71001ad71fbeeab702eee7375f9c1d06960 (patch) | |
| tree | c3ecadc51ce3cb5dc6ff92ad3db369ce20ba8f68 /assets | |
| parent | 95e0fb6c9ae5d3403ecb765d6e34d7cd83692f09 (diff) | |
render-heading with Anchor
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/sass/main.scss | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/assets/sass/main.scss b/assets/sass/main.scss index f5df763..9eff6c8 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -4,7 +4,6 @@ @import "_side-catalog.scss"; @import "_search.scss"; - // Global Components body { @@ -272,6 +271,38 @@ samp { position: absolute; text-decoration: none !important; } + + .anchorjs-link { + font-family: serif; + font-style: normal; + font-variant: normal; + font-weight: normal; + padding-left: 0.375em; + font-size: 0.9em; + margin-top: 0.1em; + opacity: 0; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + /* Support for IE. */ + font-feature-settings: "liga"; + + &:hover, + &:focus { + opacity: 1; + } + &:after { + content: "ΒΆ"; + } + } + + @media all and (min-width: 800px) { + .anchorjs-link { + position: absolute; + left: -0.75em; + } + } } // Navigation |
