Skip to content

Commit bb5c076

Browse files
authored
Merge pull request #290 from noah-severyn/fix-darkmode
Fix darkmode (again?)
2 parents 9952320 + e88f13f commit bb5c076

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

assets/scss/common/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ $enable-validation-icons: true;
6262
$enable-negative-margins: true;
6363
$enable-deprecation-messages: true;
6464
$enable-important-utilities: true;
65+
$enable-dark-mode: true;
6566

6667
/** Bootstrap navbar fix (https://git.io/fADqW) */
6768
$navbar-dark-toggler-icon-bg: none;

assets/scss/components/_alerts.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
}
1616

1717
.alert-doks {
18-
background: $beige;
19-
color: $black;
18+
background: var(--bs-tertiary-bg);
19+
color: var(--bs-body-color);
2020
}
2121

2222
/*
@@ -31,12 +31,12 @@
3131
*/
3232

3333
.alert-white {
34-
background-color: rgba(255, 255, 255, 0.95);
34+
background-color: var(--bs-body-bg);
3535
}
3636

3737
.alert-primary {
38-
color: $white;
39-
background-color: $primary;
38+
color: var(--bs-white);
39+
background-color: var(--bs-primary);
4040
}
4141

4242
.alert a {
@@ -157,7 +157,7 @@
157157
}
158158

159159
.alert code {
160-
background: darken($beige, 5%);
161-
color: $black;
160+
background: var(--bs-tertiary-bg);
161+
color: var(--bs-body-color);
162162
padding: 0.25rem 0.5rem;
163163
}

0 commit comments

Comments
 (0)