Skip to content

Commit

Permalink
fix syntax highlight for vitepress rc.31 shijiki migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 1, 2023
1 parent 8dc0a33 commit b2bca55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .vitepress/theme/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
@import "./utilities.css";
@import "./style-guide.css";

/* bugfix: https://github.com/vuejs/theme/pull/95 */

.vt-flyout-menu {
max-height: calc(100vh - var(--vt-nav-height) - var(--vt-banner-height, 0px)) !important;
/* vitepress rc.31 migrated to shijiki and need this to apply code styles */
.vp-code span {
color: var(--shiki-dark, inherit);
}

0 comments on commit b2bca55

Please sign in to comment.