201 lines
4.9 KiB
CSS
201 lines
4.9 KiB
CSS
.react-calendar {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
font-family: 'Roboto', sans-serif;
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
|
|
/* Add styles for weekday names */
|
|
.react-calendar__month-view__weekdays__weekday {
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding: 0.5em;
|
|
color: #666;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.react-calendar__month-view__weekdays__weekday abbr {
|
|
text-decoration: none;
|
|
border-bottom: none;
|
|
cursor: default;
|
|
}
|
|
|
|
/* reduce the naivation bar height */
|
|
.react-calendar__navigation {
|
|
height: 30px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.react-calendar__tile {
|
|
padding: 10px;
|
|
max-height: 40px;
|
|
min-width: 40px;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s ease-in-out;
|
|
position: relative;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.react-calendar__tile:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg);
|
|
color: var(--joy-palette-primary-solidColor);
|
|
}
|
|
|
|
/* Active/Selected date */
|
|
.react-calendar__tile--active {
|
|
background-color: var(--joy-palette-primary-solidBg) !important;
|
|
color: var(--joy-palette-primary-solidColor) !important;
|
|
border: none !important;
|
|
box-shadow: 0 2px 4px var(--joy-palette-primary-shadowRing);
|
|
}
|
|
|
|
.react-calendar__tile--active:hover {
|
|
background-color: var(--joy-palette-primary-solidHoverBg) !important;
|
|
}
|
|
|
|
/* Today's date */
|
|
.react-calendar__tile--now {
|
|
background-color: transparent !important;
|
|
border: 1.5px solid var(--joy-palette-primary-solidBg) !important;
|
|
color: var(--joy-palette-primary-solidBg) !important;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.react-calendar__tile--now:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg) !important;
|
|
}
|
|
|
|
/* Disabled dates */
|
|
.react-calendar__tile:disabled {
|
|
color: var(--joy-palette-text-tertiary);
|
|
cursor: not-allowed;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Weekend dates */
|
|
.react-calendar__month-view__days__day--weekend {
|
|
color: var(--joy-palette-text-secondary);
|
|
}
|
|
|
|
/* Neighboring month dates */
|
|
.react-calendar__month-view__days__day--neighboringMonth {
|
|
color: var(--joy-palette-text-tertiary);
|
|
}
|
|
|
|
.dot-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 16px;
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
min-height: 16px;
|
|
margin-top: -5px;
|
|
}
|
|
|
|
.dot {
|
|
width: 0.3em;
|
|
height: 0.3em;
|
|
border-radius: 50%;
|
|
margin: 0 1px;
|
|
}
|
|
|
|
.dot-with-line {
|
|
width: 1.2em;
|
|
height: 0.3em;
|
|
border-radius: 0.15em;
|
|
margin: 0 1px;
|
|
}
|
|
.dot-empty {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.chore-tooltip {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background-color: #333;
|
|
color: white;
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
z-index: 10;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition:
|
|
opacity 0.2s ease,
|
|
visibility 0.2s ease;
|
|
}
|
|
|
|
/* Year view month tiles - override circular styling */
|
|
.react-calendar__year-view__months__month {
|
|
border-radius: 8px !important; /* Override the 50% circular radius */
|
|
padding: 12px 8px !important;
|
|
min-width: 60px !important;
|
|
max-height: 50px !important;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.react-calendar__year-view__months__month:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg) !important;
|
|
color: var(--joy-palette-primary-solidColor) !important;
|
|
}
|
|
|
|
/* Decade view year tiles - similar fix */
|
|
.react-calendar__decade-view__years__year {
|
|
border-radius: 8px !important;
|
|
padding: 12px 8px !important;
|
|
min-width: 60px !important;
|
|
max-height: 50px !important;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.react-calendar__decade-view__years__year:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg) !important;
|
|
color: var(--joy-palette-primary-solidColor) !important;
|
|
}
|
|
|
|
/* Century view decade tiles */
|
|
.react-calendar__century-view__decades__decade {
|
|
border-radius: 8px !important;
|
|
padding: 12px 8px !important;
|
|
min-width: 60px !important;
|
|
max-height: 50px !important;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.react-calendar__century-view__decades__decade:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg) !important;
|
|
color: var(--joy-palette-primary-solidColor) !important;
|
|
}
|
|
|
|
/* Navigation buttons (month/year selectors and arrows) */
|
|
.react-calendar__navigation button {
|
|
border-radius: 8px !important; /* Override circular border-radius */
|
|
padding: 6px 12px !important;
|
|
min-width: auto !important;
|
|
max-height: none !important;
|
|
font-weight: 500;
|
|
background-color: transparent;
|
|
border: 1px solid transparent;
|
|
transition: all 0.2s ease-in-out;
|
|
color: var(--joy-palette-text-primary);
|
|
}
|
|
|
|
.react-calendar__navigation button:enabled:hover {
|
|
background-color: var(--joy-palette-primary-softBg) !important;
|
|
color: var(--joy-palette-primary-solidColor) !important;
|
|
border-color: var(--joy-palette-primary-outlinedBorder);
|
|
}
|
|
|
|
.react-calendar__navigation button:enabled:focus {
|
|
background-color: var(--joy-palette-primary-softActiveBg) !important;
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--joy-palette-primary-outlinedBorder);
|
|
}
|