vuepress-theme-reco/styles/custom-blocks.styl

27 lines
567 B
Stylus
Raw Normal View History

2019-04-15 10:35:40 +08:00
.custom-block
.custom-block-title
font-weight 600
margin-bottom -0.4rem
&.tip, &.warning, &.danger
padding .1rem 1.5rem
border-left-width .5rem
border-left-style solid
margin 1rem 0
&.tip
2019-11-30 19:32:43 +08:00
background-color var(--code-color)
2019-04-15 10:35:40 +08:00
border-color #67cc86
.custom-block-title
color #67cc86
2019-04-15 10:35:40 +08:00
&.warning
2019-11-30 19:32:43 +08:00
background-color var(--code-color)
2019-04-15 10:35:40 +08:00
border-color #fb9b5f
.custom-block-title
color #fb9b5f
2019-04-15 10:35:40 +08:00
&.danger
2019-11-30 19:32:43 +08:00
background-color var(--code-color)
2019-04-15 10:35:40 +08:00
border-color #f26d6d
.custom-block-title
color #f26d6d
2019-04-15 10:35:40 +08:00