index.scss 23 KB

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