@perfma/heaven
Version:
An UI Framework base [Ant Design V4](https://ant.design/components/overview-cn/) for React.
64 lines (55 loc) • 1.45 kB
text/less
@import '../style/vars.less';
.@{ant-prefix}-radio-button {
&-sub {
border-radius: 4px ;
border-width: 1px ;
margin-right: 14px;
overflow: hidden;
&::before {
display: none ;
}
.@{ant-prefix}-radio-button-checked {
&::before {
content: '';
position: absolute;
display: block ;
width: 0 ;
height: 0 ;
border: 11px solid;
border-color: transparent transparent transparent @blue-base;
right: -11px ;
bottom: -11px ;
left: auto ;
top: auto ;
padding: 0 ;
background: none ;
transform: rotate(45deg);
}
&::after {
content: '';
position: absolute;
display: block;
width: 6px;
height: 4px;
right: 2px;
bottom: 3px;
border-left: 1px solid #fff;
border-bottom: 1px solid #fff;
transform: rotate(-45deg);
}
}
}
&-wrapper-disabled:not(&-checked) {
color: @text-color-blue ;
background-color: #fff ;
opacity: 0.5;
}
&-wrapper-disabled {
&.@{ant-prefix}-radio-button-wrapper-checked{
color: @blue-base ;
background-color: #fff ;
border-color: @blue-base ;
opacity: 0.5;
}
}
}