wux-weapp
Version:
一套组件化、可复用、易扩展的微信小程序 UI 组件库
54 lines (48 loc) • 1.35 kB
text/less
.button-style(@bg-color, @border-color: transparent, @color: #fff) {
border-color: @border-color ;
background-color: @bg-color ;
color: @color ;
}
.button-hover(@active-bg-color, @active-color: #fff) {
background-color: @active-bg-color ;
color: @active-color ;
}
.button-clear(@color) {
background-color: transparent ;
color: @color ;
}
.button-outline(@color, @bg-color: transparent) {
border-color: @color ;
background-color: @bg-color ;
color: @color ;
}
// reset button style for weapp
.button-reset(@color: inherit, @bg-color: transparent) {
padding: 0;
margin: 0;
border-radius: 0;
color: @color ;
background: @bg-color ;
font-size: inherit;
font-weight: normal;
line-height: inherit;
text-align: inherit;
text-decoration: none;
overflow: visible;
min-height: 0 ;
width: auto ;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
&::after {
display: block;
position: static;
top: auto;
left: auto;
width: auto;
height: auto;
border: none;
border-radius: 0;
transform: none;
transform-origin: 0 0;
}
}