335 lines
7.1 KiB
CSS
335 lines
7.1 KiB
CSS
@font-face {
|
|
font-family: 'Poppins', sans-serif;
|
|
src: url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap);
|
|
}
|
|
|
|
|
|
.lightpick {
|
|
position: absolute;
|
|
z-index: 0;
|
|
border-radius: 4px;
|
|
background-color: #FFF;
|
|
color: #000;
|
|
/* font-family: 'Poppins', sans-serif; */
|
|
line-height: 1.125em;
|
|
}
|
|
|
|
.lightpick--inlined {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.lightpick,
|
|
.lightpick *,
|
|
.lightpick::after,
|
|
.lightpick::before {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.lightpick.is-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.lightpick__months {
|
|
display: grid;
|
|
background-color: #EEE;
|
|
grid-template-columns: auto;
|
|
grid-gap: 1px;
|
|
}
|
|
|
|
.lightpick--2-columns .lightpick__months {
|
|
grid-template-columns: auto auto;
|
|
}
|
|
|
|
.lightpick--3-columns .lightpick__months {
|
|
grid-template-columns: auto auto auto;
|
|
}
|
|
|
|
.lightpick--4-columns .lightpick__months {
|
|
grid-template-columns: auto auto auto auto;
|
|
}
|
|
|
|
.lightpick--5-columns .lightpick__months {
|
|
grid-template-columns: auto auto auto auto auto;
|
|
}
|
|
|
|
.lightpick__month {
|
|
width: 100%;
|
|
background-color: #FFF;
|
|
}
|
|
|
|
.lightpick__month-title-bar {
|
|
display: flex;
|
|
margin-bottom: 4px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 25px 0;
|
|
background: transparent;
|
|
position: relative;
|
|
border: 1px solid #CED8D7;
|
|
|
|
}
|
|
|
|
.lightpick__month-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
line-height: 30px;
|
|
cursor: default;
|
|
color: #00A933;
|
|
}
|
|
|
|
.lightpick__month-title > .lightpick__select {
|
|
border: none;
|
|
background-color: transparent;
|
|
outline: none;
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
line-height: 30px;
|
|
cursor: default;
|
|
color: #00A933;
|
|
padding: 0 10px;
|
|
}
|
|
.lightpick__month-title > .lightpick__select:disabled {
|
|
color: #333;
|
|
}
|
|
|
|
.lightpick__month-title > .lightpick__select-months {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
line-height: 30px;
|
|
cursor: default;
|
|
color: #00A933;
|
|
padding-right: 10px;
|
|
text-transform: capitalize;
|
|
font-family: 'Poppins', sans-serif;
|
|
|
|
}
|
|
|
|
.lightpick__toolbar {
|
|
display: flex;
|
|
text-align: right;
|
|
justify-content: flex-end;
|
|
}
|
|
.lightpick__previous-action {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
-webkit-transform: translateY(-50%);
|
|
-o-transform: translateY(-50%);
|
|
-moz-transform: translateY(-50%);
|
|
-ms-transform: translateY(-50%);
|
|
left: 40px;
|
|
}
|
|
.lightpick__next-action {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
-webkit-transform: translateY(-50%);
|
|
-o-transform: translateY(-50%);
|
|
-moz-transform: translateY(-50%);
|
|
-ms-transform: translateY(-50%);
|
|
right: 40px;
|
|
}
|
|
.lightpick__previous-action,
|
|
.lightpick__next-action,
|
|
.lightpick__close-action {
|
|
display: flex;
|
|
width: 32px;
|
|
height: 32px;
|
|
outline: none;
|
|
border: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lightpick__previous-action,
|
|
.lightpick__next-action {
|
|
font-size: 20px;
|
|
background: none;
|
|
color: #00A933;
|
|
}
|
|
|
|
.lightpick__close-action {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.lightpick__previous-action:active,
|
|
.lightpick__next-action:active,
|
|
.lightpick__close-action:active {
|
|
color: inherit;
|
|
}
|
|
|
|
.lightpick__days-of-the-week {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
}
|
|
|
|
.lightpick__day-of-the-week {
|
|
display: flex;
|
|
font-family: 'Poppins';
|
|
font-size: 20px;
|
|
height: 58px;
|
|
width: calc(100% - 12px);
|
|
margin: 3px 6px;
|
|
background: transparent;
|
|
border-radius: 10px;
|
|
font-weight: 700;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-self: center;
|
|
text-transform: capitalize;
|
|
font-family: 'Poppins', sans-serif;
|
|
|
|
}
|
|
|
|
.lightpick__days {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
}
|
|
|
|
.lightpick__day {
|
|
display: flex;
|
|
height: 60px;
|
|
font-weight: 400;
|
|
font-family: 'Poppins';
|
|
background-position: center center;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
font-size: 20px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lightpick__day.is-today {
|
|
background-size: 18.8% auto;
|
|
background-position: center bottom;
|
|
color: #00A933;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.lightpick__day:not(.is-disabled):hover {
|
|
background-size: contain;
|
|
}
|
|
|
|
.lightpick__day.is-disabled {
|
|
opacity: 0.38;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.lightpick__day.disabled-tooltip {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.lightpick__day.is-disabled.is-forward-selected {
|
|
opacity: 1;
|
|
}
|
|
.lightpick__day.is-disabled.is-forward-selected:not(.is-start-date) {
|
|
background-color: rgba(38, 139, 210, 0.1);
|
|
background-image: none;
|
|
}
|
|
|
|
.lightpick__day.is-previous-month,
|
|
.lightpick__day.is-next-month {
|
|
opacity: 0.38;
|
|
}
|
|
|
|
.lightpick__day.lightpick__day.is-in-range:not(.is-disabled) {
|
|
opacity: 1;
|
|
}
|
|
|
|
.lightpick__day.is-in-range {
|
|
border-radius: 0;
|
|
background-color: rgba(38, 139, 210, 0.1);
|
|
background-image: none;
|
|
}
|
|
|
|
.lightpick__day.is-in-range:hover {
|
|
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle fill='rgba(38, 139, 210, 0.5)' cx='16' cy='16' r='16'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.lightpick__day.is-start-date.is-in-range,
|
|
.lightpick__day.is-end-date.is-in-range.is-flipped {
|
|
border-top-left-radius: 50%;
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 50%;
|
|
background-image: none;
|
|
}
|
|
|
|
.lightpick__day.is-end-date.is-in-range,
|
|
.lightpick__day.is-start-date.is-in-range.is-flipped {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 50%;
|
|
border-bottom-right-radius: 50%;
|
|
border-bottom-left-radius: 0;
|
|
background-image: none;
|
|
}
|
|
|
|
.lightpick__day.is-start-date.is-end-date {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.lightpick__day.is-start-date,
|
|
.lightpick__day.is-end-date,
|
|
.lightpick__day.is-start-date:hover,
|
|
.lightpick__day.is-end-date:hover {
|
|
background-size: auto;
|
|
background-position: center;
|
|
color: #76ec9a;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.lightpick__tooltip {
|
|
position: absolute;
|
|
margin-top: -4px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
background-color: #FFF;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
|
white-space: nowrap;
|
|
font-size: 11px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.lightpick__tooltip::before {
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: calc(50% - 5px);
|
|
border-top: 5px solid rgba(0, 0, 0, 0.12);
|
|
border-right: 5px solid transparent;
|
|
border-left: 5px solid transparent;
|
|
content: "";
|
|
}
|
|
|
|
.lightpick__tooltip::after {
|
|
position: absolute;
|
|
bottom: -4px;
|
|
left: calc(50% - 4px);
|
|
border-top: 4px solid #FFF;
|
|
border-right: 4px solid transparent;
|
|
border-left: 4px solid transparent;
|
|
content: "";
|
|
}
|
|
.lightpick__footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.lightpick__reset-action,
|
|
.lightpick__apply-action {
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
border: none;
|
|
}
|
|
.lightpick__reset-action {
|
|
color: #fff;
|
|
background-color: #aeacad;
|
|
}
|
|
.lightpick__apply-action {
|
|
color: #fff;
|
|
} |