learn.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. .container.data-v-53c8c079 {
  28. padding: 0 0 30rpx;
  29. background-color: #f0f4f7;
  30. }
  31. .container .top.data-v-53c8c079 {
  32. position: relative;
  33. }
  34. .container .top .bg.data-v-53c8c079 {
  35. width: 100%;
  36. }
  37. .container .top .top-box.data-v-53c8c079 {
  38. position: absolute;
  39. bottom: -90rpx;
  40. width: 100%;
  41. padding: 30rpx;
  42. background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 20%, white 100%);
  43. border-radius: 16rpx;
  44. }
  45. .container .top .top-box .title.data-v-53c8c079 {
  46. font-size: 34rpx;
  47. }
  48. .container .top .top-box .txt.data-v-53c8c079 {
  49. margin-top: 20rpx;
  50. display: flex;
  51. align-items: center;
  52. }
  53. .container .top .top-box .txt image.data-v-53c8c079 {
  54. width: 36rpx;
  55. height: 36rpx;
  56. margin: 0 8rpx;
  57. }
  58. .container .top .top-box .txt text.data-v-53c8c079 {
  59. font-size: 28rpx;
  60. color: #595959;
  61. }
  62. .container .container-body.data-v-53c8c079 {
  63. margin-top: 110rpx;
  64. padding: 0 24rpx;
  65. }
  66. .container .container-body .center-box.data-v-53c8c079 {
  67. background-color: #ffffff;
  68. padding: 10rpx 24rpx 50rpx;
  69. border-radius: 16rpx;
  70. }
  71. .container .container-body .center-box .progress-box.data-v-53c8c079 {
  72. display: flex;
  73. align-items: center;
  74. margin: 50rpx 0 30rpx;
  75. }
  76. .container .container-body .center-box .progress-box image.data-v-53c8c079 {
  77. width: 38rpx;
  78. height: 38rpx;
  79. }
  80. .container .container-body .center-box .progress-box .title.data-v-53c8c079 {
  81. margin: 0 10rpx 0 4rpx;
  82. font-size: 34rpx;
  83. }
  84. .container .container-body .center-box .progress-box .txt.data-v-53c8c079 {
  85. font-size: 28rpx;
  86. color: #595959;
  87. }
  88. .container .container-body .center-box .progress.data-v-53c8c079 {
  89. display: flex;
  90. align-items: center;
  91. }
  92. .container .container-body .center-box .progress text.data-v-53c8c079 {
  93. font-size: 26rpx;
  94. margin-left: 12rpx;
  95. }
  96. .container .container-body .list.data-v-53c8c079 {
  97. padding: 20rpx;
  98. background-color: #ffffff;
  99. border-radius: 16rpx;
  100. display: flex;
  101. justify-content: space-between;
  102. align-items: center;
  103. box-sizing: border-box;
  104. margin-top: 20rpx;
  105. }
  106. .container .container-body .list .img-box.data-v-53c8c079 {
  107. width: 240rpx;
  108. height: 150rpx;
  109. border-radius: 16rpx;
  110. overflow: hidden;
  111. position: relative;
  112. flex-shrink: 0;
  113. }
  114. .container .container-body .list .img-box .sub.data-v-53c8c079 {
  115. background-color: rgba(0, 0, 0, 0.8);
  116. padding: 4rpx 16rpx;
  117. color: #ffffff;
  118. position: absolute;
  119. top: 0;
  120. left: 0;
  121. font-size: 24rpx;
  122. border-radius: 8rpx;
  123. }
  124. .container .container-body .list .img-box image.data-v-53c8c079 {
  125. width: 100%;
  126. height: 100%;
  127. }
  128. .container .container-body .list .right.data-v-53c8c079 {
  129. height: 150rpx;
  130. margin-left: 20rpx;
  131. flex: 1;
  132. display: flex;
  133. flex-direction: column;
  134. justify-content: space-between;
  135. min-width: 0;
  136. }
  137. .container .container-body .list .right .title.data-v-53c8c079 {
  138. font-size: 30rpx;
  139. font-weight: 500;
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. display: -webkit-box;
  143. -webkit-line-clamp: 2;
  144. /* 控制显示行数 */
  145. -webkit-box-orient: vertical;
  146. word-break: break-all;
  147. /* 允许单词内换行 */
  148. max-height: 80rpx;
  149. /* 根据字体大小调整 */
  150. line-height: 40rpx;
  151. /* 行高与字体大小匹配 */
  152. width: 100%;
  153. /* 确保宽度占满容器 */
  154. }
  155. .container .container-body .list .right .bottom.data-v-53c8c079 {
  156. display: flex;
  157. justify-content: flex-end;
  158. align-items: center;
  159. font-size: 26rpx;
  160. }
  161. .container .container-body .list .right .bottom .tip.data-v-53c8c079 {
  162. background: linear-gradient(to right, #fcecd0, #ffffff);
  163. padding: 8rpx 12rpx;
  164. border-radius: 22rpx;
  165. color: #f2931d;
  166. }
  167. .container .container-body .list .right .bottom .tip image.data-v-53c8c079 {
  168. width: 36rpx;
  169. height: 36rpx;
  170. margin-right: 4rpx;
  171. }
  172. .container .container-body .list .right .bottom .btn.data-v-53c8c079 {
  173. background-color: #fdf0e7;
  174. padding: 8rpx 16rpx;
  175. color: #f38600;
  176. border-radius: 12rpx;
  177. }
  178. .container .container-body .list .right .bottom .btn-red.data-v-53c8c079 {
  179. background-color: #ff512f;
  180. padding: 8rpx 18rpx;
  181. color: #ffffff;
  182. border-radius: 12rpx;
  183. }