index.less 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @import './var.less';
  2. :root {
  3. --van-coupon-list-background-color: @coupon-list-background-color;
  4. --van-coupon-list-field-padding: @coupon-list-field-padding;
  5. --van-coupon-list-exchange-button-height: @coupon-list-exchange-button-height;
  6. --van-coupon-list-close-button-height: @coupon-list-close-button-height;
  7. --van-coupon-list-empty-tip-color: @coupon-list-empty-tip-color;
  8. --van-coupon-list-empty-tip-font-size: @coupon-list-empty-tip-font-size;
  9. --van-coupon-list-empty-tip-line-height: @coupon-list-empty-tip-line-height;
  10. }
  11. .van-coupon-list {
  12. position: relative;
  13. height: 100%;
  14. background: var(--van-coupon-list-background-color);
  15. &__field {
  16. padding: var(--van-coupon-list-field-padding);
  17. .van-field__body {
  18. height: 34px;
  19. padding-left: var(--van-padding-sm);
  20. line-height: 34px;
  21. background: var(--van-gray-1);
  22. border-radius: 17px;
  23. &::placeholder {
  24. color: var(--van-text-color-3);
  25. }
  26. }
  27. .van-field__clear {
  28. margin-right: 0;
  29. }
  30. }
  31. &__exchange-bar {
  32. display: flex;
  33. align-items: center;
  34. background-color: var(--van-background-color-light);
  35. }
  36. &__exchange {
  37. flex: none;
  38. height: var(--van-coupon-list-exchange-button-height);
  39. font-size: var(--van-font-size-lg);
  40. line-height: calc(var(--van-coupon-list-exchange-button-height) - 2px);
  41. border: 0;
  42. }
  43. .van-tabs__wrap {
  44. box-shadow: 0 6px 12px -12px var(--van-gray-6);
  45. }
  46. &__list {
  47. box-sizing: border-box;
  48. padding: var(--van-padding-md) 0 var(--van-padding-lg);
  49. overflow-y: auto;
  50. -webkit-overflow-scrolling: touch;
  51. &--with-bottom {
  52. padding-bottom: 50px;
  53. }
  54. }
  55. &__bottom {
  56. position: absolute;
  57. bottom: 0;
  58. left: 0;
  59. z-index: 999;
  60. box-sizing: border-box;
  61. width: 100%;
  62. padding: 5px var(--van-padding-md);
  63. font-weight: var(--van-font-weight-bold);
  64. background-color: var(--van-background-color-light);
  65. }
  66. &__close {
  67. height: var(--van-coupon-list-close-button-height);
  68. }
  69. &__empty-tip {
  70. color: var(--van-coupon-list-empty-tip-color);
  71. font-size: var(--van-coupon-list-empty-tip-font-size);
  72. line-height: var(--van-coupon-list-empty-tip-line-height);
  73. }
  74. }