Skip to content

Commit

Permalink
chore: add comments to CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jul 13, 2024
1 parent aca2a55 commit b2beac8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 40 deletions.
35 changes: 15 additions & 20 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,25 @@

/* Root of the component. */
.rdp-root {
position: relative;
position: relative; /* Required to position the navigation toolbar. */
box-sizing: border-box;
}

.rdp-root * {
box-sizing: border-box;
}

/* Reset buttons */
.rdp-root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
}

.rdp-day {
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -320,23 +331,7 @@
cursor: pointer;
}

.rdp-footer,
.rdp-months_dropdown,
.rdp-month_grid,
.rdp-month,
.rdp-weeks,
.rdp-no_weekdays,
.rdp-years_dropdown {
/* These classes are not used by the default style, but are available to use */
/* Keep anyway for the CSS type definition. */
}

.rdp-root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
.rdp-day_button:focus-visible {
/* outline: 2px solid var(--rdp-accent-color); */
/* You may want to add focus-outlines here. */
}
34 changes: 14 additions & 20 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,25 @@

/* Root of the component. */
.root {
position: relative;
position: relative; /* Required to position the navigation toolbar. */
box-sizing: border-box;
}

.root * {
box-sizing: border-box;
}

/* Reset buttons */
.root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
}

.day {
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -320,23 +331,6 @@
cursor: pointer;
}

.footer,
.months_dropdown,
.month_grid,
.month,
.weeks,
.no_weekdays,
.years_dropdown {
/* These classes are not used by the default style, but are available to use */
/* Keep anyway for the CSS type definition. */
}

.root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
.day_button:focus-visible {
/* You may want to add focus-outlines here. */
}

0 comments on commit b2beac8

Please sign in to comment.