Skip to content

Commit a815b78

Browse files
authored
update dark theme
1 parent 826e46f commit a815b78

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

snippets/scss/layouts/dark-theme.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ tags: scss, css, mixin, snippet, dark-theme, layout
77

88
```scss
99
@mixin isDark($type: 'module') {
10-
$root: &;
10+
$root: &;
1111

12-
@if $type == 'module' {
13-
:global {
14-
@at-root body[theme='dark'] #{$root} {
15-
@content;
16-
}
17-
}
18-
} @else {
19-
&[theme='dark'] {
20-
@content;
21-
}
22-
}
12+
@if $type == 'module' {
13+
:global {
14+
@at-root body[theme='dark'] #{$root} {
15+
@content;
16+
}
17+
}
18+
} @else {
19+
&[theme='dark'] {
20+
@content;
21+
}
22+
}
2323
}
2424

2525
// Usage:

0 commit comments

Comments
 (0)