search-page.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /* pages/search-page/search-page.wxss */
  2. /* 搜索栏 */
  3. .search-bar {
  4. width: 100%;
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. color: #777;
  9. background: #fff;
  10. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.07);
  11. z-index: 3;
  12. }
  13. .search-bar .search-box {
  14. position: relative;
  15. height: 60rpx;
  16. background: #f7f7f7;
  17. z-index: 999;
  18. width: 80%;
  19. margin-left: 70rpx;
  20. border-radius: 50rpx;
  21. margin: 20rpx 0 20rpx 20rpx;
  22. }
  23. .sear-input {
  24. height: 60rpx;
  25. border-radius: 50rpx;
  26. border: 0;
  27. margin: 0 30rpx 0 64rpx;
  28. line-height: 48rpx;
  29. vertical-align: top;
  30. background: #f7f7f7;
  31. font-size: 28rpx;
  32. }
  33. .search-bar .search-hint {
  34. font-size: 28rpx;
  35. position: absolute;
  36. right: 30rpx;
  37. top: 31rpx;
  38. color: #eb2444;
  39. }
  40. .search-bar .search-box .search-img {
  41. width: 32rpx;
  42. height: 32rpx;
  43. position: absolute;
  44. left: 20rpx;
  45. top: 14rpx;
  46. display: block;
  47. }
  48. /* 热门搜索&搜索历史 */
  49. .search-display {
  50. background: #fff;
  51. padding: 20rpx;
  52. margin-top: 100rpx;
  53. }
  54. .search-display .title-text {
  55. padding: 30rpx 0;
  56. font-size: 30rpx;
  57. color: #666;
  58. }
  59. .hot-search .hot-search-tags {
  60. overflow: hidden;
  61. font-size: 26rpx;
  62. text-align: center;
  63. padding-bottom: 30rpx;
  64. }
  65. .hot-search .hot-search-tags .tags {
  66. display: block;
  67. max-width: 100%;
  68. overflow: hidden;
  69. float: left;
  70. border-radius: 50rpx;
  71. white-space: nowrap;
  72. text-overflow: ellipsis;
  73. background-color: #f2f2f2;
  74. box-sizing: border-box;
  75. margin-right: 20rpx;
  76. margin-bottom: 20rpx;
  77. padding: 10rpx 30rpx;
  78. }
  79. /* 搜索历史 */
  80. .history-search .title-text.history-line {
  81. position: relative;
  82. border-top: 2rpx solid #e1e1e1;
  83. }
  84. .history-search .his-search-tags {
  85. overflow: hidden;
  86. font-size: 26rpx;
  87. text-align: center;
  88. display: inline-block;
  89. }
  90. .history-search .his-search-tags .tags {
  91. max-width: 300rpx;
  92. overflow: hidden;
  93. float: left;
  94. border-radius: 50rpx;
  95. white-space: nowrap;
  96. text-overflow: ellipsis;
  97. background-color: #f2f2f2;
  98. box-sizing: border-box;
  99. margin-right: 20rpx;
  100. margin-bottom: 20rpx;
  101. padding: 10rpx 30rpx;
  102. }
  103. .clear-history image {
  104. width: 32rpx;
  105. height: 32rpx;
  106. position: absolute;
  107. right: 10rpx;
  108. top: 30rpx;
  109. }