pub const DEFAULT_STYLE_CSS: &str = r####":root {
--primary: #5656ff;
--primary-hover: #4848da;
--primary-disabled: #33336f;
--primary-transparent-layer: rgba(86, 86, 255, 0.35);
--headline: #b9b9c6;
--headline-sec: #aaaabc;
--text-color: #e8e8fd;
--text-color-dark: #b4b4c1;
--disabled-text: #262d39;
--disabled-text-darker: #1f2630;
--gray-background: #1f2630;
--gray-background-disabled: #262d39;
}
/* Button */
button {
background: var(--primary);
min-width: 140px;
height: 45px;
border-radius: 6px;
border: none;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
transition: all 0.3s;
padding: 0 15px;
color: var(--text-color);
font-size: 15px;
&:hover {
background: var(--primary-hover);
}
&:disabled {
background: var(--primary-disabled);
color: var(--text-color-dark);
}
}
/* CheckBox */
checkbox {
width: 150px;
height: 40px;
display: flex;
justify-content: start;
align-items: center;
flex-direction: row;
gap: 10px;
color: var(--text-color);
font-size: 13px;
> .mark-box {
width: 25px;
height: 25px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 4px;
border: 2px;
border-color: var(--text-color);
> .mark {
width: 16px;
height: 16px;
transition: all 0.3s;
}
}
&:checked > .mark-box {
border-color: var(--primary);
background: var(--primary);
}
> .check-text {
transition: all 0.3s;
}
&:disabled {
color: var(--disabled-text);
}
&:disabled > .mark-box {
color: var(--disabled-text);
border-color: var(--primary-disabled);
background: var(--primary-disabled);
}
}
/* Div */
div {
> scroll {
position: absolute;
right: 0;
}
> .scroll-horizontal {
bottom: 0;
left: 0;
}
}
body {
> scroll {
position: absolute;
right: 0;
}
> .scroll-horizontal {
bottom: 0;
left: 0;
}
}
/* Divider */
divider {
background: var(--text-color-dark);
margin: 5px;
}
.divider-vert {
width: 1px;
height: 25px;
}
.divider-hori {
width: 25px;
height: 1px;
}
/* Fieldset */
fieldset {
border: none;
margin: 0;
padding: 0;
display: flex;
justify-content: start;
align-items: start;
flex-direction: row;
min-height: 50px;
min-width: 200px;
gap: 5px;
}
/* Image */
img {
width: 100%;
height: 100%;
}
/* Headline */
h1 {
font-size: 48px;
font-weight: 600;
color: var(--headline);
margin: 16px;
}
h2 {
font-size: 40px;
font-weight: 600;
color: var(--headline);
margin: 16px;
}
h3 {
font-size: 32px;
font-weight: 600;
color: var(--headline);
margin: 16px;
}
h4 {
font-size: 24px;
font-weight: 600;
color: var(--headline-sec);
margin: 16px;
}
h5 {
font-size: 20px;
font-weight: 600;
color: var(--headline-sec);
margin: 16px;
}
h6 {
font-size: 16px;
font-weight: 600;
color: var(--headline-sec);
margin: 16px;
}
/* Input Fields */
input {
width: 350px;
height: 55px;
border-radius: 5px;
border: 2px;
border-color: var(--text-color-dark);
transition: all 0.3s;
color: var(--text-color);
font-size: 15px;
cursor: text;
&:disabled {
border-color: var(--disabled-text);
color: var(--disabled-text);
}
&::selection {
background: var(--primary-transparent-layer);
color: var(--text-color);
}
&:hover {
border-color: var(--primary-hover);
color: var(--primary-hover);
}
&:focus {
border-color: var(--primary);
color: var(--text-color);
z-index: 30000;
}
&:invalid {
border-color: #e06a7b;
color: var(--text-color);
}
&:focus > .input-label {
color: var(--primary);
}
&:invalid > .input-label {
color: #ff9eaa;
}
> .input-label {
position: absolute;
left: 10px;
top: 19px;
transition: all 0.3s;
}
> .input-file-size {
position: absolute;
right: 10px;
top: 20px;
font-size: 12px;
color: var(--text-color-dark);
transition: all 0.3s;
}
> .input-file-error {
position: absolute;
left: 10px;
bottom: -16px;
font-size: 11px;
color: #ff9eaa;
transition: all 0.3s;
}
> .in-icon-container {
width: 50px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s;
> .in-icon {
font-size: 16px;
transition: all 0.3s;
}
}
> .in-text-container {
height: 100%;
width: 95%;
display: flex;
justify-content: flex-start;
align-items: center;
overflow-y: hidden;
overflow-x: scroll;
padding-left: 10px;
transition: all 0.3s;
> .input-text {
width: 100%;
text-wrap: nowrap;
transition: all 0.3s;
}
> .input-cursor {
width: 2px;
height: 20px;
background: var(--text-color);
transition: all 0.3s;
}
}
&:disabled > .in-text-container > .input-cursor {
background: var(--disabled-text);
}
&:focus > .input-file-size {
color: var(--text-color);
}
&:disabled > .input-file-size {
color: var(--disabled-text);
}
&:invalid > .input-file-size {
color: #ff9eaa;
}
}
/* Date Picker */
date-picker {
width: 320px;
height: 56px;
position: relative;
border-radius: 6px;
border: 2px;
border-color: #8d93af;
background: var(--gray-background);
color: #f4f6ff;
cursor: pointer;
overflow: visible;
&:hover {
border-color: #b3b9d4;
}
&:focus {
border-color: #90caf9;
z-index: 40000;
}
&:checked {
z-index: 40000;
}
> .date-picker-field {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: flex-start;
align-items: flex-end;
padding-left: 14px;
padding-right: 42px;
padding-bottom: 8px;
}
> .date-picker-field > .date-picker-label {
position: absolute;
left: 14px;
top: 19px;
color: #9ca2bd;
font-size: 16px;
}
> .date-picker-field > .date-picker-value {
position: absolute;
left: 14px;
right: 42px;
bottom: 8px;
color: #f4f6ff;
font-size: 16px;
text-wrap: nowrap;
}
> .date-picker-field > .date-picker-icon {
position: absolute;
right: 12px;
top: 19px;
width: 20px;
height: 20px;
display: flex;
justify-content: center;
align-items: center;
color: #cad0e6;
font-size: 13px;
}
&:checked > .date-picker-field > .date-picker-icon {
color: var(--primary);
}
> .date-picker-popover {
position: absolute;
left: 0;
top: 62px;
width: 320px;
padding: 12px;
border-radius: 12px;
border: 1px #3a3f58;
background: var(--gray-background);
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
gap: 10px;
z-index: 40001;
> .date-picker-header {
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
min-height: 32px;
gap: 8px;
> .date-picker-header-center {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}
> .date-picker-nav {
position: absolute;
top: 0;
width: 32px;
height: 32px;
border-radius: 16px;
border: 1px transparent;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: rgba(135, 142, 176, 0.22);
}
&:disabled > .date-picker-nav-text {
color: #555a70;
}
> .date-picker-nav-text {
color: #c8cee3;
font-size: 15px;
}
}
> .date-picker-prev {
left: 0;
}
> .date-picker-next {
right: 0;
}
> .date-picker-header-center > .date-picker-month-button {
min-width: 88px;
height: 30px;
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: rgba(135, 142, 176, 0.22);
}
> .date-picker-month-label {
color: #e7ebff;
font-size: 16px;
}
&:checked {
background: var(--primary-disabled);
> .date-picker-month-label {
color: #ffffff;
}
}
}
> .date-picker-header-center > .date-picker-year-button {
width: 58px;
height: 30px;
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: rgba(135, 142, 176, 0.22);
}
> .date-picker-year-text {
color: #cdd3eb;
font-size: 15px;
}
&:checked {
background: var(--primary-disabled);
> .date-picker-year-text {
color: #ffffff;
}
}
}
}
> .date-picker-weekdays {
width: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
gap: 0;
> .date-picker-weekday {
width: calc(100% / 7);
height: 24px;
display: flex;
justify-content: center;
align-items: center;
> .date-picker-weekday-text {
color: #8890af;
font-size: 12px;
}
}
}
> .date-picker-grid {
width: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
column-gap: 0;
row-gap: 2px;
overflow: hidden;
> .date-picker-day {
width: calc(100% / 7);
height: 36px;
border-radius: 18px;
display: flex;
justify-content: center;
align-items: center;
> .date-picker-day-text {
color: #d6dcf5;
font-size: 14px;
}
&:read-only {
> .date-picker-day-text {
color: #4a5068;
}
}
&:read-only:hover {
background: transparent;
}
&:not(:read-only):not(:disabled):hover {
background: rgba(120, 135, 176, 0.28);
}
&:focus:not(:checked) {
background: var(--primary-transparent-layer);
border-radius: 0;
}
&:checked {
background: var(--primary);
> .date-picker-day-text {
color: #ffffff;
}
}
&:checked:invalid {
border-radius: 6px 0 0 6px;
}
&:checked:focus:not(:invalid) {
border-radius: 0 6px 6px 0;
}
&:disabled {
background: transparent;
> .date-picker-day-text {
color: #4f5468;
}
}
}
}
> .date-picker-years {
width: 100%;
height: 276px;
min-height: 0;
display: flex;
justify-content: flex-start;
align-items: stretch;
flex-direction: column;
gap: 2px;
overflow-y: scroll;
> .date-picker-year-option {
width: 100%;
min-height: 34px;
border-radius: 17px;
display: flex;
justify-content: center;
align-items: center;
> .date-picker-year-option-text {
color: #d6dcf5;
font-size: 14px;
}
&:hover {
background: rgba(120, 135, 176, 0.28);
}
&:checked {
background: var(--primary);
> .date-picker-year-option-text {
color: #ffffff;
}
}
&:disabled {
background: transparent;
> .date-picker-year-option-text {
color: #4f5468;
}
}
}
}
> .date-picker-months {
width: 100%;
height: 260px;
min-height: 0;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: row;
flex-wrap: wrap;
row-gap: 20px;
column-gap: 8px;
overflow: hidden;
> .date-picker-month-option {
width: calc((100% - 16px) / 3);
min-height: 48px;
border-radius: 24px;
display: flex;
justify-content: center;
align-items: center;
> .date-picker-month-option-text {
color: #d6dcf5;
font-size: 16px;
}
&:hover {
background: rgba(120, 135, 176, 0.28);
}
&:checked {
background: var(--primary);
> .date-picker-month-option-text {
color: var(--text-color);
}
}
&:disabled {
background: transparent;
> .date-picker-month-option-text {
color: var(--text-color);
}
}
}
}
}
}
.date-picker-bound {
position: absolute;
left: 50%;
top: 0;
width: 0;
height: 0;
min-width: 0;
min-height: 0;
border: 0px;
border-radius: 0px;
background: transparent;
cursor: default;
z-index: 40000;
> .date-picker-popover {
top: 58px;
left: -160px;
}
}
/* Paragraph */
p {
margin: 8px;
font-size: 12px;
color: var(--text-color);
}
/* HyperLink */
a {
margin: 8px;
font-size: 12px;
color: #6ea7ff;
cursor: pointer;
}
a:hover {
color: #8fb9ff;
}
/* Badge */
badge {
position: absolute;
min-width: 18px;
height: 18px;
border-radius: 999px;
padding-left: 5px;
padding-right: 5px;
display: flex;
justify-content: center;
align-items: center;
background: var(--primary);
border: 1px var(--primary);
color: #ffffff;
font-size: 11px;
z-index: 20000;
pointer-events: none;
> .badge-text {
text-align: center;
transform: translateX(1px);
color: #ffffff;
font-size: 11px;
text-wrap: nowrap;
}
}
/* ToolTip */
.tooltip-nose {
position: absolute;
width: 10px;
height: 10px;
z-index: 59999;
background: rgba(24, 24, 30, 0.92);
border-width: 0px;
border-color: rgba(192, 198, 210, 0.95);
transform: rotate(45deg);
pointer-events: none;
}
tool-tip {
position: absolute;
width: auto;
min-width: 96px;
max-width: 300px;
min-height: 26px;
display: flex;
align-items: center;
padding: 10px;
border-radius: 6px;
background: var(--gray-background);
backdrop-filter: blur(10px);
border-width: 2px;
border-color: var(--primary-hover);
color: var(--text-color);
font-size: 13px;
text-wrap: wrap;
z-index: 60000;
pointer-events: none;
> .tooltip-nose {
background: var(--gray-background);
border-color: var(--primary-hover);
}
> .tooltip-text {
color: var(--text-color);
min-width: 0;
max-width: 284px;
text-wrap: wrap;
}
> .tooltip-nose-side-top {
border-width: 0px;
border-right: 2px;
border-bottom: 2px;
transform: rotate(45deg) translateY(-3px);
}
> .tooltip-nose-side-right {
border-width: 0px;
border-bottom: 2px;
border-left: 2px;
transform: rotate(45deg) translateX(-1px);
}
> .tooltip-nose-side-bottom {
border-width: 0px;
border-left: 2px;
border-top: 2px;
transform: rotate(45deg) translateY(-2px);
}
> .tooltip-nose-side-left {
border-width: 0px;
border-top: 2px;
border-right: 2px;
transform: rotate(45deg) translateX(-3px);
}
}
/* Progress Bar */
progressbar {
min-width: 220px;
min-height: 10px;
border-radius: 5px;
background: var(--primary-transparent-layer);
transition: all 0.3s;
> .progress {
width: 0;
height: 100%;
background: var(--primary-hover);
border-radius: 5px;
transition: all 0.3s;
}
}
/* Radio Button */
radio {
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
gap: 10px;
min-width: 100px;
min-height: 50px;
transition: all 0.3s;
font-size: 13px;
color: var(--text-color);
> .radio-dot {
width: 25px;
height: 25px;
border-radius: 50%;
border: 2px;
border-color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
background: transparent;
transition: all 0.3s;
> .checked-dot {
width: 17px;
height: 17px;
background: var(--primary);
border-radius: 50%;
transition: all 0.3s;
}
}
&:hover > .radio-dot {
border-color: var(--primary-hover);
}
&:disabled > .radio-dot {
border-color: var(--primary-disabled);
}
&:checked > .radio-dot {
border-color: var(--primary);
}
&:disabled > .radio-dot > .checked-dot {
background: var(--primary-disabled);
}
&:disabled > .radio-text {
color: var(--disabled-text);
}
}
/* Scrollbar */
scroll {
width: 10px;
height: 95%;
background: var(--primary-transparent-layer);
border-radius: 5px;
position: relative;
transition: all 0.3s;
> .scroll-track {
width: 100%;
height: 100%;
transition: all 0.3s;
> .scroll-thumb {
position: absolute;
width: 100%;
background: var(--primary);
border-radius: 5px;
transition: all 0.3s;
}
}
}
.scroll-horizontal {
width: 95%;
height: 10px;
}
.scroll-horizontal > .scroll-track > .scroll-thumb {
height: 100%;
}
/* Select */
select {
width: 350px;
height: 55px;
border-radius: 5px 0;
border: 2px;
border-color: var(--text-color);
color: var(--text-color);
font-size: 14px;
z-index: 1;
transition: all 0.3s;
&:disabled {
border-color: var(--disabled-text);
color: var(--disabled-text);
}
&:hover {
border-color: var(--primary-hover);
}
&:focus {
border-color: var(--primary);
}
> .select-label {
position: absolute;
left: 10px;
top: 19px;
font-size: 14px;
transition: all 0.3s;
}
&:disabled > .select-label {
color: var(--disabled-text);
}
&:hover > .select-label {
color: var(--primary-hover);
}
&:focus > .select-label {
color: var(--primary);
}
> .option-drop-box {
width: 50px;
min-width: 25px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s;
> .option-drop-icon {
transition: all 0.3s;
&:hover {
color: var(--primary-hover);
}
&:focus {
color: var(--primary);
}
}
}
> .option-selected {
width: 80%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
gap: 10px;
padding-left: 10px;
flex-grow: 1;
border-radius: 5px 0;
transition: all 0.3s;
> .option-sel-text {
transition: all 0.3s;
}
&:disabled > .option-sel-text {
color: var(--disabled-text);
}
}
> .choice-content-box {
position: absolute;
width: 100%;
min-height: 50px;
max-height: 150px;
top: 55px;
box-shadow: 0 0 3px 3px #303033;
border-radius: 0 5px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
background: var(--gray-background);
overflow-x: hidden;
overflow-y: scroll;
transition: all 0.3s;
> .choice-option {
width: 100%;
height: 50px;
min-height: 50px;
max-height: 50px;
padding-left: 10px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
gap: 10px;
flex-grow: 1;
background: var(--gray-background);
transition: all 0.3s;
> .option-text {
transition: all 0.3s;
&:hover {
color: var(--text-color);
}
&:checked {
color: var(--text-color);
}
}
&:hover {
background: var(--primary-hover);
}
&:checked {
background: var(--primary);
}
}
}
}
/* ListBox */
listbox {
width: 200px;
height: 150px;
border-radius: 5px 0;
border: 2px;
border-color: var(--text-color);
color: var(--text-color);
font-size: 14px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
overflow-x: hidden;
overflow-y: scroll;
transition: all 0.3s;
&:disabled {
border-color: var(--disabled-text);
color: var(--disabled-text);
}
&:hover {
border-color: var(--primary-hover);
}
&:focus {
border-color: var(--primary);
}
> .listbox-option {
width: 100%;
height: 40px;
min-height: 40px;
max-height: 40px;
padding-left: 10px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
gap: 10px;
background: var(--gray-background);
transition: all 0.3s;
> .option-text {
transition: all 0.3s;
&:hover {
color: var(--text-color);
}
&:checked {
color: var(--text-color);
}
}
&:hover {
background: var(--primary-hover);
}
&:checked {
background: var(--primary);
}
&:disabled {
color: var(--disabled-text);
background: var(--gray-background);
}
}
}
/* Slider */
slider {
width: 250px;
height: 26px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s;
--slider-tooltip-bg: var(--primary);
--slider-tooltip-color: #ffffff;
--slider-tooltip-size: 30px;
--slider-dot-color: var(--text-color);
--slider-dot-label-color: var(--text-color);
> .slider-track {
width: 100%;
height: 10px;
background: var(--primary-transparent-layer);
border-radius: 5px;
position: relative;
overflow: visible;
display: flex;
justify-content: start;
align-items: center;
transition: all 0.3s;
> .slider-dots {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: stretch;
pointer-events: none;
z-index: 3;
> .slider-dot-item {
position: relative;
width: 0;
height: 100%;
overflow: visible;
> .slider-dot-label {
position: absolute;
left: 0;
transform: translateX(-50%);
font-size: 10px;
text-wrap: nowrap;
color: var(--slider-dot-label-color);
text-align: center;
}
> .slider-dot {
position: absolute;
left: -1px;
width: 2px;
height: 7px;
background: var(--slider-dot-color);
}
}
}
> .slider-dots-top > .slider-dot-item > .slider-dot {
bottom: 100%;
}
> .slider-dots-top > .slider-dot-item > .slider-dot-label {
bottom: 100%;
transform: translate(-50% -5px);
}
> .slider-dots-bottom > .slider-dot-item > .slider-dot {
top: 100%;
}
> .slider-dots-bottom > .slider-dot-item > .slider-dot-label {
top: 100%;
transform: translate(-50% 5px);
}
> .track-fill {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 0;
background: var(--primary);
border-radius: 5px;
transition: background 0.3s;
z-index: 2;
}
> .thumb {
width: 16px;
height: 16px;
background: var(--primary);
border-radius: 50%;
position: absolute;
box-shadow: 0 0 1px 1px #303033;
transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
z-index: 4;
> .slider-thumb-tooltip {
position: absolute;
left: 50%;
bottom: 22px;
min-width: var(--slider-tooltip-size);
height: var(--slider-tooltip-size);
padding: 0 8px;
border-radius: 999px;
background: var(--slider-tooltip-bg);
display: flex;
justify-content: center;
align-items: center;
transform: translateX(-50%);
pointer-events: none;
> .slider-thumb-tooltip-text {
color: var(--slider-tooltip-color);
font-size: 11px;
text-wrap: nowrap;
text-align: center;
}
> .slider-thumb-tooltip-nose {
position: absolute;
width: 10px;
height: 10px;
left: 50%;
bottom: -4px;
background: var(--slider-tooltip-bg);
transform: translateX(-50%) rotate(45deg);
}
}
}
}
&:disabled > .slider-track {
background: var(--disabled-text-darker);
}
&:disabled > .slider-track > .track-fill {
background: var(--disabled-text);
}
&:disabled > .slider-track > .thumb {
background: var(--disabled-text);
}
}
/* Color Picker */
colorpicker {
width: auto;
min-height: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
position: relative;
overflow: visible;
}
colorpicker > .color-picker-trigger {
min-width: 220px;
height: 42px;
padding: 0 12px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
gap: 6px;
border: 2px #a0a0a0;
border-radius: 12px;
box-shadow: 0 1px 2px rgba(60, 64, 67, 0.25);
transition: all 0.2s;
cursor: pointer;
}
colorpicker > .color-picker-trigger > .color-value-hex {
font-size: 14px;
font-weight: 600;
}
colorpicker > .color-picker-modal {
width: 340px;
min-height: 294px;
padding: 14px;
display: flex;
justify-content: flex-start;
align-items: stretch;
flex-direction: column;
gap: 10px;
position: absolute;
border: 1px #a0a0a0;
border-radius: 16px;
background: var(--gray-background);
box-shadow: 0 10px 30px rgba(60, 64, 67, 0.32);
z-index: 40001;
}
colorpicker > .color-picker-modal > .color-canvas {
width: 100%;
height: 192px;
min-height: 192px;
border-radius: 12px;
border: 1px #a0a0a0;
overflow: hidden;
position: relative;
}
colorpicker > .color-picker-modal > .color-canvas > .color-canvas-thumb {
width: 14px;
height: 14px;
min-width: 14px;
min-height: 14px;
border-radius: 50%;
border: 2px #ffffff;
box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.55);
}
colorpicker > .color-picker-modal > .color-hue-track,
colorpicker > .color-picker-modal > .color-alpha-track {
width: 100%;
height: 14px;
min-height: 14px;
border-radius: 999px;
border: 1px #a0a0a0;
overflow: hidden;
position: relative;
}
colorpicker > .color-picker-modal > .color-hue-track > .color-track-thumb,
colorpicker > .color-picker-modal > .color-alpha-track > .color-track-thumb {
width: 14px;
height: 14px;
min-width: 14px;
min-height: 14px;
border-radius: 50%;
background: #ffffff;
border: 2px #a0a0a0;
box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.35);
}
colorpicker > .color-picker-modal > .color-values {
width: 100%;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
gap: 2px;
}
colorpicker .color-value {
color: var(--text-color-dark);
font-size: 13px;
font-weight: 400;
}
colorpicker > .color-picker-modal > .color-values > .color-value-rgba {
color: var(--text-color-dark);
font-weight: 600;
}
/* Switch Button */
switch {
width: 75px;
height: 30px;
display: flex;
justify-content: start;
align-items: center;
position: relative;
gap: 10px;
transition: all 0.3s;
font-size: 11px;
font-weight: 200;
color: var(--text-color);
&:disabled > .switch-text {
color: var(--disabled-text);
}
> .switch-track {
width: 50px;
height: 24px;
border-radius: 13px;
border: 2px solid var(--disabled-text);
background: var(--gray-background);
position: relative;
display: flex;
justify-content: start;
align-items: center;
transition: all 0.3s;
> .switch-dot {
position: absolute;
width: 23px;
height: 23px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
background: var(--primary);
transition: all 0.3s;
> .icon-dot {
width: 80%;
height: 80%;
transition: all 0.3s;
}
}
}
&:checked > .switch-track {
background: var(--primary-hover);
justify-content: end;
}
&:disabled > .switch-track {
background: var(--disabled-text-darker);
}
&:disabled > .switch-track > .switch-dot {
background: var(--disabled-text);
}
}
/* Toggle Button */
toggle {
background: var(--gray-background);
min-width: 45px;
min-height: 45px;
border-radius: 6px;
border: none;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s;
color: var(--text-color);
font-size: 15px;
&:disabled {
background: var(--gray-background-disabled);
}
&:hover {
background: var(--primary-hover);
}
&:checked {
background: var(--primary-hover);
}
&:disabled > .button-text {
color: var(--text-color-dark);
}
}
/**********************************
Animations
***********************************/
@keyframes default-pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.05);
}
}
@keyframes default-shake {
0% {
transform: translateX(0);
}
10% {
transform: translateX(3px);
}
20% {
transform: translateX(0);
}
30% {
transform: translateX(-3px);
}
40% {
transform: translateX(0);
}
50% {
transform: translateX(3px);
}
60% {
transform: translateX(0);
}
70% {
transform: translateX(-3px);
}
80% {
transform: translateX(0);
}
90% {
transform: translateX(3px);
}
100% {
transform: translateX(0);
}
}
"####;