index.wxss 4.1 KB

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