coupon.wxss 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* common.wxss */
  2. /* @import "/utils/common.wxss"; */
  3. .diy-coupon {
  4. white-space: nowrap;
  5. font-size: 0;
  6. }
  7. .diy-coupon .coupon-item {
  8. width: 350rpx;
  9. height: 130rpx;
  10. position: relative;
  11. color: #fff;
  12. overflow: hidden;
  13. box-sizing: border-box;
  14. }
  15. .diy-coupon .coupon-item .before {
  16. content: "";
  17. position: absolute;
  18. z-index: 1;
  19. width: 40rpx;
  20. height: 40rpx;
  21. top: 50%;
  22. left: -.8rem;
  23. -webkit-transform: translateY(-50%);
  24. transform: translateY(-50%);
  25. -webkit-border-radius: 80%;
  26. border-radius: 80%;
  27. background-color: #fff;
  28. }
  29. .diy-coupon .coupon-wrapper {
  30. display: inline-block;
  31. padding: 0 12rpx;
  32. }
  33. .diy-coupon .coupon-item .left-content {
  34. position: relative;
  35. width: 70%;
  36. height: 100%;
  37. background-color: #e5004f;
  38. float: left;
  39. }
  40. .diy-coupon .coupon-item .left-content .content-top .price {
  41. font-size: 44rpx;
  42. }
  43. .diy-coupon .coupon-item.color__blue .left-content {
  44. background: linear-gradient(-125deg, #57bdbf, #2f9de2);
  45. }
  46. .diy-coupon .coupon-item.color__red .left-content {
  47. background: linear-gradient(-128deg, #ff6d6d, #ff3636);
  48. }
  49. .diy-coupon .coupon-item.color__violet .left-content {
  50. background: linear-gradient(-113deg, #ef86ff, #b66ff5);
  51. }
  52. .diy-coupon .coupon-item.color__yellow .left-content {
  53. background: linear-gradient(-141deg, #f7d059, #fdb054);
  54. }
  55. .diy-coupon .coupon-item.color__gray .left-content {
  56. background: linear-gradient(-113deg, #bdbdbd, #a2a1a2);
  57. }
  58. .diy-coupon .coupon-item.color__gray .right-receive {
  59. background-color: #949494;
  60. }
  61. .diy-coupon .coupon-item .right-receive {
  62. width: 30%;
  63. height: 100%;
  64. background-color: #4e4e4e;
  65. text-align: center;
  66. float: right;
  67. }
  68. .diy-coupon .coupon-item .right-receive {
  69. font-size: 26rpx;
  70. }