makeDetail.scss 15 KB

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