No Description

PriceOptions.less 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @item_width: 70px;
  2. @item_margin: 6px;
  3. .options{
  4. padding: 20px 50px;
  5. border-bottom: 1px dashed #00000017;
  6. p {
  7. font-size:14px;
  8. font-weight:400;
  9. color:rgba(97,106,121,1);
  10. margin-bottom: 20px;
  11. }
  12. .infoItem {
  13. padding-right: 0;
  14. .priceItem {
  15. background:rgba(243,243,243,0.14);
  16. border-radius:4px;
  17. border:1px solid rgba(207,207,207,1);
  18. font-size:14px;
  19. font-weight:600;
  20. color:rgba(97,106,121,1);
  21. display: inline-block;
  22. text-align: center;
  23. vertical-align: top;
  24. height: 30px;
  25. width: @item_width;
  26. line-height: 30px;
  27. cursor: pointer;
  28. margin: @item_margin;
  29. &.active {
  30. background:rgba(255,50,102,0.1);
  31. border-radius:4px;
  32. border:1px solid rgba(255,50,102,1);
  33. color:rgba(97,106,121,1);
  34. }
  35. }
  36. .priceInput {
  37. display: inline-block;
  38. min-width: 70px;
  39. width: auto;
  40. margin: @item_margin;
  41. text-align: center;
  42. }
  43. button {
  44. border-top-left-radius: 0;
  45. border-bottom-left-radius: 0;
  46. height: 30px;
  47. width: 50px;
  48. vertical-align: top;
  49. padding: 0 5px;
  50. }
  51. .rate {
  52. margin-left: 10px;
  53. i {
  54. margin-right: 5px;
  55. color: #1790FF;
  56. }
  57. }
  58. }
  59. &.small {
  60. @item_width: 72px;
  61. @item_margin: 19px;
  62. padding: 0 0 12px 0;
  63. // padding: 12px 20px;
  64. border-bottom: none;
  65. p {
  66. margin-bottom: 8px;
  67. }
  68. .infoItem {
  69. text-align: center;
  70. .priceItem {
  71. border-radius:6px;
  72. height: 32px;
  73. width: @item_width;
  74. margin: 0 0 (@item_margin - 7px) @item_margin;
  75. }
  76. .priceItem:first-child{
  77. margin: 0 0 (@item_margin - 7px) 0px;
  78. }
  79. .priceInput {
  80. display: block;
  81. width: @item_width*3+@item_margin*2;
  82. border-radius: 6px;
  83. height: 32px;
  84. }
  85. }
  86. }
  87. }
  88. @media (max-width: 768px) {
  89. .options {
  90. padding: 20px 20px;
  91. p{
  92. font-size:14px;
  93. font-weight:400;
  94. color:rgba(97,106,121,1);
  95. }
  96. .infoItem {
  97. padding-right: 0;
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: center;
  101. .priceBtn{
  102. display: flex;
  103. justify-content: space-between;
  104. }
  105. .priceItem {
  106. display: inline-block;
  107. background-color: #fff;
  108. width:74px;
  109. height:36px;
  110. line-height: 36px;
  111. border-radius:6px;
  112. border:1px solid rgba(207,207,207,1);
  113. &.active {
  114. background-color: #fff;
  115. color: #FF3266FF;
  116. border-radius:4px;
  117. border:1px solid rgba(255,50,102,1);
  118. }
  119. }
  120. .priceInput {
  121. border-radius:6px;
  122. height: 36px;
  123. width: auto;
  124. }
  125. }
  126. }
  127. }