Skip to content

Commit

Permalink
Adjust styling of inline code inside custom blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
skirtles-code committed Jan 13, 2024
1 parent a380d58 commit cdddb03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/.vitepress/theme/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ html:not(.dark) {
border-top: 0 none;
}

/* Inline code in a custom block looks too much like a link */
.custom-block.info code, .custom-block.tip code {
color: var(--vp-code-color);
}

.custom-block.info a > code, .custom-block.tip a > code {
color: var(--vp-code-link-color);
}

/* green-1 is much too close to black in the sidebar */
html:not(.dark) .VPSidebar {
--vp-c-brand-1: var(--vp-c-brand-3);
Expand Down

0 comments on commit cdddb03

Please sign in to comment.