list.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. .skill-wrapper {
  2. width: 1000px;
  3. .skill-top {
  4. width: 100%;
  5. height: auto;
  6. background: #ffffff;
  7. border-radius: 10px;
  8. .tabs {
  9. position: relative;
  10. width: 100%;
  11. height: 50px;
  12. display: flex;
  13. align-items: center;
  14. border-bottom: 1px solid #f1f1f1;
  15. .add-btn {
  16. position: absolute;
  17. right: 20px;
  18. width: 96px;
  19. height: 32px;
  20. padding: 0;
  21. border: none;
  22. background: #308eff;
  23. border-radius: 5px;
  24. font-size: 11px;
  25. font-family: PingFangSC, PingFangSC-Medium;
  26. font-weight: 500;
  27. text-align: center;
  28. color: #ffffff;
  29. }
  30. .tabs-item {
  31. position: relative;
  32. width: 108px;
  33. height: 50px;
  34. line-height: 50px;
  35. font-size: 16px;
  36. font-family: PingFangSC, PingFangSC-Regular;
  37. font-weight: 400;
  38. text-align: center;
  39. color: #666666;
  40. &.active {
  41. font-size: 15px;
  42. font-family: PingFangSC, PingFangSC-Semibold;
  43. font-weight: 600;
  44. color: #222222;
  45. &:after {
  46. position: absolute;
  47. content: " ";
  48. width: 15px;
  49. height: 3px;
  50. bottom: 1px;
  51. left: calc(50% - 7.5px);
  52. background: #308eff;
  53. border-radius: 2px;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. .skill-category-wrapper {
  60. width: 100%;
  61. height: auto;
  62. padding: 15px 20px;
  63. .category-title {
  64. width: 100%;
  65. line-height: 21px;
  66. padding-bottom: 7px;
  67. font-size: 15px;
  68. font-family: PingFangSC, PingFangSC-Semibold;
  69. font-weight: 600;
  70. color: #222222;
  71. }
  72. .category-one-wrapper {
  73. position: relative;
  74. height: 40px;
  75. width: 100%;
  76. padding-right: 60px;
  77. overflow: hidden;
  78. display: flex;
  79. flex-wrap: wrap;
  80. transition: all .3s;
  81. .category-more {
  82. position: absolute;
  83. height: 30px;
  84. line-height: 30px;
  85. margin-top: 10px;
  86. padding: 0 15px;
  87. right: 0;
  88. top: 0;
  89. font-size: 13px;
  90. color: #999999;
  91. cursor: pointer;
  92. }
  93. &.expand {
  94. height: auto !important;
  95. }
  96. .category-one-item {
  97. height: 30px;
  98. line-height: 30px;
  99. padding: 0 25px;
  100. margin-top: 10px;
  101. border-radius: 4px;
  102. font-size: 14px;
  103. font-family: PingFangSC, PingFangSC-Regular;
  104. font-weight: 400;
  105. text-align: center;
  106. color: #555555;
  107. cursor: pointer;
  108. &.active {
  109. line-height: 28px;
  110. font-family: PingFangSC, PingFangSC-Medium;
  111. font-weight: 500;
  112. color: #308eff;
  113. border: 1px solid #308eff;
  114. }
  115. &:hover {
  116. color: #308eff;
  117. }
  118. }
  119. }
  120. .category-two-wrapper {
  121. position: relative;
  122. margin-top: 16px;
  123. .category-two-content {
  124. position: relative;
  125. width: 830px;
  126. height: auto;
  127. padding: 5px 20px 10px;
  128. // margin-left: 80px;
  129. background: #f7f7f7;
  130. border-radius: 8px;
  131. display: flex;
  132. flex-wrap: wrap;
  133. .category-two-item {
  134. height: 30px;
  135. line-height: 30px;
  136. margin-top: 5px;
  137. padding: 0 15px;
  138. color: #555555;
  139. border-radius: 4px;
  140. font-size: 14px;
  141. cursor: pointer;
  142. &.active {
  143. color: #308eff;
  144. background: #dcefff;
  145. }
  146. &:hover {
  147. color: #308eff;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. .skill-content {
  154. width: 100%;
  155. margin-top: 10px;
  156. padding: 12px 20px 36px;
  157. background: #ffffff;
  158. border-radius: 10px;
  159. .skill-list-wrapper {
  160. position: relative;
  161. width: 100%;
  162. display: flex;
  163. flex-wrap: wrap;
  164. .skill-item {
  165. width: 310px;
  166. height: 310px;
  167. margin-right: 15px;
  168. margin-bottom: 15px;
  169. background: #ffffff;
  170. border-radius: 10px;
  171. overflow: hidden;
  172. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  173. display: flex;
  174. flex-direction: column;
  175. // cursor: pointer;
  176. &:nth-of-type(3n) {
  177. margin-right: 0;
  178. }
  179. .cover {
  180. width: 100%;
  181. height: 175px;
  182. overflow: hidden;
  183. object-fit: scale-down;
  184. }
  185. .owner-wrapper {
  186. width: 100%;
  187. height: 22px;
  188. margin-top: 10px;
  189. padding: 0 10px;
  190. display: flex;
  191. align-items: center;
  192. .avatar {
  193. flex-shrink: 0;
  194. width: 22px;
  195. height: 22px;
  196. overflow: hidden;
  197. border-radius: 50%;
  198. }
  199. .nickname {
  200. flex: 1;
  201. line-height: 22px;
  202. margin-left: 6px;
  203. font-size: 14px;
  204. font-family: PingFangSC, PingFangSC-Regular;
  205. font-weight: 400;
  206. color: #666666;
  207. overflow: hidden;
  208. text-overflow: ellipsis;
  209. white-space: nowrap;
  210. }
  211. }
  212. .title {
  213. width: 100%;
  214. height: 42px;
  215. margin-top: 12px;
  216. padding: 0 12px;
  217. line-height: 21px;
  218. font-size: 15px;
  219. font-family: PingFangSC, PingFangSC-Medium;
  220. font-weight: 500;
  221. color: #333333;
  222. overflow: hidden;
  223. text-overflow: ellipsis;
  224. display: -webkit-box;
  225. white-space: normal;
  226. -webkit-box-orient: vertical;
  227. -webkit-line-clamp: 2;
  228. word-break: break-all;
  229. &:hover {
  230. color: #308eff;
  231. }
  232. }
  233. .price-wrapper {
  234. width: 100%;
  235. height: 20px;
  236. margin-top: 12px;
  237. padding: 0 12px;
  238. display: flex;
  239. align-items: center;
  240. justify-content: space-between;
  241. .price-text {
  242. line-height: 20px;
  243. font-size: 19px;
  244. font-family: DINAlternate, DINAlternate-Bold;
  245. font-weight: 700;
  246. color: #ff6600;
  247. }
  248. .buy-num {
  249. font-size: 14px;
  250. font-family: PingFangSC, PingFangSC-Regular;
  251. font-weight: 400;
  252. color: #999999;
  253. }
  254. }
  255. }
  256. }
  257. .pagination-wrapper {
  258. width: 100%;
  259. height: 30px;
  260. margin-top: 25px;
  261. display: flex;
  262. align-items: center;
  263. justify-content: center;
  264. }
  265. }
  266. }
  267. .mobileMain {
  268. width: 100%;
  269. margin: 0;
  270. }
  271. .skill-wrapper-mobile {
  272. position: relative;
  273. width: 100%;
  274. // min-height: 100vh;
  275. display: flex;
  276. flex-direction: column;
  277. .skill-category {
  278. position: fixed;
  279. width: 100%;
  280. height: 87px;
  281. z-index: 11;
  282. .skill-category-one {
  283. position: relative;
  284. width: 100%;
  285. height: 45px;
  286. background: #ffffff;
  287. overflow: hidden;
  288. .category-scroller {
  289. width: calc(100% - 64px);
  290. overflow-x: scroll;
  291. overflow-y: hidden;
  292. -webkit-overflow-scrolling: touch;
  293. display: flex;
  294. &::-webkit-scrollbar {
  295. display: none;
  296. }
  297. }
  298. .skill-category-one-item {
  299. position: relative;
  300. flex-shrink: 0;
  301. width: 76px;
  302. height: 45px;
  303. line-height: 45px;
  304. font-size: 16px;
  305. font-family: PingFangSC, PingFangSC-Regular;
  306. font-weight: 400;
  307. color: #666666;
  308. font-size: 15px;
  309. text-align: center;
  310. &.active {
  311. font-family: PingFangSC, PingFangSC-Semibold;
  312. font-weight: 600;
  313. color: #222222;
  314. &:after {
  315. position: absolute;
  316. content: " ";
  317. bottom: 0;
  318. left: calc(50% - 7.5px);
  319. width: 15px;
  320. height: 3px;
  321. background: #308eff;
  322. border-radius: 2px;
  323. }
  324. }
  325. }
  326. .filter-wrapper {
  327. position: absolute;
  328. top: 0;
  329. right: 0;
  330. width: 64px;
  331. height: 45px;
  332. display: flex;
  333. align-items: center;
  334. justify-content: center;
  335. z-index: 12;
  336. background: #ffffff;
  337. img {
  338. width: 24px;
  339. height: 24px;
  340. }
  341. }
  342. .filter-bg {
  343. position: absolute;
  344. width: 11px;
  345. height: 29px;
  346. right: 59px;
  347. top: 8px;
  348. opacity: 0.1;
  349. background: #000000;
  350. border-radius: 6px;
  351. filter: blur(4px);
  352. z-index: 11;
  353. }
  354. }
  355. .skill-category-two {
  356. position: relative;
  357. width: 100%;
  358. height: 42px;
  359. background: #ffffff;
  360. .skill-category-two-wrapper {
  361. position: relative;
  362. width: 100%;
  363. height: 42px;
  364. padding: 0 20px;
  365. overflow-x: scroll;
  366. overflow-y: hidden;
  367. -webkit-overflow-scrolling: touch;
  368. display: flex;
  369. &::-webkit-scrollbar {
  370. display: none;
  371. }
  372. .skill-category-two-item {
  373. position: relative;
  374. flex-shrink: 0;
  375. height: 42px;
  376. line-height: 42px;
  377. margin-right: 20px;
  378. font-size: 14px;
  379. font-family: PingFangSC, PingFangSC-Regular;
  380. font-weight: 400;
  381. color: #666666;
  382. &:last-child {
  383. margin-right: 0;
  384. }
  385. &.active {
  386. color: #308eff;
  387. }
  388. }
  389. }
  390. }
  391. }
  392. .skill-list {
  393. width: 100%;
  394. height: 100vh;
  395. padding-top: 87px;
  396. padding-bottom: 34px;
  397. overflow-x: hidden;
  398. overflow-y: auto;
  399. -webkit-overflow-scrolling: touch;
  400. display: flex;
  401. flex-direction: column;
  402. align-items: center;
  403. .skill-list-wrapper {
  404. width: 100%;
  405. height: auto;
  406. overflow: visible;
  407. .skill-item {
  408. width: calc(100% - 20px);
  409. height: auto;
  410. margin: 10px auto 0;
  411. padding-bottom: 16px;
  412. background: #ffffff;
  413. overflow: hidden;
  414. border-radius: 10px;
  415. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  416. display: flex;
  417. flex-direction: column;
  418. .cover {
  419. width: 100%;
  420. height: calc((100vw - 20px) * 9 / 16);
  421. overflow: hidden;
  422. object-fit: cover;
  423. }
  424. .owner-wrapper {
  425. width: 100%;
  426. height: 22px;
  427. margin-top: 10px;
  428. padding: 0 10px;
  429. display: flex;
  430. align-items: center;
  431. .avatar {
  432. flex-shrink: 0;
  433. width: 22px;
  434. height: 22px;
  435. overflow: hidden;
  436. border-radius: 50%;
  437. }
  438. .nickname {
  439. flex: 1;
  440. line-height: 22px;
  441. margin-left: 6px;
  442. font-size: 14px;
  443. font-family: PingFangSC, PingFangSC-Regular;
  444. font-weight: 400;
  445. color: #666666;
  446. overflow: hidden;
  447. text-overflow: ellipsis;
  448. white-space: nowrap;
  449. }
  450. }
  451. .title {
  452. width: 100%;
  453. height: 20px;
  454. margin-top: 12px;
  455. padding: 0 12px;
  456. line-height: 20px;
  457. font-size: 15px;
  458. font-family: PingFangSC, PingFangSC-Medium;
  459. font-weight: 500;
  460. color: #333333;
  461. overflow: hidden;
  462. text-overflow: ellipsis;
  463. white-space: nowrap;
  464. }
  465. .price-wrapper {
  466. width: 100%;
  467. height: 20px;
  468. margin-top: 16px;
  469. padding: 0 12px;
  470. display: flex;
  471. align-items: center;
  472. justify-content: space-between;
  473. .price-text {
  474. line-height: 20px;
  475. font-size: 19px;
  476. font-family: DINAlternate, DINAlternate-Bold;
  477. font-weight: 700;
  478. color: #ff6600;
  479. }
  480. .right-info {
  481. font-size: 14px;
  482. font-family: PingFangSC, PingFangSC-Regular;
  483. font-weight: 400;
  484. color: #999999;
  485. }
  486. }
  487. }
  488. }
  489. .skill-list-tips {
  490. margin-top: 16px;
  491. width: 100%;
  492. text-align: center;
  493. }
  494. }
  495. .skill-list__showWxHeader {
  496. height: calc(100vh - 64px);
  497. }
  498. }