Skip to content

Commit

Permalink
fix: fix code block wrong background in example title
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Dec 10, 2024
1 parent 8ed08b5 commit ba26e7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const exampleAutoAnchorPreprocessor = (md: MarkdownIt) => {
position: relative;
top: 32px;">
<TitleAnchor anchor="${processedTitle}">
<h3 id="${processedTitle}" style="
<h3 id="${processedTitle}" class="example-title-anchor" style="
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/style/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ kbd:not(.DocSearch-Button-Key) {

.tip.custom-block > .danger.custom-block {
background-color: #fde4e8;
}

.example-title-anchor > code {
background-color: rgba(0, 0, 0, 0) !important;
}

0 comments on commit ba26e7a

Please sign in to comment.