forked from mirrors/Scribe.js
337 lines
No EOL
7.7 KiB
SCSS
337 lines
No EOL
7.7 KiB
SCSS
$color: #de930f;
|
|
$secondaryColor: #ae720c;
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle, .react-datepicker__tether-element-attached-bottom .react-datepicker__triangle, .react-datepicker__year-read-view--down-arrow {
|
|
margin-left: -8px;
|
|
position: absolute;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle, .react-datepicker__tether-element-attached-bottom .react-datepicker__triangle, .react-datepicker__year-read-view--down-arrow, .react-datepicker__tether-element-attached-top .react-datepicker__triangle::before, .react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before, .react-datepicker__year-read-view--down-arrow::before {
|
|
box-sizing: content-box;
|
|
position: absolute;
|
|
border: 8px solid transparent;
|
|
height: 0;
|
|
width: 1px;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before, .react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before, .react-datepicker__year-read-view--down-arrow::before {
|
|
content: "";
|
|
z-index: -1;
|
|
border-width: 8px;
|
|
left: -8px;
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle {
|
|
top: 0;
|
|
margin-top: -8px;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle, .react-datepicker__tether-element-attached-top .react-datepicker__triangle::before {
|
|
border-top: none;
|
|
border-bottom-color: $secondaryColor;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before {
|
|
top: -1px;
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle, .react-datepicker__year-read-view--down-arrow {
|
|
bottom: 0;
|
|
margin-bottom: -8px;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle, .react-datepicker__year-read-view--down-arrow, .react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before, .react-datepicker__year-read-view--down-arrow::before {
|
|
border-bottom: none;
|
|
border-top-color: #fff;
|
|
}
|
|
|
|
.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before, .react-datepicker__year-read-view--down-arrow::before {
|
|
bottom: -1px;
|
|
border-top-color: transparent;
|
|
}
|
|
|
|
.react-datepicker {
|
|
font-size: 11px;
|
|
background-color: $color;
|
|
color: #000;
|
|
//border-radius: 4px;
|
|
display: inline-block;
|
|
position: relative;
|
|
box-shadow: 0 0 40px rgba(0, 0, 0, 0.37);
|
|
}
|
|
|
|
.react-datepicker__container {
|
|
position: absolute;
|
|
display: inline-block;
|
|
z-index: 2147483647;
|
|
}
|
|
|
|
.react-datepicker__triangle {
|
|
position: absolute;
|
|
left: 50px;
|
|
}
|
|
|
|
.react-datepicker__tether-target-attached-top.react-datepicker__container {
|
|
margin-top: -20px;
|
|
}
|
|
|
|
.react-datepicker__header {
|
|
text-align: center;
|
|
background-color: $secondaryColor;
|
|
padding-top: 10px;
|
|
position: relative;
|
|
}
|
|
|
|
.react-datepicker__current-month {
|
|
margin-top: 0;
|
|
color: #FFF;
|
|
font-weight: bold;
|
|
font-size: 9px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
position: relative;
|
|
top: -4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.react-datepicker__current-month--hasYearDropdown {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.react-datepicker__navigation {
|
|
line-height: 24px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 0;
|
|
border: 6px solid transparent;
|
|
}
|
|
|
|
.react-datepicker__navigation--previous {
|
|
left: 10px;
|
|
border-right-color: #fff;
|
|
}
|
|
|
|
.react-datepicker__navigation--previous:hover {
|
|
border-right-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__navigation--next {
|
|
right: 10px;
|
|
border-left-color: #fff;
|
|
}
|
|
|
|
.react-datepicker__navigation--next:hover {
|
|
border-left-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__navigation--years {
|
|
position: relative;
|
|
top: 0;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.react-datepicker__navigation--years-previous {
|
|
top: 4px;
|
|
border-top-color: #ccc;
|
|
}
|
|
|
|
.react-datepicker__navigation--years-previous:hover {
|
|
border-top-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__navigation--years-upcoming {
|
|
top: -4px;
|
|
border-bottom-color: #ccc;
|
|
}
|
|
|
|
.react-datepicker__navigation--years-upcoming:hover {
|
|
border-bottom-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__week-day {
|
|
color: #ccc;
|
|
display: inline-block;
|
|
width: 28px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.react-datepicker__month {
|
|
margin: 5px;
|
|
text-align: center;
|
|
background: $color;
|
|
}
|
|
|
|
.react-datepicker__day {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
display: inline-block;
|
|
width: 24px;
|
|
line-height: 21px;
|
|
text-align: center;
|
|
/* margin: 2px; */
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
font-size: 9px;
|
|
padding-top: 1px;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.react-datepicker__day:hover {
|
|
/* border-radius: 4px; */
|
|
background-color: #f0f0f0;
|
|
/* color: $color; */
|
|
color: $color;
|
|
}
|
|
|
|
.react-datepicker__day--today {
|
|
/* font-weight: bold; */
|
|
}
|
|
|
|
.react-datepicker__day--selected, .react-datepicker__day--in-range {
|
|
/* border-radius: 4px; */
|
|
background-color: rgba(255, 255, 255, 0.43);
|
|
color: #fff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.react-datepicker__day--selected:hover, .react-datepicker__day--in-range:hover {
|
|
/* background-color: #1d5d90; */
|
|
/* color: red; */
|
|
color: $color;
|
|
}
|
|
|
|
.react-datepicker__day--disabled {
|
|
cursor: default;
|
|
color: rgba(255, 255, 255, 0.15) !important;
|
|
}
|
|
|
|
.react-datepicker__day--disabled:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.react-datepicker__input-container {
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
.react-datepicker__input {
|
|
position: relative;
|
|
font-size: 13px;
|
|
border-radius: 4px;
|
|
box-shadow: inset 0 2px 2px #e9e9e9;
|
|
border: 1px solid #aeaeae;
|
|
line-height: 16px;
|
|
padding: 6px 10px 5px;
|
|
}
|
|
|
|
.react-datepicker__input:focus {
|
|
outline: none;
|
|
border-color: #aeaeae;
|
|
box-shadow: inset 0 2px 2px #e9e9e9, 0 0 10px 0 rgba(73, 107, 125, 0.3);
|
|
}
|
|
|
|
.react-datepicker__input:not(:valid) ~ .close-icon {
|
|
display: none;
|
|
}
|
|
|
|
.react-datepicker__year-read-view {
|
|
width: 50%;
|
|
left: 25%;
|
|
position: absolute;
|
|
bottom: 25px;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.react-datepicker__year-read-view:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow {
|
|
border-top-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__year-read-view--down-arrow {
|
|
border-top-color: #ccc;
|
|
margin-bottom: 3px;
|
|
left: 5px;
|
|
top: 9px;
|
|
position: relative;
|
|
border-width: 6px;
|
|
}
|
|
|
|
.react-datepicker__year-read-view--selected-year {
|
|
right: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.react-datepicker__year-dropdown {
|
|
background-color: #f0f0f0;
|
|
position: absolute;
|
|
width: 50%;
|
|
left: 25%;
|
|
top: 30px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
border: 1px solid #aeaeae;
|
|
}
|
|
|
|
.react-datepicker__year-dropdown:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.react-datepicker__year-option {
|
|
line-height: 20px;
|
|
width: 100%;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.react-datepicker__year-option:first-of-type {
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
}
|
|
|
|
.react-datepicker__year-option:last-of-type {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
border-bottom-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.react-datepicker__year-option:hover {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming {
|
|
border-bottom-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous {
|
|
border-top-color: #b3b3b3;
|
|
}
|
|
|
|
.react-datepicker__year-option--selected {
|
|
position: absolute;
|
|
left: 30px;
|
|
}
|
|
|
|
.react-datepicker__header .react-datepicker__day {
|
|
background: transparent !important;
|
|
color: #FFF !important;
|
|
cursor: default;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.react-datepicker__tether-element {
|
|
z-index: 9999;
|
|
} |