chowa
Version:
UI component library based on React
126 lines (118 loc) • 3.17 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cw-radio-wrapper {
display: inline-block;
cursor: pointer;
margin: 0;
padding: 0;
font-size: 14px;
color: #616a6e;
height: 32px;
line-height: 32px;
outline: none;
white-space: nowrap; }
.cw-radio-wrapper + .cw-radio-wrapper {
margin-left: 16px; }
.cw-radio-wrapper:not(.cw-radio-disabled):hover .cw-radio-inner {
border-color: #7774e7; }
.cw-radio-wrapper:not(.cw-radio-disabled):focus .cw-radio-inner {
box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15);
border-color: #7774e7; }
.cw-radio-wrapper.cw-has-error .cw-radio-inner {
border-color: #ed4014; }
.cw-radio {
display: inline-block;
position: relative;
vertical-align: top;
margin: 8px 0;
padding: 0;
width: 16px;
height: 16px; }
.cw-radio-inner {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: 0;
padding: 0;
box-sizing: border-box;
display: block;
border: 1px solid #e6ecf5;
border-radius: 50%;
transition: all 0.2s ease-in;
background-color: #fff; }
.cw-radio-inner:before {
content: '';
margin: 4px;
padding: 0;
display: block;
width: 6px;
height: 6px;
border-radius: 50%;
transition: all 0.2s ease-in;
transform: scale(0); }
.cw-radio-input {
position: absolute;
top: 0;
left: 0;
opacity: 0; }
.cw-radio-label {
margin: 0 0 0 4px;
padding: 0; }
.cw-radio-checked .cw-radio-inner {
border-color: #7774e7; }
.cw-radio-checked .cw-radio-inner:before {
background-color: #7774e7;
transform: scale(1); }
.cw-radio-disabled {
cursor: not-allowed; }
.cw-radio-disabled .cw-radio-inner {
background-color: #e9ecef;
border-color: #e6ecf5; }
.cw-radio-disabled .cw-radio-label {
color: #888da8; }
.cw-radio-disabled.cw-radio-checked .cw-radio-inner:before {
background-color: #888da8; }
.cw-radio-btn {
border-color: #e6ecf5;
font-size: 14px;
color: #616a6e;
background-color: #fff;
line-height: 30px;
padding: 0 15px;
margin: 0;
outline: none;
border-width: 1px;
border-style: solid;
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
display: inline-block;
border-radius: 3px;
text-align: center;
white-space: nowrap;
box-sizing: border-box;
cursor: pointer; }
.cw-radio-btn .cw-radio {
display: none; }
.cw-radio-btn.cw-has-error.cw-radio-btn {
border-color: #ed4014; }
.cw-radio-btn .cw-radio-label {
margin: 0; }
.cw-radio-btn:not(.cw-radio-disabled):hover {
color: #7774e7;
border-color: #7774e7; }
.cw-radio-btn:not(.cw-radio-disabled).cw-radio-checked {
color: #fff;
border-color: #7774e7;
background-color: #7774e7; }
.cw-radio-btn:not(.cw-radio-disabled):focus {
box-shadow: inset 0 0 6px 3px rgba(119, 116, 231, 0.15); }
.cw-radio-btn.cw-radio-disabled {
background-color: #e9ecef;
cursor: not-allowed; }