index.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. @import '../style/var';
  2. @import '../style/mixins/clearfix';
  3. .van-sku {
  4. &-container {
  5. font-size: 14px;
  6. background: @white;
  7. overflow-y: visible;
  8. max-height: max-content; /* avoid androiod keyboard cover fields */
  9. }
  10. &-body {
  11. max-height: 350px;
  12. overflow-y: scroll;
  13. -webkit-overflow-scrolling: touch;
  14. &::-webkit-scrollbar {
  15. display: none;
  16. }
  17. }
  18. /* sku header */
  19. &-header {
  20. margin-left: 15px;
  21. &__img-wrap {
  22. position: relative;
  23. float: left;
  24. margin-top: -10px;
  25. width: 80px;
  26. height: 80px;
  27. background: @background-color;
  28. border-radius: 2px;
  29. img {
  30. position: absolute;
  31. margin: auto;
  32. top: 0;
  33. left: 0;
  34. right: 0;
  35. bottom: 0;
  36. max-width: 100%;
  37. max-height: 100%;
  38. }
  39. }
  40. &__goods-info {
  41. padding: 10px 60px 10px 10px;
  42. min-height: 82px;
  43. overflow: hidden;
  44. box-sizing: border-box;
  45. }
  46. }
  47. &__goods-name {
  48. font-size: 12px;
  49. }
  50. &__price-symbol {
  51. vertical-align: middle;
  52. }
  53. &__price-num {
  54. font-size: 16px;
  55. vertical-align: middle;
  56. }
  57. &__goods-price {
  58. color: @red;
  59. margin-top: 10px;
  60. vertical-align: middle;
  61. }
  62. &__close-icon {
  63. top: 10px;
  64. right: 15px;
  65. font-size: 20px;
  66. color: @gray-dark;
  67. position: absolute;
  68. text-align: center;
  69. }
  70. &-group-container {
  71. margin-left: 15px;
  72. padding: 12px 0 2px;
  73. &--hide-soldout {
  74. .van-sku-row__item--disabled {
  75. display: none;
  76. }
  77. }
  78. }
  79. /* sku row */
  80. &-row {
  81. margin: 0 15px 10px 0;
  82. &:last-child {
  83. margin-bottom: 0;
  84. }
  85. &__title {
  86. padding-bottom: 10px;
  87. }
  88. &__item {
  89. display: inline-block;
  90. padding: 5px 9px;
  91. margin: 0 10px 10px 0;
  92. height: 28px;
  93. min-width: 52px;
  94. line-height: 16px;
  95. font-size: 12px;
  96. color: @text-color;
  97. text-align: center;
  98. border: 1px solid @gray-dark;
  99. border-radius: 3px;
  100. box-sizing: border-box;
  101. &--active {
  102. color: @white;
  103. border-color: @red;
  104. background: @red;
  105. }
  106. &--disabled {
  107. background: @active-color;
  108. border-color: @border-color;
  109. color: @gray;
  110. }
  111. }
  112. }
  113. /* sku stepper */
  114. &-stepper {
  115. &-stock {
  116. padding: 12px 0;
  117. margin-left: 15px;
  118. }
  119. &-container {
  120. height: 30px;
  121. margin-right: 20px;
  122. }
  123. }
  124. &__stepper {
  125. float: right;
  126. &-title {
  127. float: left;
  128. line-height: 30px;
  129. }
  130. }
  131. &__stock {
  132. display: inline-block;
  133. margin-right: 10px;
  134. color: @gray-dark;
  135. font-size: 12px;
  136. }
  137. &__quota {
  138. display: inline-block;
  139. color: @red;
  140. font-size: 12px;
  141. }
  142. &-messages {
  143. padding-bottom: 10px;
  144. background: @background-color;
  145. &__image-cell {
  146. .van-cell__title {
  147. max-width: 90px;
  148. }
  149. .van-cell__value {
  150. text-align: left;
  151. }
  152. }
  153. }
  154. &-img-uploader {
  155. display: inline-block;
  156. &__header {
  157. color: @text-color;
  158. padding: 0 10px;
  159. font-size: 12px;
  160. line-height: 24px;
  161. border-radius: 3px;
  162. border: 1px solid @border-color;
  163. .van-icon {
  164. top: 3px;
  165. margin-right: 5px;
  166. font-size: 14px;
  167. }
  168. }
  169. &__img {
  170. height: 60px;
  171. width: 60px;
  172. float: left;
  173. margin: 10px 10px 0 0;
  174. position: relative;
  175. border: 1px solid @border-color;
  176. img {
  177. max-width: 100%;
  178. max-height: 100%;
  179. top: 50%;
  180. position: relative;
  181. transform: translateY(-50%);
  182. }
  183. }
  184. &__delete {
  185. position: absolute;
  186. color: @red;
  187. top: -12px;
  188. right: -14px;
  189. z-index: 1;
  190. padding: 6px;
  191. &::before {
  192. border-radius: 14px;
  193. background-color: @white;
  194. }
  195. }
  196. &__uploading {
  197. position: absolute;
  198. top: 0;
  199. left: 0;
  200. right: 0;
  201. bottom: 0;
  202. margin: auto;
  203. width: 20px;
  204. height: 20px;
  205. }
  206. }
  207. /* sku actions */
  208. &-actions {
  209. display: flex;
  210. }
  211. }