Skip to content

Commit 8ff93e5

Browse files
brc-ddLehoczky
andcommitted
style: add underline offset to links
Co-authored-by: Lehoczky Zoltán <[email protected]>
1 parent d818874 commit 8ff93e5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/client/theme-default/styles/components/custom-block.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
color: inherit;
8686
font-weight: 600;
8787
text-decoration: underline dotted;
88+
text-underline-offset: 2px;
8889
transition: opacity 0.25s;
8990
}
9091

9192
.custom-block a:hover {
92-
text-decoration: underline dotted;
9393
opacity: 0.75;
9494
}
9595

src/client/theme-default/styles/components/vp-doc.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113

114114
.vp-doc a:hover {
115115
text-decoration: underline dotted;
116+
text-underline-offset: 2px;
116117
}
117118

118119
.vp-doc strong {
@@ -216,10 +217,6 @@
216217
font-weight: 600;
217218
}
218219

219-
.vp-doc .custom-block a:hover {
220-
text-decoration: underline dotted;
221-
}
222-
223220
.vp-doc .custom-block code {
224221
font-size: var(--vp-custom-block-code-font-size);
225222
font-weight: 700;

0 commit comments

Comments
 (0)