Skip to content

Commit a0c4bd8

Browse files
committed
added support for dark mode images
1 parent cd224b9 commit a0c4bd8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

scss/base/_root.scss

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,36 @@
3838
--#{$prefix}box-soft-shadow-6: #{$box-soft-shadow-6};
3939

4040
// Logo
41-
.logo-light {
41+
.img-light {
4242
display: none;
4343
}
44-
.logo-dark {
44+
45+
.img-dark {
4546
display: block;
4647
}
4748
}
4849

4950
.navbar-dark,
5051
[data-bs-theme="dark"] .navbar {
51-
.logo-light {
52+
.img-light {
5253
display: block;
5354
}
54-
.logo-dark {
55+
.img-dark {
5556
display: none;
5657
}
5758
}
5859

5960

6061
@if $enable-dark-mode {
6162
@include color-mode(dark, true) {
63+
// Logo
64+
.img-light {
65+
display: block;
66+
}
67+
.img-dark {
68+
display: none;
69+
}
70+
6271
// Accent
6372
--#{$prefix}accent-bg: #{$accent-bg-dark};
6473
--#{$prefix}accent-bg-rgb: #{to-rgb($accent-bg-dark)};

0 commit comments

Comments
 (0)