at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,608 @@
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
|
||||
$box-shadow-default: 0 0.46875rem 2.1875rem rgba(darken($primary, 50%), 0.03),
|
||||
0 0.9375rem 1.40625rem rgba(darken($primary, 50%), 0.03),
|
||||
0 0.25rem 0.53125rem rgba(darken($primary, 50%), 0.05),
|
||||
0 0.125rem 0.1875rem rgba(darken($primary, 50%), 0.03);
|
||||
|
||||
$focus: #6610f2;
|
||||
|
||||
.react-datepicker-wrapper {
|
||||
display: block;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.react-datepicker {
|
||||
background-color: $white;
|
||||
color: $datepicker__text-color;
|
||||
border: 1px solid $datepicker__border-color;
|
||||
border-radius: $datepicker__border-radius;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
box-shadow: $box-shadow-default;
|
||||
}
|
||||
|
||||
.react-datepicker--time-only {
|
||||
.react-datepicker__triangle {
|
||||
left: 35px;
|
||||
}
|
||||
|
||||
.react-datepicker__time-container {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.react-datepicker__time {
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.react-datepicker__time-box {
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__triangle {
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
}
|
||||
|
||||
.react-datepicker-popper {
|
||||
z-index: 102;
|
||||
|
||||
&[data-placement^="bottom"] {
|
||||
margin-top: $datepicker__triangle-size + 2px;
|
||||
|
||||
.react-datepicker__triangle {
|
||||
@extend %triangle-arrow-up;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-placement^="top"] {
|
||||
margin-bottom: $datepicker__triangle-size + 2px;
|
||||
|
||||
.react-datepicker__triangle {
|
||||
@extend %triangle-arrow-down;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-placement^="right"] {
|
||||
margin-inline-start: $datepicker__triangle-size;
|
||||
|
||||
.react-datepicker__triangle {
|
||||
left: auto;
|
||||
right: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-placement^="left"] {
|
||||
margin-inline-end: $datepicker__triangle-size;
|
||||
|
||||
.react-datepicker__triangle {
|
||||
left: 42px;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__header {
|
||||
text-align: center;
|
||||
background-color: $datepicker__background-color;
|
||||
border-bottom: 1px solid $datepicker__border-color;
|
||||
border-top-left-radius: $datepicker__border-radius;
|
||||
border-top-right-radius: $datepicker__border-radius;
|
||||
padding-top: 10px;
|
||||
position: relative;
|
||||
|
||||
&--time {
|
||||
padding-bottom: 8px;
|
||||
padding-inline-start: 5px;
|
||||
padding-inline-end: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__year-dropdown-container--select,
|
||||
.react-datepicker__month-dropdown-container--select,
|
||||
.react-datepicker__month-year-dropdown-container--select,
|
||||
.react-datepicker__year-dropdown-container--scroll,
|
||||
.react-datepicker__month-dropdown-container--scroll,
|
||||
.react-datepicker__month-year-dropdown-container--scroll {
|
||||
display: inline-block;
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
.react-datepicker__current-month,
|
||||
.react-datepicker-time__header {
|
||||
margin-top: 0;
|
||||
color: $datepicker__header-color;
|
||||
font-weight: bold;
|
||||
font-size: $datepicker__font-size * 1.1;
|
||||
}
|
||||
|
||||
.react-datepicker-time__header {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.react-datepicker__navigation {
|
||||
background: none;
|
||||
line-height: $datepicker__item-size;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
padding: 0;
|
||||
border: $datepicker__navigation-size solid transparent;
|
||||
z-index: 1;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
text-indent: -999em;
|
||||
overflow: hidden;
|
||||
|
||||
&--previous {
|
||||
left: 10px;
|
||||
border-right-color: $datepicker__muted-color;
|
||||
|
||||
&:hover {
|
||||
border-right-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
|
||||
&--disabled,
|
||||
&--disabled:hover {
|
||||
border-right-color: $datepicker__navigation-disabled-color;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&--next {
|
||||
right: 10px;
|
||||
border-left-color: $datepicker__muted-color;
|
||||
&--with-time:not(&--with-today-button) {
|
||||
right: 80px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-left-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
|
||||
&--disabled,
|
||||
&--disabled:hover {
|
||||
border-left-color: $datepicker__navigation-disabled-color;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&--years {
|
||||
position: relative;
|
||||
top: 0;
|
||||
display: block;
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
|
||||
&-previous {
|
||||
top: 4px;
|
||||
border-top-color: $datepicker__muted-color;
|
||||
|
||||
&:hover {
|
||||
border-top-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
&-upcoming {
|
||||
top: -4px;
|
||||
border-bottom-color: $datepicker__muted-color;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__month-container {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.react-datepicker__month {
|
||||
margin: $datepicker__margin;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.react-datepicker__time-container {
|
||||
float: right;
|
||||
border-left: 1px solid $datepicker__border-color;
|
||||
width: 120px;
|
||||
|
||||
&--with-today-button {
|
||||
display: inline;
|
||||
border: 1px solid #aeaeae;
|
||||
border-radius: 0.3rem;
|
||||
position: absolute;
|
||||
right: -122px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.react-datepicker__time {
|
||||
position: relative;
|
||||
background: white;
|
||||
|
||||
.react-datepicker__time-box {
|
||||
width: 120px;
|
||||
overflow-x: hidden;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
ul.react-datepicker__time-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: calc(195px + (#{$datepicker__item-size} / 2));
|
||||
overflow-y: scroll;
|
||||
width: 100%;
|
||||
box-sizing: content-box;
|
||||
|
||||
li.react-datepicker__time-list-item {
|
||||
padding: 5px 10px;
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
background-color: $dropdown-link-hover-bg;
|
||||
}
|
||||
&--selected {
|
||||
background-color: $datepicker__selected-color;
|
||||
color: $white;
|
||||
font-weight: bold;
|
||||
&:hover {
|
||||
background-color: $datepicker__selected-color;
|
||||
}
|
||||
}
|
||||
&--disabled {
|
||||
color: $datepicker__muted-color;
|
||||
|
||||
&:hover {
|
||||
cursor: default;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__week-number {
|
||||
color: $datepicker__muted-color;
|
||||
display: inline-block;
|
||||
width: $datepicker__item-size;
|
||||
line-height: $datepicker__item-size;
|
||||
text-align: center;
|
||||
margin: $datepicker__day-margin;
|
||||
&.react-datepicker__week-number--clickable {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
border-radius: $datepicker__border-radius;
|
||||
background-color: $datepicker__background-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__day-names {
|
||||
background: $gray-100;
|
||||
border-top: $gray-300 solid 1px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.react-datepicker__day-names,
|
||||
.react-datepicker__week {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.react-datepicker__day-name,
|
||||
.react-datepicker__day,
|
||||
.react-datepicker__time-name {
|
||||
color: $datepicker__text-color;
|
||||
display: inline-block;
|
||||
width: $datepicker__item-size;
|
||||
line-height: $datepicker__item-size;
|
||||
text-align: center;
|
||||
margin: $datepicker__day-margin;
|
||||
}
|
||||
|
||||
.react-datepicker__day {
|
||||
cursor: pointer;
|
||||
@include border-radius($datepicker__border-radius);
|
||||
|
||||
&:hover {
|
||||
background-color: $primary;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&--today {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&--highlighted {
|
||||
border-radius: $datepicker__border-radius;
|
||||
background-color: $datepicker__highlighted-color;
|
||||
color: $white;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($datepicker__highlighted-color, 5%);
|
||||
}
|
||||
|
||||
&-custom-1 {
|
||||
color: $warning;
|
||||
}
|
||||
|
||||
&-custom-2 {
|
||||
color: $focus;
|
||||
}
|
||||
}
|
||||
|
||||
&--selected {
|
||||
background-color: $success;
|
||||
color: $white;
|
||||
|
||||
&:hover {
|
||||
background-color: $success;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
&--in-selecting-range,
|
||||
&--in-range {
|
||||
background-color: $dropdown-link-hover-bg;
|
||||
color: $dropdown-link-hover-color;
|
||||
|
||||
&:hover {
|
||||
background-color: $dropdown-link-hover-bg;
|
||||
color: $dropdown-link-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&--keyboard-selected {
|
||||
border-radius: $datepicker__border-radius;
|
||||
background-color: lighten($success, 10%);
|
||||
color: $white;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($success, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
&--in-selecting-range:not(&--in-range) {
|
||||
background-color: $dropdown-link-hover-bg;
|
||||
}
|
||||
|
||||
&--in-range:not(&--in-selecting-range) {
|
||||
.react-datepicker__month--selecting-range & {
|
||||
background-color: $success;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
&--disabled {
|
||||
cursor: default;
|
||||
color: $datepicker__muted-color;
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
color: $datepicker__muted-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__day--selecting-range-start,
|
||||
.react-datepicker__day--selecting-range-end {
|
||||
background-color: $success !important;
|
||||
color: $white !important;
|
||||
}
|
||||
|
||||
.react-datepicker__year-read-view,
|
||||
.react-datepicker__month-read-view,
|
||||
.react-datepicker__month-year-read-view {
|
||||
border: 1px solid transparent;
|
||||
border-radius: $datepicker__border-radius;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
|
||||
.react-datepicker__year-read-view--down-arrow,
|
||||
.react-datepicker__month-read-view--down-arrow {
|
||||
border-top-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
&--down-arrow {
|
||||
@extend %triangle-arrow-down;
|
||||
border-top-color: $datepicker__muted-color;
|
||||
float: right;
|
||||
margin-inline-start: 20px;
|
||||
top: 8px;
|
||||
position: relative;
|
||||
border-width: $datepicker__navigation-size;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__year-dropdown,
|
||||
.react-datepicker__month-dropdown,
|
||||
.react-datepicker__month-year-dropdown {
|
||||
background-color: $datepicker__background-color;
|
||||
position: absolute;
|
||||
width: 50%;
|
||||
left: 25%;
|
||||
top: 30px;
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
border-radius: $datepicker__border-radius;
|
||||
border: 1px solid $datepicker__border-color;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&--scrollable {
|
||||
height: 150px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__year-option,
|
||||
.react-datepicker__month-option,
|
||||
.react-datepicker__month-year-option {
|
||||
line-height: 20px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
|
||||
&:first-of-type {
|
||||
border-top-left-radius: $datepicker__border-radius;
|
||||
border-top-right-radius: $datepicker__border-radius;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
border-bottom-left-radius: $datepicker__border-radius;
|
||||
border-bottom-right-radius: $datepicker__border-radius;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $datepicker__muted-color;
|
||||
|
||||
.react-datepicker__navigation--years-upcoming {
|
||||
border-bottom-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
|
||||
.react-datepicker__navigation--years-previous {
|
||||
border-top-color: darken($datepicker__muted-color, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
&--selected {
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__close-icon {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
position: absolute;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
top: 25%;
|
||||
right: 7px;
|
||||
|
||||
&::after {
|
||||
background-color: $datepicker__selected-color;
|
||||
border-radius: 50%;
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
color: $white;
|
||||
content: "\00d7";
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
line-height: 1;
|
||||
margin: -8px auto 0;
|
||||
padding: 2px;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__today-button {
|
||||
background: $datepicker__background-color;
|
||||
border-top: 1px solid $datepicker__border-color;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
padding: 5px 0;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
.react-datepicker__portal {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: $zindex-modal-backdrop;
|
||||
background-color: rgba($modal-backdrop-bg, $modal-backdrop-opacity);
|
||||
left: 0;
|
||||
top: 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
.react-datepicker__day-name,
|
||||
.react-datepicker__day,
|
||||
.react-datepicker__time-name {
|
||||
width: 3rem;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
// Resize for small screens
|
||||
@media (max-width: 400px), (max-height: 550px) {
|
||||
.react-datepicker__day-name,
|
||||
.react-datepicker__day,
|
||||
.react-datepicker__time-name {
|
||||
width: 2rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__current-month,
|
||||
.react-datepicker-time__header {
|
||||
font-size: $datepicker__font-size * 1.8;
|
||||
}
|
||||
|
||||
.react-datepicker__navigation {
|
||||
border: 1.8 * $datepicker__navigation-size solid transparent;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.react-datepicker__navigation--previous {
|
||||
border-right-color: $primary;
|
||||
|
||||
&:hover {
|
||||
border-right-color: darken($primary, 10%);
|
||||
}
|
||||
|
||||
&--disabled,
|
||||
&--disabled:hover {
|
||||
border-right-color: $datepicker__navigation-disabled-color;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.react-datepicker__navigation--next {
|
||||
border-left-color: $primary;
|
||||
|
||||
&:hover {
|
||||
border-left-color: darken($primary, 10%);
|
||||
}
|
||||
|
||||
&--disabled,
|
||||
&--disabled:hover {
|
||||
border-left-color: $datepicker__navigation-disabled-color;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rangeButtonSelectedStyle {
|
||||
background: $primary !important;
|
||||
}
|
||||
|
||||
.rangebuttonstyle {
|
||||
outline: none !important;
|
||||
color: $primary !important;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
%triangle-arrow {
|
||||
margin-inline-start: -$datepicker__triangle-size;
|
||||
position: absolute;
|
||||
|
||||
&,
|
||||
&::before {
|
||||
box-sizing: content-box;
|
||||
position: absolute;
|
||||
border: $datepicker__triangle-size solid transparent;
|
||||
|
||||
height: 0;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
z-index: -1;
|
||||
border-width: $datepicker__triangle-size;
|
||||
|
||||
left: -$datepicker__triangle-size;
|
||||
border-bottom-color: $datepicker__border-color;
|
||||
}
|
||||
}
|
||||
|
||||
%triangle-arrow-up {
|
||||
@extend %triangle-arrow;
|
||||
|
||||
top: 0;
|
||||
margin-top: -$datepicker__triangle-size;
|
||||
|
||||
&,
|
||||
&::before {
|
||||
border-top: none;
|
||||
border-bottom-color: $datepicker__background-color;
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: -1px;
|
||||
border-bottom-color: $datepicker__border-color;
|
||||
}
|
||||
}
|
||||
|
||||
%triangle-arrow-down {
|
||||
@extend %triangle-arrow;
|
||||
|
||||
bottom: 0;
|
||||
margin-bottom: -$datepicker__triangle-size;
|
||||
|
||||
&,
|
||||
&::before {
|
||||
border-bottom: none;
|
||||
border-top-color: #fff;
|
||||
}
|
||||
|
||||
&::before {
|
||||
bottom: -1px;
|
||||
border-top-color: $datepicker__border-color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// Datepicker
|
||||
|
||||
$datepicker__background-color: $white;
|
||||
$datepicker__border-color: $gray-300;
|
||||
$datepicker__highlighted-color: $primary;
|
||||
$datepicker__muted-color: $gray-400;
|
||||
$datepicker__selected-color: theme-color("primary");
|
||||
$datepicker__text-color: $gray-700;
|
||||
$datepicker__header-color: $gray-800;
|
||||
$datepicker__navigation-disabled-color: darken($datepicker__muted-color, 5%)
|
||||
;
|
||||
|
||||
$datepicker__border-radius: $border-radius;
|
||||
$datepicker__day-margin: 0.166rem;
|
||||
$datepicker__font-size: $font-size-base;
|
||||
$datepicker__font-family: $font-size-base;
|
||||
$datepicker__item-size: 2rem;
|
||||
$datepicker__margin: 0.5rem;
|
||||
$datepicker__navigation-size: 0.35rem;
|
||||
$datepicker__triangle-size: 6px;
|
||||
@@ -0,0 +1,51 @@
|
||||
// Dropzone
|
||||
|
||||
.dropzone-wrapper {
|
||||
width: 100%;
|
||||
border: $gray-400 dashed 2px;
|
||||
@include border-radius($border-radius-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
text-align: center;
|
||||
height: 230px;
|
||||
transition: all .2s;
|
||||
|
||||
&:hover {
|
||||
border-color: $primary;
|
||||
}
|
||||
|
||||
& > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
outline: none !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&.dropzone-wrapper-lg {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
&.dropzone-wrapper-sm {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dropzone-content {
|
||||
margin: 0 auto;
|
||||
color: $gray-600;
|
||||
}
|
||||
|
||||
&[aria-disabled="true"] {
|
||||
border-color: $gray-300;
|
||||
|
||||
.dropzone-content {
|
||||
color: $gray-400;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,428 @@
|
||||
@import 'tooltip';
|
||||
|
||||
.rc-slider {
|
||||
position: relative;
|
||||
height: 20px;
|
||||
padding: 8px 0 0;
|
||||
width: 100%;
|
||||
@include border-radius($border-radius);
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.rc-slider-rail {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-color: $gray-200;
|
||||
height: 4px;
|
||||
@include border-radius($border-radius);
|
||||
}
|
||||
|
||||
.rc-slider-track {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
height: 4px;
|
||||
@include border-radius($border-radius);
|
||||
background-color: $primary;
|
||||
}
|
||||
|
||||
.rc-slider-handle {
|
||||
position: absolute;
|
||||
// margin-inline-start: -8px;
|
||||
margin-top: -6px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
cursor: -webkit-grab;
|
||||
cursor: grab;
|
||||
border-radius: 50%;
|
||||
border: solid 2px $primary;
|
||||
background-color: $white;
|
||||
-ms-touch-action: pan-x;
|
||||
touch-action: pan-x;
|
||||
transition: box-shadow 200ms;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:active,
|
||||
&:hover {
|
||||
border-color: darken($primary, 15%);
|
||||
box-shadow: 0 0.46875rem 2.1875rem rgba($primary, .8),
|
||||
0 0.125rem 0.5875rem rgba($primary, .9);
|
||||
}
|
||||
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: grabbing;
|
||||
}
|
||||
}
|
||||
|
||||
.rc-slider-mark {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.rc-slider-mark-text {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
color: $gray-600;
|
||||
}
|
||||
|
||||
.rc-slider-mark-text-active {
|
||||
color: $gray-800;
|
||||
}
|
||||
|
||||
.rc-slider-step {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.rc-slider-dot {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
margin-inline-start: -4px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border: 2px solid $gray-300;
|
||||
background-color: $white;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.rc-slider-dot-active {
|
||||
border-color: $primary;
|
||||
}
|
||||
|
||||
.rc-slider-disabled {
|
||||
background-color: $gray-200;
|
||||
}
|
||||
|
||||
.rc-slider-disabled .rc-slider-track {
|
||||
background-color: $gray-400;
|
||||
}
|
||||
|
||||
.rc-slider-disabled .rc-slider-handle,
|
||||
.rc-slider-disabled .rc-slider-dot {
|
||||
border-color: $gray-400;
|
||||
box-shadow: none;
|
||||
background-color: $white;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.rc-slider-disabled .rc-slider-mark-text,
|
||||
.rc-slider-disabled .rc-slider-dot {
|
||||
cursor: not-allowed !important;
|
||||
}
|
||||
|
||||
.rc-slider-vertical {
|
||||
width: 14px;
|
||||
height: 100%;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-rail {
|
||||
height: 100%;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-track {
|
||||
left: 5px;
|
||||
bottom: 0;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-handle {
|
||||
margin-inline-start: -6px;
|
||||
margin-bottom: -7px;
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-mark {
|
||||
top: 0;
|
||||
left: 18px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-step {
|
||||
height: 100%;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-dot {
|
||||
left: 2px;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-dot:first-child {
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.rc-slider-vertical .rc-slider-dot:last-child {
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-enter,
|
||||
.rc-slider-tooltip-zoom-down-appear {
|
||||
animation-duration: .3s;
|
||||
animation-fill-mode: both;
|
||||
display: block !important;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-leave {
|
||||
animation-duration: .3s;
|
||||
animation-fill-mode: both;
|
||||
display: block !important;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,
|
||||
.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {
|
||||
animation-name: rcSliderTooltipZoomDownIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {
|
||||
animation-name: rcSliderTooltipZoomDownOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-enter,
|
||||
.rc-slider-tooltip-zoom-down-appear {
|
||||
transform: scale(0, 0);
|
||||
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-zoom-down-leave {
|
||||
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
|
||||
}
|
||||
|
||||
@keyframes rcSliderTooltipZoomDownIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform-origin: 50% 100%;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
100% {
|
||||
transform-origin: 50% 100%;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rcSliderTooltipZoomDownOut {
|
||||
0% {
|
||||
transform-origin: 50% 100%;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform-origin: 50% 100%;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.rc-slider-tooltip {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: -9999px;
|
||||
visibility: visible;
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-placement-top {
|
||||
padding: 4px 0 8px 0;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-inner {
|
||||
padding: 0 8px;
|
||||
min-width: 28px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
color: $white;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
background-color: $gray-900;
|
||||
@include border-radius($border-radius);
|
||||
box-shadow: $box-shadow-default;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-arrow {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {
|
||||
bottom: 4px;
|
||||
left: 50%;
|
||||
margin-inline-start: -4px;
|
||||
border-width: 4px 4px 0;
|
||||
border-top-color: $gray-900;
|
||||
}
|
||||
|
||||
// Colors
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
.rc-slider-#{$color} {
|
||||
.rc-slider-track {
|
||||
background-color: $value;
|
||||
}
|
||||
|
||||
.rc-slider-handle {
|
||||
border-color: $value;
|
||||
background-color: $white;
|
||||
|
||||
&:focus,
|
||||
&:active,
|
||||
&:hover {
|
||||
border-color: darken($value, 15%);
|
||||
box-shadow: 0 0.46875rem 2.1875rem rgba($value, .8),
|
||||
0 0.125rem 0.5875rem rgba($value, .9);
|
||||
}
|
||||
}
|
||||
|
||||
.rc-slider-dot-active {
|
||||
border-color: $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Alternate Styles
|
||||
|
||||
.rc-slider-line {
|
||||
.rc-slider-handle {
|
||||
@include border-radius(0);
|
||||
border-width: 0 3px 0 0;
|
||||
// margin-inline-start: -8px;
|
||||
width: 10px;
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
.rc-slider-square {
|
||||
.rc-slider-handle {
|
||||
@include border-radius(3px);
|
||||
border-widtH: 1px;
|
||||
|
||||
&:before {
|
||||
position: absolute;
|
||||
height: 8px;
|
||||
width: 4px;
|
||||
border: $gray-500 solid 1px;
|
||||
border-width: 0 1px;
|
||||
display: block;
|
||||
content: '';
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -4px -2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sizing
|
||||
|
||||
.rc-slider-lg {
|
||||
&.rc-slider {
|
||||
height: 20px;
|
||||
padding: 8px 0 0;
|
||||
}
|
||||
|
||||
.rc-slider-rail {
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-track {
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-handle {
|
||||
// margin-inline-start: -10px;
|
||||
margin-top: -8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
&.rc-slider-line {
|
||||
.rc-slider-handle {
|
||||
// margin-inline-start: -8px;
|
||||
width: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&.rc-slider-square {
|
||||
.rc-slider-handle {
|
||||
&:before {
|
||||
height: 10px;
|
||||
width: 6px;
|
||||
margin: -5px -3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.rc-slider-sm {
|
||||
&.rc-slider {
|
||||
height: 20px;
|
||||
padding: 8px 0 0;
|
||||
}
|
||||
|
||||
.rc-slider-rail {
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-track {
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.rc-slider-handle {
|
||||
// margin-inline-start: -6px;
|
||||
margin-top: -4px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
&.rc-slider-line {
|
||||
.rc-slider-handle {
|
||||
// margin-inline-start: -8px;
|
||||
width: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&.rc-slider-square {
|
||||
.rc-slider-handle {
|
||||
&:before {
|
||||
height: 6px;
|
||||
margin: -3px 0 0 -1px;
|
||||
border: 0;
|
||||
width: 2px;
|
||||
background: $gray-500;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
.rc-slider-tooltip {
|
||||
z-index: 555;
|
||||
}
|
||||
|
||||
.rc-tooltip.rc-tooltip-zoom-enter,
|
||||
.rc-tooltip.rc-tooltip-zoom-leave {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rc-tooltip-zoom-enter,
|
||||
.rc-tooltip-zoom-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
.rc-tooltip-zoom-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
.rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active,
|
||||
.rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active {
|
||||
animation-name: rcToolTipZoomIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
.rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active {
|
||||
animation-name: rcToolTipZoomOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
@keyframes rcToolTipZoomIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rcToolTipZoomOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.rc-tooltip {
|
||||
position: absolute;
|
||||
z-index: 1070;
|
||||
display: block;
|
||||
visibility: visible;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.rc-tooltip-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-top,
|
||||
.rc-tooltip-placement-topLeft,
|
||||
.rc-tooltip-placement-topRight {
|
||||
padding: 5px 0 9px 0;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-right,
|
||||
.rc-tooltip-placement-rightTop,
|
||||
.rc-tooltip-placement-rightBottom {
|
||||
padding: 0 5px 0 9px;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-bottom,
|
||||
.rc-tooltip-placement-bottomLeft,
|
||||
.rc-tooltip-placement-bottomRight {
|
||||
padding: 9px 0 5px 0;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-left,
|
||||
.rc-tooltip-placement-leftTop,
|
||||
.rc-tooltip-placement-leftBottom {
|
||||
padding: 0 9px 0 5px;
|
||||
}
|
||||
|
||||
.rc-tooltip-inner {
|
||||
padding: 12px 14px;
|
||||
color: $white;
|
||||
text-align: start;
|
||||
text-decoration: none;
|
||||
background-color: $gray-800;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.17);
|
||||
min-height: 34px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.rc-tooltip-arrow {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-top .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-topRight .rc-tooltip-arrow {
|
||||
bottom: 4px;
|
||||
margin-inline-start: -5px;
|
||||
border-width: 5px 5px 0;
|
||||
border-top-color: $gray-800;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-top .rc-tooltip-arrow {
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-topLeft .rc-tooltip-arrow {
|
||||
left: 15%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-topRight .rc-tooltip-arrow {
|
||||
right: 15%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-right .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
|
||||
left: 4px;
|
||||
margin-top: -5px;
|
||||
border-width: 5px 5px 5px 0;
|
||||
border-right-color: $gray-800;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-right .rc-tooltip-arrow {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-rightTop .rc-tooltip-arrow {
|
||||
top: 15%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
|
||||
bottom: 15%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-left .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
|
||||
right: 4px;
|
||||
margin-top: -5px;
|
||||
border-width: 5px 0 5px 5px;
|
||||
border-left-color: $gray-800;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-left .rc-tooltip-arrow {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-leftTop .rc-tooltip-arrow {
|
||||
top: 15%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
|
||||
bottom: 15%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-bottom .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
|
||||
.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
|
||||
top: 4px;
|
||||
margin-inline-start: -5px;
|
||||
border-width: 0 5px 5px;
|
||||
border-bottom-color: $gray-800;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-bottom .rc-tooltip-arrow {
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow {
|
||||
left: 15%;
|
||||
}
|
||||
|
||||
.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
|
||||
right: 15%;
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
|
||||
/// switch
|
||||
|
||||
.has-switch {
|
||||
border-radius: 30px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
line-height: 1.72222;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
text-align: start;
|
||||
width: 60px;
|
||||
user-select: none;
|
||||
|
||||
}
|
||||
.has-switch.deactivate {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: default !important;
|
||||
}
|
||||
.has-switch.deactivate label,
|
||||
.has-switch.deactivate span {
|
||||
cursor: default !important;
|
||||
}
|
||||
.has-switch > div {
|
||||
position: relative;
|
||||
top: 0;
|
||||
width: 100px;
|
||||
}
|
||||
.has-switch > div.switch-animate {
|
||||
transition: left 0.25s ease-out;
|
||||
}
|
||||
.has-switch > div.switch-off {
|
||||
left: -35px;
|
||||
}
|
||||
|
||||
.has-switch > div.switch-on {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@mixin icon-gradient ($top-color, $bottom-color){
|
||||
background: $top-color;
|
||||
background: linear-gradient(to bottom, $top-color 0%,$bottom-color 100%);
|
||||
background-size: 150% 150%;
|
||||
}
|
||||
|
||||
.has-switch > div label {
|
||||
background-color: #FFFFFF;
|
||||
@include icon-gradient (rgba(255,255,255,1), rgba(241,241,242,1));
|
||||
|
||||
box-shadow: 0 1px 1px #FFFFFF inset, 0 1px 1px rgba(0, 0, 0, 0.25);
|
||||
cursor: pointer;
|
||||
}
|
||||
.has-switch input[type=checkbox] {
|
||||
display: none;
|
||||
}
|
||||
.has-switch span {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
height: 24px;
|
||||
line-height: 15px;
|
||||
margin: 0;
|
||||
padding-bottom: 6px;
|
||||
padding-top: 5px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-indent: -10px;
|
||||
width: 50%;
|
||||
z-index: 1;
|
||||
transition: 0.25s ease-out;
|
||||
}
|
||||
.has-switch span.switch-left {
|
||||
background-color: $primary;
|
||||
border-left: 1px solid rgba(0, 0, 0, 0);
|
||||
border-radius: 30px 0 0 30px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.has-switch .switch-off span.switch-left{
|
||||
background-color: $gray-400 !important;
|
||||
}
|
||||
.has-switch span.switch-right {
|
||||
border-radius: 0 30px 30px 0;
|
||||
background-color: $primary;
|
||||
color: #ffffff;
|
||||
text-indent: 1px;
|
||||
}
|
||||
.has-switch .switch-off span.switch-right{
|
||||
background-color: $gray-400 !important;
|
||||
}
|
||||
|
||||
.has-switch label {
|
||||
border-radius: 12px;
|
||||
float: left;
|
||||
height: 22px;
|
||||
margin: 1px -13px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
width: 22px;
|
||||
z-index: 100;
|
||||
-webkit-transition: 0.25s ease-out;
|
||||
transition: 0.25s ease-out;
|
||||
}
|
||||
.has-switch .switch-on .fa-check:before{
|
||||
margin-inline-start: 10px;
|
||||
}
|
||||
.has-switch:hover .switch-on label{
|
||||
margin: 1px -17px;
|
||||
width: 26px;
|
||||
}
|
||||
.has-switch:hover .switch-off label{
|
||||
margin: 1px -13px;
|
||||
width: 26px;
|
||||
}
|
||||
|
||||
// Sizing
|
||||
|
||||
.has-switch-sm {
|
||||
&.has-switch {
|
||||
span {
|
||||
height: 18px;
|
||||
line-height: 18px;
|
||||
padding: 0;
|
||||
}
|
||||
label {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
margin: 1px -8px;
|
||||
}
|
||||
|
||||
.switch-off {
|
||||
label {
|
||||
margin: 1px -13px;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.switch-on label {
|
||||
margin: 1px -11px;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.switch-off label {
|
||||
margin: 1px -13px;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
@mixin animation($animation) {
|
||||
-webkit-animation: $animation;
|
||||
-o-animation: $animation;
|
||||
animation: $animation;
|
||||
}
|
||||
|
||||
@mixin box-shadow($shadow, $inset: false) {
|
||||
@if $inset {
|
||||
-webkit-box-shadow: $inset, $shadow;
|
||||
-moz-box-shadow: $inset, $shadow;
|
||||
box-shadow: $inset, $shadow;
|
||||
} @else {
|
||||
-webkit-box-shadow: $shadow;
|
||||
-moz-box-shadow: $shadow;
|
||||
box-shadow: $shadow;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin display-flex() {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@mixin flex($value) {
|
||||
-webkit-box-flex: $value;
|
||||
-moz-box-flex: $value;
|
||||
-webkit-flex: $value;
|
||||
-ms-flex: $value;
|
||||
flex: $value;
|
||||
}
|
||||
|
||||
@mixin placeholder($placeholder-color) {
|
||||
// Firefox
|
||||
&::-moz-placeholder {
|
||||
color: $placeholder-color;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
// Internet Explorer 10+
|
||||
&:-ms-input-placeholder {
|
||||
color: $placeholder-color;
|
||||
}
|
||||
|
||||
// Safari and Chrome
|
||||
&::-webkit-input-placeholder {
|
||||
color: $placeholder-color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
@import '_mixins';
|
||||
|
||||
.rbt {
|
||||
outline: none;
|
||||
|
||||
&-menu {
|
||||
margin-bottom: 2px;
|
||||
|
||||
& > li a {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-pagination-option {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
// Hide IE's native "clear" button
|
||||
& .rbt-input-main::-ms-clear {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-input-multi {
|
||||
cursor: text;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
// BS4 uses the :disabled pseudo-class, which doesn't work with non-inputs.
|
||||
&.form-control[disabled] {
|
||||
background-color: #e9ecef;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
input {
|
||||
@include placeholder(#6c757d);
|
||||
}
|
||||
|
||||
.rbt-input-wrapper {
|
||||
margin-top: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rbt-input-main {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.rbt-input-hint-container {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&.input,
|
||||
&.form-control {
|
||||
&-lg {
|
||||
.rbt-input-main {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&-sm {
|
||||
.rbt-input-main {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-close {
|
||||
z-index: 1;
|
||||
|
||||
&-lg {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
&-token {
|
||||
background-color: $dropdown-link-hover-bg;
|
||||
border: 0;
|
||||
@include border-radius($border-radius);
|
||||
color: $primary;
|
||||
display: inline-block;
|
||||
line-height: 1em;
|
||||
margin: 0 3px 3px 0;
|
||||
padding: 4px 7px;
|
||||
position: relative;
|
||||
|
||||
&-disabled {
|
||||
background-color: $gray-100;
|
||||
color: $gray-500;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&-removeable {
|
||||
cursor: pointer;
|
||||
padding-inline-end: 21px;
|
||||
}
|
||||
|
||||
&-active {
|
||||
background-color: $primary;
|
||||
color: $white;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
& &-remove-button {
|
||||
bottom: 0;
|
||||
color: $gray-700;
|
||||
font-size: inherit;
|
||||
font-weight: normal;
|
||||
opacity: 1;
|
||||
outline: none;
|
||||
padding: 3px 7px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-shadow: none;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
&-loader {
|
||||
@include animation(loader-animation 600ms infinite linear);
|
||||
border: 1px solid $dropdown-link-hover-bg;
|
||||
border-radius: 50%;
|
||||
border-top-color: darken($dropdown-link-hover-bg, 10%);
|
||||
display: block;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
|
||||
&-lg {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
&-aux {
|
||||
@include display-flex();
|
||||
align-items: center;
|
||||
bottom: 0;
|
||||
justify-content: center;
|
||||
pointer-events: none; /* Don't block clicks on the input */
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 34px;
|
||||
|
||||
&-lg {
|
||||
width: 46px;
|
||||
}
|
||||
|
||||
& .rbt-close {
|
||||
margin-top: -1px;
|
||||
pointer-events: auto; /* Override pointer-events: none; above */
|
||||
}
|
||||
}
|
||||
|
||||
.has-aux &-input {
|
||||
padding-inline-end: 34px;
|
||||
}
|
||||
|
||||
&-highlight-text {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Input Groups */
|
||||
.input-group > .rbt {
|
||||
@include flex(1);
|
||||
|
||||
& .rbt-input-hint-container {
|
||||
@include display-flex();
|
||||
}
|
||||
|
||||
& .rbt-input-hint {
|
||||
// Form-controls within input-groups have a higher z-index.
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
& .rbt-aux {
|
||||
// Form-controls within input-groups have a higher z-index.
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
&:not(:first-child) .form-control {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
&:not(:last-child) .form-control {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loader-animation {
|
||||
to {
|
||||
transform: rotate(1turn);
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes loader-animation {
|
||||
to {
|
||||
-webkit-transform: rotate(1turn);
|
||||
}
|
||||
}
|
||||
|
||||
.input-group > .rbt {
|
||||
& .rbt-input-hint-container {
|
||||
@include flex(1);
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,857 @@
|
||||
.rdw-option-wrapper {
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 5px;
|
||||
min-width: 25px;
|
||||
height: 20px;
|
||||
border-radius: 2px;
|
||||
margin: 0 4px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
background: white;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.rdw-option-wrapper:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
}
|
||||
.rdw-option-wrapper:active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-option-active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-option-disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default;
|
||||
}
|
||||
.rdw-dropdown-wrapper {
|
||||
height: 30px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
margin: 0 3px;
|
||||
text-transform: capitalize;
|
||||
background: white;
|
||||
}
|
||||
.rdw-dropdown-wrapper:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-dropdown-wrapper:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.rdw-dropdown-wrapper:active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-dropdown-carettoopen {
|
||||
height: 0px;
|
||||
width: 0px;
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
right: 10%;
|
||||
border-top: 6px solid black;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
}
|
||||
.rdw-dropdown-carettoclose {
|
||||
height: 0px;
|
||||
width: 0px;
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
right: 10%;
|
||||
border-bottom: 6px solid black;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
}
|
||||
.rdw-dropdown-selectedtext {
|
||||
display: flex;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.rdw-dropdown-optionwrapper {
|
||||
z-index: 100;
|
||||
position: relative;
|
||||
border: 1px solid #F1F1F1;
|
||||
width: 98%;
|
||||
background: white;
|
||||
border-radius: 2px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-height: 250px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.rdw-dropdown-optionwrapper:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.rdw-dropdownoption-default {
|
||||
min-height: 25px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.rdw-dropdownoption-highlighted {
|
||||
background: #F1F1F1;
|
||||
}
|
||||
.rdw-dropdownoption-active {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.rdw-dropdownoption-disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default;
|
||||
}
|
||||
.rdw-inline-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-inline-dropdown {
|
||||
width: 50px;
|
||||
}
|
||||
.rdw-inline-dropdownoption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-block-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-block-dropdown {
|
||||
width: 110px;
|
||||
}
|
||||
.rdw-fontsize-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-fontsize-dropdown {
|
||||
min-width: 40px;
|
||||
}
|
||||
.rdw-fontsize-option {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-fontfamily-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-fontfamily-dropdown {
|
||||
width: 115px;
|
||||
}
|
||||
.rdw-fontfamily-placeholder {
|
||||
white-space: nowrap;
|
||||
max-width: 90px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.rdw-fontfamily-optionwrapper {
|
||||
width: 140px;
|
||||
}
|
||||
.rdw-list-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-list-dropdown {
|
||||
width: 50px;
|
||||
z-index: 90;
|
||||
}
|
||||
.rdw-list-dropdownOption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-text-align-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-text-align-dropdown {
|
||||
width: 50px;
|
||||
z-index: 90;
|
||||
}
|
||||
.rdw-text-align-dropdownOption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-right-aligned-block {
|
||||
text-align: end;
|
||||
}
|
||||
.rdw-left-aligned-block {
|
||||
text-align: left !important;
|
||||
}
|
||||
.rdw-center-aligned-block {
|
||||
text-align: center !important;
|
||||
}
|
||||
.rdw-justify-aligned-block {
|
||||
text-align: justify !important;
|
||||
}
|
||||
.rdw-right-aligned-block > div {
|
||||
display: inline-block;
|
||||
}
|
||||
.rdw-left-aligned-block > div {
|
||||
display: inline-block;
|
||||
}
|
||||
.rdw-center-aligned-block > div {
|
||||
display: inline-block;
|
||||
}
|
||||
.rdw-justify-aligned-block > div {
|
||||
display: inline-block;
|
||||
}
|
||||
.rdw-colorpicker-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-colorpicker-modal {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
left: 5px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 175px;
|
||||
height: 175px;
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 15px;
|
||||
border-radius: 2px;
|
||||
z-index: 100;
|
||||
background: white;
|
||||
box-shadow: 3px 3px 5px #BFBDBD;
|
||||
}
|
||||
.rdw-colorpicker-modal-header {
|
||||
display: flex;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.rdw-colorpicker-modal-style-label {
|
||||
font-size: 15px;
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
padding: 0 10px 5px;
|
||||
}
|
||||
.rdw-colorpicker-modal-style-label-active {
|
||||
border-bottom: 2px solid #0a66b7;
|
||||
}
|
||||
.rdw-colorpicker-modal-options {
|
||||
margin: 5px auto;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-wrap: wrap;
|
||||
overflow: scroll;
|
||||
}
|
||||
.rdw-colorpicker-cube {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 1px solid #F1F1F1;
|
||||
}
|
||||
.rdw-colorpicker-option {
|
||||
margin: 3px;
|
||||
padding: 0;
|
||||
min-height: 20px;
|
||||
border: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
min-width: 22px;
|
||||
box-shadow: 1px 2px 1px #BFBDBD inset;
|
||||
}
|
||||
.rdw-colorpicker-option:hover {
|
||||
box-shadow: 1px 2px 1px #BFBDBD;
|
||||
}
|
||||
.rdw-colorpicker-option:active {
|
||||
box-shadow: -1px -2px 1px #BFBDBD;
|
||||
}
|
||||
.rdw-colorpicker-option-active {
|
||||
box-shadow: 0px 0px 2px 2px #BFBDBD;
|
||||
}
|
||||
.rdw-link-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-link-dropdown {
|
||||
width: 50px;
|
||||
}
|
||||
.rdw-link-dropdownOption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-link-dropdownPlaceholder {
|
||||
margin-inline-start: 8px;
|
||||
}
|
||||
.rdw-link-modal {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
left: 5px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 235px;
|
||||
height: 205px;
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 15px;
|
||||
border-radius: 2px;
|
||||
z-index: 100;
|
||||
background: white;
|
||||
box-shadow: 3px 3px 5px #BFBDBD;
|
||||
}
|
||||
.rdw-link-modal-label {
|
||||
font-size: 15px;
|
||||
}
|
||||
.rdw-link-modal-input {
|
||||
margin-top: 5px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F1F1F1;
|
||||
height: 25px;
|
||||
margin-bottom: 15px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.rdw-link-modal-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-link-modal-buttonsection {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.rdw-link-modal-target-option {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.rdw-link-modal-target-option > span {
|
||||
margin-inline-start: 5px;
|
||||
}
|
||||
.rdw-link-modal-btn {
|
||||
margin-inline-start: 10px;
|
||||
width: 75px;
|
||||
height: 30px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
background: white;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.rdw-link-modal-btn:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
}
|
||||
.rdw-link-modal-btn:active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-link-modal-btn:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.rdw-link-modal-btn:disabled {
|
||||
background: #ece9e9;
|
||||
}
|
||||
.rdw-link-dropdownoption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-history-dropdown {
|
||||
width: 50px;
|
||||
}
|
||||
.rdw-embedded-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-embedded-modal {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
left: 5px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 235px;
|
||||
height: 180px;
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 15px;
|
||||
border-radius: 2px;
|
||||
z-index: 100;
|
||||
background: white;
|
||||
justify-content: space-between;
|
||||
box-shadow: 3px 3px 5px #BFBDBD;
|
||||
}
|
||||
.rdw-embedded-modal-header {
|
||||
font-size: 15px;
|
||||
display: flex;
|
||||
}
|
||||
.rdw-embedded-modal-header-option {
|
||||
width: 50%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.rdw-embedded-modal-header-label {
|
||||
width: 95px;
|
||||
border: 1px solid #f1f1f1;
|
||||
margin-top: 5px;
|
||||
background: #6EB8D4;
|
||||
border-bottom: 2px solid #0a66b7;
|
||||
}
|
||||
.rdw-embedded-modal-link-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.rdw-embedded-modal-link-input {
|
||||
width: 88%;
|
||||
height: 35px;
|
||||
margin: 10px 0;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
font-size: 15px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.rdw-embedded-modal-link-input-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.rdw-embedded-modal-link-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-embedded-modal-btn-section {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-embedded-modal-btn {
|
||||
margin: 0 3px;
|
||||
width: 75px;
|
||||
height: 30px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
background: white;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.rdw-embedded-modal-btn:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
}
|
||||
.rdw-embedded-modal-btn:active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-embedded-modal-btn:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.rdw-embedded-modal-btn:disabled {
|
||||
background: #ece9e9;
|
||||
}
|
||||
.rdw-embedded-modal-size {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin: 8px 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.rdw-embedded-modal-size-input {
|
||||
width: 80%;
|
||||
height: 20px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.rdw-embedded-modal-size-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-emoji-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-emoji-modal {
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
left: 5px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 235px;
|
||||
height: 180px;
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 15px;
|
||||
border-radius: 2px;
|
||||
z-index: 100;
|
||||
background: white;
|
||||
box-shadow: 3px 3px 5px #BFBDBD;
|
||||
}
|
||||
.rdw-emoji-icon {
|
||||
margin: 2.5px;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
cursor: pointer;
|
||||
font-size: 22px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.rdw-spinner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.rdw-spinner > div {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: #333;
|
||||
|
||||
border-radius: 100%;
|
||||
display: inline-block;
|
||||
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
||||
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
||||
}
|
||||
.rdw-spinner .rdw-bounce1 {
|
||||
-webkit-animation-delay: -0.32s;
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
.rdw-spinner .rdw-bounce2 {
|
||||
-webkit-animation-delay: -0.16s;
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
@-webkit-keyframes sk-bouncedelay {
|
||||
0%, 80%, 100% { -webkit-transform: scale(0) }
|
||||
40% { -webkit-transform: scale(1.0) }
|
||||
}
|
||||
@keyframes sk-bouncedelay {
|
||||
0%, 80%, 100% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
} 40% {
|
||||
-webkit-transform: scale(1.0);
|
||||
transform: scale(1.0);
|
||||
}
|
||||
}
|
||||
.rdw-image-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-image-modal {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
left: 5px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 235px;
|
||||
border: 1px solid #F1F1F1;
|
||||
padding: 15px;
|
||||
border-radius: 2px;
|
||||
z-index: 100;
|
||||
background: white;
|
||||
box-shadow: 3px 3px 5px #BFBDBD;
|
||||
}
|
||||
.rdw-image-modal-header {
|
||||
font-size: 15px;
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
}
|
||||
.rdw-image-modal-header-option {
|
||||
width: 50%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.rdw-image-modal-header-label {
|
||||
width: 80px;
|
||||
background: #f1f1f1;
|
||||
border: 1px solid #f1f1f1;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.rdw-image-modal-header-label-highlighted {
|
||||
background: #6EB8D4;
|
||||
border-bottom: 2px solid #0a66b7;
|
||||
}
|
||||
.rdw-image-modal-upload-option {
|
||||
width: 100%;
|
||||
color: gray;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
border: none;
|
||||
font-size: 15px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #f1f1f1;
|
||||
outline: 2px dashed gray;
|
||||
outline-offset: -10px;
|
||||
margin: 10px 0;
|
||||
padding: 9px 0;
|
||||
}
|
||||
.rdw-image-modal-upload-option-highlighted {
|
||||
outline: 2px dashed #0a66b7;
|
||||
}
|
||||
.rdw-image-modal-upload-option-label {
|
||||
cursor: pointer;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 15px;
|
||||
}
|
||||
.rdw-image-modal-upload-option-label span{
|
||||
padding: 0 20px;
|
||||
}
|
||||
.rdw-image-modal-upload-option-image-preview {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
}
|
||||
.rdw-image-modal-upload-option-input {
|
||||
width: 0.1px;
|
||||
height: 0.1px;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
.rdw-image-modal-url-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.rdw-image-modal-url-input {
|
||||
width: 90%;
|
||||
height: 35px;
|
||||
margin: 15px 0 12px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
font-size: 15px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.rdw-image-modal-btn-section {
|
||||
margin: 10px auto 0;
|
||||
}
|
||||
.rdw-image-modal-url-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-image-modal-btn {
|
||||
margin: 0 5px;
|
||||
width: 75px;
|
||||
height: 30px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
background: white;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.rdw-image-modal-btn:hover {
|
||||
box-shadow: 1px 1px 0px #BFBDBD;
|
||||
}
|
||||
.rdw-image-modal-btn:active {
|
||||
box-shadow: 1px 1px 0px #BFBDBD inset;
|
||||
}
|
||||
.rdw-image-modal-btn:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.rdw-image-modal-btn:disabled {
|
||||
background: #ece9e9;
|
||||
}
|
||||
.rdw-image-modal-spinner {
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.rdw-image-modal-alt-input {
|
||||
width: 70%;
|
||||
height: 20px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
font-size: 12px;
|
||||
margin-inline-start: 5px;
|
||||
}
|
||||
.rdw-image-modal-alt-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-image-modal-alt-lbl {
|
||||
font-size: 12px;
|
||||
}
|
||||
.rdw-image-modal-size {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin: 8px 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.rdw-image-modal-size-input {
|
||||
width: 40%;
|
||||
height: 20px;
|
||||
border: 1px solid #F1F1F1;
|
||||
border-radius: 2px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.rdw-image-modal-size-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-image-mandatory-sign {
|
||||
color: red;
|
||||
margin-inline-start: 3px;
|
||||
margin-inline-end: 3px;
|
||||
}
|
||||
.rdw-remove-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.rdw-history-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.rdw-history-dropdownoption {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-history-dropdown {
|
||||
width: 50px;
|
||||
}
|
||||
.rdw-link-decorator-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
.rdw-link-decorator-icon {
|
||||
position: absolute;
|
||||
left: 40%;
|
||||
top: 0;
|
||||
cursor: pointer;
|
||||
background-color: white;
|
||||
}
|
||||
.rdw-mention-link {
|
||||
text-decoration: none;
|
||||
color: #1236ff;
|
||||
background-color: #f0fbff;
|
||||
padding: 1px 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.rdw-suggestion-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
.rdw-suggestion-dropdown {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #F1F1F1;
|
||||
min-width: 100px;
|
||||
max-height: 150px;
|
||||
overflow: auto;
|
||||
background: white;
|
||||
z-index: 100;
|
||||
}
|
||||
.rdw-suggestion-option {
|
||||
padding: 7px 5px;
|
||||
border-bottom: 1px solid #f1f1f1;
|
||||
}
|
||||
.rdw-suggestion-option-active {
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
.rdw-hashtag-link {
|
||||
text-decoration: none;
|
||||
color: #1236ff;
|
||||
background-color: #f0fbff;
|
||||
padding: 1px 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.rdw-image-alignment-options-popup {
|
||||
position: absolute;;
|
||||
background: white;
|
||||
display: flex;
|
||||
padding: 5px 2px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F1F1F1;
|
||||
width: 105px;
|
||||
cursor: pointer;
|
||||
z-index: 100;
|
||||
}
|
||||
.rdw-alignment-option-left {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.rdw-image-alignment-option {
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
min-width: 15px;
|
||||
}
|
||||
.rdw-image-alignment {
|
||||
position: relative;
|
||||
}
|
||||
.rdw-image-imagewrapper {
|
||||
position: relative;
|
||||
}
|
||||
.rdw-image-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rdw-image-left {
|
||||
display: flex;
|
||||
}
|
||||
.rdw-image-right {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.rdw-image-alignment-options-popup-right {
|
||||
right: 0;
|
||||
}
|
||||
.rdw-editor-main {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.rdw-editor-toolbar {
|
||||
padding: 6px 5px 0;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F1F1F1;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
background: white;
|
||||
flex-wrap: wrap;
|
||||
font-size: 15px;
|
||||
margin-bottom: 5px;
|
||||
user-select: none;
|
||||
}
|
||||
.public-DraftStyleDefault-block {
|
||||
margin: 1em 0;
|
||||
}
|
||||
.rdw-editor-wrapper:focus {
|
||||
outline: none;
|
||||
}
|
||||
.rdw-editor-wrapper {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.rdw-editor-main blockquote {
|
||||
border-left: 5px solid #f1f1f1;
|
||||
padding-inline-start: 5px;
|
||||
}
|
||||
.rdw-editor-main pre {
|
||||
background: #f1f1f1;
|
||||
border-radius: 3px;
|
||||
padding: 1px 10px;
|
||||
}/**
|
||||
* Draft v0.9.1
|
||||
*
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;z-index:0}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-inline-start:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-inline-end:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-inline-start:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-inline-end:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-inline-start:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-inline-end:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-inline-start:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-inline-end:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-inline-start:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-inline-end:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}
|
||||
|
||||
.demo-editor {
|
||||
height: 275px !important;
|
||||
border: 1px solid #F1F1F1 !important;
|
||||
padding: 5px !important;
|
||||
border-radius: 2px !important;
|
||||
}
|
||||
Reference in New Issue
Block a user