antd-mobile
Version:
基于 React 的移动设计规范实现
91 lines (90 loc) • 1.92 kB
CSS
.hairline-remove-right-bottom {
border-bottom: 0;
}
.hairline-remove-right-bottom:after {
display: none;
}
.hairline-remove-right-bottom-bak:after {
display: none;
}
.hairline-remove-left-top:before {
display: none;
}
.am-radio {
position: relative;
display: inline-block;
vertical-align: middle;
width: 30px;
height: 30px;
}
.am-radio-inner {
position: absolute;
right: 0;
width: 30px;
height: 30px;
box-sizing: border-box;
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
.am-radio-inner:after {
position: absolute;
display: none;
top: -5px;
right: 10px;
z-index: 999;
width: 14px;
height: 28px;
border-style: solid;
border-width: 0 3px 3px 0;
content: '\0020';
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.am-radio-input {
position: absolute;
top: 0;
left: 0;
opacity: 0;
width: 100%;
height: 100%;
z-index: 2;
border: 0 none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.am-radio.am-radio-checked .am-radio-inner {
border-width: 0;
}
.am-radio.am-radio-checked .am-radio-inner:after {
display: block;
border-color: #108ee9;
}
.am-radio.am-radio-disabled.am-radio-checked .am-radio-inner:after {
display: block;
border-color: #bbb;
}
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra {
-webkit-box-flex: 0;
-ms-flex: 0;
flex: 0;
}
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88px;
overflow: visible;
}
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio-inner {
right: 30px;
top: 30px;
}
.am-list .am-list-item.am-radio-item.am-radio-item-disabled .am-list-content {
color: #bbb;
}