Skip to content

Commit 5e3a0c3

Browse files
authored
Merge pull request #225 from Nathanjms/patch-1
2 Fixes: 1 - blank text in <code> on light mode hover and 2 - copy button on light mode
2 parents 6c8ff61 + 266708e commit 5e3a0c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/.vitepress/theme/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ code:hover {
389389

390390
/* Code block container styling */
391391
.vp-doc div[class*='language-'] {
392-
position: static;
392+
position: relative;
393393
margin: 0;
394394
background-color: var(--vp-c-bg-soft);
395395
border-radius: 10px;
@@ -725,8 +725,8 @@ code:hover {
725725
div[class*='language-'] code:hover,
726726
pre[class*='language-'] code:hover {
727727
background-color: transparent !important;
728-
color: var(--vp-code-color) !important;
729-
-webkit-text-fill-color: var(--vp-code-color) !important;
728+
color: inherit !important;
729+
-webkit-text-fill-color: inherit !important;
730730
transform: none !important;
731731
box-shadow: none !important;
732732
border-color: transparent !important;
@@ -771,7 +771,6 @@ pre.language-sh code:hover,
771771
}
772772

773773
.vp-doc div[class*='language-'] {
774-
position: relative;
775774
margin: 16px 0;
776775
background-color: var(--vp-code-bg) !important;
777776
border-radius: 8px;

0 commit comments

Comments
 (0)