articleDetail.scss 15 KB

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