rsuite
Version:
A suite of react components
134 lines (133 loc) • 3.56 kB
CSS
:root,
.rs-theme-light {
--rs-gray-50: #f7f7fa;
--rs-gray-100: #f2f2f5;
--rs-gray-200: #e5e5ea;
--rs-gray-600: #717273;
--rs-gray-800: #343434;
--rs-primary-500: #3498ff;
--rs-primary-700: #1675e0;
--rs-text-primary: var(--rs-gray-800);
--rs-text-secondary: var(--rs-gray-600);
--rs-text-active: var(--rs-primary-700);
--rs-border-primary: var(--rs-gray-200);
}
.rs-theme-dark {
--rs-gray-50: #e9ebf0;
--rs-gray-100: #cbced4;
--rs-gray-200: #a4a9b3;
--rs-gray-600: #3c3f43;
--rs-gray-800: #1a1d24;
--rs-primary-500: #34c3ff;
--rs-primary-700: #169de0;
--rs-text-primary: var(--rs-gray-50);
--rs-text-secondary: var(--rs-gray-200);
--rs-text-active: var(--rs-primary-500);
--rs-border-primary: var(--rs-gray-600);
}
.rs-theme-high-contrast {
--rs-gray-50: #e9ebf0;
--rs-gray-100: #cbced4;
--rs-gray-200: #a4a9b3;
--rs-gray-600: #3c3f43;
--rs-gray-800: #1a1d24;
--rs-primary-500: #ffff00;
--rs-primary-700: #d9e000;
--rs-text-primary: var(--rs-gray-50);
--rs-text-secondary: var(--rs-gray-200);
--rs-text-active: var(--rs-primary-500);
--rs-border-primary: var(--rs-gray-100);
}
/* 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-radio-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.rs-radio-group > .rs-radio {
margin-left: -10px;
}
.rs-radio-group-inline {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.rs-radio-group-picker {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: #343434;
color: var(--rs-text-primary);
border: 1px solid #e5e5ea;
border: 1px solid var(--rs-border-primary);
border-radius: 6px;
}
.rs-radio-group-picker .rs-radio-inline {
padding: 0 10px;
margin: 0;
}
.rs-radio-group-picker .rs-radio-inline:first-child {
padding-left: 12px;
}
.rs-radio-group-picker .rs-radio-inline:last-child {
padding-right: 12px;
}
.rs-radio-group-picker .rs-radio-checker {
padding: 0;
min-height: auto;
}
.rs-radio-group-picker .rs-radio-control {
display: none;
}
.rs-radio-group-picker .rs-radio-checker > label {
display: inline-block;
white-space: nowrap;
font-size: 14px;
line-height: 1.42857143;
border-radius: 0;
color: #717273;
color: var(--rs-text-secondary);
background: none;
-webkit-transition: color 0.3s linear;
transition: color 0.3s linear;
padding: 7px 0 5px;
border-bottom: 2px solid transparent;
}
.rs-theme-high-contrast .rs-radio-group-picker .rs-radio-checker > label {
-webkit-transition: none;
transition: none;
}
.rs-radio-group-picker .rs-radio-checker > label:hover,
.rs-radio-group-picker .rs-radio-checker > label:active {
color: #1675e0;
color: var(--rs-text-active);
background: none;
}
.rs-radio-group-picker .rs-radio-checked .rs-radio-checker > label {
color: #1675e0;
color: var(--rs-text-active);
border-color: #1675e0;
border-color: var(--rs-text-active);
}
.rs-radio-group-picker .rs-radio-disabled .rs-radio-checker {
opacity: 0.3;
cursor: not-allowed;
}
.rs-radio-group-picker .rs-radio-disabled:not(.rs-radio-checked) .rs-radio-checker > label {
color: #717273;
color: var(--rs-text-secondary);
}