articleDetail copy.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  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,
  8. Arial, sans-serif;
  9. }
  10. .page {
  11. background-color: #ffffff;
  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: calc( 90rpx + var(--status-bar-height));
  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. min-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. image {
  81. width: 64rpx;
  82. height: 64rpx;
  83. }
  84. .followTheAuthor {
  85. padding: 6rpx 20rpx 8rpx 15rpx;
  86. border-radius: 26rpx;
  87. margin-right: 16rpx;
  88. transition: all 0.6s;
  89. border: 2rpx solid transparent;
  90. &.followTheAuthor1 {
  91. color: #acf934;
  92. background: #1f1f1f;
  93. }
  94. &.followTheAuthor0 {
  95. border: 2rpx solid #1f1f1f;
  96. background: #fff;
  97. }
  98. }
  99. }
  100. }
  101. // 评论区域样式
  102. .comment-section {
  103. background-color: #f8f8f8;
  104. padding: 30rpx 0;
  105. margin-top: 20rpx;
  106. border-radius: 30rpx 30rpx 0 0;
  107. .section-header {
  108. display: flex;
  109. align-items: center;
  110. padding: 0 30rpx 20rpx;
  111. border-bottom: 1rpx solid #eee;
  112. margin-bottom: 20rpx;
  113. .fa {
  114. font-size: 36rpx;
  115. color: #2979ff;
  116. }
  117. .section-title {
  118. font-size: 32rpx;
  119. font-weight: bold;
  120. margin: 0 10rpx;
  121. color: #333;
  122. }
  123. .comment-count {
  124. font-size: 28rpx;
  125. color: #999;
  126. }
  127. }
  128. .comment-button {
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. width: 650rpx;
  133. height: 90rpx;
  134. background-color: #2979ff;
  135. color: #fff;
  136. border-radius: 45rpx;
  137. margin: 40rpx auto 20rpx;
  138. font-size: 30rpx;
  139. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  140. transition: all 0.3s ease;
  141. .fa {
  142. margin-right: 10rpx;
  143. }
  144. &:active {
  145. transform: scale(0.97);
  146. background-color: #2567db;
  147. }
  148. }
  149. }
  150. /* 确保评论按钮样式 */
  151. .comment-button {
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. width: 650rpx;
  156. height: 90rpx;
  157. background-color: #2979ff;
  158. color: #fff;
  159. border-radius: 45rpx;
  160. margin: 40rpx auto 20rpx;
  161. font-size: 30rpx;
  162. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  163. }
  164. .header {
  165. display: flex;
  166. flex-direction: row;
  167. justify-content: flex-start;
  168. align-items: center;
  169. width: 750rpx;
  170. height: 320rpx;
  171. padding-top: calc(var(--status-bar-height) + 0rpx);
  172. .left {
  173. display: flex;
  174. flex-direction: row;
  175. width: 200rpx;
  176. height: 120rpx;
  177. justify-content: center;
  178. padding-left: 50rpx;
  179. image {
  180. width: 124rpx;
  181. height: 40rpx;
  182. }
  183. }
  184. }
  185. .thread {
  186. height: 20rpx;
  187. }
  188. .thread2 {
  189. height: 60rpx;
  190. }
  191. .topUser {
  192. width: 750rpx;
  193. height: 750rpx;
  194. position: relative;
  195. overflow: hidden;
  196. .home_image {
  197. width: 100%;
  198. height: 100%;
  199. transition: transform 0.3s ease;
  200. &:active {
  201. transform: scale(1.05);
  202. }
  203. }
  204. .image-indicator {
  205. position: absolute;
  206. top: 30rpx;
  207. right: 30rpx;
  208. background-color: rgba(0, 0, 0, 0.5);
  209. color: #fff;
  210. padding: 8rpx 16rpx;
  211. border-radius: 20rpx;
  212. font-size: 24rpx;
  213. }
  214. .list {
  215. position: absolute;
  216. bottom: 20rpx;
  217. width: 100%;
  218. display: flex;
  219. flex-direction: row;
  220. justify-content: center;
  221. align-items: flex-end;
  222. padding: 0 20rpx;
  223. overflow-x: auto;
  224. &::-webkit-scrollbar {
  225. display: none;
  226. }
  227. .img {
  228. width: 84rpx;
  229. height: 84rpx;
  230. margin: 0 10rpx;
  231. transition: all 0.3s ease;
  232. image {
  233. width: 84rpx;
  234. height: 84rpx;
  235. border-radius: 16rpx;
  236. border: solid 4rpx #fff;
  237. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  238. }
  239. }
  240. .active {
  241. width: 136rpx;
  242. height: 136rpx;
  243. image {
  244. width: 136rpx;
  245. height: 136rpx;
  246. border-radius: 24rpx;
  247. border: solid 4rpx #fff;
  248. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
  249. }
  250. }
  251. }
  252. }
  253. .body {
  254. width: 750rpx;
  255. margin-top: -60rpx;
  256. border-radius: 40rpx 40rpx 0 0;
  257. padding-top: 30rpx;
  258. display: flex;
  259. flex-direction: column;
  260. justify-content: flex-start;
  261. align-items: flex-start;
  262. box-shadow: 0 -10rpx 20rpx rgba(0, 0, 0, 0.05);
  263. position: relative;
  264. z-index: 10;
  265. .article-header {
  266. display: flex;
  267. flex-direction: column;
  268. justify-content: flex-start;
  269. align-items: flex-start;
  270. padding: 40rpx 50rpx 20rpx;
  271. width: 100%;
  272. box-sizing: border-box;
  273. .title {
  274. font-size: 40rpx;
  275. font-weight: bold;
  276. color: #222;
  277. margin-bottom: 20rpx;
  278. line-height: 1.4;
  279. }
  280. .meta-info {
  281. display: flex;
  282. flex-direction: row;
  283. flex-wrap: wrap;
  284. color: #999;
  285. font-size: 26rpx;
  286. .meta-item {
  287. display: flex;
  288. align-items: center;
  289. margin-right: 30rpx;
  290. margin-bottom: 10rpx;
  291. .meta-text {
  292. margin-left: 8rpx;
  293. }
  294. }
  295. }
  296. }
  297. .divider {
  298. height: 1rpx;
  299. background-color: #eee;
  300. width: 650rpx;
  301. margin: 10rpx auto 30rpx;
  302. }
  303. .article-content {
  304. padding: 0 50rpx 40rpx;
  305. width: 100%;
  306. box-sizing: border-box;
  307. .content {
  308. font-size: 32rpx;
  309. color: #333;
  310. line-height: 1.8;
  311. text-align: justify;
  312. }
  313. }
  314. .article-footer {
  315. width: 100%;
  316. padding: 20rpx 0;
  317. border-top: 1rpx solid #f0f0f0;
  318. .action-bar {
  319. display: flex;
  320. justify-content: space-around;
  321. align-items: center;
  322. .action-item {
  323. display: flex;
  324. flex-direction: column;
  325. align-items: center;
  326. padding: 20rpx 0;
  327. .fa {
  328. font-size: 40rpx;
  329. color: #666;
  330. margin-bottom: 10rpx;
  331. &.liked {
  332. color: #ff5151;
  333. }
  334. }
  335. .action-text {
  336. font-size: 24rpx;
  337. color: #666;
  338. }
  339. &:active {
  340. opacity: 0.7;
  341. }
  342. }
  343. }
  344. }
  345. }
  346. .list_wish {
  347. display: flex;
  348. flex-direction: column;
  349. justify-content: flex-start;
  350. align-items: center;
  351. color: #fff;
  352. width: 750rpx;
  353. .item {
  354. margin-top: 20rpx;
  355. color: #fff;
  356. font-size: 28rpx;
  357. display: flex;
  358. flex-direction: row;
  359. justify-content: center;
  360. align-items: center;
  361. width: 690rpx;
  362. height: 156rpx;
  363. background: #28292d;
  364. border-radius: 28rpx;
  365. .avator {
  366. width: 116rpx;
  367. height: 116rpx;
  368. margin-left: 14rpx;
  369. background: #161616;
  370. border-radius: 28rpx;
  371. display: flex;
  372. flex-direction: row;
  373. justify-content: center;
  374. align-items: center;
  375. .icon {
  376. width: 100rpx;
  377. height: 100rpx;
  378. border-radius: 20rpx;
  379. }
  380. }
  381. .left {
  382. width: 370rpx;
  383. display: flex;
  384. flex-direction: column;
  385. justify-content: flex-start;
  386. align-items: flex-start;
  387. margin-left: 20rpx;
  388. .name {
  389. font-size: 32rpx;
  390. margin-bottom: 20rpx;
  391. }
  392. .jindu {
  393. display: flex;
  394. flex-direction: row;
  395. justify-content: flex-start;
  396. align-items: center;
  397. .bord {
  398. width: 216rpx;
  399. height: 20rpx;
  400. margin-left: 0rpx;
  401. background: #0f0f0f;
  402. border-radius: 24rpx;
  403. .active {
  404. width: 0%;
  405. height: 20rpx;
  406. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  407. border-radius: 24rpx;
  408. }
  409. }
  410. .tips {
  411. margin-left: 20rpx;
  412. font-weight: 400;
  413. font-size: 24rpx;
  414. color: #ff3d83;
  415. }
  416. }
  417. }
  418. .right {
  419. width: 190rpx;
  420. .btn_submit {
  421. width: 168rpx;
  422. height: 72rpx;
  423. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  424. border-radius: 28rpx 28rpx 28rpx 28rpx;
  425. display: flex;
  426. flex-direction: column;
  427. justify-content: center;
  428. align-items: center;
  429. }
  430. .state {
  431. width: 168rpx;
  432. height: 72rpx;
  433. text-align: center;
  434. line-height: 72rpx;
  435. }
  436. }
  437. }
  438. }
  439. .list_info {
  440. display: flex;
  441. flex-direction: column;
  442. justify-content: flex-start;
  443. align-items: center;
  444. color: #fff;
  445. width: 750rpx;
  446. .item {
  447. width: 690rpx;
  448. margin: 0rpx 0;
  449. color: #fff;
  450. font-size: 28rpx;
  451. padding: 20rpx 0 0rpx;
  452. display: flex;
  453. flex-direction: row;
  454. justify-content: flex-start;
  455. align-items: center;
  456. .avator {
  457. width: 88rpx;
  458. .icon {
  459. width: 72rpx;
  460. height: 72rpx;
  461. border-radius: 36rpx;
  462. }
  463. }
  464. .tit {
  465. width: 470rpx;
  466. .list1 {
  467. display: flex;
  468. flex-direction: row;
  469. justify-content: flex-start;
  470. align-items: center;
  471. .name {
  472. font-size: 32rpx;
  473. padding-right: 10rpx;
  474. height: 40rpx;
  475. line-height: 40rpx;
  476. }
  477. .sex1 {
  478. width: 76rpx;
  479. height: 40rpx;
  480. background: #423339;
  481. border-radius: 16rpx 16rpx 16rpx 16rpx;
  482. border: 2rpx solid #36d6ff;
  483. color: #36d6ff;
  484. display: flex;
  485. flex-direction: row;
  486. justify-content: flex-start;
  487. align-items: center;
  488. image {
  489. width: 24rpx;
  490. height: 24rpx;
  491. margin-left: 4rpx;
  492. margin-right: 4rpx;
  493. }
  494. }
  495. .sex2 {
  496. width: 76rpx;
  497. height: 40rpx;
  498. background: #423339;
  499. border-radius: 16rpx 16rpx 16rpx 16rpx;
  500. border: 2rpx solid #ff7d88;
  501. color: #ff7d88;
  502. display: flex;
  503. flex-direction: row;
  504. justify-content: flex-start;
  505. align-items: center;
  506. image {
  507. width: 24rpx;
  508. height: 24rpx;
  509. margin-left: 4rpx;
  510. margin-right: 4rpx;
  511. }
  512. }
  513. .xinzuo {
  514. width: 92rpx;
  515. height: 44rpx;
  516. margin-left: 10rpx;
  517. line-height: 44rpx;
  518. border-radius: 16rpx 16rpx 16rpx 16rpx;
  519. border: 2rpx solid #404040;
  520. font-size: 20rpx;
  521. color: #d0d0d0;
  522. display: flex;
  523. flex-direction: row;
  524. justify-content: center;
  525. align-items: center;
  526. }
  527. }
  528. .time {
  529. color: #d0d0d0;
  530. font-size: 24rpx;
  531. }
  532. }
  533. .state {
  534. width: 130rpx;
  535. font-size: 28rpx;
  536. font-weight: normal;
  537. text-align: right;
  538. .status_1 {
  539. color: #999;
  540. }
  541. .status_9 {
  542. color: #36d6ff;
  543. }
  544. .status_2 {
  545. color: #fe2d56;
  546. }
  547. }
  548. }
  549. .content {
  550. width: 690rpx;
  551. font-weight: 400;
  552. font-size: 28rpx;
  553. color: #ffffff;
  554. text-align: left;
  555. font-style: normal;
  556. text-transform: none;
  557. padding: 20rpx 0;
  558. padding-left: 88rpx;
  559. }
  560. .photo_list {
  561. width: 690rpx;
  562. margin-bottom: 0rpx;
  563. padding-left: 88rpx;
  564. border-radius: 28rpx;
  565. font-size: 28rpx;
  566. display: flex;
  567. flex-direction: row;
  568. align-items: center;
  569. flex-wrap: wrap;
  570. .img {
  571. width: 186rpx;
  572. height: 186rpx;
  573. margin-bottom: 24rpx;
  574. margin-right: 12rpx;
  575. image {
  576. width: 186rpx;
  577. height: 186rpx;
  578. border-radius: 28rpx;
  579. border: solid 1px rgba(255, 255, 255, 0.2);
  580. }
  581. }
  582. .right {
  583. color: #fff;
  584. }
  585. }
  586. .desc {
  587. width: 690rpx;
  588. padding: 0rpx 0 0rpx;
  589. padding-left: 88rpx;
  590. font-weight: 400;
  591. font-size: 24rpx;
  592. color: #999999;
  593. line-height: 0rpx;
  594. text-align: left;
  595. font-style: normal;
  596. text-transform: none;
  597. display: flex;
  598. flex-direction: row;
  599. justify-content: space-between;
  600. align-items: center;
  601. image {
  602. width: 40rpx;
  603. height: 40rpx;
  604. }
  605. .addr {
  606. width: 200rpx;
  607. }
  608. .img {
  609. display: flex;
  610. flex-direction: row;
  611. justify-content: center;
  612. align-items: center;
  613. padding: 0 0rpx 0 30rpx;
  614. font-size: 28rpx;
  615. color: #fff;
  616. image {
  617. margin-top: -8rpx;
  618. }
  619. }
  620. }
  621. }
  622. .btn_submit {
  623. width: 336rpx;
  624. height: 100rpx;
  625. margin: 50rpx auto;
  626. background: linear-gradient(90deg, #ff536d 0%, #ff3b84 100%);
  627. border-radius: 50rpx 50rpx 50rpx 50rpx;
  628. display: flex;
  629. flex-direction: row;
  630. justify-content: center;
  631. align-items: center;
  632. font-weight: bold;
  633. font-size: 32rpx;
  634. color: #ffffff;
  635. image {
  636. width: 44rpx;
  637. height: 44rpx;
  638. margin-right: 8rpx;
  639. margin-top: 4rpx;
  640. }
  641. }
  642. .btn {
  643. text-align: center;
  644. color: #fff;
  645. padding: 20rpx;
  646. margin: 50rpx;
  647. border-radius: 20rpx;
  648. background-color: #2979ff;
  649. }
  650. .font-awesome-import {
  651. display: none;
  652. }
  653. .fa {
  654. font-family: "FontAwesome";
  655. margin-right: 6rpx;
  656. }
  657. // 评论区域样式
  658. .comment-section {
  659. background-color: #f8f8f8;
  660. padding: 30rpx 0;
  661. margin-top: 20rpx;
  662. border-radius: 30rpx 30rpx 0 0;
  663. .section-header {
  664. display: flex;
  665. align-items: center;
  666. padding: 0 30rpx 20rpx;
  667. border-bottom: 1rpx solid #eee;
  668. margin-bottom: 20rpx;
  669. .fa {
  670. font-size: 36rpx;
  671. color: #2979ff;
  672. }
  673. .section-title {
  674. font-size: 32rpx;
  675. font-weight: bold;
  676. margin: 0 10rpx;
  677. color: #333;
  678. }
  679. .comment-count {
  680. font-size: 28rpx;
  681. color: #999;
  682. }
  683. }
  684. .comment-button {
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. width: 650rpx;
  689. height: 90rpx;
  690. background-color: #2979ff;
  691. color: #fff;
  692. border-radius: 45rpx;
  693. margin: 40rpx auto 20rpx;
  694. font-size: 30rpx;
  695. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  696. transition: all 0.3s ease;
  697. .fa {
  698. margin-right: 10rpx;
  699. }
  700. &:active {
  701. transform: scale(0.97);
  702. background-color: #2567db;
  703. }
  704. }
  705. }
  706. /* 确保评论按钮样式 */
  707. .comment-button {
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. width: 650rpx;
  712. height: 90rpx;
  713. background-color: #2979ff;
  714. color: #fff;
  715. border-radius: 45rpx;
  716. margin: 40rpx auto 20rpx;
  717. font-size: 30rpx;
  718. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  719. }
  720. .comment-button .fa {
  721. margin-right: 10rpx;
  722. }
  723. .comment-button:active {
  724. opacity: 0.9;
  725. transform: scale(0.98);
  726. }