Skip to content

Commit

Permalink
Extract scss mixins light() and dark() to feature/theme/theme.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Oct 15, 2024
1 parent 3440909 commit 0948b53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 11 additions & 0 deletions resources/feature/theme/theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@mixin light {
body.theme-light & {
@content;
}
}

@mixin dark {
body.theme-dark & {
@content;
}
}
12 changes: 1 addition & 11 deletions resources/feature/viewersOnline/viewers-online.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
@mixin dark {
body.theme-dark & {
@content;
}
}

@mixin light {
body.theme-light & {
@content;
}
}
@import "../theme/theme";

.viewers-online {
.viewer-pill {
Expand Down

0 comments on commit 0948b53

Please sign in to comment.