Skip to content

Commit 13769f2

Browse files
committed
Reset inherited styles for tooltip component
1 parent c93eb9f commit 13769f2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.vitepress/theme/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,19 @@ a.func-ref:hover {
749749
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
750750
z-index: 100;
751751
pointer-events: none;
752+
user-select: none;
753+
754+
/* Reset inherited styles */
755+
text-align: left;
756+
text-decoration: none;
757+
text-shadow: none;
758+
text-indent: 0;
759+
text-transform: none;
760+
letter-spacing: normal;
761+
word-spacing: normal;
762+
font-style: normal;
763+
font-weight: normal;
764+
color: var(--vp-c-text-1);
752765
}
753766

754767
.func-ref-tooltip.is-visible {

0 commit comments

Comments
 (0)