index.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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: #FFFFFF;
  29. padding: 20rpx;
  30. }
  31. .study .type-box {
  32. display: flex;
  33. justify-content: space-between;
  34. }
  35. .study .type-box .left {
  36. width: 224rpx;
  37. }
  38. .study .type-box .right {
  39. display: flex;
  40. flex-wrap: wrap;
  41. justify-content: space-between;
  42. align-content: space-between;
  43. padding-left: 20rpx;
  44. }
  45. .study .type-box .right .type-item .icon {
  46. width: 224rpx;
  47. height: 124rpx;
  48. border-radius: 16rpx;
  49. vertical-align: bottom;
  50. }
  51. .study .type-box .type-item {
  52. position: relative;
  53. }
  54. .study .type-box .type-item .glass {
  55. position: absolute;
  56. bottom: 0%;
  57. left: 0%;
  58. width: 100%;
  59. height: 72rpx;
  60. padding-left: 16rpx;
  61. box-sizing: border-box;
  62. border-radius: 0 0 16rpx 16rpx;
  63. background: linear-gradient(180deg, rgba(0, 188, 255, 0) 0%, var(--colour) 100%);
  64. }
  65. .study .type-box .type-item .glass .title {
  66. font-weight: bold;
  67. color: #FFFFFF;
  68. font-size: 24rpx;
  69. margin-top: 8rpx;
  70. }
  71. .study .type-box .type-item .glass .type {
  72. font-weight: 400;
  73. color: #FFFFFF;
  74. font-size: 16rpx;
  75. margin-top: 6rpx;
  76. }
  77. .study .type-box .type-item .icon {
  78. width: 224rpx;
  79. height: 268rpx;
  80. border-radius: 16rpx;
  81. vertical-align: bottom;
  82. }
  83. .study .swiper {
  84. height: 272rpx;
  85. border-radius: 16rpx;
  86. margin-top: 28rpx;
  87. }
  88. .study .swiper .swiper-item {
  89. width: 100%;
  90. height: 100%;
  91. border-radius: 16rpx;
  92. object-fit: cover;
  93. }
  94. .study .more-title {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. }
  99. .study .more-title .more-box {
  100. display: flex;
  101. align-items: center;
  102. font-size: 24rpx;
  103. color: #AAAAAA;
  104. }
  105. .study .more-title .more-box .more {
  106. width: 20rpx;
  107. height: 20rpx;
  108. display: block;
  109. margin-left: 6rpx;
  110. }
  111. .study .type-title {
  112. font-weight: bold;
  113. color: #222222;
  114. font-size: 32rpx;
  115. margin: 30rpx 0 20rpx;
  116. }
  117. .study .tab-box {
  118. display: flex;
  119. }
  120. .study .tab-box .tab {
  121. padding: 10rpx 24rpx;
  122. color: #AAAAAA;
  123. background: #EEEEEE;
  124. font-size: 28rpx;
  125. margin-right: 20rpx;
  126. border-radius: 30rpx;
  127. }
  128. .study .tab-box .tab.active {
  129. color: #3B83FF;
  130. background: #CEE0FF;
  131. }
  132. .study .list {
  133. display: flex;
  134. justify-content: space-between;
  135. flex-wrap: wrap;
  136. }
  137. .study .list .item {
  138. box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0, 0, 0, 0.08);
  139. border-radius: 16rpx;
  140. width: 344rpx;
  141. height: 424rpx;
  142. margin-top: 20rpx;
  143. display: flex;
  144. flex-direction: column;
  145. }
  146. .study .list .item .info {
  147. padding: 20rpx;
  148. flex: 1;
  149. display: flex;
  150. flex-direction: column;
  151. justify-content: space-between;
  152. }
  153. .study .list .item .info .title {
  154. color: #222222;
  155. font-size: 24rpx;
  156. width: 100%;
  157. display: -webkit-box;
  158. -webkit-box-orient: vertical;
  159. -webkit-line-clamp: 2;
  160. /* 显示的最大行数 */
  161. overflow: hidden;
  162. }
  163. .study .list .item .info .user-info {
  164. display: flex;
  165. align-items: center;
  166. margin-top: 20rpx;
  167. }
  168. .study .list .item .info .user-info .head {
  169. width: 40rpx;
  170. height: 40rpx;
  171. border-radius: 50%;
  172. }
  173. .study .list .item .info .user-info .user-name {
  174. color: #AAAAAA;
  175. font-size: 20rpx;
  176. margin-left: 12rpx;
  177. }
  178. .study .zs-list {
  179. display: flex;
  180. flex-wrap: wrap;
  181. justify-content: space-between;
  182. }
  183. .study .zs-list .store-item {
  184. box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0, 0, 0, 0.08);
  185. border-radius: 16rpx;
  186. width: 344rpx;
  187. margin-top: 20rpx;
  188. }
  189. .study .zs-list .store-item .info {
  190. padding: 20rpx;
  191. }
  192. .study .zs-list .store-item .info .title {
  193. color: #222222;
  194. font-size: 24rpx;
  195. width: 100%;
  196. display: -webkit-box;
  197. -webkit-box-orient: vertical;
  198. -webkit-line-clamp: 2;
  199. /* 显示的最大行数 */
  200. overflow: hidden;
  201. }
  202. .study .zs-list .store-item .info .user-info {
  203. display: flex;
  204. align-items: center;
  205. margin-top: 20rpx;
  206. }
  207. .study .zs-list .store-item .info .user-info .head {
  208. width: 40rpx;
  209. height: 40rpx;
  210. border-radius: 50%;
  211. }
  212. .study .zs-list .store-item .info .user-info .user-name {
  213. color: #AAAAAA;
  214. font-size: 20rpx;
  215. margin-left: 12rpx;
  216. }