search.wxss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. /* pages/pinduoduo/search.wxss */
  2. .container {
  3. position: relative;
  4. width: 100%;
  5. max-width: 640px;
  6. min-height: 100%;
  7. margin: 0 auto;
  8. padding: 0 0 118rpx;
  9. overflow-x: hidden;
  10. background-color: #f2f2f2;
  11. }
  12. #classification-container {
  13. background-color: #fff;
  14. height:100%;
  15. overflow: hidden;
  16. line-height: 1;
  17. }
  18. #search-bar {
  19. width: 100%;
  20. max-width: 640px;
  21. height: 45px;
  22. background-color: #f8f8f8;
  23. position: relative;
  24. }
  25. #search-bar:before {
  26. position: absolute;
  27. width: 200%;
  28. height: 200%;
  29. transform-origin: 0 0;
  30. transform: scale(.5);
  31. box-sizing: border-box;
  32. -webkit-transform-origin: 0 0;
  33. -webkit-transform: scale(.5);
  34. -webkit-box-sizing: border-box;
  35. content: "";
  36. border-bottom: 2rpx solid #ededed;
  37. }
  38. #search-bar .search-container {
  39. background-color: #f2f2f2;
  40. text-align: center;
  41. height: 90rpx;
  42. padding: 12rpx 20rpx;
  43. }
  44. #search-bar .search-container .search-icon-container {
  45. border-radius: 10rpx;
  46. display: -webkit-box;
  47. display: -ms-flexbox;
  48. display: flex;
  49. display: -webkit-flex;
  50. -webkit-align-items: center;
  51. -webkit-justify-content: center;
  52. -webkit-box-align: center;
  53. -ms-flex-align: center;
  54. align-items: center;
  55. -webkit-box-pack: center;
  56. -ms-flex-pack: center;
  57. justify-content: center;
  58. height: 64rpx;
  59. background-color: #fff;
  60. }
  61. #search-bar .search-container .search-icon-container .search-icon-class {
  62. display: inline-block;
  63. width: 28rpx;
  64. height: 28rpx;
  65. background-image: url('https://pinduoduo.liofis.com/Common/image/icon_search.png');
  66. background-repeat: no-repeat;
  67. background-size: contain;
  68. margin-right: 16rpx;
  69. }
  70. #search-bar .search-container .search-box {
  71. line-height: 1;
  72. font-size: 30rpx;
  73. color: #9c9c9c;
  74. }
  75. .span{
  76. display:inline;
  77. }
  78. #root-list {
  79. position: relative;
  80. height: 100%;
  81. width: 204rpx;
  82. }
  83. .root-list-item {
  84. position: relative;
  85. height: 106rpx;
  86. color: #666;
  87. -webkit-box-pack: center;
  88. -ms-flex-pack: center;
  89. justify-content: center;
  90. -webkit-display: flex;
  91. -webkit-justify-content: center;
  92. -webkit-align-items: center;
  93. background-color: #fafafa;
  94. }
  95. .root-list-item, .root-list-item .root-box {
  96. display: -webkit-box;
  97. display: -ms-flexbox;
  98. display: flex;
  99. -webkit-box-align: center;
  100. -ms-flex-align: center;
  101. align-items: center;
  102. }
  103. .root-active {
  104. color: #ff5777;
  105. background-color: #fff;
  106. }
  107. .root-list-item, .root-list-item .root-box {
  108. display: -webkit-box;
  109. display: -ms-flexbox;
  110. display: flex;
  111. -webkit-box-align: center;
  112. -ms-flex-align: center;
  113. align-items: center;
  114. }
  115. .root-list-item .root-box {
  116. -webkit-box-pack: end;
  117. -ms-flex-pack: end;
  118. justify-content: flex-end;
  119. }
  120. .root-list-item .root-box span {
  121. -webkit-box-flex: 1;
  122. -ms-flex-positive: 1;
  123. flex-grow: 1;
  124. text-align: center;
  125. font-size: 28rpx;
  126. }
  127. .icon {
  128. font-family: icomoon;
  129. font-style: normal;
  130. font-smoothing: antialiased;
  131. }
  132. .root-list-item .root-box .i {
  133. width: 42rpx;
  134. height: 42rpx;
  135. border-radius: 50%;
  136. text-align: center;
  137. box-sizing: border-box;
  138. position: relative;
  139. margin-left: 12rpx;
  140. display:inline;
  141. }
  142. .icon-category-bag:before {
  143. content: "\e60c";
  144. }
  145. .root-list-item .root-box .i:before {
  146. display: inline-block;
  147. line-height: .21rem;
  148. font-size: .11rem;
  149. color: #fff;
  150. position: relative;
  151. }
  152. .root-active .root-box .icon:before {
  153. color: #fff;
  154. z-index: 1;
  155. }
  156. .root-list-item .root-box .i image {
  157. position: absolute;
  158. top: 0;
  159. right: 0;
  160. width: 100%;
  161. height: 100%;
  162. border-radius: 50%;
  163. z-index: 10;
  164. }
  165. .root-list-item .root-box .i .selected-icon {
  166. display: none;
  167. }
  168. .root-active .root-box .icon .selected-icon {
  169. display: inline-block;
  170. }
  171. .root-list-item .root-box .i .unselected-icon {
  172. display: inline-block;
  173. }
  174. .root-active .root-box .icon .unselected-icon {
  175. display: none;
  176. }
  177. #detail-list, #root-list {
  178. overflow: hidden;
  179. float: left;
  180. }
  181. #root-list .scroll_view{
  182. background-color:#fafafa;
  183. }
  184. #detail-list {
  185. position: relative;
  186. width: 546rpx;
  187. padding: 0 20rpx 0 0;
  188. background-color: #fff;
  189. height: 100%;
  190. }
  191. .classification-detail-item .head {
  192. height: 72rpx;
  193. padding-top: 32rpx;
  194. position: relative;
  195. width: 100%;
  196. line-height: 40rpx;
  197. }
  198. .classification-detail-item .head {
  199. height: 72rpx;
  200. padding-top: 24rpx;
  201. position: relative;
  202. width: 100%;
  203. line-height: 48rpx;
  204. }
  205. .classification-detail-item .head .head-container .tab {
  206. display: inline-block;
  207. height: 40rpx;
  208. background-size: 116rpx 40rpx;
  209. background-repeat: no-repeat;
  210. }
  211. .classification-detail-item .head .head-container .tab .span {
  212. color: #333;
  213. margin-left: 22rpx;
  214. font-size: 28rpx;
  215. }
  216. .classification-detail-item .head .head-container .show-all {
  217. position: absolute;
  218. display: inline-block;
  219. font-size: 26rpx;
  220. color: #9c9c9c;
  221. height: 40rpx;
  222. line-height: 42rpx;
  223. right: 0;
  224. padding-right: 20rpx;
  225. }
  226. .classification-detail-item .detail {
  227. margin-left: 20rpx;
  228. width: 100%;
  229. overflow: hidden;
  230. }
  231. .classification-detail-item .detail .li {
  232. width: 120rpx;
  233. height: 144rpx;
  234. margin: 0 64rpx 32rpx 0;
  235. float: left;
  236. }
  237. .classification-detail-item .detail .li image {
  238. width: 120rpx;
  239. height: 120rpx;
  240. }
  241. .classification-detail-item .detail .li .p {
  242. color: #666;
  243. font-size: 24rpx;
  244. text-align: center;
  245. line-height: 48rpx;
  246. }
  247. .classification-detail-item .detail .li:nth-child(3n) {
  248. margin-right: 0;
  249. }
  250. .search-view-container {
  251. position: fixed;
  252. top: 0;
  253. left: 0;
  254. width: 100%;
  255. max-width: 640px;
  256. height: 200%;
  257. background-color: #f8f8f8;
  258. overflow: hidden;
  259. z-index: 999999998;
  260. font-family: PingFangSC-Regular;
  261. }
  262. .search-view-box {
  263. height: 50%;
  264. overflow-y: auto;
  265. }
  266. .search-view-top {
  267. width: 100%;
  268. max-width: 640px;
  269. padding: 12rpx 0 12rpx 24rpx;
  270. height: 90rpx;
  271. border-bottom: 2rpx solid #ededed;
  272. }
  273. .search-box-view-main, .view-top-container {
  274. height: 64rpx;
  275. float: left;
  276. border-radius: 10rpx;
  277. }
  278. .view-top-container {
  279. width: 606rpx;
  280. background-color: #fff;
  281. }
  282. .search-box-view-main, .search-recent-list-view .span {
  283. font-family: PingFangSC-Regular,Helvetica,STHeiti STXihei,Microsoft JhengHei,Microsoft YaHei,Arial;
  284. }
  285. .search-box-view-main, .view-top-container {
  286. height: 64rpx;
  287. float: left;
  288. border-radius: 100rpx;
  289. }
  290. .search-box-view-main {
  291. width: 480rpx!important;
  292. margin-left: 60rpx;
  293. font-size: 30rpx;
  294. display: inline-block;
  295. color: #151516;
  296. -webkit-border-radius: 10rpx;
  297. background-color: #fff;
  298. }
  299. input[type=search] {
  300. -webkit-appearance: textfield;
  301. box-sizing: content-box;
  302. }
  303. #view-input {
  304. background-color: #fff;
  305. }
  306. .search-content-clear, .search-view-icon {
  307. background-size: contain;
  308. background-repeat: no-repeat;
  309. }
  310. .search-view-icon {
  311. width: 28rpx;
  312. height: 28rpx;
  313. position: relative;
  314. top: 16rpx;
  315. left: 28rpx;
  316. background-image: url('https://pinduoduo.liofis.com/Common/image/icon_search.png');
  317. }
  318. .cancel-container-view, .submit-container-view {
  319. margin-right: 0;
  320. padding-top: 10rpx;
  321. width: 94rpx;
  322. height: 60rpx;
  323. font-size: 32rpx;
  324. float: right;
  325. display: inline-block;
  326. }
  327. .cancel-container-view {
  328. color: #9c9c9c;
  329. }
  330. .search-main-view {
  331. padding-top: 46rpx;
  332. height: auto;
  333. width: 100%;
  334. }
  335. .search-recent-title-view {
  336. line-height: 32rpx;
  337. font-size: 30rpx;
  338. color: #151516;
  339. margin-left: 24rpx;
  340. width: 200rpx;
  341. display: inline-block;
  342. }
  343. .search-recent-delete-view {
  344. padding-top: 4rpx;
  345. float: right;
  346. margin-right: 40rpx;
  347. width: 32rpx;
  348. height: 32rpx;
  349. background-image: url(https://pinduoduo.liofis.com/Common/image/sprite_search-d13f06ef49.png);
  350. background-repeat: no-repeat;
  351. background-size: 140rpx 70rpx;
  352. background-position: 0 0;
  353. }
  354. .search-recent-list-view {
  355. margin: 10rpx 24rpx 0 4rpx;
  356. }
  357. .search-recent-list-view .span {
  358. display: inline-block;
  359. padding: 0 30rpx;
  360. margin: 16rpx 0 0 20rpx;
  361. border: 2rpx solid #d2d2d2;
  362. border-radius: 8rpx;
  363. color: #151516;
  364. cursor: pointer;
  365. min-width: 120rpx;
  366. max-width: 600rpx;
  367. overflow: hidden;
  368. white-space: nowrap;
  369. text-overflow: ellipsis;
  370. height: 64rpx;
  371. line-height: 60rpx;
  372. font-size: 28rpx;
  373. text-align: center;
  374. vertical-align: top;
  375. }
  376. .search-recent-list-view .span {
  377. max-width: 300rpx;
  378. }
  379. .search-recent-list-view {
  380. margin: 10rpx 24rpx 0 4rpx;
  381. }
  382. .search-hotquery-list-view {
  383. height: 160rpx;
  384. overflow: hidden;
  385. }