index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @import '../style/var';
  2. @import '../style/mixins/ellipsis';
  3. .van-coupon {
  4. overflow: hidden;
  5. border-radius: 4px;
  6. margin: 0 15px 15px;
  7. background-color: @white;
  8. box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  9. &:active {
  10. background-color: @active-color;
  11. }
  12. &__content {
  13. display: flex;
  14. height: 100px;
  15. padding: 24px 0 0 15px;
  16. box-sizing: border-box;
  17. }
  18. p,
  19. h2 {
  20. margin: 0;
  21. .ellipsis();
  22. }
  23. h2 {
  24. height: 34px;
  25. font-weight: 500;
  26. line-height: 34px;
  27. }
  28. p {
  29. font-size: 12px;
  30. line-height: 16px;
  31. color: @gray-dark;
  32. }
  33. &__head {
  34. position: relative;
  35. min-width: 85px;
  36. padding-right: 10px;
  37. h2 {
  38. color: @red;
  39. font-size: 24px;
  40. span {
  41. &:not(:empty) {
  42. margin-left: 2px;
  43. }
  44. font-size: 50%;
  45. }
  46. }
  47. p {
  48. white-space: pre-wrap;
  49. }
  50. }
  51. &__body {
  52. flex: 1;
  53. position: relative;
  54. border-radius: 0 4px 4px 0;
  55. h2 {
  56. font-size: 16px;
  57. }
  58. }
  59. &__corner {
  60. top: 16px;
  61. right: 15px;
  62. position: absolute;
  63. .van-icon {
  64. border-color: @red;
  65. background-color: @red;
  66. }
  67. }
  68. &__description {
  69. padding: 7px 15px;
  70. border-top: 1px dashed @border-color;
  71. background-color: @background-color-light;
  72. }
  73. &--disabled {
  74. &:active {
  75. background-color: @white;
  76. }
  77. .van-coupon-item__content {
  78. height: 90px;
  79. }
  80. p,
  81. h2,
  82. span {
  83. color: @gray-dark;
  84. }
  85. }
  86. }