index.scss 22 KB

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