chayns-components
Version:
A set of beautiful React components for developing chayns® applications.
1,325 lines (1,133 loc) • 27.8 kB
CSS
.cc_overlay-parent {
position: absolute;
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.cc_overlay-parent *,
.cc_overlay-parent *::after,
.cc_overlay-parent *::before {
box-sizing: border-box;
pointer-events: auto;
}
.accordion__head.accordion__head__multiline {
padding: 4px 0;
transition: max-height 300ms, min-height 300ms;
will-change: max-height, min-height;
height: unset ;
min-height: 32px;
max-height: 32px;
align-self: flex-start;
}
.accordion > .accordion__head.accordion__head__multiline > .accordion__head__title,
.accordion > .accordion__head.accordion__head__multiline > .accordion__head__right {
align-self: flex-start;
}
.accordion.accordion--open > .accordion__head.accordion__head__multiline {
min-height: 38px;
max-height: 160px;
overflow: hidden;
}
.accordion.accordion--open > .accordion__head.accordion__head__multiline > .accordion__head__title {
word-break: break-word;
white-space: normal;
}
.accordion.accordion--wrapped.accordion--open > .accordion__head.accordion__head__multiline {
min-height: 40px;
}
.animation__wrapper {
height: 0;
opacity: 0;
overflow: hidden;
}
.cc__color-picker {
display: flex;
align-items: center;
cursor: pointer;
}
.cc__color-picker__slider-container__without-transparency {
width: 100%;
}
.cc__color-picker__slider-container__with-transparency {
width: calc(100% - 40px - 10px - 5px);
}
.cc__color-picker__color-square {
height: 40px;
width: 40px;
margin: 10px 10px 0 5px;
border-radius: 2px;
}
.cc__color-picker__color-square:before {
content: "";
background-color: #ffffff;
background-image: linear-gradient(45deg, #a0a0a0 25%, transparent 25%), linear-gradient(-45deg, #a0a0a0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #a0a0a0 75%), linear-gradient(-45deg, transparent 75%, #a0a0a0 75%);
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
background-size: 8px 8px;
background-repeat: repeat;
width: inherit;
height: inherit;
position: absolute;
border-radius: inherit;
z-index: -1;
}
.cc__color-picker__color-square:after {
content: "";
background-color: inherit;
}
.cc__color-picker__color-circle {
width: 15px;
height: 15px;
border-radius: 100%;
margin-right: 5px;
}
.cc__color-picker__color-circle:before {
content: "";
background-color: #ffffff;
background-image: linear-gradient(45deg, #a0a0a0 25%, transparent 25%), linear-gradient(-45deg, #a0a0a0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #a0a0a0 75%), linear-gradient(-45deg, transparent 75%, #a0a0a0 75%);
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
background-size: 8px 8px;
background-repeat: repeat;
width: inherit;
height: inherit;
position: absolute;
border-radius: inherit;
z-index: -1;
}
.cc__color-picker__color-circle:after {
content: "";
background-color: inherit;
}
.cc__color-picker__color-link {
border-bottom-width: 1px;
border-bottom-style: dashed;
}
.cc__color-picker__bubble-content {
overflow: hidden;
}
.cc__combo-box {
display: flex;
align-items: center;
justify-content: space-between;
min-width: 100px;
max-width: 100%;
}
.cc__combo-box__icon {
margin-left: 8px;
}
.cc__combo-box--disabled {
opacity: 0.6;
pointer-events: none;
}
.cc__combo-box__overlay {
position: absolute;
overflow-x: hidden;
overflow-y: auto;
max-height: 300px;
box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2);
border-width: 1px;
border-style: solid;
z-index: 1;
}
.cc__combo-box__overlay__item {
padding: 2px 8px;
cursor: pointer;
user-select: none;
}
.cc__combo-box__overlay__item:hover {
background-color: rgba(128, 128, 128, 0.5);
background-color: var(--chayns-color--106);
}
.cc__combo-box__overlay.fade-enter,
.cc__combo-box__overlay.fade-appear {
opacity: 0;
}
.cc__combo-box__overlay.fade-enter.fade-enter-active,
.cc__combo-box__overlay.fade-appear.fade-appear-active {
opacity: 1;
transition: opacity 200ms;
}
.cc__combo-box__overlay.fade-exit {
opacity: 1;
}
.cc__combo-box__overlay.fade-exit.fade-exit-active {
opacity: 0.01;
transition: opacity 200ms;
}
.cc__combo-box__overlay.fade-exit-done {
display: none;
}
.button--filter {
padding: 3px 14px;
position: relative;
margin: 5px 10px 5px 0;
user-select: none;
box-shadow: none;
cursor: pointer;
white-space: nowrap;
}
.button--filter .label {
position: relative;
z-index: 5;
}
.button--filter .label b:not(:first-child) {
margin-left: 0.25em;
}
.button--filter--small {
padding: 2px 10px 1px 10px;
font-size: 0.8rem;
display: flex;
align-items: center;
justify-content: center;
}
.button--filter::after {
content: "";
border-radius: 100px;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
opacity: 0;
z-index: 1;
background-color: currentColor;
border: 1px solid currentColor;
transition: opacity 0.08s;
}
.button--filter::before {
content: "";
border-radius: 100px;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
opacity: 0.4;
z-index: 10;
border: 1px solid currentColor;
transition: opacity 0.08s;
}
.button--filter--rectangular::before,
.button--filter--rectangular::after {
border-radius: 3px;
}
.button--filter--disabled {
opacity: 0.5;
cursor: default;
pointer-events: none;
}
.button--filter:hover::after {
opacity: 0.2;
}
.button--filter:hover::before {
opacity: 0.45;
}
.button--filter.button--filter--active::after {
opacity: 0.4;
}
.button--filter.button--filter--active::before {
opacity: 0;
}
.button--filter__icon:not(:last-child) {
margin-right: 10px;
}
.button--filter__input {
display: none;
}
.chayns-color-mode--1 .button--filter:not(.chayns__color--headline).button--filter--active::after {
opacity: 1;
}
.chayns-color-mode--1 .button--filter:not(.chayns__color--headline).button--filter--active::before {
opacity: 0;
}
.chayns--mobile .button--filter:hover::after {
opacity: 0;
}
.chayns--mobile .button--filter:hover::before {
opacity: 0.4;
}
.chayns--mobile .button--filter.button--filter--active:hover::after {
opacity: 0.4;
}
.chayns--mobile .button--filter.button--filter--active:hover::before {
opacity: 0;
}
.cc__gallery {
display: flex;
flex-wrap: wrap;
user-select: none;
position: relative;
width: calc(100% + 2px);
transform: translate(-1px, -1px);
}
.cc__gallery--default-mode .cc__gallery__image {
margin: 1px;
}
.cc__gallery--default-mode .cc__gallery__image .cc__image-container {
padding: 0;
height: 100%;
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(1):nth-last-child(1) {
width: calc(100% - 2px);
height: calc(100% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(1):nth-last-child(2) {
width: calc(50% - 2px);
height: calc(100% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(1):nth-last-child(3) {
width: calc(100% - 2px);
height: calc(66.66% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(1):nth-last-child(4) {
width: calc(100% - 2px);
height: calc(66.66% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(2):nth-last-child(1) {
width: calc(50% - 2px);
height: calc(100% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(2):nth-last-child(2) {
width: calc(50% - 2px);
height: calc(33.33% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(2):nth-last-child(3) {
width: calc(33.33% - 2px);
height: calc(33.33% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(3):nth-last-child(1) {
width: calc(50% - 2px);
height: calc(33.33% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(3):nth-last-child(2) {
width: calc(33.33% - 2px);
height: calc(33.33% - 2px);
}
.cc__gallery--default-mode .cc__gallery__image:nth-child(4):nth-last-child(1) {
width: calc(33.33% - 2px);
height: calc(33.33% - 2px);
}
.cc__gallery__image {
width: 33.333%;
display: inline-block;
padding: 1px;
margin: 0;
}
.cc__gallery__image__tool--drag {
cursor: grab;
}
.cc__gallery__image__tool--drag:active {
cursor: grabbing;
}
.cc__gallery__image__dropzone {
width: 100%;
height: 100%;
border-width: 1px;
border-style: dashed;
}
.cc__gallery__image--active {
z-index: 1;
position: absolute;
}
.cc__gallery__image--transition {
will-change: top, left;
transition: top 250ms ease, left 250ms ease;
}
.cc__gallery__image--dropzone {
z-index: -1;
display: none;
}
.cc__gallery__image--show_dropzone {
display: initial ;
}
.cc__gallery__image--cover,
.cc__gallery__image img {
width: 100%;
height: 100%;
}
.cc__image {
position: relative;
height: 100%;
display: flex;
flex: 1;
-ms-flex: 1;
justify-content: center;
overflow: hidden;
}
.cc__image--landscape {
flex-direction: row;
/* IE10+ CSS */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.cc__image--landscape {
padding-right: 100%;
}
}
.cc__image--portrait {
flex-direction: column;
/* IE10+ CSS */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.cc__image--portrait {
padding-bottom: 100%;
}
}
.cc__image--clickable {
cursor: pointer;
}
.cc__image--more-images:after {
content: attr(data-more);
color: #fff;
position: absolute;
background-color: rgba(0, 0, 0, 0.75);
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: center;
font-size: 42px;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
}
.cc__image__img,
.cc__image__preview {
min-height: 100%;
min-width: 100%;
width: auto;
height: auto;
object-fit: cover;
}
.cc__image__img {
position: absolute;
opacity: 0;
transition: opacity 0.3s;
}
.cc__image--ready .cc__image__img {
position: initial;
opacity: 1;
}
.cc__image__preview {
filter: blur(10px);
position: initial;
opacity: 1;
transition: opacity 0.3s;
}
.cc__image--ready .cc__image__preview {
position: absolute;
opacity: 0;
}
.cc__image__wait-cursor {
width: 100%;
height: 100%;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 0;
}
.cc__image-container {
width: 100%;
padding-top: 100%;
/* 1:1 Aspect Ratio */
position: relative;
overflow: hidden;
}
.cc__image-container__content {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
}
.cc__image-container__tools {
position: absolute;
top: 0;
right: 0;
display: flex;
touch-action: none;
}
@keyframes multiline {
0%, 99% {
white-space: pre-wrap;
}
100% {
white-space: nowrap;
}
}
.list-item__header--multiline .list-item__titles .list-item__title,
.list-item__header--multiline .list-item__titles .list-item__subtitle {
animation: multiline 0.1s;
}
.list-item--expanded .list-item__header--multiline .list-item__titles .list-item__title,
.list-item--expanded .list-item__header--multiline .list-item__titles .list-item__subtitle {
white-space: pre-wrap;
animation: none;
}
.cc__opening_times .flex {
flex-flow: row wrap;
display: flex;
}
.cc__opening_times .flex .flex__left {
flex: 1;
padding: 3px 0 0;
}
.cc__opening_times .flex .flex__middle {
text-align: right;
display: flex;
}
.cc__opening_times .flex .flex__middle .inline__block {
display: inline-block;
}
.cc__opening_times .time__span {
margin-left: 30px;
width: 140px;
max-height: 29px;
display: flex;
transition-duration: 1500ms;
}
.cc__opening_times .time__span:nth-of-type(2):before {
content: "&";
position: absolute;
transform: translate(-20px, 1px);
}
.cc__opening_times .time__span span {
width: 30px;
text-align: center;
}
.cc__opening_times .time__span--input {
float: right;
width: 100px;
text-align: center;
}
.cc__opening_times .time__span--input input {
text-align: center;
width: 100%;
}
.cc__opening_times .time__span--button {
min-width: 25px;
}
.cc__opening_times .times {
margin: 5px 0;
transition: all 0.2s;
}
.cc__opening_times .times--disabled .flex__middle,
.cc__opening_times .times--disabled .flex__right {
opacity: 0.2;
pointer-events: none;
}
.cc__opening_times .times .flex__middle span {
float: right;
width: 30px;
text-align: center;
}
.cc__opening_times .times .flex__right {
width: 20px;
height: 20px;
padding: 1.5px 0 0 1px;
font-size: 11px;
margin: 4px 0 4px 3px;
align-self: flex-end;
}
.cc__opening_times .openingTimesIcon {
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
}
.cc__opening_times .openingTimesIcon.add {
transform: rotate(0deg);
}
.cc__opening_times .openingTimesIcon.remove {
transform: rotate(45deg);
}
.cc__opening_times .choosebutton {
min-height: 1px;
}
@media screen and (min-width: 491px) {
.chayns--desktop .cc__opening_times .times.multiple--animations .flex__middle .time__span:first-child {
animation: slideFromRight 300ms;
}
.chayns--desktop .cc__opening_times .times.multiple--animations .flex__middle .time__span:nth-child(2) {
animation: fadeInOpacity 300ms;
}
.chayns--desktop .cc__opening_times .times.multiple--animations .flex__middle .time__span:nth-child(2):before {
animation: fadeInOpacity 300ms;
}
.chayns--desktop .cc__opening_times .times.isRemoving .flex__middle .time__span:first-child {
animation: slideToRight 300ms;
}
.chayns--desktop .cc__opening_times .times.isRemoving .flex__middle .time__span:nth-child(2) {
animation: fadeOutOpacity 300ms;
}
.chayns--desktop .cc__opening_times .times.isRemoving .flex__middle .time__span:nth-child(2):before {
animation: fadeOutOpacity 300ms;
}
}
@media screen and (max-width: 490px) {
.cc__opening_times .flex__middle {
flex-direction: column;
}
.cc__opening_times .time__span:nth-of-type(2):before {
content: "";
}
.cc__opening_times .times.multiple .flex__middle .time__span:nth-child(2) {
animation: fadeInHeight 300ms;
}
.cc__opening_times .times.isRemoving .flex__middle .time__span:nth-child(2) {
animation: fadeOutHeight 300ms;
}
}
.chayns--mobile .cc__opening_times .flex__middle,
.cc__opening_times.cc__opening_times--force-mobile .flex__middle {
flex-direction: column;
}
.chayns--mobile .cc__opening_times .time__span:nth-of-type(2):before,
.cc__opening_times.cc__opening_times--force-mobile .time__span:nth-of-type(2):before {
content: "";
}
.chayns--mobile .cc__opening_times .times.multiple .flex__middle .time__span:nth-child(2),
.cc__opening_times.cc__opening_times--force-mobile .times.multiple .flex__middle .time__span:nth-child(2) {
animation: fadeInHeight 300ms;
}
.chayns--mobile .cc__opening_times .times.isRemoving .flex__middle .time__span:nth-child(2),
.cc__opening_times.cc__opening_times--force-mobile .times.isRemoving .flex__middle .time__span:nth-child(2) {
animation: fadeOutHeight 300ms;
}
@keyframes slideFromRight {
from {
transform: translateX(140px);
}
to {
transform: translateX(0);
}
}
@keyframes slideToRight {
from {
transform: translateX(0);
}
to {
transform: translateX(170px);
}
}
@keyframes fadeInOpacity {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOutOpacity {
0% {
opacity: 1;
}
60% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes fadeInHeight {
from {
height: 0;
overflow: hidden;
}
to {
height: 29px;
overflow: hidden;
}
}
@keyframes fadeOutHeight {
from {
max-height: 29px;
overflow: hidden;
}
to {
max-height: 0;
overflow: hidden;
}
}
.cc__map {
position: relative;
height: 276px;
}
.cc__map .map--crosshair {
position: absolute;
display: flex;
top: 50%;
left: 50%;
z-index: 1;
pointer-events: none;
height: 0px;
width: 0px;
align-items: center;
justify-content: center;
color: black;
font-size: 25px;
}
.cc__map .map--overlay {
height: 50px;
display: flex;
align-items: center;
padding: 0 10px;
box-shadow: 0px -3px 14px -6px rgba(0, 0, 0, 0.4);
position: absolute;
z-index: 10;
bottom: 0px;
width: 100%;
background-color: rgba(var(--chayns-bg-rgb), 1);
}
.map--autocomplete_popup {
position: absolute;
}
.map--autocomplete_item {
padding: 5px 5px 5px 8px;
display: flex;
flex-direction: column;
justify-content: center;
cursor: pointer;
}
.cc__search-box__item {
padding: 4px 10px;
cursor: pointer;
}
.cc__search-box__item--selected,
.cc__search-box__item:hover {
background: var(--chayns-color--102);
}
.cc__search-box--disabled {
pointer-events: none;
user-select: none;
}
.sharing-bar > div {
cursor: pointer;
}
.sharing-bar__icon {
margin-right: 5px;
}
.cc__signature {
position: relative;
cursor: pointer;
}
.cc__signature .cc__signature--icon {
position: absolute;
top: 0;
right: 0;
height: 32px;
width: 32px;
background-color: #fff;
color: var(--chayns-color--secondary);
display: flex;
justify-content: center;
align-items: center;
}
.cc__new-slider {
width: 100%;
display: flex;
user-select: none;
-webkit-user-select: none;
}
.cc__new-slider--dots {
padding-top: 16px;
}
.cc__new-slider--vertical {
width: 30px;
height: 300px;
display: inline-block;
}
.cc__new-slider--vertical .cc__new-slider__label {
flex-direction: row;
}
.cc__new-slider--vertical .cc__new-slider__bar {
margin: 11px 0;
width: 30px;
height: 100%;
flex-direction: row;
}
.chayns-general-component-design--1 .cc__new-slider--vertical .cc__new-slider__bar,
.chayns-general-component-design--2 .cc__new-slider--vertical .cc__new-slider__bar {
margin: 0;
}
.cc__new-slider--vertical .cc__new-slider__bar__track {
left: 50%;
transform: translate(-50%, -50%);
height: 100% ;
width: 10px;
}
.chayns-general-component-design--1 .cc__new-slider--vertical .cc__new-slider__bar__track {
width: 8px;
}
.chayns-general-component-design--2 .cc__new-slider--vertical .cc__new-slider__bar__track {
width: 6px;
}
.cc__new-slider--vertical .cc__new-slider__bar__track__inner {
bottom: 0;
width: 100%;
}
.cc__new-slider--vertical .cc__new-slider__bar__thumb {
left: 50%;
transform: translate(-50%, -50%);
}
.cc__new-slider--disabled {
pointer-events: none;
opacity: 0.5;
}
.cc__new-slider__label {
display: flex;
flex-direction: column;
justify-content: center;
font-size: 85%;
}
.cc__new-slider__bar {
flex: 1;
position: relative;
height: 30px;
display: flex;
flex-direction: column;
justify-content: center;
margin: 0 11px;
}
.chayns-general-component-design--1 .cc__new-slider__bar,
.chayns-general-component-design--2 .cc__new-slider__bar {
margin: 0;
}
.cc__new-slider__bar__step__dot {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: var(--chayns-color--402);
transform: translate(-50%, 0);
}
.cc__new-slider__bar__step__dot.cc__new-slider__bar__step__dot--active {
background-color: var(--chayns-color--408);
}
.cc__new-slider__bar__step__dot-label {
position: absolute;
font-size: 12px;
transform: translate(-50%, -14px);
top: 0;
white-space: nowrap;
}
.cc__new-slider__bar--down .cc__new-slider__bar__mobile-arrow {
opacity: 1;
}
.cc__new-slider__bar--down .cc__new-slider__bar__track {
height: 30px;
}
.cc__new-slider__bar--down .cc__new-slider__bar__thumb__dot {
border-radius: 3px;
font-size: 100%;
height: 30px;
padding: 0 15px;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
line-height: 30px;
transform: translateY(-38px);
}
.chayns-general-component-design--1 .cc__new-slider__bar--down .cc__new-slider__bar__thumb__dot {
transform: translateY(-34px);
border: none;
}
.cc__new-slider__bar__mobile-arrow {
background: #fff;
content: "";
position: absolute;
margin: 0 auto;
height: 10px;
width: 10px;
opacity: 0;
transform: translate(-5px, -13px) rotate(45deg);
pointer-events: none;
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.3, 1.35);
top: 0;
}
.cc__new-slider__bar__track {
top: 50%;
position: absolute;
overflow: hidden;
border-radius: 100px;
width: 100%;
transform: translateY(-50%);
cursor: pointer;
transition: height 0.2s cubic-bezier(0.45, 0, 0.3, 1.35);
height: 10px;
}
.chayns-general-component-design--1 .cc__new-slider__bar__track {
height: 8px;
}
.chayns-general-component-design--2 .cc__new-slider__bar__track {
height: 6px;
}
.cc__new-slider__bar__track__inner {
height: 100%;
position: absolute;
}
.cc__new-slider__bar__thumb {
position: absolute;
top: 50%;
min-width: 30px;
min-height: 30px;
padding: 5px;
transform: translate(-50%, -50%);
cursor: pointer;
}
.cc__new-slider__bar__thumb-wrapper {
width: 100%;
position: relative;
}
.chayns-general-component-design--1 .cc__new-slider__bar__thumb:hover .cc__new-slider__bar__thumb__dot[data-value]:before {
transform: scale(1) rotate(-45deg);
opacity: 1;
bottom: 150%;
}
.chayns-general-component-design--1 .cc__new-slider__bar__thumb:hover .cc__new-slider__bar__thumb__dot[data-value]:after {
transform: scale(1);
opacity: 1;
bottom: 170%;
}
.cc__new-slider__bar__thumb__dot {
content: " ";
background-color: #fff;
border-radius: 100px;
height: 20px;
min-width: 20px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
pointer-events: none;
padding: 0 8px;
font-size: 85%;
display: flex;
align-items: center;
justify-content: center;
vertical-align: middle;
line-height: 20px;
transition-property: transform, border-radius, font-size, padding, box-shadow, line-height, height;
transition-duration: 0.2s;
transition-timing-function: cubic-bezier(0.4, 0, 0.3, 1.35);
color: #222;
white-space: nowrap;
position: relative;
}
.chayns-general-component-design--1 .cc__new-slider__bar__thumb__dot {
height: 24px;
min-width: 24px;
border: 2px solid var(--chayns-color--408);
}
.chayns-general-component-design--1 .cc__new-slider__bar__thumb__dot[data-value]:before {
content: "";
width: 32px;
height: 32px;
transform: scale(0) rotate(-45deg);
opacity: 0;
border-radius: 50% 50% 50% 0;
background-color: var(--chayns-color--408);
position: absolute;
bottom: 0;
transition: transform 0.2s ease, opacity 0.3s, bottom 0.2s ease-out;
}
.chayns-general-component-design--1 .cc__new-slider__bar__thumb__dot[data-value]:after {
content: attr(data-value);
transform: scale(0);
opacity: 0;
color: #ffffff;
position: absolute;
bottom: 0;
transition: transform 0.2s ease, opacity 0.3s, bottom 0.2s ease-out;
}
.chayns-general-component-design--2 .cc__new-slider__bar__thumb__dot[data-value],
.chayns-general-component-design--2 .cc__new-slider--vertical .cc__new-slider__bar__thumb__dot {
background-color: var(--chayns-color--408);
}
.chayns-general-component-design--2 .cc__new-slider__bar__thumb__dot[data-value]:after,
.chayns-general-component-design--2 .cc__new-slider--vertical .cc__new-slider__bar__thumb__dot:after {
content: "";
border-radius: 100%;
background-color: white;
position: absolute;
height: 6px;
width: 6px;
}
.sliderButton {
display: inline-flex;
user-select: none;
position: relative;
}
.sliderButton__item {
width: 64px;
opacity: 0.4;
border-radius: 0;
box-shadow: none;
pointer-events: auto;
cursor: pointer;
}
.sliderButton__item:after {
content: none ;
}
.sliderButton__item__marker {
position: absolute;
left: 0;
width: 64px;
}
.sliderButton__item:first-child {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.sliderButton__item:nth-last-child(2) {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.sliderButton--disabled {
opacity: 0.5;
pointer-events: none;
}
.cc__colorArea {
position: relative;
user-select: none;
overflow: hidden;
cursor: crosshair;
margin: 11px 11px 5px 11px;
}
.cc__colorArea__area {
user-select: none;
}
.cc__colorArea__selector {
position: absolute;
border-radius: 100%;
border: 2px solid white;
width: 20px;
height: 20px;
transform: translate(-50%, -50%);
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5), 0 0 3px 0 rgba(0, 0, 0, 0.5) inset;
pointer-events: none;
will-change: top, left;
user-select: none;
}
.cc__color-input {
margin: 0 11px 11px 11px;
display: flex;
align-items: center;
}
.cc__color-input__exchange-icon {
margin-left: 8px;
cursor: pointer;
}
.cc__color-input__input {
width: 100%;
}
.cc__color-input__accordion {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
}
.cc__color-input__accordion .cc__color-input {
font-size: 0.75rem;
margin: 0;
width: calc(50% - 5px);
}
.cc_color-selection {
padding: 0px 8px;
display: flex;
}
.cc_color-selection--inner {
display: flex;
flex-wrap: wrap;
overflow-y: auto;
max-height: 90px;
}
.cc_color-selection--wrapper {
position: relative;
margin: 3px;
}
.cc_color-selection--active {
position: absolute;
width: 26px;
height: 26px;
top: -1px;
left: -1px;
border-radius: 100%;
box-shadow: 0 0 0 1px rgba(var(--chayns-color-rgb--text), 0.75);
}
.cc_color-selection__color--wrapper {
position: relative;
padding: 2px;
width: 24px;
height: 24px;
border-radius: 100%;
cursor: pointer;
overflow: hidden;
border: 1px solid rgba(var(--chayns-color-rgb--text), 0.3);
}
.cc_color-selection__color {
background: var(--color);
inset: 0px;
position: absolute;
z-index: 2;
margin: 0;
}
.cc_color-selection__transparency {
background-image: linear-gradient(45deg, #a0a0a0 25%, transparent 25%), linear-gradient(-45deg, #a0a0a0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #a0a0a0 75%), linear-gradient(-45deg, transparent 75%, #a0a0a0 75%);
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
background-size: 8px 8px;
background-repeat: repeat;
position: absolute;
inset: 0px;
}
.cc__transparency-slider .cc__new-slider__bar__track:before {
content: "";
background-color: #ffffff;
background-image: linear-gradient(45deg, #a0a0a0 25%, transparent 25%), linear-gradient(-45deg, #a0a0a0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #a0a0a0 75%), linear-gradient(-45deg, transparent 75%, #a0a0a0 75%);
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
background-size: 8px 8px;
background-repeat: repeat;
height: 100%;
width: 100%;
position: absolute;
}
.cc__transparency-slider .cc__new-slider__bar__track:after {
content: "";
background: inherit;
height: 100%;
width: 100%;
position: absolute;
}
.cc__transparency-slider .cc__new-slider__bar__thumb__dot:before {
content: "";
background-color: #ffffff;
background-image: linear-gradient(45deg, #a0a0a0 25%, transparent 25%), linear-gradient(-45deg, #a0a0a0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #a0a0a0 75%), linear-gradient(-45deg, transparent 75%, #a0a0a0 75%);
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
background-size: 8px 8px;
background-repeat: repeat;
height: inherit;
width: 20px;
position: absolute;
overflow: hidden;
top: inherit;
left: inherit;
border-radius: inherit;
opacity: 1;
transform: none;
}
.cc__transparency-slider .cc__new-slider__bar__thumb__dot:after {
content: "";
background-color: inherit;
height: inherit;
width: 20px;
top: inherit;
left: inherit;
position: absolute;
overflow: hidden;
border-radius: inherit;
}
.cc__result-selection {
user-select: none;
pointer-events: none;
}
.cc__result-selection--match {
font-weight: bold;
color: var(--chayns-color--headline);
}