makeDetail.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  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-color: #ffffff;
  5. width: 100%;
  6. color: #333;
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  8. }
  9. .page {
  10. background-color: #ffffff;
  11. width: 100%;
  12. }
  13. /* 自定义导航栏样式 */
  14. .custom-navbar {
  15. display: flex;
  16. flex-direction: row;
  17. align-items: center;
  18. justify-content: space-between;
  19. width: 100%;
  20. height: 90rpx;
  21. padding: 0 20rpx;
  22. padding-top: var(--status-bar-height);
  23. background-color: #ffffff;
  24. position: sticky;
  25. top: 0;
  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: 50rpx;
  49. height: 50rpx;
  50. border-radius: 25rpx;
  51. margin-right: 10rpx;
  52. }
  53. .navbar-text {
  54. font-size: 32rpx;
  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;height: 320rpx;
  87. padding-top: calc(var(--status-bar-height) + 0rpx);
  88. .left {
  89. display: flex;flex-direction: row;width:200rpx;height:120rpx;
  90. justify-content: center;
  91. padding-left:50rpx;
  92. image {
  93. width:124rpx;height:40rpx;
  94. }
  95. }
  96. }
  97. .thread {
  98. height: 20rpx;
  99. }
  100. .thread2 {
  101. height: 60rpx;
  102. }
  103. .topUser {
  104. width:750rpx;
  105. height:750rpx;
  106. position: relative;
  107. overflow: hidden;
  108. .home_image{
  109. width: 100%;
  110. height: 100%;
  111. transition: transform 0.3s ease;
  112. &:active {
  113. transform: scale(1.05);
  114. }
  115. }
  116. .image-indicator {
  117. position: absolute;
  118. top: 30rpx;
  119. right: 30rpx;
  120. background-color: rgba(0, 0, 0, 0.5);
  121. color: #fff;
  122. padding: 8rpx 16rpx;
  123. border-radius: 20rpx;
  124. font-size: 24rpx;
  125. }
  126. .list {
  127. position: absolute;
  128. bottom: 20rpx;
  129. width:100%;
  130. display: flex;
  131. flex-direction: row;
  132. justify-content: center;
  133. align-items: flex-end;
  134. padding: 0 20rpx;
  135. overflow-x: auto;
  136. &::-webkit-scrollbar {
  137. display: none;
  138. }
  139. .img {
  140. width:84rpx;height:84rpx;margin: 0 10rpx;
  141. transition: all 0.3s ease;
  142. image {
  143. width:84rpx;height:84rpx;border-radius: 16rpx;border: solid 4rpx #fff;
  144. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  145. }
  146. }
  147. .active {
  148. width:136rpx;height:136rpx;
  149. image {
  150. width:136rpx;height:136rpx;border-radius: 24rpx;border: solid 4rpx #fff;
  151. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
  152. }
  153. }
  154. }
  155. }
  156. .body {
  157. width:750rpx;margin-top:-60rpx;
  158. border-radius: 40rpx 40rpx 0 0;padding-top:30rpx;
  159. display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
  160. box-shadow: 0 -10rpx 20rpx rgba(0, 0, 0, 0.05);
  161. position: relative;
  162. z-index: 10;
  163. .article-header {
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: flex-start;
  167. align-items: flex-start;
  168. padding: 40rpx 50rpx 20rpx;
  169. width: 100%;
  170. box-sizing: border-box;
  171. .title {
  172. font-size: 40rpx;
  173. font-weight: bold;
  174. color: #222;
  175. margin-bottom: 20rpx;
  176. line-height: 1.4;
  177. }
  178. .meta-info {
  179. display: flex;
  180. flex-direction: row;
  181. flex-wrap: wrap;
  182. color: #999;
  183. font-size: 26rpx;
  184. .meta-item {
  185. display: flex;
  186. align-items: center;
  187. margin-right: 30rpx;
  188. margin-bottom: 10rpx;
  189. .meta-text {
  190. margin-left: 8rpx;
  191. }
  192. }
  193. }
  194. }
  195. .divider {
  196. height: 1rpx;
  197. background-color: #eee;
  198. width: 650rpx;
  199. margin: 10rpx auto 30rpx;
  200. }
  201. .article-content {
  202. padding: 0 50rpx 40rpx;
  203. width: 100%;
  204. box-sizing: border-box;
  205. .content {
  206. font-size: 32rpx;
  207. color: #333;
  208. line-height: 1.8;
  209. text-align: justify;
  210. }
  211. }
  212. .article-footer {
  213. width: 100%;
  214. padding: 20rpx 0;
  215. border-top: 1rpx solid #f0f0f0;
  216. .action-bar {
  217. display: flex;
  218. justify-content: space-around;
  219. align-items: center;
  220. .action-item {
  221. display: flex;
  222. flex-direction: column;
  223. align-items: center;
  224. padding: 20rpx 0;
  225. .fa {
  226. font-size: 40rpx;
  227. color: #666;
  228. margin-bottom: 10rpx;
  229. &.liked {
  230. color: #ff5151;
  231. }
  232. }
  233. .action-text {
  234. font-size: 24rpx;
  235. color: #666;
  236. }
  237. &:active {
  238. opacity: 0.7;
  239. }
  240. }
  241. }
  242. }
  243. }
  244. /* 底部漂浮栏样式 */
  245. .floating-bar {
  246. position: fixed;
  247. bottom: 0;
  248. left: 0;
  249. right: 0;
  250. background-color: #fff;
  251. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  252. padding: 20rpx 30rpx;
  253. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  254. z-index: 100;
  255. .floating-bar-content {
  256. display: flex;
  257. align-items: center;
  258. .add-note-btn {
  259. flex: 1;
  260. height: 80rpx;
  261. background-color: #f5f5f5;
  262. border-radius: 40rpx;
  263. display: flex;
  264. justify-content: center;
  265. align-items: center;
  266. margin-right: 20rpx;
  267. max-width: 160rpx;
  268. text {
  269. font-size: 28rpx;
  270. color: #666;
  271. }
  272. &:active {
  273. background-color: #e5e5e5;
  274. }
  275. }
  276. .publish-btn {
  277. flex: 3;
  278. height: 80rpx;
  279. background: linear-gradient(90deg, #8a2be2, #9932cc);
  280. border-radius: 40rpx;
  281. display: flex;
  282. justify-content: center;
  283. align-items: center;
  284. text {
  285. font-size: 30rpx;
  286. color: #fff;
  287. font-weight: 500;
  288. }
  289. &:active {
  290. opacity: 0.9;
  291. }
  292. }
  293. }
  294. }
  295. /* 弹窗样式 */
  296. .popup-mask {
  297. position: fixed;
  298. top: 0;
  299. left: 0;
  300. right: 0;
  301. bottom: 0;
  302. background-color: rgba(0, 0, 0, 0.5);
  303. z-index: 998;
  304. }
  305. .note-popup {
  306. position: fixed;
  307. bottom: 0;
  308. left: 0;
  309. right: 0;
  310. background-color: #fff;
  311. border-radius: 30rpx 30rpx 0 0;
  312. z-index: 999;
  313. overflow: hidden;
  314. animation: slideUp 0.3s ease;
  315. .popup-header {
  316. padding: 30rpx;
  317. text-align: center;
  318. border-bottom: 1rpx solid #f0f0f0;
  319. .popup-title {
  320. font-size: 32rpx;
  321. font-weight: bold;
  322. color: #333;
  323. }
  324. }
  325. .popup-content {
  326. padding: 30rpx;
  327. .note-textarea {
  328. width: 100%;
  329. height: 300rpx;
  330. background-color: #f8f8f8;
  331. border-radius: 16rpx;
  332. padding: 20rpx;
  333. font-size: 28rpx;
  334. color: #333;
  335. box-sizing: border-box;
  336. }
  337. .word-count {
  338. text-align: right;
  339. font-size: 24rpx;
  340. color: #999;
  341. margin-top: 10rpx;
  342. }
  343. }
  344. .popup-footer {
  345. display: flex;
  346. border-top: 1rpx solid #f0f0f0;
  347. .cancel-btn, .confirm-btn {
  348. flex: 1;
  349. height: 100rpx;
  350. display: flex;
  351. justify-content: center;
  352. align-items: center;
  353. text {
  354. font-size: 30rpx;
  355. }
  356. }
  357. .cancel-btn {
  358. background-color: #f5f5f5;
  359. text {
  360. color: #666;
  361. }
  362. &:active {
  363. background-color: #e5e5e5;
  364. }
  365. }
  366. .confirm-btn {
  367. background-color: #8a2be2;
  368. text {
  369. color: #fff;
  370. }
  371. &:active {
  372. background-color: #7a1bd2;
  373. }
  374. }
  375. }
  376. }
  377. @keyframes slideUp {
  378. from {
  379. transform: translateY(100%);
  380. }
  381. to {
  382. transform: translateY(0);
  383. }
  384. }
  385. /* 添加新样式 */
  386. .lyrics-overlay {
  387. position: absolute;
  388. top: 0;
  389. left: 0;
  390. right: 0;
  391. bottom: 0;
  392. display: flex;
  393. justify-content: center;
  394. align-items: center;
  395. background-color: rgba(0, 0, 0, 0.4);
  396. padding: 30rpx;
  397. .lyrics-text {
  398. color: #fff;
  399. font-size: 36rpx;
  400. text-align: center;
  401. text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5);
  402. font-weight: 500;
  403. line-height: 1.6;
  404. }
  405. }
  406. .play-button {
  407. position: absolute;
  408. top: 50%;
  409. left: 50%;
  410. transform: translate(-50%, -50%);
  411. width: 120rpx;
  412. height: 120rpx;
  413. background-color: rgba(0, 0, 0, 0.6);
  414. border-radius: 60rpx;
  415. display: flex;
  416. justify-content: center;
  417. align-items: center;
  418. z-index: 10;
  419. .fa {
  420. color: #fff;
  421. font-size: 60rpx;
  422. }
  423. &:active {
  424. background-color: rgba(0, 0, 0, 0.8);
  425. transform: translate(-50%, -50%) scale(0.95);
  426. }
  427. }
  428. .creation-details {
  429. margin-top: 30rpx;
  430. .detail-item {
  431. margin-bottom: 20rpx;
  432. .detail-label {
  433. font-size: 28rpx;
  434. color: #666;
  435. margin-right: 10rpx;
  436. }
  437. .detail-value {
  438. font-size: 28rpx;
  439. color: #333;
  440. }
  441. }
  442. }
  443. .status-info {
  444. margin-top: 40rpx;
  445. .queue-info {
  446. .queue-text {
  447. font-size: 28rpx;
  448. color: #666;
  449. margin-bottom: 10rpx;
  450. }
  451. .progress-bar {
  452. height: 16rpx;
  453. background-color: #f0f0f0;
  454. border-radius: 8rpx;
  455. overflow: hidden;
  456. .progress-fill {
  457. height: 100%;
  458. background: linear-gradient(90deg, #2979ff, #36d6ff);
  459. border-radius: 8rpx;
  460. }
  461. }
  462. }
  463. }
  464. .error-message {
  465. margin-top: 30rpx;
  466. padding: 20rpx;
  467. background-color: #fff5f5;
  468. border-radius: 12rpx;
  469. border-left: 8rpx solid #ff5151;
  470. .error-text {
  471. font-size: 28rpx;
  472. color: #ff5151;
  473. }
  474. }