search.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. ax-body{
  2. display: block;
  3. height: 100%;
  4. background: #F6FAFF;
  5. }
  6. .page-background{
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. right: 0;
  11. z-index: 0;
  12. }
  13. .page-background image{
  14. display: block;
  15. width: 100%;
  16. }
  17. .body{
  18. display: flex;
  19. flex-direction: column;
  20. height: 100%;
  21. position: relative;
  22. z-index: 1;
  23. }
  24. /* 搜索框 */
  25. .search-box{
  26. display: flex;
  27. align-items: center;
  28. height: 50px;
  29. border-radius: 10px;
  30. background-color: #fff;
  31. font-size: 14px;
  32. color: #2b303a;
  33. padding: 0 10px;
  34. margin: 0 10px;
  35. }
  36. .search-box .input{
  37. flex: 1;
  38. height: 50px;
  39. margin: 0 10px;
  40. }
  41. .search-box .icon{
  42. font-weight: bold;
  43. }
  44. .search-box .clear{
  45. margin: 0 10px;
  46. color: #f44033;
  47. }
  48. .search-box .txt{
  49. transform: translateY(-1px);
  50. }
  51. /* 搜索历史 */
  52. .history{
  53. margin-top: 20px;
  54. }
  55. .history > .title{
  56. display: flex;
  57. align-items: center;
  58. justify-content: space-between;
  59. padding: 0 10px;
  60. }
  61. .history > .title > .txt{
  62. font-size: 16px;
  63. color: #2b303a;
  64. }
  65. .history > .title > .icon{
  66. font-size: 18px;
  67. }
  68. .history > .list{
  69. margin-top: 10px;
  70. padding: 0 10px;
  71. overflow: auto;
  72. }
  73. .history > .list .wrap{
  74. white-space: nowrap;
  75. }
  76. .history > .list .item{
  77. display: inline-flex;
  78. align-items: center;
  79. height: 30px;
  80. padding: 0px 15px;
  81. font-size: 14px;
  82. color: #2b303a;
  83. background-color: #fff;
  84. border-radius: 100pc;
  85. box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  86. }
  87. .history > .list .item + .item{
  88. margin-left: 10px;
  89. }
  90. /* 搜索结果 */
  91. .result{
  92. flex: 1;
  93. display: flex;
  94. flex-direction: column;
  95. margin-top: 20px;
  96. }
  97. .result > .title{
  98. display: flex;
  99. align-items: center;
  100. justify-content: space-between;
  101. padding: 0 10px;
  102. }
  103. .result > .title > .total{
  104. font-size: 14px;
  105. color: #aaa;
  106. }
  107. .result > .list{
  108. flex: 1;
  109. margin-top: 10px;
  110. position: relative;
  111. }
  112. .result > .list > .wrap{
  113. position: absolute;
  114. top: 0;
  115. left: 0;
  116. right: 0;
  117. bottom: 0;
  118. overflow: auto;
  119. padding: 0 10px;
  120. }
  121. .result > .list .site{
  122. background-color: #fff;
  123. border-radius: 8px;
  124. padding: 20px;
  125. box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  126. }
  127. .result > .list .site + .site{
  128. margin-top: 10px;
  129. }
  130. .result > .list .site .name{
  131. font-size: 16px;
  132. font-weight: bold;
  133. color: #2b303a;
  134. }
  135. .result > .list .site .aux{
  136. font-size: 12px;
  137. color: #aaa;
  138. margin-top: 10px;
  139. }
  140. .result > .list .site .info{
  141. display: flex;
  142. align-items: center;
  143. justify-content: space-between;
  144. margin-top: 20px;
  145. font-size: 12px;
  146. }
  147. .result > .list .site .info .sta > .val{
  148. margin: 0 5px;
  149. font-size: 16px;
  150. font-weight: bold;
  151. color: #222;
  152. }
  153. .result > .list .site .info .sta > .unit{
  154. color: #aaa;
  155. }
  156. .result > .list .site .info .sta > .green{
  157. color: #00aa3a;
  158. }
  159. .result > .list .site .info .sta > .blue{
  160. color: #3071ff;
  161. }
  162. .result > .list .site .info .sta > .orange{
  163. color: #fb9430;
  164. }
  165. .empty{
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. flex-direction: column;
  170. font-size: 14px;
  171. height: calc(100% - 10px);
  172. border-radius: 8px;
  173. background-color: #fff;
  174. box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  175. color: #ccc;
  176. }
  177. .empty .icon{
  178. font-size: 20vw;
  179. margin-bottom: 10px;
  180. transform: translateX(5%);
  181. }
  182. .empty .txt{
  183. color: #aaa;
  184. }