makeDetail.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. // 导入FontAwesome
  2. @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
  3. page {
  4. background: #f2f6f2;
  5. width: 100%;
  6. color: #333;
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
  8. Arial, sans-serif;
  9. }
  10. .page {
  11. background: #f2f6f2;
  12. width: 100%;
  13. }
  14. /* 自定义导航栏样式 */
  15. .custom-navbar {
  16. display: flex;
  17. flex-direction: row;
  18. align-items: center;
  19. justify-content: space-between;
  20. width: 100%;
  21. height: 90rpx;
  22. padding: 0 20rpx;
  23. padding-top: var(--status-bar-height);
  24. background-color: #ffffff;
  25. position: sticky;
  26. top: 0;
  27. height: calc( 90rpx + var(--status-bar-height));
  28. z-index: 100;
  29. .navbar-left {
  30. width: 80rpx;
  31. height: 80rpx;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. .fa-angle-left {
  36. font-size: 48rpx;
  37. color: #333;
  38. }
  39. }
  40. .navbar-center {
  41. flex: 1;
  42. display: flex;
  43. justify-content: flex-start;
  44. align-items: center;
  45. margin-left: 10rpx;
  46. .navbar-title {
  47. display: flex;
  48. align-items: center;
  49. .navbar-avatar {
  50. width: 50rpx;
  51. height: 50rpx;
  52. border-radius: 25rpx;
  53. margin-right: 10rpx;
  54. }
  55. .navbar-text {
  56. font-size: 32rpx;
  57. font-weight: bold;
  58. color: #333;
  59. margin-right: 10rpx;
  60. }
  61. .navbar-badge {
  62. font-size: 22rpx;
  63. color: #f0ad4e;
  64. background-color: rgba(240, 173, 78, 0.1);
  65. padding: 2rpx 10rpx;
  66. border-radius: 10rpx;
  67. border: 1rpx solid #f0ad4e;
  68. }
  69. }
  70. }
  71. .navbar-right {
  72. width: 80rpx;
  73. height: 80rpx;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. .fa-ellipsis-h {
  78. font-size: 36rpx;
  79. color: #333;
  80. }
  81. }
  82. }
  83. .header {
  84. display: flex;
  85. flex-direction: row;
  86. justify-content: flex-start;
  87. align-items: center;
  88. width: 750rpx;
  89. height: 320rpx;
  90. padding-top: calc(var(--status-bar-height) + 0rpx);
  91. .left {
  92. display: flex;
  93. flex-direction: row;
  94. width: 200rpx;
  95. height: 120rpx;
  96. justify-content: center;
  97. padding-left: 50rpx;
  98. image {
  99. width: 124rpx;
  100. height: 40rpx;
  101. }
  102. }
  103. }
  104. .thread {
  105. height: 20rpx;
  106. }
  107. .thread2 {
  108. height: 60rpx;
  109. }
  110. .topUser {
  111. width: 750rpx;
  112. height: 750rpx;
  113. position: relative;
  114. overflow: hidden;
  115. .home_image {
  116. width: 100%;
  117. height: 100%;
  118. transition: transform 0.3s ease;
  119. &:active {
  120. transform: scale(1.05);
  121. }
  122. }
  123. .image-indicator {
  124. position: absolute;
  125. top: 30rpx;
  126. right: 30rpx;
  127. background-color: rgba(0, 0, 0, 0.5);
  128. color: #fff;
  129. padding: 8rpx 16rpx;
  130. border-radius: 20rpx;
  131. font-size: 24rpx;
  132. }
  133. .list {
  134. position: absolute;
  135. bottom: 20rpx;
  136. width: 100%;
  137. display: flex;
  138. flex-direction: row;
  139. justify-content: center;
  140. align-items: flex-end;
  141. padding: 0 20rpx;
  142. overflow-x: auto;
  143. &::-webkit-scrollbar {
  144. display: none;
  145. }
  146. .img {
  147. width: 84rpx;
  148. height: 84rpx;
  149. margin: 0 10rpx;
  150. transition: all 0.3s ease;
  151. image {
  152. width: 84rpx;
  153. height: 84rpx;
  154. border-radius: 16rpx;
  155. border: solid 4rpx #fff;
  156. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  157. }
  158. }
  159. .active {
  160. width: 136rpx;
  161. height: 136rpx;
  162. image {
  163. width: 136rpx;
  164. height: 136rpx;
  165. border-radius: 24rpx;
  166. border: solid 4rpx #fff;
  167. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
  168. }
  169. }
  170. }
  171. }
  172. .body {
  173. width: 750rpx;
  174. margin-top: -60rpx;
  175. border-radius: 40rpx 40rpx 0 0;
  176. padding-top: 30rpx;
  177. display: flex;
  178. flex-direction: column;
  179. justify-content: flex-start;
  180. align-items: flex-start;
  181. box-shadow: 0 -10rpx 20rpx rgba(0, 0, 0, 0.05);
  182. position: relative;
  183. z-index: 10;
  184. .article-header {
  185. display: flex;
  186. flex-direction: column;
  187. justify-content: flex-start;
  188. align-items: flex-start;
  189. padding: 40rpx 50rpx 20rpx;
  190. width: 100%;
  191. box-sizing: border-box;
  192. .title {
  193. font-size: 40rpx;
  194. font-weight: bold;
  195. color: #222;
  196. margin-bottom: 20rpx;
  197. line-height: 1.4;
  198. }
  199. .meta-info {
  200. display: flex;
  201. flex-direction: row;
  202. flex-wrap: wrap;
  203. color: #999;
  204. font-size: 26rpx;
  205. .meta-item {
  206. display: flex;
  207. align-items: center;
  208. margin-right: 30rpx;
  209. margin-bottom: 10rpx;
  210. .meta-text {
  211. margin-left: 8rpx;
  212. }
  213. }
  214. }
  215. }
  216. .divider {
  217. height: 1rpx;
  218. background-color: #eee;
  219. width: 650rpx;
  220. margin: 10rpx auto 30rpx;
  221. }
  222. .article-content {
  223. padding: 0 50rpx 40rpx;
  224. width: 100%;
  225. box-sizing: border-box;
  226. .content {
  227. font-size: 32rpx;
  228. color: #333;
  229. line-height: 1.8;
  230. text-align: justify;
  231. }
  232. }
  233. .article-footer {
  234. width: 100%;
  235. padding: 20rpx 0;
  236. border-top: 1rpx solid #f0f0f0;
  237. .action-bar {
  238. display: flex;
  239. justify-content: space-around;
  240. align-items: center;
  241. .action-item {
  242. display: flex;
  243. flex-direction: column;
  244. align-items: center;
  245. padding: 20rpx 0;
  246. .fa {
  247. font-size: 40rpx;
  248. color: #666;
  249. margin-bottom: 10rpx;
  250. &.liked {
  251. color: #ff5151;
  252. }
  253. }
  254. .action-text {
  255. font-size: 24rpx;
  256. color: #666;
  257. }
  258. &:active {
  259. opacity: 0.7;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. .topStatusBar {
  266. width: 100%;
  267. height: 48rpx;
  268. display: flex;
  269. align-items: center;
  270. justify-content: center;
  271. &.mb20 {
  272. margin-bottom: 20rpx;
  273. }
  274. }
  275. .inProgress {
  276. background: #acf934;
  277. }
  278. .fail {
  279. background: #fd3a3a;
  280. color: #fff;
  281. }
  282. // 灵感模式的样式
  283. .inspiration-content {
  284. width: 700rpx;
  285. min-height: 1000rpx;
  286. padding: 0;
  287. margin: 0 auto;
  288. // background: url("../../static/makedetail/cz_img_zhanshi.png") top center/100% no-repeat;
  289. box-sizing: border-box;
  290. overflow: hidden;
  291. display: flex;
  292. align-items: center;
  293. justify-content: center;
  294. flex-direction: column;
  295. image {
  296. width: 100%;
  297. height: auto;
  298. margin: 0;
  299. }
  300. .inspirationPictures {
  301. border-radius: 0px 0px 32rpx 32rpx;
  302. border: 2rpx solid #000000;
  303. }
  304. }
  305. // 音乐模式样式
  306. .musicContentBox {
  307. padding-top: 20rpx;
  308. .headCard {
  309. background: #fff;
  310. width: 694rpx;
  311. height: 172rpx;
  312. border-radius: 20rpx;
  313. box-sizing: border-box;
  314. padding: 20rpx 24rpx 28rpx 20rpx;
  315. margin: 0rpx auto;
  316. display: flex;
  317. justify-content: space-between;
  318. align-items: center;
  319. .songCover {
  320. width: 124rpx;
  321. height: 124rpx;
  322. border-radius: 16rpx;
  323. }
  324. .songInfo {
  325. width: 400rpx;
  326. .songTitle {
  327. font-family: PingFang SC;
  328. font-weight: 400;
  329. font-size: 34rpx;
  330. color: #1f1f1f;
  331. padding-bottom: 4rpx;
  332. }
  333. .songTag {
  334. display: flex;
  335. flex-wrap: wrap;
  336. max-height: 88rpx;
  337. overflow: hidden;
  338. .tag {
  339. padding: 2rpx 6rpx;
  340. font-family: PingFang SC;
  341. font-weight: 400;
  342. font-size: 20rpx;
  343. color: #1f1f1f;
  344. border-radius: 8rpx;
  345. border: 2rpx solid #e6e6e6;
  346. margin-right: 8rpx;
  347. margin-bottom: 5rpx;
  348. }
  349. }
  350. }
  351. .playerButton {
  352. width: 76rpx;
  353. height: 76rpx;
  354. }
  355. }
  356. .contentHeader {
  357. position: relative;
  358. left: 0;
  359. top: 0;
  360. padding-bottom: 40rpx;
  361. .musicContent {
  362. width: calc(100% - 76rpx);
  363. height: 620rpx;
  364. margin: 38rpx auto;
  365. margin-right: 0;
  366. overflow: hidden;
  367. overflow-y: auto;
  368. background: url("../../static/makedetail/cz_img_cd.png") center right/auto
  369. 100% no-repeat;
  370. background-position-x: 530%;
  371. box-sizing: border-box;
  372. padding: 200rpx 0;
  373. .roll {
  374. position: absolute;
  375. left: 28rpx;
  376. top: 50%;
  377. transform: translateY(-50%);
  378. width: 26rpx;
  379. height: 120rpx;
  380. }
  381. }
  382. .maskLayer {
  383. width: 60%;
  384. height: 100%;
  385. position: absolute;
  386. left: 0;
  387. top: 0;
  388. background: linear-gradient(
  389. to bottom,
  390. rgba(242, 246, 242, 0.8) 0,
  391. rgba(242, 246, 242, 0) 45%,
  392. rgba(242, 246, 242, 0) 55%,
  393. rgba(242, 246, 242, 0.8) 100%
  394. );
  395. pointer-events: none;
  396. }
  397. }
  398. }
  399. // 作品描述
  400. .workDescription {
  401. margin: 20rpx 28rpx 80rpx 28rpx;
  402. background: #fff;
  403. border-radius: 20rpx;
  404. padding: 22rpx 28rpx 32rpx 28rpx;
  405. .workDescription-title {
  406. font-weight: 400;
  407. font-family: "PingFang SC-Bold";
  408. font-size: 36rpx;
  409. display: flex;
  410. align-content: center;
  411. padding-bottom: 24rpx;
  412. .pen {
  413. width: 36rpx;
  414. height: 36rpx;
  415. margin-top: 10rpx;
  416. margin-left: 5rpx;
  417. }
  418. }
  419. .workDescription-content {
  420. font-size: 28rpx;
  421. color: #1f1f1f;
  422. }
  423. }
  424. .floating-bar {
  425. background: #ffffff;
  426. border-radius: 20rpx;
  427. color: #1f1f1f;
  428. }
  429. /* 底部漂浮栏样式 */
  430. .floating-bar {
  431. position: fixed;
  432. bottom: 0;
  433. left: 0;
  434. right: 0;
  435. background-color: #fff;
  436. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  437. padding: 20rpx 30rpx;
  438. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  439. z-index: 100;
  440. .floating-bar-content {
  441. display: flex;
  442. align-items: center;
  443. .add-note-btn {
  444. border-radius: 58rpx;
  445. border: 4rpx solid #000000;
  446. display: flex;
  447. justify-content: center;
  448. align-items: center;
  449. width: 220rpx;
  450. height: 80rpx;
  451. &:active {
  452. background-color: #e5e5e5;
  453. }
  454. }
  455. text {
  456. font-family: PingFang SC, PingFang SC;
  457. font-weight: 400;
  458. font-size: 16px;
  459. color: #1f1f1f;
  460. }
  461. .publish-btn {
  462. flex: 3;
  463. height: 80rpx;
  464. background: #1f1f1f;
  465. margin-left: 20rpx;
  466. border-radius: 40rpx;
  467. display: flex;
  468. justify-content: center;
  469. align-items: center;
  470. text {
  471. color: #fff;
  472. }
  473. &:active {
  474. opacity: 0.9;
  475. }
  476. }
  477. }
  478. }
  479. /* 弹窗样式 */
  480. .popup-mask {
  481. position: fixed;
  482. top: 0;
  483. left: 0;
  484. right: 0;
  485. bottom: 0;
  486. background-color: rgba(0, 0, 0, 0.5);
  487. z-index: 998;
  488. }
  489. .note-popup {
  490. position: fixed;
  491. bottom: 0;
  492. left: 0;
  493. right: 0;
  494. background-color: #fff;
  495. border-radius: 30rpx 30rpx 0 0;
  496. z-index: 999;
  497. overflow: hidden;
  498. animation: slideUp 0.3s ease;
  499. .popup-header {
  500. padding: 30rpx;
  501. text-align: center;
  502. border-bottom: 1rpx solid #f0f0f0;
  503. .popup-title {
  504. font-size: 32rpx;
  505. font-weight: bold;
  506. color: #333;
  507. }
  508. }
  509. .popup-content {
  510. padding: 30rpx;
  511. .note-textarea {
  512. width: 100%;
  513. height: 300rpx;
  514. background-color: #f8f8f8;
  515. border-radius: 16rpx;
  516. padding: 20rpx;
  517. font-size: 28rpx;
  518. color: #333;
  519. box-sizing: border-box;
  520. }
  521. .word-count {
  522. text-align: right;
  523. font-size: 24rpx;
  524. color: #999;
  525. margin-top: 10rpx;
  526. }
  527. }
  528. /* 像素颜色显示区域样式 */
  529. .pixel-color {
  530. display: flex;
  531. align-items: center;
  532. margin: 15rpx 0;
  533. padding: 12rpx 16rpx;
  534. background: #f9f9f9;
  535. border-radius: 12rpx;
  536. .color-box {
  537. width: 40rpx;
  538. height: 40rpx;
  539. border-radius: 8rpx;
  540. margin-right: 16rpx;
  541. border: 1px solid #eee;
  542. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  543. &.loading {
  544. background: linear-gradient(
  545. 45deg,
  546. #f0f0f0 25%,
  547. #e0e0e0 25%,
  548. #e0e0e0 50%,
  549. #f0f0f0 50%,
  550. #f0f0f0 75%,
  551. #e0e0e0 75%
  552. );
  553. background-size: 10rpx 10rpx;
  554. animation: loading 1s linear infinite;
  555. }
  556. }
  557. .color-info {
  558. display: flex;
  559. flex-direction: column;
  560. }
  561. .color-text {
  562. font-size: 24rpx;
  563. color: #666;
  564. margin-bottom: 4rpx;
  565. }
  566. .color-value {
  567. font-size: 24rpx;
  568. color: #333;
  569. font-family: monospace;
  570. margin-bottom: 4rpx;
  571. }
  572. .color-hex {
  573. font-size: 24rpx;
  574. color: #444;
  575. font-family: monospace;
  576. font-weight: bold;
  577. }
  578. &.loading {
  579. background: #f5f5f5;
  580. }
  581. }
  582. @keyframes loading {
  583. from {
  584. background-position: 0 0;
  585. }
  586. to {
  587. background-position: 20rpx 0;
  588. }
  589. }
  590. .popup-footer {
  591. display: flex;
  592. border-top: 1rpx solid #f0f0f0;
  593. .cancel-btn,
  594. .confirm-btn {
  595. flex: 1;
  596. height: 100rpx;
  597. display: flex;
  598. justify-content: center;
  599. align-items: center;
  600. text {
  601. font-size: 30rpx;
  602. }
  603. }
  604. .cancel-btn {
  605. background-color: #f5f5f5;
  606. text {
  607. color: #666;
  608. }
  609. &:active {
  610. background-color: #e5e5e5;
  611. }
  612. }
  613. .confirm-btn {
  614. background-color: #8a2be2;
  615. text {
  616. color: #fff;
  617. }
  618. &:active {
  619. background-color: #7a1bd2;
  620. }
  621. }
  622. }
  623. }
  624. @keyframes slideUp {
  625. from {
  626. transform: translateY(100%);
  627. }
  628. to {
  629. transform: translateY(0);
  630. }
  631. }
  632. /* 添加新样式 */
  633. .lyrics-overlay {
  634. position: absolute;
  635. top: 0;
  636. left: 0;
  637. right: 0;
  638. bottom: 0;
  639. display: flex;
  640. justify-content: center;
  641. align-items: center;
  642. background-color: rgba(0, 0, 0, 0.4);
  643. padding: 30rpx;
  644. cursor: grab;
  645. .lyrics-text {
  646. color: #fff;
  647. font-size: 36rpx;
  648. text-align: center;
  649. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5);
  650. font-weight: 500;
  651. line-height: 1.6;
  652. }
  653. }
  654. .lyrics-overlay:active {
  655. cursor: grabbing;
  656. }
  657. .play-button {
  658. position: absolute;
  659. top: 50%;
  660. left: 50%;
  661. transform: translate(-50%, -50%);
  662. width: 120rpx;
  663. height: 120rpx;
  664. background-color: rgba(0, 0, 0, 0.6);
  665. border-radius: 60rpx;
  666. display: flex;
  667. justify-content: center;
  668. align-items: center;
  669. z-index: 10;
  670. .fa {
  671. color: #fff;
  672. font-size: 60rpx;
  673. }
  674. &:active {
  675. background-color: rgba(0, 0, 0, 0.8);
  676. transform: translate(-50%, -50%) scale(0.95);
  677. }
  678. }
  679. .creation-details {
  680. margin-top: 30rpx;
  681. .detail-item {
  682. margin-bottom: 20rpx;
  683. .detail-label {
  684. font-size: 28rpx;
  685. color: #666;
  686. margin-right: 10rpx;
  687. }
  688. .detail-value {
  689. font-size: 28rpx;
  690. color: #333;
  691. }
  692. }
  693. }
  694. .status-info {
  695. margin-top: 40rpx;
  696. .queue-info {
  697. .queue-text {
  698. font-size: 28rpx;
  699. color: #666;
  700. margin-bottom: 10rpx;
  701. }
  702. .progress-bar {
  703. height: 16rpx;
  704. background-color: #f0f0f0;
  705. border-radius: 8rpx;
  706. overflow: hidden;
  707. .progress-fill {
  708. height: 100%;
  709. background: linear-gradient(90deg, #2979ff, #36d6ff);
  710. border-radius: 8rpx;
  711. }
  712. }
  713. }
  714. }
  715. .error-message {
  716. margin-top: 30rpx;
  717. padding: 20rpx;
  718. background-color: #fff5f5;
  719. border-radius: 12rpx;
  720. border-left: 8rpx solid #ff5151;
  721. .error-text {
  722. font-size: 28rpx;
  723. color: #ff5151;
  724. }
  725. }
  726. .failureReason {
  727. padding: 40rpx;
  728. padding-top: 52tpx;
  729. background: #fff;
  730. width: 600rpx;
  731. min-height: 346rpx;
  732. border-radius: 28rpx;
  733. box-sizing: border-box;
  734. .title {
  735. font-family: PingFang SC, PingFang SC;
  736. font-weight: 400;
  737. font-size: 36rpx;
  738. color: #1f1f1f;
  739. text-align: center;
  740. margin-bottom: 24rpx;
  741. }
  742. .reviewContent {
  743. font-family: PingFang SC, PingFang SC;
  744. font-weight: 400;
  745. font-size: 28rpx;
  746. color: #1f1f1f;
  747. }
  748. .btn-box {
  749. background: #1f1f1f;
  750. color: #fff;
  751. margin: 0 auto;
  752. width: 244rpx;
  753. height: 72rpx;
  754. font-size: 32rpx;
  755. font-family: "PingFang SC-Bold";
  756. background: #1f1f1f;
  757. border-radius: 12rpx;
  758. display: flex;
  759. align-items: center;
  760. justify-content: center;
  761. margin-top: 54rpx;
  762. }
  763. }