category.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .container{
  2. background: #f9f9f9;
  3. }
  4. .cate-nav{
  5. position: fixed;
  6. left:0;
  7. top:0;
  8. z-index: 1000;
  9. }
  10. .cate-nav-body{
  11. height: 84rpx;
  12. white-space: nowrap;
  13. background: #fff;
  14. border-top: 1px solid rgba(0,0,0,.15);
  15. overflow: hidden;
  16. }
  17. .cate-nav .item{
  18. display: inline-block;
  19. height: 84rpx;
  20. min-width: 130rpx;
  21. padding: 0 15rpx;
  22. }
  23. .cate-nav .item .name{
  24. display: block;
  25. height: 84rpx;
  26. padding: 0 20rpx;
  27. line-height: 84rpx;
  28. color: #333;
  29. font-size: 30rpx;
  30. width: auto;
  31. }
  32. .cate-nav .item.active .name{
  33. color: #ab2b2b;
  34. border-bottom: 2px solid #ab2b2b;
  35. }
  36. .cate-item{
  37. margin-top: 94rpx;
  38. height: auto;
  39. overflow: hidden;
  40. }
  41. .cate-item .h{
  42. height: 145rpx;
  43. width: 750rpx;
  44. display: flex;
  45. flex-direction: column;
  46. align-items: center;
  47. justify-content: center;
  48. }
  49. .cate-item .h .name{
  50. display: block;
  51. height: 35rpx;
  52. margin-bottom: 18rpx;
  53. font-size: 30rpx;
  54. color: #333;
  55. }
  56. .cate-item .h .desc{
  57. display: block;
  58. height: 24rpx;
  59. font-size: 24rpx;
  60. color: #999;
  61. }
  62. .cate-item .b{
  63. width: 750rpx;
  64. padding: 0 6.25rpx;
  65. height: auto;
  66. overflow: hidden;
  67. }
  68. .cate-item .b .item{
  69. float: left;
  70. background: #fff;
  71. width: 365rpx;
  72. margin-bottom: 6.25rpx;
  73. padding-bottom: 33.333rpx;
  74. height: auto;
  75. overflow: hidden;
  76. text-align: center;
  77. }
  78. .cate-item .b .item-b{
  79. margin-left: 6.25rpx;
  80. }
  81. .cate-item .item .img{
  82. width: 302rpx;
  83. height: 302rpx;
  84. }
  85. .cate-item .item .name{
  86. display: block;
  87. width: 365.625rpx;
  88. height: 35rpx;
  89. margin: 11.5rpx 0 22rpx 0;
  90. text-align: center;
  91. overflow: hidden;
  92. padding: 0 20rpx;
  93. font-size: 30rpx;
  94. color: #333;
  95. }
  96. .cate-item .item .price{
  97. display: block;
  98. width: 365.625rpx;
  99. height: 30rpx;
  100. text-align: center;
  101. font-size: 30rpx;
  102. color: #b4282d;
  103. }