Skip to content

Commit 4e52b1b

Browse files
author
biantao.shuaxin
committed
fix:build error
1 parent 28686df commit 4e52b1b

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

demo/app.scss

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -366,36 +366,41 @@ $headerHeight: 6rem;
366366
}
367367
}
368368

369-
// Dark Mode
370-
.appDark{
371-
.header,
372-
.appContent {
373-
background: #000;
374-
color: #ffffffc2;
369+
// define Dark Mode css
370+
@mixin dark {
371+
.appDark{
372+
.header,
373+
.appContent {
374+
background: #000;
375+
color: #ffffffc2;
375376

376-
}
377-
.singleSection {
378-
.info {
379-
.opts {
380-
.opt {
381-
border: 1px solid #b9bcc06b;
382-
color: #ffffffc2;
383-
}
384-
.active{
385-
color: $blue-purple;
386-
border-color: $blue-purple;
377+
}
378+
.singleSection {
379+
.info {
380+
.opts {
381+
.opt {
382+
border: 1px solid #b9bcc06b;
383+
color: #ffffffc2;
384+
}
385+
.active{
386+
color: $blue-purple;
387+
border-color: $blue-purple;
388+
}
387389
}
388390
}
389391
}
390-
}
391-
.application {
392-
background-color: #fff;
392+
.application {
393+
background-color: #fff;
394+
}
393395
}
394396
}
395397

398+
// use Dark Mode css
399+
@include dark;
400+
396401
// follow system
397402
@media (prefers-color-scheme: dark) {
398403
.appSystemDark{
399-
@extend .appDark;
404+
@include dark;
400405
}
401406
}

0 commit comments

Comments
 (0)