Skip to content

Commit cecc5ff

Browse files
committed
update dark mode css for note/warning
1 parent d148d87 commit cecc5ff

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

docs/assets/css/dark_mode.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,33 @@
4242
.hljs-subst {
4343
color: #ddba52
4444
}
45-
}
45+
46+
.md-typeset .note>.admonition-title,
47+
.md-typeset .note>summary {
48+
background-color: #0000001a;
49+
}
50+
51+
.md-typeset .admonition.note,
52+
.md-typeset details.note {
53+
border-color: #675647;
54+
}
55+
56+
.md-typeset .note>.admonition-title:before,
57+
.md-typeset .note>summary:before {
58+
background-color: #65686d;
59+
-webkit-mask-image: var(--md-admonition-icon--note);
60+
mask-image: var(--md-admonition-icon--note);
61+
}
62+
63+
.md-typeset .admonition.warning,
64+
.md-typeset details.warning {
65+
border-color: #776144;
66+
}
67+
68+
.md-typeset .warning>.admonition-title:before,
69+
.md-typeset .warning>summary:before {
70+
background-color: #d9913bc2;
71+
-webkit-mask-image: var(--md-admonition-icon--warning);
72+
mask-image: var(--md-admonition-icon--warning);
73+
}
74+
}

0 commit comments

Comments
 (0)