Skip to content

Commit

Permalink
style: update size with border in calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed May 26, 2021
1 parent 3619a7b commit 854880f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/month-calendar/stylings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,31 @@ td {
.calendar-day[aria-selected="true"] {
color: var(--date-picker-calendar-day-color, var(--base-selected-color));
}
.calendar-day::after {
content: '';
display: block;
content: '';
position: absolute;
width: 28px;
height: 28px;
border-radius: 50%;
opacity: 0;
pointer-events: none;
will-change: opacity;
}
.calendar-day[aria-selected="true"]::after {
background-color: var(--date-picker-selected-background-color, var(--base-selected-background-color));
opacity: 1;
}
.calendar-day.day--today::after,
.calendar-day:hover::after,
.calendar-day:focus::after {
width: 26px;
height: 26px;
opacity: 1;
border-style: solid;
border-width: 1px;
}
.calendar-day[aria-selected="true"]::after {
background-color: var(--date-picker-selected-background-color, var(--base-selected-background-color));
opacity: 1;
}
.calendar-day.day--today::after {
border-color: var(--date-picker-today-color, var(--base-selected-background-color));
}
Expand Down

0 comments on commit 854880f

Please sign in to comment.