makeDetail.scss 15 KB

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