|
16 | 16 | --color-tip-text: hsl(152, 95%, 28%)
|
17 | 17 | --color-tip-shadow: hsl(138, 100%, 98%)
|
18 | 18 |
|
| 19 | + --color-important-bg: hsl(270, 80%, 96%) |
| 20 | + --color-important-text: hsl(270, 80%, 45%) |
| 21 | + --color-important-shadow: hsl(270, 80%, 98%) |
| 22 | + |
19 | 23 | [data-theme="dark"]
|
20 | 24 | &:root
|
21 | 25 | --color-info-bg: hsl(210, 30%, 25%)
|
|
34 | 38 | --color-tip-text: hsl(138, 80%, 70%)
|
35 | 39 | --color-tip-shadow: hsl(138, 30%, 16%)
|
36 | 40 |
|
| 41 | + --color-important-bg: hsl(270, 30%, 25%) |
| 42 | + --color-important-text: hsl(270, 80%, 70%) |
| 43 | + --color-important-shadow: hsl(270, 30%, 16%) |
| 44 | + |
37 | 45 | .custom-block
|
38 | 46 | margin: 1.8em 0
|
39 | 47 | border-radius: post-radius
|
|
105 | 113 | content: "\f058"
|
106 | 114 | font-weight: 900
|
107 | 115 | margin-right: 0.5em
|
| 116 | + |
| 117 | + &.important |
| 118 | + background: var(--color-important-bg) |
| 119 | + color: var(--color-important-text) |
| 120 | + box-shadow: 0 0 5px 2px var(--color-important-shadow) |
| 121 | + border-left: 6px var(--color-important-text) solid |
| 122 | + |
| 123 | + .custom-block-title:before |
| 124 | + font-weight: normal |
| 125 | + if hexo-config("icon_font") |
| 126 | + font-family: font-icon |
| 127 | + content: "\e649" |
| 128 | + else |
| 129 | + font-family: var(--font-icon) |
| 130 | + content: "\f192" |
| 131 | + font-weight: 900 |
| 132 | + margin-right: 0.5em |
108 | 133 | p
|
109 | 134 | margin: 0.8em 0
|
110 | 135 |
|
|
0 commit comments