search-bar.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. body{
  2. background: #F2F3F5;
  3. font-size: 14px;
  4. margin: 0;
  5. }
  6. .searchbar {
  7. /*height: 44px;*/
  8. box-sizing: border-box;
  9. padding: 0 8px;
  10. /*overflow: hidden;*/
  11. position: relative;
  12. display: -webkit-box;
  13. display: -ms-flexbox;
  14. display: -webkit-flex;
  15. display: flex;
  16. -webkit-box-align: center;
  17. -ms-flex-align: center;
  18. -webkit-align-items: center;
  19. align-items: center;
  20. background-color: #FFF;
  21. margin-top: 70px;
  22. }
  23. .searchbar:before{
  24. content:'';
  25. top: -70px;
  26. left: 0;
  27. width: 100%;
  28. height: 110px;
  29. position: absolute;
  30. overflow: hidden;
  31. background: url("../images/banner.png");
  32. background-size: 100%;
  33. }
  34. html.pixel-ratio-2 .searchbar:after {
  35. -webkit-transform: scaleY(.5);
  36. transform: scaleY(.5)
  37. }
  38. html.pixel-ratio-3 .searchbar:after {
  39. -webkit-transform: scaleY(.33);
  40. transform: scaleY(.33)
  41. }
  42. .searchbar .searchbar-input {
  43. width: 100%;
  44. height: 28px;
  45. position: relative;
  46. -webkit-flex-shrink: 1;
  47. -ms-flex: 0 1 auto;
  48. flex-shrink: 1;
  49. }
  50. .searchbar .searchbar-input input{
  51. color: #999;
  52. }
  53. .searchbar input[type=search] {
  54. box-sizing: border-box;
  55. width: 100%;
  56. height: 100%;
  57. display: block;
  58. border: none;
  59. -webkit-appearance: none;
  60. -moz-appearance: none;
  61. -ms-appearance: none;
  62. appearance: none;
  63. border-radius: 5px;
  64. font-family: inherit;
  65. color: #000;
  66. font-size: 14px;
  67. font-weight: 400;
  68. padding: 0 28px;
  69. background-color: #fff;
  70. background-repeat: no-repeat;
  71. background-position: 8px center;
  72. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2QUE2NTYxNDY1MjMxMUU2OTZFMkZGNTMzRTNEODdCQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2QUE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fBq02bSiEjPdmKtSmmmJC2CqRyFZdI4GvfD9sOpuazsXqTXkHB8ScCkimoa+iMd76PSkXh1knRnt1JCnqyVffM4LdmF3GxG9aMRqlKHPVXkEp7eIuqumuu1WJZO2YSer8HFlHeVBjzkLY7i6y0Zukvp9JevU5TCjLj74OhjLHehQ7kj/RcBme9uBu8kF3AvZRQV9byGPxUXu4lvLUPfdo3GTP5SMLW6VEzE6BrMSS3/3pNCf4BXf1kVlEwy13lUyL+aYNKOMu1BZOAdCUK0bMS0JGSdz1Q6hhMe6+g8Cn6SNMFo3pJAeA9N5LBPhhLqWwiWiq9je1hZjqMVxmip+5mIpW5hkGrvEthIjcV59PkkzTT7GSgNXAKMtxZimP1V913kfCoWq+Wnld1uLMc3VKPCSIvqBdzKu/gowAICpvmijfvwCAAAAAElFTkSuQmCC");
  73. -webkit-background-size: 13px 13px;
  74. background-size: 13px 13px;
  75. background-color: #F2F3F5;
  76. }
  77. .searchbar input[type=search]::-webkit-input-placeholder {
  78. color: #939398;
  79. opacity: 1
  80. }
  81. .searchbar input[type=search]::-webkit-search-cancel-button {
  82. -webkit-appearance: none
  83. }
  84. .searchbar .searchbar-clear {
  85. position: absolute;
  86. width: 28px;
  87. height: 28px;
  88. right: 0;
  89. top: 0;
  90. opacity: 0;
  91. pointer-events: none;
  92. background-position: center;
  93. background-repeat: no-repeat;
  94. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%238e8e93'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E");
  95. -webkit-background-size: 14px 14px;
  96. background-size: 14px 14px;
  97. -webkit-transition-duration: .3s;
  98. transition-duration: .3s;
  99. cursor: pointer
  100. }
  101. .searchbar .searchbar-cancel {
  102. display: none;
  103. position: absolute;
  104. top: 5px;
  105. right: 5px;
  106. }
  107. .searchbar.searchbar-active .searchbar-cancel {
  108. margin-left: 8px;
  109. opacity: 1;
  110. pointer-events: auto
  111. }
  112. .searchbar.searchbar-active .searchbar-cancel.active-state,html:not(.watch-active-state) .searchbar.searchbar-active .searchbar-cancel:active {
  113. opacity: .3;
  114. -webkit-transition-duration: 0s;
  115. transition-duration: 0s
  116. }
  117. .search-list-box {
  118. box-sizing: border-box;
  119. padding:0 10px;
  120. width: 100%;
  121. margin-top: 20px;
  122. }
  123. .search-list-item {
  124. overflow: hidden;
  125. width: 25%;
  126. float: left;
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: center;
  130. align-items: center;
  131. font-size: 12px;
  132. color: #333;
  133. margin-top: 20px;
  134. }
  135. .search-list-item-txt {
  136. padding-top: 20px;
  137. }
  138. .search-list-item-img img{
  139. width: 40px;
  140. height: 40px;
  141. }
  142. .search-result {
  143. position: relative;
  144. background: #fff;
  145. margin-top: 40px;
  146. display: none;
  147. }
  148. .search-result-main {
  149. margin: 0 20px;
  150. position: relative;
  151. height: 70px;
  152. }
  153. .search-main-box {
  154. box-sizing: border-box;
  155. border-radius: 5px;
  156. box-shadow: 1px 6px 6px rgba(0,0,0,0.1);
  157. position: absolute;
  158. top: -10px;
  159. background: #fff;
  160. width: 100%;
  161. display: flex;
  162. padding: 10px;
  163. }
  164. .search-result-img img{
  165. border-radius:5px;
  166. width: 50px;
  167. height: 50px;
  168. }
  169. .search-result-tit {
  170. display: flex;
  171. flex-direction: column;
  172. margin-left: 10px;
  173. }
  174. .search-result-tit .line1{
  175. font-size: 14px;
  176. }
  177. .search-result-tit .line2{
  178. font-size: 20px;
  179. }
  180. .search-result-msg-list li{
  181. border-bottom: 1px solid #e1e1e1;
  182. padding: 10px;
  183. display: flex;
  184. justify-content: space-between;
  185. margin-left: 20px;
  186. font-size: 14px;
  187. }
  188. .search-result-msg-list li:last-child{
  189. border: none;
  190. }
  191. /*分类详细*/
  192. .category-box-head {
  193. display: flex;
  194. align-items: center;
  195. height: 60px;
  196. overflow: hidden;
  197. }
  198. .category-box-head-img{
  199. width: 50px;
  200. height: 50px;
  201. overflow: hidden;
  202. }
  203. .category-box-head-img img{
  204. float: left;
  205. }
  206. .category-box-head-txt {
  207. display: flex;
  208. flex: 1;
  209. height: 50px;
  210. line-height: 50px;
  211. }
  212. .category-box-head-txt strong{
  213. }
  214. .category-box-main {
  215. padding: 10px 0;
  216. height: 70px;
  217. font-size: 14px;
  218. box-sizing: border-box;
  219. margin: 0 10px;
  220. overflow: hidden;
  221. display: flex;
  222. justify-content: space-between;
  223. }
  224. .category-box-main-left {
  225. overflow: hidden;
  226. flex: 3;
  227. display: flex;
  228. align-items: center;
  229. }
  230. .category-box-main-left span{
  231. color: #0ad800;
  232. }
  233. .category-box-main-left i{
  234. margin: 0 5px;
  235. }
  236. .category-box-main-left i:last-child{
  237. display: none;
  238. }
  239. .category-box-center {
  240. width: 16px;
  241. padding: 0 10px;
  242. display: flex;
  243. flex-direction: column;
  244. justify-content: center;
  245. }
  246. .category-box-right{
  247. display: flex;
  248. flex: 1;
  249. line-height: 50px;
  250. justify-content: center;
  251. }
  252. .category-box-right span{
  253. color: #f00;
  254. }
  255. .category-list-box {
  256. margin-top: 20px;
  257. overflow: hidden;
  258. display: flex;
  259. flex-wrap: wrap;
  260. }
  261. .category-list-txt {
  262. margin-top: 8px;
  263. flex-direction: column;
  264. justify-content: center;
  265. align-items: center;
  266. }
  267. .category-list-img{
  268. text-align: center;
  269. }
  270. .category-list-img img{
  271. border-radius: 5px;
  272. width: 80%;
  273. }
  274. .category-list-txt span{
  275. display: block;
  276. text-align: center;
  277. font-size: 12px;
  278. }
  279. .category-list-item {
  280. width: 25%;
  281. padding: 10px;
  282. box-sizing: border-box;
  283. }
  284. .common-mask {
  285. position: absolute;
  286. top: 0;
  287. left: 0;
  288. bottom: 0;
  289. right: 0;
  290. z-index: 8888;
  291. background: rgba(0,0,0,.8);
  292. display: none;
  293. }
  294. .index9999{
  295. z-index: 9999;
  296. }
  297. .searchbar-result-list {
  298. overflow: hidden;
  299. background: #fff;
  300. position: relative;
  301. margin-top: 10px;
  302. }
  303. .searchbar-result-item {
  304. padding: 10px;
  305. background: #fff;
  306. border-top: 1px solid #e1e1e1;
  307. overflow: hidden;
  308. width: 100%;
  309. height: 100%;
  310. }
  311. .searchbar-result-item:last-child {
  312. border-bottom: 1px solid #e1e1e1;
  313. }