index.scss 17 KB

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