Skip to content

Commit 2371e2e

Browse files
committed
alerts on dark
1 parent 6aaecf2 commit 2371e2e

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

assets/scss/dark.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
--foreground: #101010;
77
--background-1: #f1f1f6;
88
--background-2: #e9e9e9;
9+
10+
--dark-text: #101010;
911
}
1012

1113
@media (prefers-color-scheme: dark) {
@@ -19,4 +21,17 @@
1921
color: var(--foreground);
2022
background: var(--background);
2123
}
24+
25+
.alert-info {
26+
background: adjust-color(blue, $alpha: -0.8);
27+
}
28+
29+
.alert-warning {
30+
background: adjust-color(red, $alpha: -0.8);
31+
}
32+
33+
.alert-success {
34+
background: adjust-color(green, $alpha: -0.8);
35+
}
36+
2237
}

assets/scss/features.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
border: none;
7373

7474
&, &:visited, &:hover {
75-
color: #101010;
75+
color: var(--dark-text);
7676
}
7777

7878
&:hover {

0 commit comments

Comments
 (0)