goods-category.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * 导航搜索、内容区域
  3. */
  4. .nav-search {
  5. padding-right: 250rpx;
  6. /* #ifdef MP-ALIPAY */
  7. padding-right: 255rpx;
  8. /* #endif */
  9. /* #ifdef H5 || MP-TOUTIAO || APP */
  10. padding-right: 20rpx;
  11. /* #endif */
  12. padding-bottom: 10px;
  13. }
  14. .category-content {
  15. height: calc(100vh - 68px);
  16. /* #ifdef H5 || APP */
  17. height: calc(100vh - 98px) !important;
  18. /* #endif */
  19. }
  20. /**
  21. * 左侧导航
  22. */
  23. .left-content-actual {
  24. padding-bottom: 120rpx;
  25. }
  26. .left-nav {
  27. width: 200rpx;
  28. }
  29. .left-nav .item {
  30. height: 80rpx;
  31. line-height: 80rpx;
  32. padding: 0 10rpx;
  33. border-left: 3px solid #fff;
  34. border-right: 3px solid #fff;
  35. }
  36. .left-nav .item:not(:last-child) {
  37. border-bottom: 1px solid #f1f1f1 !important;
  38. }
  39. .nav-active {
  40. background: #f5f5f5;
  41. border-width: 0 0 0 3px;
  42. border-right: 3px solid #f5f5f5 !important;
  43. font-weight: bold;
  44. }
  45. /**
  46. * 右侧内容
  47. */
  48. .right-container {
  49. width: calc(100% - 200rpx);
  50. height: 100%;
  51. top: 0;
  52. right: 0;
  53. background: #f5f5f5;
  54. }
  55. .content-item {
  56. display: -webkit-inline-box;
  57. width: calc(33.33% - 20rpx);
  58. }
  59. .content-item .content {
  60. padding: 15rpx 0;
  61. }
  62. .content-item .text {
  63. font-size: 28rpx;
  64. line-height: 46rpx;
  65. }
  66. .content-item .icon {
  67. width: 100%;
  68. height: 120rpx;
  69. }
  70. .model-one .content-item:nth-child(3n) {
  71. border-right: 0;
  72. }
  73. /**
  74. * 商品列表模式
  75. */
  76. .category-content.goods-model {
  77. padding-top: 150rpx;
  78. }
  79. .top-nav {
  80. height: 150rpx;
  81. top: 0;
  82. left: 0;
  83. z-index: 2;
  84. }
  85. .top-nav .icon-content {
  86. width: 80rpx;
  87. height: 80rpx;
  88. padding: 1px;
  89. }
  90. .top-nav .item {
  91. height: 180rpx;
  92. padding: 0 15rpx;
  93. }
  94. .right-content-actual {
  95. padding-bottom: 105rpx;
  96. }
  97. .goods-right-content {
  98. width: calc(100% - 200rpx);
  99. height: calc(100% - 150rpx);
  100. top: 150rpx;
  101. right: 0;
  102. background: #f5f5f5;
  103. }
  104. .goods-right-content .word-list {
  105. position: sticky;
  106. top: 0;
  107. right: 0;
  108. background: #f5f5f5;
  109. z-index: 1;
  110. padding: 0px 1px 20rpx 1px;
  111. }
  112. .goods-list .goods-img {
  113. width: 190rpx;
  114. height: 190rpx !important;
  115. border-top-right-radius: 0 !important;
  116. border-bottom-right-radius: 0 !important;
  117. }
  118. .goods-list .goods-base {
  119. width: calc(100% - 220rpx);
  120. }
  121. .goods-list .goods-base-content {
  122. min-height: 100rpx;
  123. }
  124. .goods-list .goods-base .simple-desc {
  125. line-height: 30rpx;
  126. min-height: 30rpx;
  127. max-height: 58rpx;
  128. }
  129. .goods-list .goods-base .sales-price {
  130. width: calc(100% - 320rpx);
  131. left: 210rpx;
  132. bottom: 10rpx;
  133. }
  134. .goods-list .goods-base .buy-opt {
  135. right: 10rpx;
  136. bottom: 6rpx;
  137. }
  138. .goods-list .goods-base .buy-number {
  139. min-width: 32rpx;
  140. }
  141. /**
  142. * 底部导航
  143. */
  144. .botton-nav {
  145. width: calc(100% - 40rpx);
  146. left: auto;
  147. bottom: 20rpx;
  148. line-height: 80rpx;
  149. z-index: 6;
  150. max-width: calc(800px - 40rpx);
  151. margin-left: 20rpx;
  152. }
  153. .botton-nav .cart .badge-icon {
  154. top: -20rpx;
  155. right: -2rpx;
  156. }
  157. .botton-nav .cart-total-price {
  158. width: calc(100% - 260rpx);
  159. }
  160. .botton-nav button {
  161. top: 0;
  162. right: 0;
  163. line-height: 88rpx;
  164. height: 88rpx;
  165. border: 0;
  166. /* #ifdef MP-QQ */
  167. padding-top: 0;
  168. padding-bottom: 0;
  169. /* #endif */
  170. }
  171. /**
  172. * 购物车
  173. */
  174. .cart-mask {
  175. left: 0;
  176. top: 0;
  177. background: rgb(0, 0, 0, 0.6);
  178. z-index: 5;
  179. }
  180. .cart-content {
  181. left: auto;
  182. bottom: 130rpx;
  183. width: calc(100% - 40rpx);
  184. z-index: 6;
  185. max-width: calc(800px - 40rpx);
  186. margin-left: 20rpx;
  187. }
  188. .cart-content .cart-list {
  189. max-height: 60vh;
  190. }
  191. .cart-content .cart-list .goods-img {
  192. width: 120rpx;
  193. height: 120rpx !important;
  194. }
  195. .cart-content .cart-list .goods-base {
  196. width: calc(100% - 140rpx);
  197. }
  198. .cart-content .cart-list .goods-base-content {
  199. min-height: 60rpx;
  200. }