Skip to content

Commit

Permalink
Adjust styles for inline code in custom blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
skirtles-code committed Jan 16, 2024
1 parent 149e4d7 commit bbcdcfc
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 bbcdcfc

Please sign in to comment.