makeDetail.scss 15 KB

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