Skip to content

Commit cdddb03

Browse files
committed
Adjust styling of inline code inside custom blocks
1 parent a380d58 commit cdddb03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/.vitepress/theme/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ html:not(.dark) {
4747
border-top: 0 none;
4848
}
4949

50+
/* Inline code in a custom block looks too much like a link */
51+
.custom-block.info code, .custom-block.tip code {
52+
color: var(--vp-code-color);
53+
}
54+
55+
.custom-block.info a > code, .custom-block.tip a > code {
56+
color: var(--vp-code-link-color);
57+
}
58+
5059
/* green-1 is much too close to black in the sidebar */
5160
html:not(.dark) .VPSidebar {
5261
--vp-c-brand-1: var(--vp-c-brand-3);

0 commit comments

Comments
 (0)