index.scss 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  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. position: relative;
  11. width: 100%;
  12. height: 50px;
  13. padding: 0 50px;
  14. border-bottom: 1px solid #e9ecee;
  15. display: flex;
  16. align-items: center;
  17. .add-works-btn {
  18. position: absolute;
  19. right: 20px;
  20. width: 136px;
  21. height: 32px;
  22. padding: 0;
  23. border: none;
  24. background: #308eff;
  25. border-radius: 5px;
  26. font-size: 11px;
  27. font-family: PingFangSC, PingFangSC-Medium;
  28. font-weight: 500;
  29. text-align: center;
  30. color: #ffffff;
  31. }
  32. .works-category-one-item {
  33. position: relative;
  34. margin-right: 48px;
  35. height: 22px;
  36. line-height: 22px;
  37. font-size: 16px;
  38. color: #666666;
  39. cursor: pointer;
  40. &.active {
  41. font-family: PingFangSC, PingFangSC-Semibold;
  42. font-weight: 600;
  43. color: #222222;
  44. &:after {
  45. content: " ";
  46. position: absolute;
  47. width: 22px;
  48. height: 3px;
  49. background: #308eff;
  50. border-radius: 2px;
  51. left: calc(50% - 11px);
  52. bottom: -11px;
  53. }
  54. }
  55. }
  56. }
  57. .works-category-two {
  58. position: relative;
  59. width: 100%;
  60. padding: 0 20px;
  61. margin-top: 7px;
  62. .search-wrapper {
  63. position: absolute;
  64. width: 215px;
  65. height: 100%;
  66. top: 10px;
  67. right: 20px;
  68. &:after {
  69. position: absolute;
  70. content: " ";
  71. top: 0;
  72. left: -22px;
  73. width: 1px;
  74. height: 100%;
  75. background: rgba(0,0,0,0.06);
  76. }
  77. .search-content {
  78. position: relative;
  79. width: 100%;
  80. height: 34px;
  81. margin-top: 10px;
  82. display: flex;
  83. align-items: center;
  84. .search-btn {
  85. position: absolute;
  86. top: 0;
  87. right: 0;
  88. width: 60px;
  89. height: 100%;
  90. padding: 0;
  91. border: none;
  92. background: #308eff;
  93. border-radius: 5px;
  94. font-size: 12px;
  95. font-family: PingFangSC, PingFangSC-Regular;
  96. text-align: center;
  97. color: #ffffff;
  98. }
  99. }
  100. .search-tips {
  101. margin-top: 10px;
  102. line-height: 18px;
  103. font-size: 13px;
  104. font-family: PingFangSC, PingFangSC-Regular;
  105. color: #999999;
  106. span {
  107. color: #308eff;
  108. cursor: pointer;
  109. }
  110. }
  111. }
  112. .works-expand-arrow {
  113. position: absolute;
  114. width: 20px;
  115. height: 20px;
  116. right: 270px;
  117. top: 64px;
  118. z-index: 3;
  119. cursor: pointer;
  120. transition: all .3s;
  121. &.active {
  122. transform: rotate(180deg);
  123. }
  124. }
  125. .works-category-two-wrapper {
  126. position: relative;
  127. width: 720px;
  128. height: 84px;
  129. min-height: 84px;
  130. display: flex;
  131. // align-items: center;
  132. flex-wrap: wrap;
  133. overflow: hidden;
  134. transition: all .3s;
  135. &:after {
  136. }
  137. &.expand {
  138. height: auto;
  139. }
  140. .works-category-two-item {
  141. // width: 80px;
  142. height: 32px;
  143. line-height: 32px;
  144. margin: 10px 10px 0 0;
  145. width: auto;
  146. padding: 0 25px;
  147. text-align: center;
  148. font-size: 13px;
  149. font-family: PingFangSC, PingFangSC-Regular;
  150. color: #555555;
  151. cursor: pointer;
  152. &.active {
  153. line-height: 30px;
  154. border: 1px solid #308eff;
  155. border-radius: 6px;
  156. font-family: PingFangSC, PingFangSC-Medium;
  157. font-weight: 500;
  158. color: #308eff;
  159. }
  160. }
  161. }
  162. }
  163. }
  164. .pagination-wrapper {
  165. width: 1000px;
  166. height: 65px;
  167. margin-top: 10px;
  168. background: #ffffff;
  169. border-radius: 8px;
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. }
  174. .works-list {
  175. position: relative;
  176. min-height: 368px;
  177. .works-item {
  178. width: 1000px;
  179. height: 174px;
  180. margin-top: 10px;
  181. padding: 27px 20px;
  182. background: #ffffff;
  183. border-radius: 8px;
  184. display: flex;
  185. .works-detail-wrapper {
  186. position: relative;
  187. width: 806px;
  188. height: 120px;
  189. display: flex;
  190. &:after {
  191. position: absolute;
  192. content: " ";
  193. right: 0;
  194. top: 0;
  195. width: 1px;
  196. height: 120px;
  197. background: rgba(0,0,0,0.06);
  198. }
  199. .works-image {
  200. width: 120px;
  201. height: 120px;
  202. margin-right: 20px;
  203. border-radius: 8px;
  204. }
  205. .works-detail {
  206. position: relative;
  207. width: 630px;
  208. height: 120px;
  209. display: flex;
  210. flex-direction: column;
  211. .works-name {
  212. width: 100%;
  213. line-height: 25px;
  214. font-size: 18px;
  215. font-family: PingFangSC, PingFangSC-Semibold;
  216. font-weight: 600;
  217. color: #222222;
  218. overflow: hidden;
  219. text-overflow: ellipsis;
  220. white-space: nowrap;
  221. &:hover {
  222. color: #308eff;
  223. }
  224. }
  225. .works-description {
  226. width: 100%;
  227. margin-top: 10px;
  228. line-height: 20px;
  229. font-size: 14px;
  230. font-family: PingFangSC, PingFangSC-Regular;
  231. color: #999999;
  232. overflow: hidden;
  233. text-overflow: ellipsis;
  234. display: -webkit-box;
  235. white-space: normal;
  236. -webkit-box-orient: vertical;
  237. -webkit-line-clamp: 2;
  238. word-break: break-all;
  239. }
  240. .more-info-wrapper {
  241. position: absolute;
  242. bottom: 0;
  243. left: 0;
  244. width: 100%;
  245. height: 20px;
  246. display: flex;
  247. justify-content: space-between;
  248. .price-info {
  249. display: flex;
  250. align-items: center;
  251. height: 100%;
  252. .works-price {
  253. font-size: 18px;
  254. font-family: DINAlternate, DINAlternate-Bold;
  255. font-weight: 700;
  256. color: #ff6600;
  257. margin-right: 20px;
  258. }
  259. .download-count {
  260. position: relative;
  261. font-size: 14px;
  262. font-family: PingFangSC, PingFangSC-Regular;
  263. font-weight: 400;
  264. color: #999999;
  265. }
  266. .download-count,
  267. .file-format {
  268. padding-right: 30px;
  269. &:after {
  270. position: absolute;
  271. content: " ";
  272. width: 1px;
  273. height: 12px;
  274. right: 14.5px;
  275. top: 1px;
  276. background: #999999;
  277. }
  278. }
  279. .file-format,
  280. .file-size {
  281. position: relative;
  282. font-size: 14px;
  283. font-family: PingFangSC, PingFangSC-Regular;
  284. font-weight: 400;
  285. color: #999999;
  286. }
  287. }
  288. .more-info {
  289. display: flex;
  290. align-items: center;
  291. height: 100%;
  292. .plus-img {
  293. width: 16px;
  294. height: 16px;
  295. opacity: 0.7;
  296. }
  297. .plus-count {
  298. position: relative;
  299. height: 20px;
  300. line-height: 20px;
  301. padding-right: 16px;
  302. margin-left: 3px;
  303. font-size: 14px;
  304. font-family: PingFangSC, PingFangSC-Regular;
  305. font-weight: 400;
  306. text-align: left;
  307. color: #999999;
  308. &:after {
  309. position: absolute;
  310. content: " ";
  311. top: 2px;
  312. right: 0;
  313. width: 1px;
  314. height: 16px;
  315. background: rgba(0,0,0,0.06);
  316. }
  317. }
  318. .time {
  319. margin-left: 16px;
  320. line-height: 20px;
  321. font-size: 12px;
  322. font-family: PingFangSC, PingFangSC-Regular;
  323. font-weight: 400;
  324. color: #dadada;
  325. }
  326. }
  327. }
  328. }
  329. }
  330. .works-user-wrapper {
  331. position: relative;
  332. margin-left: 20px;
  333. height: 100%;
  334. width: 126px;
  335. padding: 10px 0;
  336. display: flex;
  337. flex-direction: column;
  338. align-items: center;
  339. .user-avatar {
  340. width: 52px;
  341. height: 52px;
  342. opacity: 1;
  343. border-radius: 50%;
  344. }
  345. .username {
  346. width: 100%;
  347. height: 20px;
  348. line-height: 20px;
  349. margin-top: 3px;
  350. font-size: 14px;
  351. font-family: PingFangSC, PingFangSC-Semibold;
  352. font-weight: 600;
  353. text-align: center;
  354. color: #222222;
  355. overflow: hidden;
  356. text-overflow: ellipsis;
  357. white-space: nowrap;
  358. }
  359. .company {
  360. width: 100%;
  361. height: 17px;
  362. line-height: 17px;
  363. margin-top: 3px;
  364. font-size: 12px;
  365. font-family: PingFangSC, PingFangSC-Regular;
  366. font-weight: 400;
  367. text-align: center;
  368. color: #999999;
  369. overflow: hidden;
  370. text-overflow: ellipsis;
  371. white-space: nowrap;
  372. }
  373. }
  374. }
  375. }
  376. // 筛选
  377. .filter-wrapper {
  378. width: 1000px;
  379. height: 50px;
  380. padding: 0 30px;
  381. margin-top: 10px;
  382. background: #ffffff;
  383. border-radius: 10px;
  384. backdrop-filter: blur(40px);
  385. display: flex;
  386. align-items: center;
  387. .sort-content {
  388. display: flex;
  389. align-items: center;
  390. cursor: pointer;
  391. font-size: 14px;
  392. font-family: PingFangSC, PingFangSC-Regular;
  393. color: #222222;
  394. img {
  395. width: 18px;
  396. height: 18px;
  397. margin-right: 4px;
  398. }
  399. }
  400. .price-filter {
  401. margin-left: 26px;
  402. }
  403. }
  404. }
  405. .mobileMain {
  406. width: 100%;
  407. margin: 0;
  408. }
  409. .works-wrapper-mobile {
  410. position: relative;
  411. width: 100%;
  412. // min-height: 100vh;
  413. display: flex;
  414. flex-direction: column;
  415. .works-category {
  416. position: fixed;
  417. width: 100%;
  418. height: 87px;
  419. z-index: 11;
  420. .works-category-one {
  421. position: relative;
  422. width: 100%;
  423. height: 45px;
  424. background: #ffffff;
  425. overflow: hidden;
  426. .category-scroller {
  427. width: calc(100% - 64px);
  428. overflow-x: scroll;
  429. overflow-y: hidden;
  430. -webkit-overflow-scrolling: touch;
  431. display: flex;
  432. &::-webkit-scrollbar {
  433. display: none;
  434. }
  435. }
  436. .works-category-one-item {
  437. position: relative;
  438. flex-shrink: 0;
  439. width: 76px;
  440. height: 45px;
  441. line-height: 45px;
  442. font-size: 16px;
  443. font-family: PingFangSC, PingFangSC-Regular;
  444. font-weight: 400;
  445. color: #666666;
  446. font-size: 15px;
  447. text-align: center;
  448. &.active {
  449. font-family: PingFangSC, PingFangSC-Semibold;
  450. font-weight: 600;
  451. color: #222222;
  452. &:after {
  453. position: absolute;
  454. content: " ";
  455. bottom: 0;
  456. left: calc(50% - 7.5px);
  457. width: 15px;
  458. height: 3px;
  459. background: #308eff;
  460. border-radius: 2px;
  461. }
  462. }
  463. }
  464. .filter-wrapper {
  465. position: absolute;
  466. top: 0;
  467. right: 0;
  468. width: 64px;
  469. height: 45px;
  470. display: flex;
  471. align-items: center;
  472. justify-content: center;
  473. z-index: 12;
  474. background: #ffffff;
  475. img {
  476. width: 24px;
  477. height: 24px;
  478. }
  479. }
  480. .filter-bg {
  481. position: absolute;
  482. width: 11px;
  483. height: 29px;
  484. right: 59px;
  485. top: 8px;
  486. opacity: 0.1;
  487. background: #000000;
  488. border-radius: 6px;
  489. filter: blur(4px);
  490. z-index: 11;
  491. }
  492. }
  493. .works-category-two {
  494. position: relative;
  495. width: 100%;
  496. height: 42px;
  497. background: #ffffff;
  498. .works-category-two-wrapper {
  499. position: relative;
  500. width: 100%;
  501. height: 42px;
  502. padding: 0 20px;
  503. overflow-x: scroll;
  504. overflow-y: hidden;
  505. -webkit-overflow-scrolling: touch;
  506. display: flex;
  507. &::-webkit-scrollbar {
  508. display: none;
  509. }
  510. .works-category-two-item {
  511. position: relative;
  512. flex-shrink: 0;
  513. height: 42px;
  514. line-height: 42px;
  515. margin-right: 20px;
  516. font-size: 14px;
  517. font-family: PingFangSC, PingFangSC-Regular;
  518. font-weight: 400;
  519. color: #666666;
  520. &:last-child {
  521. margin-right: 0;
  522. }
  523. &.active {
  524. color: #308eff;
  525. }
  526. }
  527. }
  528. }
  529. }
  530. .works-list {
  531. width: 100%;
  532. height: 100vh;
  533. padding-top: 87px;
  534. padding-bottom: 34px;
  535. overflow-x: hidden;
  536. overflow-y: auto;
  537. -webkit-overflow-scrolling: touch;
  538. display: flex;
  539. flex-direction: column;
  540. align-items: center;
  541. .works-list-wrapper {
  542. width: 100%;
  543. height: auto;
  544. overflow: visible;
  545. .works-item {
  546. width: calc(100% - 20px);
  547. height: 110px;
  548. padding: 10px;
  549. margin: 10px auto 0;
  550. background: #ffffff;
  551. border-radius: 8px;
  552. display: flex;
  553. align-items: center;
  554. .works-image {
  555. width: 90px;
  556. height: 90px;
  557. border-radius: 6px;
  558. }
  559. .works-detail {
  560. position: relative;
  561. width: calc(100% - 100px);
  562. height: 90px;
  563. margin-left: 10px;
  564. display: flex;
  565. flex-direction: column;
  566. &.without-img {
  567. width: 100%;
  568. margin-left: 0;
  569. }
  570. .works-name {
  571. width: 100%;
  572. height: 21px;
  573. line-height: 21px;
  574. font-size: 15px;
  575. font-family: PingFangSC, PingFangSC-Semibold;
  576. font-weight: 600;
  577. color: #222222;
  578. overflow: hidden;
  579. text-overflow: ellipsis;
  580. white-space: nowrap;
  581. }
  582. .works-description {
  583. width: 100%;
  584. line-height: 16px;
  585. margin-top: 4px;
  586. font-size: 11px;
  587. font-family: PingFangSC, PingFangSC-Regular;
  588. font-weight: 400;
  589. color: #999999;
  590. overflow: hidden;
  591. text-overflow: ellipsis;
  592. display: -webkit-box;
  593. white-space: normal;
  594. -webkit-box-orient: vertical;
  595. -webkit-line-clamp: 2;
  596. word-break: break-all;
  597. }
  598. .price-info {
  599. position: absolute;
  600. width: 100%;
  601. bottom: 0;
  602. left: 0;
  603. display: flex;
  604. align-items: center;
  605. .works-price {
  606. height: 18px;
  607. line-height: 18px;
  608. font-size: 15px;
  609. font-family: DINAlternate, DINAlternate-Bold;
  610. font-weight: 700;
  611. color: #ff6600;
  612. }
  613. .download-count {
  614. height: 18px;
  615. line-height: 18px;
  616. margin-left: 10px;
  617. font-size: 11px;
  618. font-family: PingFangSC, PingFangSC-Regular;
  619. font-weight: 400;
  620. color: #999999;
  621. }
  622. }
  623. }
  624. }
  625. .works-list-tips {
  626. margin-top: 16px;
  627. width: 100%;
  628. text-align: center;
  629. }
  630. }
  631. }
  632. .works-list__showWxHeader {
  633. height: calc(100vh - 64px);
  634. }
  635. }
  636. // 寻找源码 modal
  637. .remark-title {
  638. width: 100%;
  639. height: 28px;
  640. line-height: 28px;
  641. font-size: 20px;
  642. font-family: PingFangSC, PingFangSC-Semibold;
  643. font-weight: 600;
  644. text-align: center;
  645. color: #222222;
  646. }
  647. .remark-content {
  648. position: relative;
  649. width: 100%;
  650. .remark-description {
  651. width: 100%;
  652. line-height: 21px;
  653. font-size: 13px;
  654. color: #666666;
  655. }
  656. .remark-contact {
  657. width: 100%;
  658. line-height: 21px;
  659. font-size: 13px;
  660. color: #666666;
  661. }
  662. .action-wrapper {
  663. width: 100%;
  664. margin-top: 40px;
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. .confirm-btn {
  669. width: 170px;
  670. height: 46px;
  671. background: #308eff;
  672. border-radius: 6px;
  673. margin-right: 12px;
  674. font-size: 15px;
  675. font-family: PingFangSC, PingFangSC-Medium;
  676. font-weight: 500;
  677. color: #ffffff;
  678. border: none !important;
  679. }
  680. .cancel-btn {
  681. width: 170px;
  682. height: 46px;
  683. background: #f4f5f9;
  684. border-radius: 6px;
  685. font-size: 15px;
  686. font-family: PingFangSC, PingFangSC-Medium;
  687. font-weight: 500;
  688. color: #666666;
  689. border: none !important;
  690. }
  691. }
  692. }