list.wxss 2.0 KB

123456789101112131415161718192021222324252627
  1. ::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
  2. .top-bar{ position: fixed; top:0; left: 0; right: 0; width: 100%; overflow: hidden; background: #fff; z-index: 10; border-top: 1rpx solid #E3E3E3; }
  3. .cat-list { white-space: nowrap; border-bottom: 1rpx solid #e3e3e3; background: #fff; }
  4. .cat-list .list-content{ white-space: nowrap; height: 100rpx; }
  5. .cat-list .cat-item { white-space: nowrap; display: inline-block; padding: 0 40rpx; height: 100%; }
  6. .cat-list .cat-item wx-text{ white-space: nowrap; border-bottom: 5rpx solid transparent; height: 100%; transform: translateY(1rpx); }
  7. .cat-list .cat-item.active wx-text{ color: #ff4544; border-bottom-color: #ff4544; }
  8. .sub-cat-list{ white-space: nowrap; border-bottom: 1rpx solid #e3e3e3; background: #fff; }
  9. .sub-cat-list wx-scroll-view{ height: 100rpx; }
  10. .sub-cat-list .list-content{ white-space: nowrap; height: 100rpx; padding: 0 20rpx; }
  11. .sub-cat-list .cat-item{ display: inline-block; height: 60rpx; padding: 0 20rpx; border: 1rpx solid #ff4544; margin: 20rpx; color: #ff4544; border-radius: 5rpx; }
  12. .sub-cat-list .cat-item wx-text{ height: 100%; }
  13. .sub-cat-list .cat-item.active{ background: #ff4544; color: #fff; }
  14. .top-bar ~ .goods-list{ padding-top: 106rpx; }
  15. .top-bar.height-bar ~ .goods-list{ padding-top: 206rpx; }
  16. .goods-item{ width: 365rpx; display: inline-block; position: relative; margin: 0 5rpx; margin-bottom: 10rpx; background: #fff; }
  17. .goods-item .goods-pic{ width: 100%; height: 365rpx; }
  18. .goods-item .goods-info { padding: 5rpx 0; }
  19. .goods-item .goods-name { white-space: nowrap; text-overflow:ellipsis; overflow:hidden; padding: 10rpx; display: block; text-align: center; }
  20. .goods-item .goods-price{ color: #f40; display: block; text-align: center; }
  21. .loading-bar{ visibility: hidden; }
  22. .loading-bar.active{ visibility: visible; }
  23. .sort-bar{ height: 100rpx; }
  24. .sort-item.active{ color: #ff4544; }
  25. .sort-item .sort-icon-box{ margin-left: 15rpx; }
  26. .sort-item .sort-icon-up, .sort-item .sort-icon-down{ width: 20rpx; height: 12rpx; display: block; }
  27. .sort-item .sort-icon-up{ margin-bottom: 5rpx; }