search.wxss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* pages/search/search.wxss */
  2. .base_search {
  3. width: 80%;
  4. height: 80rpx;
  5. background-color: #E8E7E7;
  6. border-radius: 20rpx;
  7. }
  8. .search_text {
  9. float: left;
  10. padding-left: 95rpx;
  11. padding-top: 15rpx;
  12. }
  13. .search_button {
  14. float: right;
  15. margin-top: -64rpx;
  16. margin-right: 20rpx;
  17. font-size: 35rpx;
  18. color: #494545;
  19. }
  20. /* 搜索结果展示 */
  21. .searchResult {
  22. width: 100%;
  23. height: 100%;
  24. position: absolute;
  25. margin-right: -20rpx;
  26. z-index: 100;
  27. }
  28. .preResult {
  29. width: 95%;
  30. height: 80rpx;
  31. padding-top: 30rpx;
  32. padding-left: 10rpx;
  33. padding-right: 10rpx;
  34. background-color: #F5F5F5;
  35. border-bottom: 2px solid #eee;
  36. }
  37. /* 搜索历史 */
  38. .history {
  39. width: 100%;
  40. height: 200rpx;
  41. margin-top: 20rpx;
  42. color: #494545;
  43. }
  44. .history_title {
  45. float: left;
  46. margin-left: 8rpx;
  47. }
  48. .empty {
  49. margin-left: 580rpx;
  50. }
  51. .scroll {
  52. height: 150rpx;
  53. }
  54. .history_show {
  55. width: 100%;
  56. height: 100rpx;
  57. margin-top: 20rpx;
  58. }
  59. .history_card {
  60. display: inline-block;
  61. width: fit-content;
  62. margin-left: 20rpx;
  63. margin-top: 4rpx;
  64. padding: 0 10rpx;
  65. background-color: #E8E7E7;
  66. border-radius: 20rpx;
  67. line-height: 65rpx;
  68. }
  69. /* 猜你喜欢 */
  70. .refresh {
  71. float: right;
  72. margin-top: -35rpx;
  73. }
  74. .commodity {
  75. margin-top: 20rpx;
  76. display: flex;
  77. flex-wrap: wrap;
  78. }
  79. .commodity_card {
  80. top: 10rpx;
  81. position: relative;
  82. display: flex;
  83. width: 46%;
  84. height: 380rpx;
  85. padding: 10rpx;
  86. justify-content: center;
  87. }
  88. .commodity_img {
  89. height: 350rpx;
  90. border-radius: 20rpx;
  91. }
  92. .avater {
  93. position: absolute;
  94. top: -160rpx;
  95. left: 15rpx;
  96. width: 150rpx;
  97. color: white;
  98. }