index.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .recommend {
  2. .header {
  3. position: relative;
  4. .headerBg {
  5. position: absolute;
  6. z-index: -2;
  7. width: 100%;
  8. height: 100%;
  9. background-color: white;
  10. }
  11. .swiper {
  12. margin: 0 auto;
  13. width: 710rpx;
  14. height: 216rpx;
  15. border-radius: 20rpx;
  16. overflow: hidden;
  17. box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  18. .swiper-item {
  19. width: 100%;
  20. height: 100%;
  21. border-radius: 20rpx;
  22. overflow: hidden;
  23. }
  24. }
  25. }
  26. .scrollBox {
  27. width: 100%;
  28. .firstClassify {
  29. padding: 24rpx 0rpx 20rpx;
  30. width: 100%;
  31. white-space: nowrap;
  32. background-color: white;
  33. .firstBox {
  34. text-align: center;
  35. display: inline-block;
  36. width: 98rpx;
  37. padding: 0rpx 20rpx;
  38. .icon {
  39. width: 60rpx;
  40. height: 58rpx;
  41. }
  42. .name {
  43. margin-top: 6rpx;
  44. font-weight: bold;
  45. font-size: 24rpx;
  46. }
  47. }
  48. }
  49. }
  50. .demo-text-1 {
  51. background-color: rebeccapurple
  52. }
  53. .demo-text-2 {
  54. background-color: rgb(100, 153, 51)
  55. }
  56. .demo-text-3 {
  57. background-color: rgb(228, 119, 46)
  58. }
  59. .selectType {
  60. padding: 30rpx 15rpx 30rpx 26rpx;
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. .type {
  65. padding: 14rpx 0rpx;
  66. width: 200rpx;
  67. box-sizing: border-box;
  68. text-align: center;
  69. border: 1rpx solid #9f9f9fa4;
  70. border-radius: 50rpx;
  71. color: #1A1A1A;
  72. font-size: 24rpx;
  73. }
  74. .currentType {
  75. border: none;
  76. box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  77. background-color: white;
  78. font-weight: bold;
  79. }
  80. .search {
  81. padding: 8rpx 20rpx;
  82. text-align: center;
  83. border: 1rpx solid #9f9f9fa4;
  84. border-radius: 50rpx;
  85. .searchImg {
  86. width: 26rpx;
  87. height: 26rpx;
  88. }
  89. }
  90. }
  91. }