react-calendar-toolkit
Version:
React Calendar Toolkit is a set of React Components capable of rendering various calendars, datepickers etc.
401 lines (345 loc) • 9.99 kB
CSS
.Day-module_grid__-91j0 {
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: var(--calendarHeight);
padding: 0 var(--innerPadding) calc(var(--innerPadding) / 2);
width: var(--calendarWidth);
}
.Day-module_placeholder__1L0Xk,
.Day-module_wrapper__1t95P {
background-clip: padding-box;
border: 1px solid var(--bgColor);
border-radius: 50%;
box-sizing: border-box;
cursor: pointer;
flex: 0 0 calc(100% / 7 - 2px);
height: var(--entryHeight);
line-height: var(--entryHeight);
margin: 0 var(--entryMargin);
text-align: center;
-webkit-user-select: none;
user-select: none;
}
.Day-module_placeholder__1L0Xk {
cursor: default;
}
/* stylelint-disable */
_:-ms-fullscreen, :root .Day-module_wrapper__1t95P {
width: var(--entryHeight);
flex: none;
}
_:-ms-fullscreen, :root .Day-module_placeholder__1L0Xk {
width: var(--entryHeight);
flex: none;
}
/* stylelint-enable */
.Day-module_wrapper__1t95P:active,
.Day-module_wrapper__1t95P:focus {
outline: none;
}
.Day-module_wrapper__1t95P:hover:not(.Day-module_isDisabled__3G-x3),
.Day-module_wrapper__1t95P:focus:not(.Day-module_isSelected__3tDFG):not(.Day-module_isDisabled__3G-x3) {
background-color: var(--entryHoverColor);
color: var(--textColor);
}
.Day-module_isWeekend__Z_3Ds {
color: var(--weekendTextColor);
}
.Day-module_isDisabled__3G-x3 {
cursor: not-allowed;
opacity: 0.3;
text-decoration: line-through;
}
.Day-module_isSelected__3tDFG {
background-color: var(--entrySelectedColor);
color: white;
}
.Day-module_isCurrent__2Yy1O {
border-color: var(--borderColor);
}
.Day-module_isHighlighted__BYgLM {
background-color: var(--entryHighlightColor);
}
.Day-module_isHighlighted__BYgLM.Day-module_isSelected__3tDFG {
background: padding-box linear-gradient(135deg, var(--entryHighlightColor) 0%, var(--entryHighlightColor) 50%, var(--entrySelectedColor) 50%, var(--entrySelectedColor) 100%);
}
.Month-module_grid__2TOtv {
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: calc(var(--calendarHeight) + var(--entryHeight) + var(--innerPadding) / 2);
padding: 0 var(--innerPadding) var(--innerPadding);
width: var(--calendarWidth);
}
.Month-module_wrapper__Ahs6a {
background-clip: padding-box;
border: 1px solid var(--bgColor);
border-radius: var(--entryBorderRadius);
box-sizing: border-box;
cursor: pointer;
flex: 1 1 calc(100% / 3 - 3px);
height: var(--entryHeight);
line-height: var(--entryHeight);
margin: var(--innerPadding) var(--entryMargin) 0;
text-align: center;
-webkit-user-select: none;
user-select: none;
}
.Month-module_wrapper__Ahs6a:active,
.Month-module_wrapper__Ahs6a:focus {
outline: none;
}
.Month-module_wrapper__Ahs6a:hover:not(.Month-module_isDisabled__3S9Dl),
.Month-module_wrapper__Ahs6a:focus:not(.Month-module_isSelected__2xISL):not(.Month-module_isDisabled__3S9Dl) {
background-color: var(--entryHoverColor);
color: var(--textColor);
}
.Month-module_isDisabled__3S9Dl {
cursor: not-allowed;
opacity: 0.3;
text-decoration: line-through;
}
.Month-module_isSelected__2xISL {
background-color: var(--entrySelectedColor);
color: white;
}
.Month-module_isCurrent__1vqLk {
border-color: var(--borderColor);
}
.Year-module_scrollContainer__1Qj9V {
height: calc(var(--calendarHeight) + var(--entryHeight) + var(--innerPadding) / 2);
overflow: auto;
padding: 0 0 var(--innerPadding);
}
.Year-module_grid__2RMMM {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 0 auto;
padding: 0 0 var(--innerPadding);
width: var(--calendarWidth);
}
.Year-module_wrapper__1PVy7 {
background-clip: padding-box;
border: 1px solid var(--bgColor);
border-radius: var(--entryBorderRadius);
box-sizing: border-box;
color: var(--textColor);
cursor: pointer;
flex: 0 1 calc(100% / 5 - 2px);
height: var(--entryHeight);
line-height: var(--entryHeight);
margin: var(--innerPadding) var(--entryMargin) 0;
text-align: center;
-webkit-user-select: none;
user-select: none;
}
.Year-module_wrapper__1PVy7:active,
.Year-module_wrapper__1PVy7:focus {
outline: none;
}
.Year-module_wrapper__1PVy7:hover,
.Year-module_wrapper__1PVy7:focus:not(.Year-module_isSelected__3WvJz) {
background-color: var(--entryHoverColor);
color: var(--textColor);
}
.Year-module_isSelected__3WvJz {
background-color: var(--entrySelectedColor);
color: white;
}
.Year-module_isCurrent__1txcW {
border-color: var(--borderColor);
}
.DatepickerWrapper-module_datepickerWrapper__2OagP {
background: var(--bgColor);
border-radius: var(--datepickerBorderRadius);
box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
color: var(--textColor);
font-family: var(--fontPrimary), var(--fontSecondary), var(--fontFallback);
font-size: var(--fontSize);
font-weight: var(--fontWeight);
overflow: hidden;
width: var(--datePickerWidth);
}
.Header-module_wrapper__3P_XR {
background: var(--headerBgColor);
padding: var(--innerPadding);
}
.Header-module_currentDate__gaViY {
color: var(--headerTextColor);
font-size: var(--fontSizeBig);
font-weight: 300;
letter-spacing: 1.6px;
text-align: left;
}
.Header-module_title__3M8C7 {
color: var(--headerTextColor);
font-size: var(--fontSizeSmall);
letter-spacing: 1.6px;
margin-bottom: calc(var(--innerPadding) * 1.5);
text-align: left;
text-transform: uppercase;
}
.Selector-module_wrapper__3TwUo {
align-items: center;
display: flex;
height: var(--selectorHeight);
justify-content: space-between;
padding: calc(var(--innerPadding) / 2) var(--innerPadding);
}
.Selector-module_buttons__1j6fe button {
background-color: transparent;
border: none;
border-radius: 4px;
color: var(--textColor);
cursor: pointer;
font-size: var(--fontSize);
margin-right: 2px;
padding: 8px;
-webkit-user-select: none;
user-select: none;
}
.Selector-module_stepper__2B4S4 button {
background-color: transparent;
border: none;
border-radius: 50%;
color: var(--textColor);
cursor: pointer;
font-size: var(--fontSize);
font-weight: bold;
height: 36px;
padding: 0;
text-align: center;
-webkit-user-select: none;
user-select: none;
width: 36px;
}
.Selector-module_stepper__2B4S4 button:active,
.Selector-module_stepper__2B4S4 button:focus {
outline: none;
}
.Selector-module_stepper__2B4S4 button:focus,
.Selector-module_stepper__2B4S4 button:hover {
background-color: var(--entryHoverColor);
}
.Selector-module_buttons__1j6fe button:active,
.Selector-module_buttons__1j6fe button:focus {
outline: none;
}
.Selector-module_buttons__1j6fe button:focus,
.Selector-module_buttons__1j6fe button:hover {
background-color: var(--entryHoverColor);
}
.Weekdays-module_grid__2dX1R {
border-bottom: 1px solid var(--borderColor);
box-sizing: border-box;
display: flex;
height: var(--entryHeight);
margin-bottom: var(--innerPadding);
padding: 0 var(--innerPadding);
}
.Weekdays-module_wrapper__1Mp2z {
box-sizing: border-box;
color: var(--weekDayColor);
cursor: default;
display: inline-block;
flex: 1 1 calc(100% / 7);
height: var(--entryHeight);
line-height: var(--entryHeight);
text-align: center;
-webkit-user-select: none;
user-select: none;
vertical-align: middle;
}
.Input-module_input__UE3c4 {
border: 1px solid var(--inputBorderColor);
border-radius: var(--inputBorderRadius);
color: var(--textColor);
font-family: var(--fontPrimary), var(--fontSecondary), var(--fontFallback);
font-size: var(--fontSize);
font-weight: var(--fontWeight);
padding: var(--inputPadding) calc(var(--inputPadding) * 2);
width: var(--inputWidth);
}
.Input-module_input__UE3c4:focus {
border-color: var(--inputHighlightColor);
}
.PopoverProvider-module_container__FyCtt {
overflow: visible ;
}
.PopoverWrapper-module_wrapper__1UKmx {
overflow: visible;
position: relative;
}
.PopoverWrapper-module_wrapper__1UKmx.PopoverWrapper-module_bottom__1saCi {
padding-top: 20px;
}
.PopoverWrapper-module_wrapper__1UKmx.PopoverWrapper-module_top__3AL4O {
padding-bottom: 20px;
}
.PopoverWrapper-module_wrapper__1UKmx.PopoverWrapper-module_right__NN7t1 {
margin-top: -20px;
padding-left: 20px;
}
.PopoverWrapper-module_wrapper__1UKmx.PopoverWrapper-module_left__1usb- {
margin-top: -20px;
padding-right: 20px;
}
.PopoverWrapper-module_wrapper__1UKmx > *:not(.PopoverWrapper-module_triangle__3hMC5) {
position: relative;
z-index: 1;
}
.PopoverWrapper-module_triangle__3hMC5 {
height: 0;
position: absolute;
width: 0;
z-index: 2;
}
.PopoverWrapper-module_triangle__3hMC5.PopoverWrapper-module_bottom__1saCi {
border-bottom: 15px solid var(--bgColor);
border-left: 15px solid transparent;
border-right: 15px solid transparent;
left: 30px;
top: 5px;
}
.PopoverWrapper-module_triangle__3hMC5.PopoverWrapper-module_top__3AL4O {
border-bottom: none;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid var(--bgColor);
bottom: 5px;
left: 30px;
}
.PopoverWrapper-module_triangle__3hMC5.PopoverWrapper-module_right__NN7t1 {
border-bottom: 15px solid transparent;
border-left: none;
border-right: 15px solid var(--bgColor);
border-top: 15px solid transparent;
left: 5px;
top: 15px;
}
.PopoverWrapper-module_triangle__3hMC5.PopoverWrapper-module_left__1usb- {
border-bottom: 15px solid transparent;
border-left: 15px solid var(--bgColor);
border-top: 15px solid transparent;
left: var(--datePickerWidth);
top: 15px;
}
.ModalProvider-module_container__177JH {
background: var(--modalBgColor);
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
-webkit-user-select: none;
user-select: none;
z-index: 9999;
}
.ModalWrapper-module_content__16wqO {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}