Skip to content

Commit ea1678b

Browse files
author
Vinicius Reis
committed
πŸ’„ (#299): adjust link position
Signed-off-by: Vinicius Reis <[email protected]>
1 parent 932afc6 commit ea1678b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€Žcss/prosemirror.scssβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,18 @@ div.ProseMirror {
102102
h5,
103103
h6 {
104104
font-weight: 600;
105-
line-height: 120%;
105+
line-height: 1.1em;
106106
margin-top: 24px;
107107
margin-bottom: 12px;
108108
color: var(--color-main-text);
109109
}
110110

111111
h1 {
112112
font-size: 36px;
113-
margin-top: 48px;
114113
}
115114

116115
h2 {
117116
font-size: 30px;
118-
margin-top: 48px;
119117
}
120118

121119
h3 {

β€Žsrc/nodes/Heading/HeadingView.vueβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ export default Vue.extend({
8383
div.ProseMirror {
8484
/* Anchor links */
8585
h1, h2, h3, h4, h5, h6 {
86+
position: relative;
8687
.anchor-link {
8788
opacity: 0;
8889
padding: 0;
89-
left: -18px;
90+
left: -1em;
91+
bottom: 0;
9092
font-size: max(1em, 16px);
9193
position: absolute;
9294
text-decoration: none;

0 commit comments

Comments
Β (0)