cat.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .cat-list{ background: #f7f7f7; }
  2. .cat-list .cat-item{ height: 106rpx; text-align: center; border-left: 8rpx solid transparent; }
  3. .cat-list .cat-item.active{ background: #fff; color: #ff4544; border-left-color: #ff4544; }
  4. .cat-list .cat-item wx-image{ margin-right: 16rpx; }
  5. .cat-list .cat-item .cat-name{ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  6. .sub-cat-box{ background: #fff; }
  7. .sub-cat-header{ height: 106rpx; padding-left: 24rpx; margin-bottom: 0rpx; transition: background 200ms; }
  8. .sub-cat-header.active{ background: rgba(255, 69, 68, 0.07); }
  9. .sub-cat-header > wx-view{ height: 100%; }
  10. .sub-cat-header wx-navigator{ height: 100%; padding: 0 24rpx; }
  11. .sub-cat-header wx-navigator wx-image{ margin-left: 14rpx; }
  12. .sub-cat-list{ flex-wrap:wrap; }
  13. .sub-cat-list .sub-cat-item{ width: 33%; text-align: center; margin-bottom: 40rpx; }
  14. .sub-cat-list .sub-cat-item wx-image{ margin-bottom: 8rpx; }
  15. .sub-cat-list .sub-cat-item wx-view{ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  16. .cat-block{ height: 160rpx; background: #f7f7f7; margin-bottom: 20rpx; }
  17. .cat-block > .flex-grow-1{ padding: 32rpx; }
  18. .cat-block > .flex-grow-0{ padding: 0 20rpx 0 0; }
  19. .cat-block .cat-image{ width: 128rpx; height: 128rpx; }
  20. .cat-block-list.big .cat-block{ height: 212rpx; }
  21. .cat-block-list.big .cat-block>.flex-grow-1{ padding: 48rpx; }
  22. .cat-block-list.big .cat-block>.flex-grow-0{ padding: 0 32rpx 0 0; }
  23. .cat-block-list.big .cat-block .cat-image{ width: 164rpx; height: 164rpx; }
  24. .cat-small-style{ -webkit-flex-wrap: wrap; flex-wrap: wrap; padding-bottom:115rpx; }
  25. .device_iphone_x ~ .after-navber .cat-small-style{ padding-bottom:165rpx; }
  26. .cat-small-style > .flex-grow-0{ text-align: center; margin: 40rpx 0; }
  27. .cat-small-style.cat-num-3 > .flex-grow-0{ width: 33.333333%; }
  28. .cat-small-style.cat-num-4 > .flex-grow-0{ width: 25%; }
  29. .cat-small-style .cat-item .cat-icon{ width: 92rpx; height: 92rpx; }
  30. .cat-small-style .cat-item .cat-name{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10rpx; }
  31. .advert{ }
  32. .advert wx-image{ width: 500rpx; height: 184rpx; }
  33. .search-icon wx-image{ width: 68rpx; height: 68rpx; }
  34. .search-icon{ height: 92rpx; padding: 0 24rpx; }
  35. .scroll-view-x{ background-color: #fff; white-space: nowrap; top: 0; z-index: 9999; border-bottom:1rpx solid #e2e2e2; height: 100rpx; }
  36. .scroll-view-x .scroll-view-item{ display:inline-block; margin:22rpx 17rpx 21rpx 17rpx; padding: 0rpx 26rpx; color:#666666; height:58rpx; line-height: 58rpx; white-space: nowrap; }
  37. .scroll-view-y{ border-top:1px solid #cccccc; border-bottom:1px solid #cccccc; }
  38. .scroll-view-x .active{ color: #ffffff; border-radius: 29rpx; background-color: #ff4544; height: 58rpx; }
  39. .view-item1 { border:1rpx solid #cccccc; color:#666666; height:56rpx; margin:24rpx 0rpx 0rpx 24rpx; border-radius:28rpx; padding:0rpx 20rpx; }
  40. .view-item2 { border:1rpx solid #ff4544; color:#ff4544; }
  41. .goods-item{ width: 365rpx; display: inline-block; position: relative; margin: 0 5rpx; margin-bottom: 10rpx; background: #fff; }
  42. .goods-item .goods-pic{ width: 100%; height: 365rpx; }
  43. .goods-item .goods-info { padding: 5rpx 0; }
  44. .goods-item .goods-name { white-space: nowrap; text-overflow:ellipsis; overflow:hidden; padding: 10rpx; display: block; text-align: center; }
  45. .goods-item .goods-price{ color: #f40; display: block; text-align: center; }
  46. .loading-bar{ visibility: hidden; }
  47. .loading-bar.active{ visibility: visible; }
  48. .cat-num-3 { font-size: 9pt; }