articleDetails.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. body {
  27. height: 100%;
  28. }
  29. .content {
  30. height: 100%;
  31. display: flex;
  32. flex-direction: column;
  33. }
  34. .detail-cont {
  35. flex: 1;
  36. padding: 1.25rem;
  37. overflow-y: auto;
  38. }
  39. .detail-cont .title {
  40. font-size: 1.25rem;
  41. font-family: PingFang SC;
  42. color: #222222;
  43. line-height: 2.1875rem;
  44. }
  45. .detail-cont .info {
  46. display: flex;
  47. align-items: center;
  48. font-size: 0.75rem;
  49. font-family: PingFang SC;
  50. font-weight: 500;
  51. color: #999999;
  52. line-height: 1.5rem;
  53. margin: 0.71875rem 0;
  54. }
  55. .detail-cont .info .reads {
  56. margin-right: 0.9375rem;
  57. }
  58. .detail-cont .full-text {
  59. font-size: 1.125rem;
  60. font-family: PingFang SC;
  61. color: #222222;
  62. line-height: 1.875rem;
  63. }
  64. .recent-reads {
  65. flex-shrink: 0;
  66. box-sizing: border-box;
  67. height: 3.78125rem;
  68. background: #FFFFFF;
  69. border-top: 1px solid #F0F0F0;
  70. padding: 0 1.25rem 0 1.15625rem;
  71. display: flex;
  72. align-items: center;
  73. justify-content: space-between;
  74. }
  75. .recent-reads .left {
  76. display: flex;
  77. align-items: center;
  78. }
  79. .recent-reads .left .label {
  80. font-size: 0.875rem;
  81. font-family: PingFang SC;
  82. font-weight: 500;
  83. color: #666666;
  84. line-height: 1;
  85. margin-right: 0.625rem;
  86. }
  87. .recent-reads .left .peop-box {
  88. display: flex;
  89. align-items: center;
  90. }
  91. .recent-reads .left .peop-box .head-box {
  92. margin-right: 0.875rem;
  93. display: flex;
  94. align-items: center;
  95. }
  96. .recent-reads .left .peop-box .head-box .head {
  97. width: 1.5rem;
  98. height: 1.5rem;
  99. border-radius: 50%;
  100. overflow: hidden;
  101. box-shadow: 0 0 0 1px #fff;
  102. margin-right: -0.3125rem;
  103. }
  104. .recent-reads .left .peop-box .head-box .head uni-image {
  105. width: 100%;
  106. height: 100%;
  107. }
  108. .recent-reads .left .peop-box .arrow {
  109. width: 0.40625rem;
  110. height: 0.71875rem;
  111. }
  112. .recent-reads .share-btn {
  113. position: relative;
  114. width: 7.5rem;
  115. height: 2.5rem;
  116. line-height: 2.5rem;
  117. font-size: 0.9375rem;
  118. font-family: PingFang SC;
  119. font-weight: 500;
  120. color: #FFFFFF;
  121. background: #C39A58;
  122. border-radius: 1.25rem;
  123. display: flex;
  124. align-items: center;
  125. justify-content: center;
  126. }
  127. .recent-reads .share-btn uni-image {
  128. width: 1rem;
  129. height: 1rem;
  130. margin-right: 0.46875rem;
  131. }
  132. .recent-reads .share-btn .share {
  133. position: absolute;
  134. width: 100%;
  135. height: 100%;
  136. opacity: 0;
  137. }
  138. .inquiry {
  139. width: 4.09375rem;
  140. height: 4.09375rem;
  141. position: fixed;
  142. right: 0.6875rem;
  143. bottom: 6.03125rem;
  144. z-index: 99;
  145. }
  146. .inquiry .content {
  147. position: relative;
  148. }
  149. .inquiry .content uni-image {
  150. width: 100%;
  151. height: 100%;
  152. position: absolute;
  153. top: 0;
  154. left: 0;
  155. z-index: 9;
  156. }
  157. .inquiry .content .text {
  158. position: absolute;
  159. top: 2.1875rem;
  160. left: 50%;
  161. transform: translateX(-50%);
  162. z-index: 10;
  163. font-size: 0.6875rem;
  164. font-family: PingFang SC;
  165. font-weight: bold;
  166. color: #C39A58;
  167. line-height: 1;
  168. }
  169. .contact-btn {
  170. display: inline-block;
  171. position: absolute;
  172. top: 0;
  173. left: 0;
  174. width: 100%;
  175. height: 100%;
  176. opacity: 0;
  177. z-index: 9999;
  178. }