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

Commit

Permalink
Merge pull request #4 from xxholly32/master
Browse files Browse the repository at this point in the history
fix: warning and danger words error
  • Loading branch information
tolking authored Aug 25, 2019
2 parents 9373618 + f2eb30b commit 36d9445
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
--languageTextColor $languageTextColor
--lineNumbersColor $lineNumbersColor
--tipBgColor $tipBgColor
--warningColor $warningColor
--warningBgColor $warningBgColor
--dangerColor $dangerColor
--dangerBgColor $dangerBgColor
--miniCodeBgColor $miniCodeBgColor
--searchBorderColor $searchBorderColor
Expand Down Expand Up @@ -155,14 +157,18 @@ div[class*="language-"].line-numbers-mode .line-numbers-wrapper

.custom-block.warning
background-color var(--warningBgColor)
color var(--textColor)
a
color var(--warningColor)

.custom-block.danger
background-color var(--dangerBgColor)
a
color var(--dangerColor)

.custom-block.warning,
.custom-block.danger
a
color var(--textColor)
color var(--textColor)


// search
Expand Down
2 changes: 2 additions & 0 deletions styles/palette.styl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ $lineNumbersLightColor ?= rgba(0, 0, 0, 0.3)
$tipBgColor ?= #f3f5f7
$tipBgDarkColor ?= #3e3b3b

$warningColor ?= #e7c000
$warningBgColor ?= rgba(255, 229, 100, 0.3)
$warningBgDarkColor ?= rgba(185, 174, 119, 0.3)

$dangerColor ?= #c00
$dangerBgColor ?= #ffe6e6
$dangerBgDarkColor ?= rgba(255, 214, 214, 0.3)

Expand Down

0 comments on commit 36d9445

Please sign in to comment.