| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- @import "../../base/fn.less";
- .weui-btn{
- margin-top: @weuiBtnDefaultGap;
- &:first-child{
- margin-top: 0;
- }
- }
- .weui-btn-area{
- margin: @weuiCellsMarginTop @weuiBtnDefaultGap .3em;
- }
- button {
- @colorButton: #FE6A0F;
- display: flex;
- justify-content:center;
- align-content:center;
- align-items:center;
- line-height: initial;
- border-radius: 4em;
- background-image: -webkit-gradient(
- linear,
- 5% 0%,
- 80% 100%,
- from(#FE6A0F),
- to(#FE6A0F)
- // from(#4AF3F9),
- // to(#2475F1)
- );
- color: #fff;
- font-weight: bold;
- &:not([size='mini']){
- font-weight: bold;
- height: 80rpx;
- }
-
- // box-shadow: 2rpx 2rpx 10rpx 0 rgba(#2475F1, .53);
- // 取除微信默认描边
- &:after{ border: none; }
-
- &,
- &[type=primary]{
- &[plain] {
- color: #F16E24;
- border: 1rpx solid currentColor;
- background-color: transparent;
- }
- }
- &[type=default]{
- color: #fff;
- &[plain] {
- color: #33393E;
- border: 1rpx solid #B9BEC2;
- background: transparent;
- &.button-hover{
- // border-color: darken( #B9BEC2, 10% )
- border-color: lighten(#B9BEC2, 5% )
- }
- }
- }
- // &[size=mini]{
- // font-size: 12px;
- // font-weight: lighter;
- // }
- &[disabled]{
- background-image: -webkit-gradient(
- linear,
- 22% 0%,
- 30% 100%,
- from(#edeff3),
- to(#d6dbe2)
- );
- &:not([plain]){
- color: #fff!important;
- }
- &[plain] {
- color: #B9BEC2;
- border-color: lighten(#B9BEC2, 5% )
- }
- // box-shadow: 2rpx 2rpx 10rpx 0 rgba(214, 219, 226, .53);
- }
- &.button-hover{
- border-color: currentColor;
- opacity: .5;
- &[plain]{
- color: @colorButton;
- border-color: currentColor;
- }
- }
- &[plain]{
- background: transparent;
- }
- }
|