Skip to content

Commit a79878f

Browse files
committed
Support badges on light theme
1 parent 5b19f14 commit a79878f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

web/src/styles/custom.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,34 @@
4040
padding-top: 1.5rem;
4141
}
4242

43+
:root[data-theme='dark'] .sl-badge {
44+
color: #fff;
45+
}
46+
47+
:root[data-theme='light'] .sl-badge {
48+
color: #222;
49+
}
50+
51+
.sl-badge.danger {
52+
background-color: var(--sl-color-red-low);
53+
}
54+
55+
.sl-badge.note {
56+
background-color: var(--sl-color-blue-low);
57+
}
58+
59+
.sl-badge.success {
60+
background-color: var(--sl-color-green-low);
61+
}
62+
63+
.sl-badge.caution {
64+
background-color: var(--sl-color-orange-low);
65+
}
66+
67+
.sl-badge.tip {
68+
background-color: var(--sl-color-purple-low);
69+
}
70+
4371
:root[data-theme='dark'] .see-also-section {
4472
border-top: 1px solid rgba(255, 255, 255, 0.1);
4573
}

0 commit comments

Comments
 (0)