index.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. .study {
  28. background: #F9F9F9;
  29. padding-bottom: 100rpx;
  30. }
  31. .study .top-box {
  32. background: #fff;
  33. padding: 0 30rpx;
  34. }
  35. .study .top-box .search-box {
  36. position: relative;
  37. height: 80rpx;
  38. background: #FFFFFF;
  39. border-radius: 40rpx 40rpx 40rpx 40rpx;
  40. margin-bottom: 24rpx;
  41. background: #F9F9F9;
  42. }
  43. .study .top-box .search-box .icon {
  44. width: 37rpx;
  45. height: 37rpx;
  46. position: absolute;
  47. top: 50%;
  48. left: 36rpx;
  49. -webkit-transform: translateY(-50%);
  50. transform: translateY(-50%);
  51. }
  52. .study .top-box .search-box .search {
  53. line-height: 80rpx;
  54. height: 80rpx;
  55. padding-left: 100rpx;
  56. padding-right: 130rpx;
  57. }
  58. .study .top-box .search-box .btn {
  59. position: absolute;
  60. top: 8rpx;
  61. right: 10rpx;
  62. width: 108rpx;
  63. height: 64rpx;
  64. line-height: 64rpx;
  65. background: linear-gradient(180deg, #9DC1FF 0%, #1C92FD 100%);
  66. color: #fff;
  67. font-size: 28rpx;
  68. border-radius: 32rpx;
  69. padding: 0;
  70. }
  71. .study .top-box .banner {
  72. width: 100%;
  73. height: 240rpx;
  74. }
  75. .study .top-box .type-box {
  76. display: flex;
  77. }
  78. .study .top-box .type-box .type-item {
  79. flex: 1;
  80. text-align: center;
  81. padding: 30rpx 0;
  82. }
  83. .study .top-box .type-box .type-item .icon {
  84. width: 64rpx;
  85. height: 64rpx;
  86. }
  87. .study .top-box .type-box .type-item .sub-title {
  88. font-size: 24rpx;
  89. font-weight: 400;
  90. color: #121212;
  91. margin-top: 16rpx;
  92. }
  93. .study .content {
  94. padding: 0 30rpx;
  95. }
  96. .study .content .title-box {
  97. display: flex;
  98. align-items: center;
  99. justify-content: space-between;
  100. margin: 30rpx 0;
  101. }
  102. .study .content .title-box .title {
  103. font-size: 32rpx;
  104. font-weight: bold;
  105. color: #0F0F0F;
  106. position: relative;
  107. z-index: 1;
  108. }
  109. .study .content .title-box .title::before {
  110. content: '';
  111. position: absolute;
  112. top: 50%;
  113. left: -10rpx;
  114. z-index: 0;
  115. -webkit-transform: translateY(-50%);
  116. transform: translateY(-50%);
  117. width: 52rpx;
  118. height: 52rpx;
  119. border-radius: 50%;
  120. background: linear-gradient(180deg, #9DC1FF 0%, #1C92FD 100%);
  121. opacity: .6;
  122. }
  123. .study .content .title-box .more {
  124. font-size: 24rpx;
  125. font-weight: 400;
  126. color: #121212;
  127. display: flex;
  128. }
  129. .study .content .hot-list {
  130. display: flex;
  131. justify-content: space-between;
  132. }
  133. .study .content .hot-list .item {
  134. width: 332rpx;
  135. height: 302rpx;
  136. background: #FFFFFF;
  137. border-radius: 16rpx;
  138. }
  139. .study .content .hot-list .item .icon {
  140. width: 100%;
  141. height: 164rpx;
  142. }
  143. .study .content .hot-list .item .title {
  144. font-size: 28rpx;
  145. font-weight: bold;
  146. color: #0F0F0F;
  147. padding: 20rpx;
  148. }
  149. .study .content .hot-list .item .author-info {
  150. display: flex;
  151. align-items: center;
  152. }
  153. .study .content .hot-list .item .author-info .head {
  154. width: 48rpx;
  155. height: 48rpx;
  156. border-radius: 50%;
  157. background: #999;
  158. margin-left: 20rpx;
  159. }
  160. .study .content .hot-list .item .author-info .name {
  161. font-size: 24rpx;
  162. font-weight: 400;
  163. color: #999999;
  164. margin-left: 10rpx;
  165. }
  166. .study .content .list .item {
  167. background: #fff;
  168. padding: 20rpx;
  169. border-radius: 16rpx;
  170. display: flex;
  171. margin-bottom: 20rpx;
  172. }
  173. .study .content .list .item .icon {
  174. width: 164rpx;
  175. height: 164rpx;
  176. }
  177. .study .content .list .item .info {
  178. margin-left: 20rpx;
  179. display: flex;
  180. flex-direction: column;
  181. justify-content: space-between;
  182. flex: 1;
  183. }
  184. .study .content .list .item .info .title {
  185. font-size: 28rpx;
  186. font-weight: bold;
  187. color: #0F0F0F;
  188. }
  189. .study .content .list .item .info .types {
  190. font-size: 24rpx;
  191. font-weight: 400;
  192. color: #999999;
  193. }
  194. .study .content .list .item .info .author-info {
  195. display: flex;
  196. align-items: center;
  197. }
  198. .study .content .list .item .info .author-info .head {
  199. width: 48rpx;
  200. height: 48rpx;
  201. border-radius: 50%;
  202. background: #999;
  203. }
  204. .study .content .list .item .info .author-info .name {
  205. font-size: 24rpx;
  206. font-weight: 400;
  207. color: #999999;
  208. margin-left: 10rpx;
  209. }
  210. .study .content .list .item .play {
  211. width: 40rpx;
  212. height: 40rpx;
  213. align-self: center;
  214. }