Files
Smart-Farm/uniapp/uni-app/styles/button.scss
2025-12-22 17:13:05 +08:00

82 lines
1.3 KiB
SCSS

/* button样式修改 */
button {
font-size: 30rpx;
border-radius: 15rpx;
line-height: 96rpx;
padding: 0rpx;
margin: 0rpx;
color: #fff;
background: transparent;
}
button::after {
border-color: transparent;
border-radius: 30rpx;
}
button.plain::after {
border-color: currentColor;
}
button[type='grey'] {
color: #999999;
background: #EEEEEE;
}
/* 商品按钮 */
button.goods-btn {
width: 172rpx;
height: 58rpx;
line-height: 58rpx;
color: #777777;
background: #FEFEFE;
border-radius: 29rpx;
font-size: 28rpx;
border: 1rpx solid #C7C7C7;
transform: rotateZ(360deg);
font-weight: bold;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 30rpx;
}
/* 订单按钮 */
button.order {
min-width: 100rpx;
padding: 0 20rpx;
height: 44rpx;
line-height: 44rpx;
color: #666666;
background: #fff;
font-size: 24rpx;
font-weight: bold;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 30rpx;
border-radius: 5rpx;
transform: rotateZ(360deg)
}
/* 按钮按下 */
.button-hover {
opacity: 0.6;
}
/* 清除按钮默认样式 */
.clear-btn {
margin: 0;
padding: 0;
background: transparent;
border-radius: 0rpx;
line-height: 1.5;
border: none;
text-align: left;
color: #333;
}
.clear-btn::after {
border: none;
}