makeDetail.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  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% - 38rpx);
  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: 370%;
  370. box-sizing: border-box;
  371. padding: 200rpx 0;
  372. }
  373. .maskLayer {
  374. width: 60%;
  375. height: 100%;
  376. position: absolute;
  377. left: 0;
  378. top: 0;
  379. background: linear-gradient(
  380. to bottom,
  381. rgba(242, 246, 242, 0.8) 0,
  382. rgba(242, 246, 242, 0) 45%,
  383. rgba(242, 246, 242, 0) 55%,
  384. rgba(242, 246, 242, 0.8) 100%
  385. );
  386. pointer-events: none;
  387. }
  388. }
  389. }
  390. // 作品描述
  391. .workDescription {
  392. margin: 20rpx 28rpx 80rpx 28rpx;
  393. background: #fff;
  394. border-radius: 20rpx;
  395. padding: 22rpx 28rpx 32rpx 28rpx;
  396. .workDescription-title {
  397. font-weight: 400;
  398. font-family: "PingFang SC-Bold";
  399. font-size: 36rpx;
  400. display: flex;
  401. align-content: center;
  402. padding-bottom: 24rpx;
  403. .pen {
  404. width: 36rpx;
  405. height: 36rpx;
  406. margin-top: 10rpx;
  407. margin-left: 5rpx;
  408. }
  409. }
  410. .workDescription-content {
  411. font-size: 28rpx;
  412. color: #1f1f1f;
  413. }
  414. }
  415. .floating-bar {
  416. background: #ffffff;
  417. border-radius: 20rpx;
  418. color: #1f1f1f;
  419. }
  420. /* 底部漂浮栏样式 */
  421. .floating-bar {
  422. position: fixed;
  423. bottom: 0;
  424. left: 0;
  425. right: 0;
  426. background-color: #fff;
  427. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  428. padding: 20rpx 30rpx;
  429. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  430. z-index: 100;
  431. .floating-bar-content {
  432. display: flex;
  433. align-items: center;
  434. .add-note-btn {
  435. border-radius: 58rpx;
  436. border: 4rpx solid #000000;
  437. display: flex;
  438. justify-content: center;
  439. align-items: center;
  440. width: 220rpx;
  441. height: 80rpx;
  442. &:active {
  443. background-color: #e5e5e5;
  444. }
  445. }
  446. text {
  447. font-family: PingFang SC, PingFang SC;
  448. font-weight: 400;
  449. font-size: 16px;
  450. color: #1f1f1f;
  451. }
  452. .publish-btn {
  453. flex: 3;
  454. height: 80rpx;
  455. background: #1f1f1f;
  456. margin-left: 20rpx;
  457. border-radius: 40rpx;
  458. display: flex;
  459. justify-content: center;
  460. align-items: center;
  461. text {
  462. color: #fff;
  463. }
  464. &:active {
  465. opacity: 0.9;
  466. }
  467. }
  468. }
  469. }
  470. /* 弹窗样式 */
  471. .popup-mask {
  472. position: fixed;
  473. top: 0;
  474. left: 0;
  475. right: 0;
  476. bottom: 0;
  477. background-color: rgba(0, 0, 0, 0.5);
  478. z-index: 998;
  479. }
  480. .note-popup {
  481. position: fixed;
  482. bottom: 0;
  483. left: 0;
  484. right: 0;
  485. background-color: #fff;
  486. border-radius: 30rpx 30rpx 0 0;
  487. z-index: 999;
  488. overflow: hidden;
  489. animation: slideUp 0.3s ease;
  490. .popup-header {
  491. padding: 30rpx;
  492. text-align: center;
  493. border-bottom: 1rpx solid #f0f0f0;
  494. .popup-title {
  495. font-size: 32rpx;
  496. font-weight: bold;
  497. color: #333;
  498. }
  499. }
  500. .popup-content {
  501. padding: 30rpx;
  502. .note-textarea {
  503. width: 100%;
  504. height: 300rpx;
  505. background-color: #f8f8f8;
  506. border-radius: 16rpx;
  507. padding: 20rpx;
  508. font-size: 28rpx;
  509. color: #333;
  510. box-sizing: border-box;
  511. }
  512. .word-count {
  513. text-align: right;
  514. font-size: 24rpx;
  515. color: #999;
  516. margin-top: 10rpx;
  517. }
  518. }
  519. /* 像素颜色显示区域样式 */
  520. .pixel-color {
  521. display: flex;
  522. align-items: center;
  523. margin: 15rpx 0;
  524. padding: 12rpx 16rpx;
  525. background: #f9f9f9;
  526. border-radius: 12rpx;
  527. .color-box {
  528. width: 40rpx;
  529. height: 40rpx;
  530. border-radius: 8rpx;
  531. margin-right: 16rpx;
  532. border: 1px solid #eee;
  533. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  534. &.loading {
  535. background: linear-gradient(
  536. 45deg,
  537. #f0f0f0 25%,
  538. #e0e0e0 25%,
  539. #e0e0e0 50%,
  540. #f0f0f0 50%,
  541. #f0f0f0 75%,
  542. #e0e0e0 75%
  543. );
  544. background-size: 10rpx 10rpx;
  545. animation: loading 1s linear infinite;
  546. }
  547. }
  548. .color-info {
  549. display: flex;
  550. flex-direction: column;
  551. }
  552. .color-text {
  553. font-size: 24rpx;
  554. color: #666;
  555. margin-bottom: 4rpx;
  556. }
  557. .color-value {
  558. font-size: 24rpx;
  559. color: #333;
  560. font-family: monospace;
  561. margin-bottom: 4rpx;
  562. }
  563. .color-hex {
  564. font-size: 24rpx;
  565. color: #444;
  566. font-family: monospace;
  567. font-weight: bold;
  568. }
  569. &.loading {
  570. background: #f5f5f5;
  571. }
  572. }
  573. @keyframes loading {
  574. from {
  575. background-position: 0 0;
  576. }
  577. to {
  578. background-position: 20rpx 0;
  579. }
  580. }
  581. .popup-footer {
  582. display: flex;
  583. border-top: 1rpx solid #f0f0f0;
  584. .cancel-btn,
  585. .confirm-btn {
  586. flex: 1;
  587. height: 100rpx;
  588. display: flex;
  589. justify-content: center;
  590. align-items: center;
  591. text {
  592. font-size: 30rpx;
  593. }
  594. }
  595. .cancel-btn {
  596. background-color: #f5f5f5;
  597. text {
  598. color: #666;
  599. }
  600. &:active {
  601. background-color: #e5e5e5;
  602. }
  603. }
  604. .confirm-btn {
  605. background-color: #8a2be2;
  606. text {
  607. color: #fff;
  608. }
  609. &:active {
  610. background-color: #7a1bd2;
  611. }
  612. }
  613. }
  614. }
  615. @keyframes slideUp {
  616. from {
  617. transform: translateY(100%);
  618. }
  619. to {
  620. transform: translateY(0);
  621. }
  622. }
  623. /* 添加新样式 */
  624. .lyrics-overlay {
  625. position: absolute;
  626. top: 0;
  627. left: 0;
  628. right: 0;
  629. bottom: 0;
  630. display: flex;
  631. justify-content: center;
  632. align-items: center;
  633. background-color: rgba(0, 0, 0, 0.4);
  634. padding: 30rpx;
  635. cursor: grab;
  636. .lyrics-text {
  637. color: #fff;
  638. font-size: 36rpx;
  639. text-align: center;
  640. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5);
  641. font-weight: 500;
  642. line-height: 1.6;
  643. }
  644. }
  645. .lyrics-overlay:active {
  646. cursor: grabbing;
  647. }
  648. .play-button {
  649. position: absolute;
  650. top: 50%;
  651. left: 50%;
  652. transform: translate(-50%, -50%);
  653. width: 120rpx;
  654. height: 120rpx;
  655. background-color: rgba(0, 0, 0, 0.6);
  656. border-radius: 60rpx;
  657. display: flex;
  658. justify-content: center;
  659. align-items: center;
  660. z-index: 10;
  661. .fa {
  662. color: #fff;
  663. font-size: 60rpx;
  664. }
  665. &:active {
  666. background-color: rgba(0, 0, 0, 0.8);
  667. transform: translate(-50%, -50%) scale(0.95);
  668. }
  669. }
  670. .creation-details {
  671. margin-top: 30rpx;
  672. .detail-item {
  673. margin-bottom: 20rpx;
  674. .detail-label {
  675. font-size: 28rpx;
  676. color: #666;
  677. margin-right: 10rpx;
  678. }
  679. .detail-value {
  680. font-size: 28rpx;
  681. color: #333;
  682. }
  683. }
  684. }
  685. .status-info {
  686. margin-top: 40rpx;
  687. .queue-info {
  688. .queue-text {
  689. font-size: 28rpx;
  690. color: #666;
  691. margin-bottom: 10rpx;
  692. }
  693. .progress-bar {
  694. height: 16rpx;
  695. background-color: #f0f0f0;
  696. border-radius: 8rpx;
  697. overflow: hidden;
  698. .progress-fill {
  699. height: 100%;
  700. background: linear-gradient(90deg, #2979ff, #36d6ff);
  701. border-radius: 8rpx;
  702. }
  703. }
  704. }
  705. }
  706. .error-message {
  707. margin-top: 30rpx;
  708. padding: 20rpx;
  709. background-color: #fff5f5;
  710. border-radius: 12rpx;
  711. border-left: 8rpx solid #ff5151;
  712. .error-text {
  713. font-size: 28rpx;
  714. color: #ff5151;
  715. }
  716. }
  717. .failureReason {
  718. padding: 40rpx;
  719. padding-top: 52tpx;
  720. background: #fff;
  721. width: 600rpx;
  722. min-height: 346rpx;
  723. border-radius: 28rpx;
  724. box-sizing: border-box;
  725. .title {
  726. font-family: PingFang SC, PingFang SC;
  727. font-weight: 400;
  728. font-size: 36rpx;
  729. color: #1f1f1f;
  730. text-align: center;
  731. margin-bottom: 24rpx;
  732. }
  733. .reviewContent {
  734. font-family: PingFang SC, PingFang SC;
  735. font-weight: 400;
  736. font-size: 28rpx;
  737. color: #1f1f1f;
  738. }
  739. .btn-box {
  740. background: #1f1f1f;
  741. color: #fff;
  742. margin: 0 auto;
  743. width: 244rpx;
  744. height: 72rpx;
  745. font-size: 32rpx;
  746. font-family: "PingFang SC-Bold";
  747. background: #1f1f1f;
  748. border-radius: 12rpx;
  749. display: flex;
  750. align-items: center;
  751. justify-content: center;
  752. margin-top: 54rpx;
  753. }
  754. }