docs: 💄fix color contrast of admonitions
Color contrast of in adomonitions is so low: * [Light mode] : `<code>` * [Dark modr] : `<div class="admonition-content">` This happens because custom style for `<code>` overrides original colors. Fix this. Signed-off-by: satotake <doublequotation@gmail.com>
This commit is contained in:
parent
7e523c7c39
commit
5c57eb9550
@ -103,6 +103,9 @@ h2 {
|
||||
code {
|
||||
margin: 0 1px;
|
||||
color: var(--ifm-code-color);
|
||||
.alert & {
|
||||
color: var(--ifm-alert-foreground-color);
|
||||
}
|
||||
}
|
||||
|
||||
.markdown {
|
||||
@ -618,7 +621,7 @@ img[alt="github-contribute"] {
|
||||
.admonition-#{$name} .admonition-icon::before {
|
||||
mask: url($path);
|
||||
content: "";
|
||||
background-color: var(--ifm-color-primary-dark);
|
||||
background-color: var(--ifm-alert-foreground-color);
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
@ -636,14 +639,3 @@ img[alt="github-contribute"] {
|
||||
|
||||
$alert: secondary, success, info, warning, danger;
|
||||
|
||||
@each $name in $alert {
|
||||
$color: if(
|
||||
$name==danger,
|
||||
var(--ifm-color-primary-light),
|
||||
var(--ifm-color-primary-dark)
|
||||
);
|
||||
|
||||
.admonition.alert--#{$name} {
|
||||
color: $color;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user