Skip to content

Commit 99467b1

Browse files
authored
feat(twoslash): improve underline styling and adjust popup docs font-size (#2554)
1 parent 693eadb commit 99467b1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

packages/plugin-twoslash/static/global-styles/twoslash.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,24 @@
4545
}
4646

4747
/* ===== Hover Info ===== */
48-
.twoslash:hover .twoslash-hover {
49-
border-color: var(--twoslash-underline-color);
48+
.twoslash:hover .twoslash-hover::after {
49+
opacity: 0.4;
5050
}
5151

5252
.twoslash .twoslash-hover {
53-
border-bottom: 1px dotted transparent;
54-
transition: border-color 0.3s;
55-
transition-timing-function: ease;
5653
position: relative;
54+
55+
&::after {
56+
content: '';
57+
position: absolute;
58+
bottom: -3px;
59+
left: 0;
60+
right: 0;
61+
opacity: 0;
62+
border-bottom: 1px dotted var(--twoslash-underline-color);
63+
transition: opacity 0.3s;
64+
transition-timing-function: ease;
65+
}
5766
}
5867

5968
.twoslash .twoslash-popup-trigger {
@@ -149,7 +158,7 @@
149158
.twoslash .twoslash-popup-docs {
150159
color: var(--twoslash-docs-color);
151160
font-family: var(--twoslash-docs-font);
152-
font-size: 0.8em;
161+
font-size: 0.85em;
153162
border-top: 1px solid var(--twoslash-border-color);
154163
}
155164

0 commit comments

Comments
 (0)