antd-mobile
Version:
基于 React 的移动设计规范实现
94 lines (93 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-button {
display: block;
outline: 0 none;
-webkit-appearance: none;
box-sizing: border-box;
padding: 0;
text-align: center;
font-size: 36px;
height: 94px;
line-height: 94px;
border-radius: 10px;
color: #000;
background-color: #fff;
border: 1PX solid #ddd;
}
.am-button.am-button-active {
background-color: #ddd;
}
.am-button-primary {
color: #fff;
background-color: #108ee9;
border: 1PX solid #108ee9;
}
.am-button-primary.am-button-active {
background-color: #1284d6;
}
.am-button-ghost {
color: #108ee9;
background-color: transparent;
border: 1PX solid #108ee9;
}
.am-button-ghost.am-button-active {
color: #fff;
background-color: #1284d6;
border: 1PX solid #108ee9;
}
.am-button-inline {
display: inline-block;
padding: 0 30px;
}
.am-button-small {
font-size: 26px;
height: 60px;
line-height: 60px;
padding: 0 30px;
border-radius: 10px;
}
.am-button-warning {
color: #f86e21;
background-color: #fff;
}
.am-button.am-button-across,
.am-button-primary.am-button-across,
.am-button-ghost.am-button-across,
.am-button-warning.am-button-across {
border-radius: 0;
border-left: 0;
border-right: 0;
}
.am-button.am-button-disabled,
.am-button-primary.am-button-disabled,
.am-button-ghost.am-button-disabled,
.am-button-warning.am-button-disabled {
color: #bbb;
background-color: #ddd;
border: 0;
}
.am-button-icon {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.am-button > .am-icon {
margin-right: 0.5em;
}