makeDetail.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  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. // 灵感模式的样式
  265. .inspiration-content {
  266. width: 700rpx;
  267. min-height: 1000rpx;
  268. padding: 0;
  269. margin: 0 auto;
  270. // background: url("../../static/makedetail/cz_img_zhanshi.png") top center/100% no-repeat;
  271. box-sizing: border-box;
  272. overflow: hidden;
  273. display: flex;
  274. align-items: center;
  275. justify-content: center;
  276. flex-direction: column;
  277. image{
  278. width: 100%;
  279. height: auto;
  280. margin: 0;
  281. }
  282. .inspirationPictures{
  283. border-radius: 0px 0px 32rpx 32rpx;
  284. border: 2rpx solid #000000;
  285. }
  286. }
  287. // 作品描述
  288. .workDescription {
  289. margin: 20rpx 28rpx 80rpx 28rpx;
  290. background: #fff;
  291. border-radius: 20rpx;
  292. padding: 22rpx 28rpx 32rpx 28rpx;
  293. .workDescription-title {
  294. font-weight: 400;
  295. font-family: "PingFang SC-Bold";
  296. font-size: 36rpx;
  297. display: flex;
  298. align-content: center;
  299. padding-bottom: 24rpx;
  300. .pen {
  301. width: 36rpx;
  302. height: 36rpx;
  303. margin-top: 10rpx;
  304. margin-left: 5rpx;
  305. }
  306. }
  307. .workDescription-content {
  308. font-size: 28rpx;
  309. color: #1f1f1f;
  310. }
  311. }
  312. .floating-bar {
  313. background: #ffffff;
  314. border-radius: 20rpx;
  315. color: #1f1f1f;
  316. }
  317. /* 底部漂浮栏样式 */
  318. .floating-bar {
  319. position: fixed;
  320. bottom: 0;
  321. left: 0;
  322. right: 0;
  323. background-color: #fff;
  324. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  325. padding: 20rpx 30rpx;
  326. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  327. z-index: 100;
  328. .floating-bar-content {
  329. display: flex;
  330. align-items: center;
  331. .add-note-btn {
  332. border-radius: 58rpx;
  333. border: 4rpx solid #000000;
  334. display: flex;
  335. justify-content: center;
  336. align-items: center;
  337. width: 220rpx;
  338. height: 80rpx;
  339. &:active {
  340. background-color: #e5e5e5;
  341. }
  342. }
  343. text {
  344. font-family: PingFang SC, PingFang SC;
  345. font-weight: 400;
  346. font-size: 16px;
  347. color: #1f1f1f;
  348. }
  349. .publish-btn {
  350. flex: 3;
  351. height: 80rpx;
  352. background: #1f1f1f;
  353. margin-left: 20rpx;
  354. border-radius: 40rpx;
  355. display: flex;
  356. justify-content: center;
  357. align-items: center;
  358. text {
  359. color: #fff;
  360. }
  361. &:active {
  362. opacity: 0.9;
  363. }
  364. }
  365. }
  366. }
  367. /* 弹窗样式 */
  368. .popup-mask {
  369. position: fixed;
  370. top: 0;
  371. left: 0;
  372. right: 0;
  373. bottom: 0;
  374. background-color: rgba(0, 0, 0, 0.5);
  375. z-index: 998;
  376. }
  377. .note-popup {
  378. position: fixed;
  379. bottom: 0;
  380. left: 0;
  381. right: 0;
  382. background-color: #fff;
  383. border-radius: 30rpx 30rpx 0 0;
  384. z-index: 999;
  385. overflow: hidden;
  386. animation: slideUp 0.3s ease;
  387. .popup-header {
  388. padding: 30rpx;
  389. text-align: center;
  390. border-bottom: 1rpx solid #f0f0f0;
  391. .popup-title {
  392. font-size: 32rpx;
  393. font-weight: bold;
  394. color: #333;
  395. }
  396. }
  397. .popup-content {
  398. padding: 30rpx;
  399. .note-textarea {
  400. width: 100%;
  401. height: 300rpx;
  402. background-color: #f8f8f8;
  403. border-radius: 16rpx;
  404. padding: 20rpx;
  405. font-size: 28rpx;
  406. color: #333;
  407. box-sizing: border-box;
  408. }
  409. .word-count {
  410. text-align: right;
  411. font-size: 24rpx;
  412. color: #999;
  413. margin-top: 10rpx;
  414. }
  415. }
  416. /* 像素颜色显示区域样式 */
  417. .pixel-color {
  418. display: flex;
  419. align-items: center;
  420. margin: 15rpx 0;
  421. padding: 12rpx 16rpx;
  422. background: #f9f9f9;
  423. border-radius: 12rpx;
  424. .color-box {
  425. width: 40rpx;
  426. height: 40rpx;
  427. border-radius: 8rpx;
  428. margin-right: 16rpx;
  429. border: 1px solid #eee;
  430. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  431. &.loading {
  432. background: linear-gradient(
  433. 45deg,
  434. #f0f0f0 25%,
  435. #e0e0e0 25%,
  436. #e0e0e0 50%,
  437. #f0f0f0 50%,
  438. #f0f0f0 75%,
  439. #e0e0e0 75%
  440. );
  441. background-size: 10rpx 10rpx;
  442. animation: loading 1s linear infinite;
  443. }
  444. }
  445. .color-info {
  446. display: flex;
  447. flex-direction: column;
  448. }
  449. .color-text {
  450. font-size: 24rpx;
  451. color: #666;
  452. margin-bottom: 4rpx;
  453. }
  454. .color-value {
  455. font-size: 24rpx;
  456. color: #333;
  457. font-family: monospace;
  458. margin-bottom: 4rpx;
  459. }
  460. .color-hex {
  461. font-size: 24rpx;
  462. color: #444;
  463. font-family: monospace;
  464. font-weight: bold;
  465. }
  466. &.loading {
  467. background: #f5f5f5;
  468. }
  469. }
  470. @keyframes loading {
  471. from {
  472. background-position: 0 0;
  473. }
  474. to {
  475. background-position: 20rpx 0;
  476. }
  477. }
  478. .popup-footer {
  479. display: flex;
  480. border-top: 1rpx solid #f0f0f0;
  481. .cancel-btn,
  482. .confirm-btn {
  483. flex: 1;
  484. height: 100rpx;
  485. display: flex;
  486. justify-content: center;
  487. align-items: center;
  488. text {
  489. font-size: 30rpx;
  490. }
  491. }
  492. .cancel-btn {
  493. background-color: #f5f5f5;
  494. text {
  495. color: #666;
  496. }
  497. &:active {
  498. background-color: #e5e5e5;
  499. }
  500. }
  501. .confirm-btn {
  502. background-color: #8a2be2;
  503. text {
  504. color: #fff;
  505. }
  506. &:active {
  507. background-color: #7a1bd2;
  508. }
  509. }
  510. }
  511. }
  512. @keyframes slideUp {
  513. from {
  514. transform: translateY(100%);
  515. }
  516. to {
  517. transform: translateY(0);
  518. }
  519. }
  520. /* 添加新样式 */
  521. .lyrics-overlay {
  522. position: absolute;
  523. top: 0;
  524. left: 0;
  525. right: 0;
  526. bottom: 0;
  527. display: flex;
  528. justify-content: center;
  529. align-items: center;
  530. background-color: rgba(0, 0, 0, 0.4);
  531. padding: 30rpx;
  532. cursor: grab;
  533. .lyrics-text {
  534. color: #fff;
  535. font-size: 36rpx;
  536. text-align: center;
  537. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5);
  538. font-weight: 500;
  539. line-height: 1.6;
  540. }
  541. }
  542. .lyrics-overlay:active {
  543. cursor: grabbing;
  544. }
  545. .play-button {
  546. position: absolute;
  547. top: 50%;
  548. left: 50%;
  549. transform: translate(-50%, -50%);
  550. width: 120rpx;
  551. height: 120rpx;
  552. background-color: rgba(0, 0, 0, 0.6);
  553. border-radius: 60rpx;
  554. display: flex;
  555. justify-content: center;
  556. align-items: center;
  557. z-index: 10;
  558. .fa {
  559. color: #fff;
  560. font-size: 60rpx;
  561. }
  562. &:active {
  563. background-color: rgba(0, 0, 0, 0.8);
  564. transform: translate(-50%, -50%) scale(0.95);
  565. }
  566. }
  567. .creation-details {
  568. margin-top: 30rpx;
  569. .detail-item {
  570. margin-bottom: 20rpx;
  571. .detail-label {
  572. font-size: 28rpx;
  573. color: #666;
  574. margin-right: 10rpx;
  575. }
  576. .detail-value {
  577. font-size: 28rpx;
  578. color: #333;
  579. }
  580. }
  581. }
  582. .status-info {
  583. margin-top: 40rpx;
  584. .queue-info {
  585. .queue-text {
  586. font-size: 28rpx;
  587. color: #666;
  588. margin-bottom: 10rpx;
  589. }
  590. .progress-bar {
  591. height: 16rpx;
  592. background-color: #f0f0f0;
  593. border-radius: 8rpx;
  594. overflow: hidden;
  595. .progress-fill {
  596. height: 100%;
  597. background: linear-gradient(90deg, #2979ff, #36d6ff);
  598. border-radius: 8rpx;
  599. }
  600. }
  601. }
  602. }
  603. .error-message {
  604. margin-top: 30rpx;
  605. padding: 20rpx;
  606. background-color: #fff5f5;
  607. border-radius: 12rpx;
  608. border-left: 8rpx solid #ff5151;
  609. .error-text {
  610. font-size: 28rpx;
  611. color: #ff5151;
  612. }
  613. }