diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-04-19 23:41:33 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-04-19 23:41:33 +0800 |
| commit | 5d3b07801456d16dcc2c75dcccd48d508a6b60cc (patch) | |
| tree | 2df1a154bf58d93f2475df02afbd15f1a8ba2963 /doc/docs/.vuepress/theme/styles/custom-blocks.styl | |
| parent | ea82666506b57d6e905b7f2e5fe78498fe5a7abd (diff) | |
| download | yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.tar.gz yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.tar.bz2 yuescript-5d3b07801456d16dcc2c75dcccd48d508a6b60cc.zip | |
first commit for Yuescript document site.
Diffstat (limited to '')
| -rw-r--r-- | doc/docs/.vuepress/theme/styles/custom-blocks.styl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/docs/.vuepress/theme/styles/custom-blocks.styl b/doc/docs/.vuepress/theme/styles/custom-blocks.styl new file mode 100644 index 0000000..5b86816 --- /dev/null +++ b/doc/docs/.vuepress/theme/styles/custom-blocks.styl | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | .custom-block | ||
| 2 | .custom-block-title | ||
| 3 | font-weight 600 | ||
| 4 | margin-bottom -0.4rem | ||
| 5 | &.tip, &.warning, &.danger | ||
| 6 | padding .1rem 1.5rem | ||
| 7 | border-left-width .5rem | ||
| 8 | border-left-style solid | ||
| 9 | margin 1rem 0 | ||
| 10 | &.tip | ||
| 11 | background-color #f3f5f7 | ||
| 12 | border-color #42b983 | ||
| 13 | &.warning | ||
| 14 | background-color rgba(255,229,100,.3) | ||
| 15 | border-color darken(#ffe564, 35%) | ||
| 16 | color darken(#ffe564, 70%) | ||
| 17 | .custom-block-title | ||
| 18 | color darken(#ffe564, 50%) | ||
| 19 | a | ||
| 20 | color $textColor | ||
| 21 | &.danger | ||
| 22 | background-color #ffe6e6 | ||
| 23 | border-color darken(red, 20%) | ||
| 24 | color darken(red, 70%) | ||
| 25 | .custom-block-title | ||
| 26 | color darken(red, 40%) | ||
| 27 | a | ||
| 28 | color $textColor | ||
| 29 | &.details | ||
| 30 | display block | ||
| 31 | position relative | ||
| 32 | border-radius 2px | ||
| 33 | margin 1.6em 0 | ||
| 34 | padding 1.6em | ||
| 35 | background-color #eee | ||
| 36 | h4 | ||
| 37 | margin-top 0 | ||
| 38 | figure, p | ||
| 39 | &:last-child | ||
| 40 | margin-bottom 0 | ||
| 41 | padding-bottom 0 | ||
| 42 | summary | ||
| 43 | outline none | ||
| 44 | cursor pointer | ||
