Skip to content

Commit

Permalink
feat: support custom-block style
Browse files Browse the repository at this point in the history
  • Loading branch information
viko16 committed Feb 9, 2019
1 parent 80d8b86 commit 3d45d70
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,50 @@ blockquote
padding 0 16px
border-left 4px solid lineColor

table
border-collapse collapse

td,
th
border 1px solid lineColor
padding 0.4em 1em

// https://github.com/vuejs/vuepress/blob/v1.0.0-alpha.37/packages/@vuepress/theme-default/styles/custom-blocks.styl
.custom-block
.custom-block-title
font-weight 600

p
line-height 1.5

&.tip,
&.warning,
&.danger
padding 0.1em 1.5em
border-left-width 0.5em
border-left-style solid
margin 1em 0

&.tip
background-color #f3f5f7
border-color #42b983

&.warning
background-color rgba(255, 229, 100, 0.3)
border-color darken(#ffe564, 35%)
color darken(#ffe564, 70%)

.custom-block-title
color darken(#ffe564, 50%)

&.danger
background-color #ffe6e6
border-color darken(red, 20%)
color darken(red, 70%)

.custom-block-title
color darken(red, 40%)

//
// 404 View
// -----------------------------------------
Expand Down

0 comments on commit 3d45d70

Please sign in to comment.