articleDetail.scss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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. .header {
  14. display: flex;
  15. flex-direction: row;
  16. justify-content: flex-start;
  17. align-items: center;
  18. width: 750rpx;height: 320rpx;
  19. padding-top: calc(var(--status-bar-height) + 0rpx);
  20. .left {
  21. display: flex;flex-direction: row;width:200rpx;height:120rpx;
  22. justify-content: center;
  23. padding-left:50rpx;
  24. image {
  25. width:124rpx;height:40rpx;
  26. }
  27. }
  28. }
  29. .thread {
  30. height: 20rpx;
  31. }
  32. .thread2 {
  33. height: 60rpx;
  34. }
  35. .topUser {
  36. width:750rpx;
  37. height:750rpx;
  38. position: relative;
  39. overflow: hidden;
  40. .home_image{
  41. width: 100%;
  42. height: 100%;
  43. transition: transform 0.3s ease;
  44. &:active {
  45. transform: scale(1.05);
  46. }
  47. }
  48. .image-indicator {
  49. position: absolute;
  50. top: 30rpx;
  51. right: 30rpx;
  52. background-color: rgba(0, 0, 0, 0.5);
  53. color: #fff;
  54. padding: 8rpx 16rpx;
  55. border-radius: 20rpx;
  56. font-size: 24rpx;
  57. }
  58. .list {
  59. position: absolute;
  60. bottom: 20rpx;
  61. width:100%;
  62. display: flex;
  63. flex-direction: row;
  64. justify-content: center;
  65. align-items: flex-end;
  66. padding: 0 20rpx;
  67. overflow-x: auto;
  68. &::-webkit-scrollbar {
  69. display: none;
  70. }
  71. .img {
  72. width:84rpx;height:84rpx;margin: 0 10rpx;
  73. transition: all 0.3s ease;
  74. image {
  75. width:84rpx;height:84rpx;border-radius: 16rpx;border: solid 4rpx #fff;
  76. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  77. }
  78. }
  79. .active {
  80. width:136rpx;height:136rpx;
  81. image {
  82. width:136rpx;height:136rpx;border-radius: 24rpx;border: solid 4rpx #fff;
  83. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
  84. }
  85. }
  86. }
  87. }
  88. .body {
  89. width:750rpx;margin-top:-60rpx;
  90. border-radius: 40rpx 40rpx 0 0;padding-top:30rpx;
  91. display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
  92. box-shadow: 0 -10rpx 20rpx rgba(0, 0, 0, 0.05);
  93. position: relative;
  94. z-index: 10;
  95. .article-header {
  96. display: flex;
  97. flex-direction: column;
  98. justify-content: flex-start;
  99. align-items: flex-start;
  100. padding: 40rpx 50rpx 20rpx;
  101. width: 100%;
  102. box-sizing: border-box;
  103. .title {
  104. font-size: 40rpx;
  105. font-weight: bold;
  106. color: #222;
  107. margin-bottom: 20rpx;
  108. line-height: 1.4;
  109. }
  110. .meta-info {
  111. display: flex;
  112. flex-direction: row;
  113. flex-wrap: wrap;
  114. color: #999;
  115. font-size: 26rpx;
  116. .meta-item {
  117. display: flex;
  118. align-items: center;
  119. margin-right: 30rpx;
  120. margin-bottom: 10rpx;
  121. .meta-text {
  122. margin-left: 8rpx;
  123. }
  124. }
  125. }
  126. }
  127. .divider {
  128. height: 1rpx;
  129. background-color: #eee;
  130. width: 650rpx;
  131. margin: 10rpx auto 30rpx;
  132. }
  133. .article-content {
  134. padding: 0 50rpx 40rpx;
  135. width: 100%;
  136. box-sizing: border-box;
  137. .content {
  138. font-size: 32rpx;
  139. color: #333;
  140. line-height: 1.8;
  141. text-align: justify;
  142. }
  143. }
  144. .article-footer {
  145. width: 100%;
  146. padding: 20rpx 0;
  147. border-top: 1rpx solid #f0f0f0;
  148. .action-bar {
  149. display: flex;
  150. justify-content: space-around;
  151. align-items: center;
  152. .action-item {
  153. display: flex;
  154. flex-direction: column;
  155. align-items: center;
  156. padding: 20rpx 0;
  157. .fa {
  158. font-size: 40rpx;
  159. color: #666;
  160. margin-bottom: 10rpx;
  161. &.liked {
  162. color: #ff5151;
  163. }
  164. }
  165. .action-text {
  166. font-size: 24rpx;
  167. color: #666;
  168. }
  169. &:active {
  170. opacity: 0.7;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. .list_wish {
  177. display: flex;flex-direction: column;justify-content: flex-start;align-items: center;color:#fff;
  178. width:750rpx;
  179. .item {
  180. margin-top: 20rpx;color:#fff;font-size: 28rpx;
  181. display: flex;flex-direction: row;justify-content: center;align-items: center;
  182. width: 690rpx;height: 156rpx;
  183. background: #28292D;
  184. border-radius: 28rpx;
  185. .avator {
  186. width: 116rpx;height: 116rpx;margin-left:14rpx;
  187. background: #161616;
  188. border-radius: 28rpx;
  189. display: flex;flex-direction: row;justify-content: center;align-items: center;
  190. .icon {
  191. width:100rpx;height:100rpx;border-radius: 20rpx;
  192. }
  193. }
  194. .left {
  195. width:370rpx;display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
  196. margin-left:20rpx;
  197. .name {
  198. font-size: 32rpx;margin-bottom:20rpx;
  199. }
  200. .jindu {
  201. display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
  202. .bord {
  203. width: 216rpx;height: 20rpx;margin-left:0rpx;
  204. background: #0F0F0F;
  205. border-radius: 24rpx;
  206. .active {
  207. width: 0%;height: 20rpx;
  208. background: linear-gradient( 142deg, #FF5967 0%, #FF2A95 100%);
  209. border-radius: 24rpx;
  210. }
  211. }
  212. .tips {
  213. margin-left:20rpx;font-weight: 400;font-size: 24rpx;color: #FF3D83;
  214. }
  215. }
  216. }
  217. .right {
  218. width:190rpx;
  219. .btn_submit {
  220. width: 168rpx;height: 72rpx;
  221. background: linear-gradient( 142deg, #FF5967 0%, #FF2A95 100%);
  222. border-radius: 28rpx 28rpx 28rpx 28rpx;
  223. display: flex;flex-direction: column;justify-content: center;align-items: center;
  224. }
  225. .state {
  226. width:168rpx;height: 72rpx;text-align: center;line-height: 72rpx;
  227. }
  228. }
  229. }
  230. }
  231. .list_info {
  232. display: flex;flex-direction: column;justify-content: flex-start;align-items: center;color:#fff;
  233. width:750rpx;
  234. .item {
  235. width: 690rpx;margin: 0rpx 0;color:#fff;font-size: 28rpx;padding:20rpx 0 0rpx;
  236. display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
  237. .avator {
  238. width:88rpx;
  239. .icon {
  240. width:72rpx;height:72rpx;border-radius: 36rpx;
  241. }
  242. }
  243. .tit {
  244. width:470rpx;
  245. .list1 {
  246. display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
  247. .name {
  248. font-size: 32rpx;padding-right: 10rpx;height:40rpx;line-height: 40rpx;
  249. }
  250. .sex1 {
  251. width: 76rpx;
  252. height: 40rpx;
  253. background: #423339;
  254. border-radius: 16rpx 16rpx 16rpx 16rpx;
  255. border: 2rpx solid #36D6FF;color:#36D6FF;
  256. display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
  257. image {
  258. width:24rpx;height:24rpx;margin-left:4rpx;margin-right: 4rpx;
  259. }
  260. }
  261. .sex2 {
  262. width: 76rpx;
  263. height: 40rpx;
  264. background: #423339;
  265. border-radius: 16rpx 16rpx 16rpx 16rpx;
  266. border: 2rpx solid #FF7D88;color:#FF7D88;
  267. display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
  268. image {
  269. width:24rpx;height:24rpx;margin-left:4rpx;margin-right: 4rpx;
  270. }
  271. }
  272. .xinzuo {
  273. width: 92rpx;height: 44rpx;margin-left:10rpx;line-height: 44rpx;
  274. border-radius: 16rpx 16rpx 16rpx 16rpx;
  275. border: 2rpx solid #404040;font-size: 20rpx;color: #D0D0D0;
  276. display: flex;flex-direction: row;justify-content: center;align-items: center;
  277. }
  278. }
  279. .time {
  280. color:#D0D0D0;font-size: 24rpx;
  281. }
  282. }
  283. .state {
  284. width:130rpx;font-size: 28rpx;font-weight: normal;text-align: right;
  285. .status_1 {
  286. color:#999;
  287. }
  288. .status_9 {
  289. color:#36D6FF;
  290. }
  291. .status_2 {
  292. color:#FE2D56;
  293. }
  294. }
  295. }
  296. .content {
  297. width: 690rpx;font-weight: 400;font-size: 28rpx;color: #FFFFFF;text-align: left;font-style: normal;
  298. text-transform: none;padding:20rpx 0;
  299. padding-left:88rpx;
  300. }
  301. .photo_list {
  302. width: 690rpx;margin-bottom:0rpx;padding-left:88rpx;
  303. border-radius: 28rpx;font-size: 28rpx;
  304. display: flex;flex-direction: row;align-items: center;
  305. flex-wrap: wrap;
  306. .img {
  307. width:186rpx;height:186rpx;margin-bottom: 24rpx;margin-right: 12rpx;
  308. image {
  309. width:186rpx;height:186rpx;border-radius: 28rpx;border:solid 1px rgba(255, 255, 255, 0.2);
  310. }
  311. }
  312. .right {
  313. color:#fff;
  314. }
  315. }
  316. .desc {
  317. width: 690rpx;padding:0rpx 0 0rpx;padding-left:88rpx;
  318. font-weight: 400;
  319. font-size: 24rpx;
  320. color: #999999;
  321. line-height: 0rpx;
  322. text-align: left;
  323. font-style: normal;
  324. text-transform: none;
  325. display: flex;flex-direction: row;justify-content: space-between;align-items: center;
  326. image {
  327. width:40rpx;height:40rpx;
  328. }
  329. .addr {
  330. width:200rpx;
  331. }
  332. .img {
  333. display: flex;flex-direction: row;justify-content: center;align-items: center;
  334. padding:0 0rpx 0 30rpx;font-size: 28rpx;color:#fff;
  335. image {
  336. margin-top:-8rpx;
  337. }
  338. }
  339. }
  340. }
  341. .btn_submit {
  342. width: 336rpx;height: 100rpx;margin:50rpx auto;
  343. background: linear-gradient( 90deg, #FF536D 0%, #FF3B84 100%);
  344. border-radius: 50rpx 50rpx 50rpx 50rpx;
  345. display: flex;flex-direction: row;justify-content: center;align-items: center;
  346. font-weight: bold;
  347. font-size: 32rpx;
  348. color: #FFFFFF;
  349. image {
  350. width:44rpx;height:44rpx;margin-right: 8rpx;margin-top:4rpx;
  351. }
  352. }
  353. .btn {
  354. text-align: center;
  355. color: #fff;
  356. padding: 20rpx;
  357. margin: 50rpx;
  358. border-radius: 20rpx;
  359. background-color: #2979ff;
  360. }
  361. .font-awesome-import {
  362. display: none;
  363. }
  364. .fa {
  365. font-family: 'FontAwesome';
  366. margin-right: 6rpx;
  367. }
  368. // 评论区域样式
  369. .comment-section {
  370. background-color: #f8f8f8;
  371. padding: 30rpx 0;
  372. margin-top: 20rpx;
  373. border-radius: 30rpx 30rpx 0 0;
  374. .section-header {
  375. display: flex;
  376. align-items: center;
  377. padding: 0 30rpx 20rpx;
  378. border-bottom: 1rpx solid #eee;
  379. margin-bottom: 20rpx;
  380. .fa {
  381. font-size: 36rpx;
  382. color: #2979ff;
  383. }
  384. .section-title {
  385. font-size: 32rpx;
  386. font-weight: bold;
  387. margin: 0 10rpx;
  388. color: #333;
  389. }
  390. .comment-count {
  391. font-size: 28rpx;
  392. color: #999;
  393. }
  394. }
  395. .comment-button {
  396. display: flex;
  397. align-items: center;
  398. justify-content: center;
  399. width: 650rpx;
  400. height: 90rpx;
  401. background-color: #2979ff;
  402. color: #fff;
  403. border-radius: 45rpx;
  404. margin: 40rpx auto 20rpx;
  405. font-size: 30rpx;
  406. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  407. transition: all 0.3s ease;
  408. .fa {
  409. margin-right: 10rpx;
  410. }
  411. &:active {
  412. transform: scale(0.97);
  413. background-color: #2567db;
  414. }
  415. }
  416. }