yqcloud-ui
Version:
An enterprise-class UI design language and React-based implementation
241 lines (240 loc) • 6.23 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.ant-radio-group {
display: inline-block;
line-height: unset;
}
.ant-radio-group-wrapper {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
color: #04173F;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
display: inline-block;
}
.ant-radio-group-wrapper.ant-radio-group-has-label {
position: relative;
}
.ant-radio-group-wrapper.ant-radio-group-has-label .ant-radio-group {
padding-top: 17px;
}
.ant-radio-group-wrapper .ant-radio-group-label.label-disabled {
color: rgba(0, 0, 0, 0.54);
}
.ant-radio-group-wrapper .ant-radio-group-label {
color: rgba(0, 0, 0, 0.6);
position: absolute;
left: 0;
width: 100%;
-webkit-transform-origin: 0 0;
-ms-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scale(0.75) translateY(0) translateZ(0.001px);
transform: scale(0.75) translateY(0) translateZ(0.001px);
}
.ant-radio-wrapper {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
color: #04173F;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
display: inline-block;
position: relative;
white-space: nowrap;
margin-right: 8px;
cursor: pointer;
}
.ant-radio {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
color: #04173F;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
white-space: nowrap;
outline: none;
display: inline-block;
position: relative;
line-height: 1;
vertical-align: text-bottom;
cursor: pointer;
}
.ant-radio-checked:after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
border: 1px solid #2196f3;
content: '';
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
visibility: hidden;
}
.ant-radio-inner {
position: relative;
top: 0;
left: 0;
display: block;
width: 16px;
height: 16px;
border-width: 1px;
border-style: solid;
border-radius: 50%;
border-color: rgba(0, 0, 0, 0.24);
background-color: transparent;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-radio-input {
position: absolute;
left: 0;
z-index: 1;
cursor: pointer;
opacity: 0;
top: 0;
bottom: 0;
right: 0;
}
.ant-radio-checked .ant-radio-inner {
border-color: #2196f3;
background-clip: content-box;
background-color: #2196f3;
padding: 2px;
}
.ant-radio-disabled.ant-radio-checked .ant-radio-inner {
border-color: rgba(0, 0, 0, 0.24);
background-color: rgba(0, 0, 0, 0.24);
}
.ant-radio-wrapper-disabled {
cursor: not-allowed;
}
.ant-radio-disabled {
cursor: not-allowed;
}
.ant-radio-disabled + span {
color: rgba(0, 0, 0, 0.54);
cursor: not-allowed;
}
span.ant-radio + * {
padding-left: 8px;
padding-right: 8px;
}
.ant-radio-button-wrapper {
margin: 0;
height: 34px;
line-height: 32px;
color: #04173F;
display: inline-block;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid #CCD3D9;
border-left: 0;
border-top-width: 1.02px;
background: transparent;
padding: 0 15px;
position: relative;
}
.ant-radio-button-wrapper a {
color: #04173F;
}
.ant-radio-button-wrapper > .ant-radio-button {
margin-left: 0;
display: block;
width: 0;
height: 0;
}
.ant-radio-group-large .ant-radio-button-wrapper {
height: 40px;
line-height: 38px;
font-size: 15px;
}
.ant-radio-group-small .ant-radio-button-wrapper {
height: 24px;
line-height: 22px;
padding: 0 7px;
}
.ant-radio-button-wrapper:not(:first-child)::before {
content: "";
display: block;
top: 0;
left: -1px;
width: 1px;
height: 100%;
position: absolute;
background-color: #CCD3D9;
}
.ant-radio-button-wrapper:first-child {
border-radius: 4px 0 0 4px;
border-left: 1px solid #CCD3D9;
}
.ant-radio-button-wrapper:last-child {
border-radius: 0 4px 4px 0;
}
.ant-radio-button-wrapper:first-child:last-child {
border-radius: 4px;
}
.ant-radio-button-wrapper .ant-radio-inner,
.ant-radio-button-wrapper input[type="checkbox"],
.ant-radio-button-wrapper input[type="radio"] {
opacity: 0;
width: 0;
height: 0;
}
.ant-radio-button-wrapper-checked {
background: transparent;
border-color: #2196f3;
color: #2196f3;
-webkit-box-shadow: -1px 0 0 0 #2196f3;
box-shadow: -1px 0 0 0 #2196f3;
z-index: 1;
}
.ant-radio-button-wrapper-checked::before {
background-color: #2196f3 ;
opacity: 0.1;
}
.ant-radio-button-wrapper-checked:first-child {
border-color: #2196f3;
-webkit-box-shadow: none ;
box-shadow: none ;
}
.ant-radio-button-wrapper-checked:active {
border-color: #1272cc;
-webkit-box-shadow: -1px 0 0 0 #1272cc;
box-shadow: -1px 0 0 0 #1272cc;
color: #1272cc;
}
.ant-radio-button-wrapper-disabled {
border-color: #CCD3D9;
background-color: #f5f5f5;
cursor: not-allowed;
color: rgba(0, 0, 0, 0.25);
}
.ant-radio-button-wrapper-disabled:first-child {
border-color: #CCD3D9;
background-color: #f5f5f5;
color: rgba(0, 0, 0, 0.25);
border-left-color: #CCD3D9;
}
.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
color: #fff;
background-color: #e6e6e6;
border-color: #CCD3D9;
-webkit-box-shadow: none;
box-shadow: none;
}