Skip to content

Commit 73790d2

Browse files
authored
Merge pull request #21493 from Simek/ui-cms-md-anchors-fix
ui(lib): Markdown header anchor links fix
2 parents 72fb6e9 + 93205e4 commit 73790d2

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

ui/lib/css/component/_markdown.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,23 @@
8787
h2,
8888
h3,
8989
h4 {
90+
position: relative;
91+
9092
a[id] {
9193
opacity: 0;
94+
width: 3rem;
95+
left: -2.5rem;
96+
position: absolute;
9297

9398
&::before {
9499
@include icon-mask($icon-Link);
95100

96101
color: $c-font-dimmer;
97-
margin-left: -3rem;
98-
width: 3rem;
99-
position: absolute;
102+
width: 1.75rem;
103+
104+
&:hover {
105+
opacity: 0.8;
106+
}
100107
}
101108
}
102109

0 commit comments

Comments
 (0)