diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-08-30 20:42:45 +0300 |
---|---|---|
committer | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-09-01 15:34:41 +0300 |
commit | 24543c7e25a104599156a82a465480053d86ae94 (patch) | |
tree | dc686764fc02612d03af15bf7c92ea1ecbb25bab /src | |
parent | 359a16d7d27a2c07bb704ddc3b96139473716029 (diff) |
💄 (#299): adjust link position
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nodes/Heading/HeadingView.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nodes/Heading/HeadingView.vue b/src/nodes/Heading/HeadingView.vue index c2a728a3d..7e8b28e83 100644 --- a/src/nodes/Heading/HeadingView.vue +++ b/src/nodes/Heading/HeadingView.vue @@ -83,10 +83,12 @@ export default Vue.extend({ div.ProseMirror { /* Anchor links */ h1, h2, h3, h4, h5, h6 { + position: relative; .anchor-link { opacity: 0; padding: 0; - left: -18px; + left: -1em; + bottom: 0; font-size: max(1em, 16px); position: absolute; text-decoration: none; @@ -96,7 +98,7 @@ div.ProseMirror { } &:hover .anchor-link { - opacity: 0.45; + opacity: 0.5; } } |