Ver código fonte

button样式

DESKTOP-2S67K1S\31396 2 anos atrás
pai
commit
007bfa4b43
1 arquivos alterados com 8 adições e 3 exclusões
  1. 8 3
      src/common/button.scss

+ 8 - 3
src/common/button.scss

@@ -1,9 +1,9 @@
-button{
+button {
   height: 100rpx;
   line-height: 100rpx;
 }
 
-button::after{
+button::after {
   content: none
 }
 
@@ -12,11 +12,16 @@ uni-button[type=submit] {
   color: #FFF;
 }
 
+uni-button[type=buy] {
+  background-image: linear-gradient(#F3CF97, #F6E5C4);
+  color: #7C541A;
+}
+
 uni-button[circle] {
   border-radius: 50rpx;
 }
 
-uni-slider{
+uni-slider {
   margin: 0;
   width: 100%;
 }