Skip to content

Commit

Permalink
style: add weeknumber text align
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jul 30, 2024
1 parent b197453 commit c919ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */

--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */

--rdp-weekday-font: 500 smaller var(--rdp-font-family); /* The font of the weekday. */
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
Expand Down Expand Up @@ -237,10 +238,7 @@
width: var(--rdp-week_number-width);
border: var(--rdp-week_number-border);
border-radius: var(--rdp-week_number-border-radius);
}

.rdp-week_number_interactive {
cursor: pointer;
text-align: var(--rdp-weeknumber-text-align);
}

/* DAY MODIFIERS */
Expand Down
8 changes: 3 additions & 5 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */

--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */

--rdp-weekday-font: 500 smaller var(--rdp-font-family); /* The font of the weekday. */
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
Expand Down Expand Up @@ -237,10 +238,7 @@
width: var(--rdp-week_number-width);
border: var(--rdp-week_number-border);
border-radius: var(--rdp-week_number-border-radius);
}

.week_number_interactive {
cursor: pointer;
text-align: var(--rdp-weeknumber-text-align);
}

/* DAY MODIFIERS */
Expand Down

0 comments on commit c919ad8

Please sign in to comment.