Skip to content

Commit e6ad4cd

Browse files
authored
fix: correctly invert colors of alerts in dark mode (#591)
* Don't change the color of the close button in the alert * Invert color of the alerts in dark mdoe
1 parent 6ed3e83 commit e6ad4cd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

static/dark.css

+24
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,28 @@ div[style="color: rgb(85, 85, 85); font-size: 0.9em;"] {
240240

241241
[aria-sort="descending"] {
242242
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white'%3E%3Cpath opacity='.4' d='m51 1 25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.8' d='m51 101 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
243+
}
244+
245+
.alert-success {
246+
color: hsl(135, 70%, 90%);
247+
background-color: hsl(135, 60%, 30%);
248+
border-color: hsl(135, 60%, 25%);
249+
}
250+
251+
.alert-info {
252+
color: hsl(190, 70%, 90%);
253+
background-color: hsl(190, 60%, 30%);
254+
border-color: hsl(190, 60%, 25%);
255+
}
256+
257+
.alert-warning {
258+
color: hsl(45, 70%, 90%);
259+
background-color: hsl(45, 60%, 30%);
260+
border-color: hsl(45, 60%, 25%);
261+
}
262+
263+
.alert-danger {
264+
color: hsl(355, 70%, 90%);
265+
background-color: hsl(355, 60%, 30%);
266+
border-color: hsl(355, 60%, 25%);
243267
}

0 commit comments

Comments
 (0)