File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed
packages/vuepress-theme-reco Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -57,24 +57,21 @@ module.exports = (options, ctx) => ({
5757 'vuepress-plugin-smooth-scroll' ,
5858 [ 'container' , {
5959 type : 'tip' ,
60- defaultTitle : {
61- '/' : '' ,
62- '/zh/' : '提示'
63- }
60+ before : info => `<div class="custom-block tip"><p class="title">${ info } </p>` ,
61+ after : '</div>' ,
62+ defaultTitle : ''
6463 } ] ,
6564 [ 'container' , {
6665 type : 'warning' ,
67- defaultTitle : {
68- '/' : '' ,
69- '/zh/' : '注意'
70- }
66+ before : info => `<div class="custom-block warning"><p class="title">${ info } </p>` ,
67+ after : '</div>' ,
68+ defaultTitle : ''
7169 } ] ,
7270 [ 'container' , {
7371 type : 'danger' ,
74- defaultTitle : {
75- '/' : '' ,
76- '/zh/' : '警告'
77- }
72+ before : info => `<div class="custom-block danger"><p class="title">${ info } </p>` ,
73+ after : '</div>' ,
74+ defaultTitle : ''
7875 } ] ,
7976 [ 'container' , {
8077 type : 'right' ,
@@ -83,7 +80,8 @@ module.exports = (options, ctx) => ({
8380 [ 'container' , {
8481 type : 'theorem' ,
8582 before : info => `<div class="custom-block theorem"><p class="title">${ info } </p>` ,
86- after : '</div>'
83+ after : '</div>' ,
84+ defaultTitle : ''
8785 } ] ,
8886 [ 'container' , {
8987 type : 'details' ,
Original file line number Diff line number Diff line change 1010 & .tip
1111 background-color var (-- code-color )
1212 border-color #67 cc 86
13- .custom-block- title
13+ .title
1414 color #67 cc 86
1515 & .warning
1616 background-color var (-- code-color )
1717 border-color #fb 9b 5f
18- .custom-block- title
18+ .title
1919 color #fb 9b 5f
2020 & .danger
2121 background-color var (-- code-color )
2222 border-color #f2 6d 6d
23- .custom-block- title
23+ .title
2424 color #f2 6d 6d
2525 & .right
2626 color transparentify ($textColor , 0.4 )
You can’t perform that action at this time.
0 commit comments