rsuite
Version:
A suite of react components
207 lines (206 loc) • 4.49 kB
CSS
:root,
.rs-theme-light {
--rs-gray-100: #f2f2f5;
--rs-gray-600: #717273;
--rs-primary-500: #3498ff;
--rs-red-500: #f44336;
--rs-orange-500: #fa8900;
--rs-yellow-500: #ffb300;
--rs-green-500: #4caf50;
--rs-cyan-500: #00bcd4;
--rs-blue-500: #2196f3;
--rs-violet-500: #673ab7;
--rs-rate-symbol: var(--rs-gray-600);
--rs-rate-symbol-checked: var(--rs-blue-500);
}
.rs-theme-dark {
--rs-gray-100: #cbced4;
--rs-gray-600: #3c3f43;
--rs-primary-500: #34c3ff;
--rs-red-500: #f04f43;
--rs-orange-500: #ff9800;
--rs-yellow-500: #ffc757;
--rs-green-500: #58b15b;
--rs-cyan-500: #00bcd4;
--rs-blue-500: #1499ef;
--rs-violet-500: #673ab7;
--rs-rate-symbol: var(--rs-gray-600);
--rs-rate-symbol-checked: var(--rs-yellow-500);
}
.rs-theme-high-contrast {
--rs-gray-100: #cbced4;
--rs-gray-600: #3c3f43;
--rs-primary-500: #ffff00;
--rs-red-500: #bd1732;
--rs-orange-500: #ff9800;
--rs-yellow-500: #ffc757;
--rs-green-500: #0d822c;
--rs-cyan-500: #00bcd4;
--rs-blue-500: #1499ef;
--rs-violet-500: #673ab7;
--rs-rate-symbol: var(--rs-gray-100);
--rs-rate-symbol-checked: var(--rs-primary-500);
}
/* stylelint-disable */
*[class*='rs-'] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*[class*='rs-']::before,
*[class*='rs-']::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.rs-rate {
position: relative;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: #2196f3;
color: var(--rs-rate-symbol-checked);
list-style: none;
vertical-align: middle;
margin: 0;
padding: 0;
}
.rs-rate-character {
position: relative;
margin-right: 10px;
padding: 3px 0;
cursor: pointer;
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.rs-rate-character-before {
position: absolute;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.rs-rate-character-after {
color: #717273;
color: var(--rs-rate-symbol);
-webkit-filter: grayscale(1);
filter: grayscale(1);
}
.rs-theme-high-contrast .rs-rate-character-after > .rs-icon {
fill: none;
stroke: currentColor;
}
.rs-rate-character-before,
.rs-rate-character-after {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
z-index: 1;
}
.rs-rate-character-before > .rs-icon,
.rs-rate-character-after > .rs-icon {
font-size: inherit;
}
.rs-rate-character-half .rs-rate-character-before {
opacity: 1;
-webkit-filter: none;
filter: none;
}
.rs-rate-character-full .rs-rate-character-after {
color: inherit;
-webkit-filter: none;
filter: none;
}
.rs-rate-character-full .rs-rate-character-after > .rs-icon {
fill: currentColor;
}
.rs-rate-character-vertical {
width: 100%;
height: 50%;
-webkit-box-orient: vertical;
-webkit-box-direction: reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
bottom: 3px;
}
.rs-rate-character .rs-icon {
position: absolute;
height: 1em;
width: 1em;
}
.rs-rate:not(.rs-rate-readonly).rs-rate:not(.rs-rate-disabled) .rs-rate-character:hover {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.rs-rate:not(.rs-rate-readonly).rs-rate:not(.rs-rate-disabled) .rs-rate-character:active {
-webkit-transform: scale(1);
transform: scale(1);
}
.rs-rate-disabled {
opacity: 0.5;
outline: none;
}
.rs-rate-disabled .rs-rate-character {
cursor: not-allowed;
}
.rs-rate-readonly .rs-rate-character {
cursor: default;
pointer-events: none;
}
.rs-rate-lg {
font-size: 36px;
}
.rs-rate-lg .rs-rate-character {
width: 36px;
height: 42px;
}
.rs-rate-md {
font-size: 30px;
}
.rs-rate-md .rs-rate-character {
width: 30px;
height: 36px;
}
.rs-rate-sm {
font-size: 24px;
}
.rs-rate-sm .rs-rate-character {
width: 24px;
height: 30px;
}
.rs-rate-xs {
font-size: 18px;
}
.rs-rate-xs .rs-rate-character {
width: 18px;
height: 24px;
}
.rs-rate-red {
color: #f44336;
color: var(--rs-red-500);
}
.rs-rate-orange {
color: #fa8900;
color: var(--rs-orange-500);
}
.rs-rate-yellow {
color: #ffb300;
color: var(--rs-yellow-500);
}
.rs-rate-green {
color: #4caf50;
color: var(--rs-green-500);
}
.rs-rate-cyan {
color: #00bcd4;
color: var(--rs-cyan-500);
}
.rs-rate-blue {
color: #2196f3;
color: var(--rs-blue-500);
}
.rs-rate-violet {
color: #673ab7;
color: var(--rs-violet-500);
}