index.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .search-box {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. padding: 20rpx;
  7. z-index: 100;
  8. }
  9. .ipt-box {
  10. position: relative;
  11. background-color: #f0f0f0;
  12. height: 60rpx;
  13. line-height: 60rpx;
  14. border-radius: 28rpx;
  15. color: #acacac;
  16. display: flex;
  17. flex: 1;
  18. margin-right: 20rpx;
  19. align-items: center;
  20. }
  21. .ipt-box .ipt {
  22. flex: 1;
  23. line-height: 60rpx;
  24. }
  25. .ipt-box .iconfont {
  26. margin-right: 12rpx;
  27. font-size: 34rpx;
  28. margin-left: 20rpx;
  29. }
  30. .search-fav {
  31. text-align: center;
  32. line-height: 1;
  33. color: #81838d;
  34. }
  35. .search-fav .iconfont {
  36. font-size: 36rpx;
  37. }
  38. /* 幻灯片 */
  39. .swipe {
  40. height: 320rpx;
  41. }
  42. .swiper-content {
  43. width: 750rpx;
  44. height: 320rpx;
  45. border-radius: 12rpx;
  46. }
  47. .swiper-content swiper-item {
  48. border-radius: 12rpx;
  49. margin-right: 20rpx;
  50. display: flex;
  51. justify-content: flex-start;
  52. }
  53. .swiper-content swiper-item:last-child {
  54. margin: 0;
  55. }
  56. .swiper-content .banner {
  57. width: 710rpx;
  58. height: 320rpx;
  59. margin: 0 20rpx;
  60. display: block;
  61. border-radius: 12rpx;
  62. position: relative;
  63. overflow: hidden;
  64. }
  65. .swiper-content .banner .banner-img {
  66. width: 710rpx;
  67. height: 320rpx;
  68. border-radius: 12rpx;
  69. display: block;
  70. overflow: hidden;
  71. }
  72. .cate-title {
  73. position: relative;
  74. padding: 30rpx 20rpx 20rpx 40rpx;
  75. font-size: 34rpx;
  76. }
  77. .cate-title::before {
  78. content: "";
  79. position: absolute;
  80. top: 35rpx;
  81. bottom: 20rpx;
  82. left: 20rpx;
  83. border-left: 8rpx solid #f75451;
  84. }
  85. ::-webkit-scrollbar {
  86. display: none;
  87. width: 0;
  88. height: 0;
  89. color: transparent;
  90. }
  91. .sticky-content.Fixed {
  92. position: fixed;
  93. top: 100rpx;
  94. z-index: 100;
  95. transition: top 0.3s ease-in;
  96. left: 0;
  97. right: 0;
  98. }
  99. .sticky-content .iconfont {
  100. padding: 12rpx 20rpx;
  101. font-weight: bold;
  102. color: #5e6062;
  103. box-shadow: -5px 0 5px -5px #ccc;
  104. margin-left: -5px;
  105. }