Skip to content

Commit

Permalink
feat(calendar): add sunday red mark
Browse files Browse the repository at this point in the history
  • Loading branch information
adenvt committed Jul 2, 2024
1 parent a9ee8b3 commit df982c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
variant="solid"
type="button"
data-testid="calendar-item"
class="calendar__item-btn"
:readonly="item.readonly || disabled || readonly"
:active="item.active"
:disabled="item.disabled"
Expand Down Expand Up @@ -419,13 +420,19 @@ watch([viewmode, cursor], ([vm, cursor], [vmOld, cursorOld]) => {
&[viewmode="date"] {
@apply grid grid-cols-7 gap-y-1;
.btn--md {
.calendar__item-btn.btn--md {
@apply p-1 md:p-2;
}
.btn--outline:nth-child(-n+7) {
.calendar__item-btn:nth-child(-n+7) {
@apply font-medium;
}
.calendar__item-btn:nth-child(7n) {
&:not([active="true"]) {
@apply text-danger dark:text-dark-danger;
}
}
}
&[viewmode="month"],
Expand Down

0 comments on commit df982c3

Please sign in to comment.