Skip to content

Commit

Permalink
feat: 添加自定义块标签和样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanzisama committed Jan 30, 2025
1 parent 22e8a2c commit d708455
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export default withMermaid({
gradle: "groovy",
maven: "xml",
},
container: {
tipLabel: '提示',
warningLabel: '警告',
dangerLabel: '危险',
infoLabel: '信息',
detailsLabel: '详细信息'
}
},
rewrites: {
"nitwikit/docs/(.*)": "(.*)",
Expand Down
8 changes: 6 additions & 2 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@

.custom-block::after {
position: absolute;
top: 0;
right: -50px;
top: 20px;
right: -40px;
font-size: 120px;
z-index: -1;
opacity: 0.2;
Expand All @@ -165,6 +165,10 @@
content: "📝";
}

.custom-block.info::after {
content: "ℹ️";
}

.custom-block.thinking::after {
content: "🤔";
}

0 comments on commit d708455

Please sign in to comment.