Skip to content

Commit 74a8730

Browse files
committed
fix(docs): color wasn't right when browser is in dark mode
1 parent 8788310 commit 74a8730

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

packages/docs/src/examples/Task/TaskColoredWeekends.vue

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<navigation-bar @today="onToday" @prev="onPrev" @next="onNext" />
44

55
<div class="row justify-center">
6-
<div style="display: flex; max-width: 800px; width: 100%">
6+
<div style="display: flex; max-width: 800px; width: 100%" class="colored">
77
<q-calendar-task
88
ref="calendar"
99
v-model="selectedDate"
@@ -447,23 +447,35 @@ function onClickHeadDay(data: Timestamp) {
447447
</style>
448448

449449
<style lang="scss">
450-
.task__weekday--style {
451-
font-size: 0.8em;
452-
font-weight: 600;
453-
}
450+
.colored {
451+
.task__weekday--style {
452+
font-size: 0.8em;
453+
font-weight: 600;
454+
}
454455
455-
.task__weekday--weekend,
456-
.task__day--weekend,
457-
.task__footer--weekend {
458-
background: rgb(248, 248, 255);
459-
}
456+
.task__weekday--weekend,
457+
.task__day--weekend,
458+
.task__footer--weekend {
459+
background: rgb(248, 248, 255);
460+
}
460461
461-
.task__day--style {
462-
font-size: 0.8em;
462+
.task__day--style {
463+
font-size: 0.8em;
464+
}
465+
466+
.task__footer--day__style {
467+
font-size: 0.8em;
468+
font-weight: 600;
469+
}
463470
}
464471
465-
.task__footer--day__style {
466-
font-size: 0.8em;
467-
font-weight: 600;
472+
body.body--dark {
473+
.colored {
474+
.task__weekday--weekend,
475+
.task__day--weekend,
476+
.task__footer--weekend {
477+
background: rgb(4, 4, 10);
478+
}
479+
}
468480
}
469481
</style>

0 commit comments

Comments
 (0)