stargaze-studio/styles/datepicker.css

271 lines
6.0 KiB
CSS
Raw Normal View History

2022-07-13 13:56:36 +00:00
.react-calendar {
width: 350px;
max-width: 100%;
@apply bg-stone-800/80 rounded backdrop-blur-sm border-2 border-white/20 shadow-lg;
}
.react-calendar--doubleView {
width: 700px;
}
.react-calendar--doubleView .react-calendar__viewContainer {
display: flex;
margin: -0.5em;
}
.react-calendar--doubleView .react-calendar__viewContainer > * {
width: 50%;
margin: 0.5em;
}
.react-calendar,
.react-calendar *,
.react-calendar *:before,
.react-calendar *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.react-calendar button {
margin: 0;
border: 0;
outline: none;
}
.react-calendar button:enabled:hover {
cursor: pointer;
}
.react-calendar__navigation {
display: flex;
height: 44px;
margin-bottom: 1em;
}
.react-calendar__navigation button {
min-width: 44px;
background: none;
}
.react-calendar__navigation button:disabled {
@apply text-black/50;
}
.react-calendar__navigation button:enabled:hover,
.react-calendar__navigation button:enabled:focus {
@apply bg-white/25;
}
.react-calendar__month-view__weekdays {
text-align: center;
text-transform: uppercase;
font-weight: bold;
font-size: 0.75em;
}
.react-calendar__month-view__weekdays__weekday {
padding: 0.5em;
}
.react-calendar__month-view__weekNumbers .react-calendar__tile {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75em;
font-weight: bold;
}
.react-calendar__month-view__days__day--weekend {
@apply text-red-400;
}
.react-calendar__month-view__days__day--neighboringMonth {
@apply text-stone-500;
}
.react-calendar__year-view .react-calendar__tile,
.react-calendar__decade-view .react-calendar__tile,
.react-calendar__century-view .react-calendar__tile {
padding: 2em 0.5em;
}
.react-calendar__tile {
max-width: 100%;
padding: 10px 6.6667px;
background: none;
text-align: center;
line-height: 16px;
font-weight: bold;
}
.react-calendar__tile:disabled {
@apply text-black/50;
}
.react-calendar__tile:enabled:hover,
.react-calendar__tile:enabled:focus {
@apply bg-white/25;
}
.react-calendar__tile--now {
@apply bg-plumbus/25;
}
.react-calendar__tile--now:enabled:hover,
.react-calendar__tile--now:enabled:focus {
@apply bg-plumbus/50;
}
.react-calendar__tile--hasActive {
background: #76baff;
}
.react-calendar__tile--hasActive:enabled:hover,
.react-calendar__tile--hasActive:enabled:focus {
background: #a9d4ff;
}
.react-calendar__tile--active {
@apply text-white bg-plumbus/50;
}
.react-calendar__tile--active:enabled:hover,
.react-calendar__tile--active:enabled:focus {
@apply bg-plumbus;
}
.react-calendar--selectRange .react-calendar__tile--hover {
background-color: #e6e6e6;
}
.react-clock {
display: block;
position: relative;
}
.react-clock,
.react-clock *,
.react-clock *:before,
.react-clock *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.react-clock__face {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: 1px solid white;
border-radius: 50%;
}
.react-clock__hand {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
right: 50%;
}
.react-clock__hand__body {
position: absolute;
background-color: white;
transform: translateX(-50%);
}
.react-clock__mark {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
right: 50%;
}
.react-clock__mark__body {
position: absolute;
background-color: white;
transform: translateX(-50%);
}
.react-clock__mark__number {
position: absolute;
left: -40px;
width: 80px;
text-align: center;
}
.react-clock__second-hand__body {
background-color: red;
}
.react-datetime-picker {
display: inline-flex;
position: relative;
}
.react-datetime-picker,
.react-datetime-picker *,
.react-datetime-picker *:before,
.react-datetime-picker *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.react-datetime-picker--disabled {
background-color: #f0f0f0;
color: #6d6d6d;
}
.react-datetime-picker__wrapper {
display: flex;
flex-grow: 1;
@apply space-x-2;
}
.react-datetime-picker__inputGroup {
min-width: calc(4px + (4px * 3) + 0.54em * 6 + 0.217em * 2);
flex-grow: 1;
display: flex;
align-items: center;
}
.react-datetime-picker__inputGroup__divider {
white-space: pre;
}
.react-datetime-picker__inputGroup__input {
min-width: 0.54em;
height: calc(100% - 2px);
position: relative;
border: 0;
background: none;
font: inherit;
box-sizing: content-box;
-moz-appearance: textfield;
}
.react-datetime-picker__inputGroup__input::-webkit-outer-spin-button,
.react-datetime-picker__inputGroup__input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.react-datetime-picker__inputGroup__input:invalid {
background: rgba(255, 0, 0, 0.1);
}
.react-datetime-picker__inputGroup__input--hasLeadingZero {
margin-left: -0.54em;
padding-left: calc(1px + 0.54em);
}
.react-datetime-picker__inputGroup__amPm {
font: inherit;
-moz-appearance: menulist;
}
.react-datetime-picker__button {
border: 0;
background: transparent;
}
.react-datetime-picker__button:enabled {
cursor: pointer;
}
.react-datetime-picker__button:enabled:hover
.react-datetime-picker__button__icon,
.react-datetime-picker__button:enabled:focus
.react-datetime-picker__button__icon {
@apply stroke-plumbus;
}
.react-datetime-picker__button:disabled .react-datetime-picker__button__icon {
@apply stroke-stone-500;
}
.react-datetime-picker__button svg {
display: inherit;
}
.react-datetime-picker__calendar,
.react-datetime-picker__clock {
position: absolute;
top: 100%;
left: 0;
z-index: 1;
}
.react-datetime-picker__calendar--closed,
.react-datetime-picker__clock--closed {
display: none;
}
.react-datetime-picker__calendar {
width: 350px;
max-width: 100vw;
}
.react-datetime-picker__calendar .react-calendar {
/* border-width: thin; */
}
.react-datetime-picker__clock {
width: 200px;
height: 200px;
max-width: 100vw;
padding: 25px;
@apply bg-stone-500/90 rounded backdrop-blur-sm border-2 border-white/20 shadow-lg;
}