Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit 36d9445

Browse files
authored
Merge pull request #4 from xxholly32/master
fix: warning and danger words error
2 parents 9373618 + f2eb30b commit 36d9445

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

styles/index.styl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
--languageTextColor $languageTextColor
1717
--lineNumbersColor $lineNumbersColor
1818
--tipBgColor $tipBgColor
19+
--warningColor $warningColor
1920
--warningBgColor $warningBgColor
21+
--dangerColor $dangerColor
2022
--dangerBgColor $dangerBgColor
2123
--miniCodeBgColor $miniCodeBgColor
2224
--searchBorderColor $searchBorderColor
@@ -155,14 +157,18 @@ div[class*="language-"].line-numbers-mode .line-numbers-wrapper
155157

156158
.custom-block.warning
157159
background-color var(--warningBgColor)
160+
color var(--textColor)
161+
a
162+
color var(--warningColor)
158163

159164
.custom-block.danger
160165
background-color var(--dangerBgColor)
166+
a
167+
color var(--dangerColor)
161168

162169
.custom-block.warning,
163170
.custom-block.danger
164-
a
165-
color var(--textColor)
171+
color var(--textColor)
166172

167173

168174
// search

styles/palette.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ $lineNumbersLightColor ?= rgba(0, 0, 0, 0.3)
4545
$tipBgColor ?= #f3f5f7
4646
$tipBgDarkColor ?= #3e3b3b
4747

48+
$warningColor ?= #e7c000
4849
$warningBgColor ?= rgba(255, 229, 100, 0.3)
4950
$warningBgDarkColor ?= rgba(185, 174, 119, 0.3)
5051

52+
$dangerColor ?= #c00
5153
$dangerBgColor ?= #ffe6e6
5254
$dangerBgDarkColor ?= rgba(255, 214, 214, 0.3)
5355

0 commit comments

Comments
 (0)