antd-mobile
Version:
基于 React 的移动设计规范实现
51 lines (50 loc) • 1.02 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-segment {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background-color: #fff;
border-width: 2px;
border-style: solid;
border-radius: 10px;
border-color: #108ee9;
overflow: hidden;
margin: 0 30px;
}
.am-segment-item {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
color: #108ee9;
font-size: 26px;
border-right: 2px solid #108ee9;
line-height: 1;
min-height: 54px;
}
.am-segment-item:last-child {
border-right: 0;
}
.am-segment-item-selected {
background: #108ee9;
color: #fff;
}