discover.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. /* 自定义项目颜色 */
  27. /* 功能模块颜色 */
  28. .discover-container[data-v-7f6951af] {
  29. background-color: #f5f5f5;
  30. min-height: 100vh;
  31. }
  32. .status-bar[data-v-7f6951af] {
  33. background-color: #fff;
  34. /* 使用CSS环境变量适配安全区域 */
  35. height: env(safe-area-inset-top);
  36. height: constant(safe-area-inset-top);
  37. /* 兼容iOS < 11.2 */
  38. /* 设置最小高度,确保在没有刘海屏的设备上也有合适的高度 */
  39. min-height: 20px;
  40. }
  41. .search-section[data-v-7f6951af] {
  42. background-color: #fff;
  43. padding: 0.625rem 0.9375rem;
  44. }
  45. .search-section .search-box[data-v-7f6951af] {
  46. display: flex;
  47. align-items: center;
  48. background-color: #f8f8f8;
  49. border-radius: 1.5625rem;
  50. padding: 0.625rem 0.9375rem;
  51. }
  52. .search-section .search-box .search-icon[data-v-7f6951af] {
  53. font-size: 1rem;
  54. color: #999;
  55. }
  56. .search-section .search-box .search-input[data-v-7f6951af] {
  57. flex: 1;
  58. margin-left: 0.625rem;
  59. font-size: 0.875rem;
  60. color: #333;
  61. }
  62. .banner-section[data-v-7f6951af] {
  63. margin: 0.625rem 0.9375rem;
  64. }
  65. .banner-section .banner-swiper[data-v-7f6951af] {
  66. height: 9.375rem;
  67. border-radius: 0.625rem;
  68. overflow: hidden;
  69. }
  70. .banner-section .swipe-image[data-v-7f6951af] {
  71. width: 100%;
  72. height: 100%;
  73. border-radius: 0.625rem;
  74. }
  75. .function-section[data-v-7f6951af] {
  76. background-color: #fff;
  77. margin: 0.625rem 0.9375rem;
  78. border-radius: 0.625rem;
  79. padding: 1.25rem 0.625rem;
  80. }
  81. .function-section .function-row[data-v-7f6951af] {
  82. display: flex;
  83. justify-content: space-around;
  84. margin-bottom: 1.25rem;
  85. }
  86. .function-section .function-row[data-v-7f6951af]:last-child {
  87. margin-bottom: 0;
  88. }
  89. .function-section .function-item[data-v-7f6951af] {
  90. display: flex;
  91. flex-direction: column;
  92. align-items: center;
  93. position: relative;
  94. }
  95. .function-section .function-item .function-icon[data-v-7f6951af] {
  96. width: 2.5rem;
  97. height: 2.5rem;
  98. border-radius: 0.625rem;
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. margin-bottom: 0.46875rem;
  103. }
  104. .function-section .function-item .function-text[data-v-7f6951af] {
  105. font-size: 0.75rem;
  106. color: #333;
  107. }
  108. .function-section .function-item .function-badge[data-v-7f6951af] {
  109. position: absolute;
  110. top: -0.3125rem;
  111. right: -0.3125rem;
  112. background-color: #FF4757;
  113. color: #fff;
  114. font-size: 0.5625rem;
  115. padding: 0.125rem 0.25rem;
  116. border-radius: 0.625rem;
  117. transform: scale(0.8);
  118. }
  119. .course-cards[data-v-7f6951af] {
  120. margin: 0.625rem 0.9375rem;
  121. display: flex;
  122. gap: 0.625rem;
  123. }
  124. .course-cards .course-card[data-v-7f6951af] {
  125. flex: 1;
  126. height: 6.25rem;
  127. border-radius: 0.625rem;
  128. padding: 0.9375rem;
  129. display: flex;
  130. align-items: center;
  131. justify-content: space-between;
  132. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  133. }
  134. .course-cards .course-card .card-content[data-v-7f6951af] {
  135. flex: 1;
  136. }
  137. .course-cards .course-card .card-content .card-title[data-v-7f6951af] {
  138. display: block;
  139. color: #fff;
  140. font-size: 0.875rem;
  141. font-weight: bold;
  142. margin-bottom: 0.3125rem;
  143. }
  144. .course-cards .course-card .card-content .card-subtitle[data-v-7f6951af] {
  145. display: block;
  146. color: #fff;
  147. font-size: 0.6875rem;
  148. opacity: 0.9;
  149. }
  150. .course-cards .course-card .card-image[data-v-7f6951af] {
  151. width: 2.5rem;
  152. height: 2.5rem;
  153. }
  154. .course-section[data-v-7f6951af] {
  155. background-color: #fff;
  156. margin: 0.625rem 0.9375rem;
  157. border-radius: 0.625rem;
  158. padding: 0.9375rem;
  159. }
  160. .course-section .section-header[data-v-7f6951af] {
  161. display: flex;
  162. align-items: center;
  163. justify-content: space-between;
  164. margin-bottom: 0.9375rem;
  165. }
  166. .course-section .section-header .section-title[data-v-7f6951af] {
  167. font-size: 1rem;
  168. font-weight: bold;
  169. color: #333;
  170. }
  171. .course-section .section-header .more-btn[data-v-7f6951af] {
  172. display: flex;
  173. align-items: center;
  174. color: #999;
  175. font-size: 0.75rem;
  176. }
  177. .course-section .section-header .more-btn .arrow-icon[data-v-7f6951af] {
  178. font-size: 0.875rem;
  179. margin-left: 0.25rem;
  180. color: #999;
  181. }
  182. .course-section .course-list .course-item[data-v-7f6951af] {
  183. display: flex;
  184. margin-bottom: 0.9375rem;
  185. }
  186. .course-section .course-list .course-item[data-v-7f6951af]:last-child {
  187. margin-bottom: 0;
  188. }
  189. .course-section .course-list .course-item .course-cover[data-v-7f6951af] {
  190. width: 5rem;
  191. height: 3.75rem;
  192. border-radius: 0.375rem;
  193. margin-right: 0.625rem;
  194. }
  195. .course-section .course-list .course-item .course-info[data-v-7f6951af] {
  196. flex: 1;
  197. }
  198. .course-section .course-list .course-item .course-info .course-title[data-v-7f6951af] {
  199. display: block;
  200. font-size: 0.875rem;
  201. font-weight: bold;
  202. color: #333;
  203. margin-bottom: 0.3125rem;
  204. }
  205. .course-section .course-list .course-item .course-info .course-stats[data-v-7f6951af] {
  206. display: flex;
  207. align-items: center;
  208. margin-bottom: 0.3125rem;
  209. }
  210. .course-section .course-list .course-item .course-info .course-stats .course-students[data-v-7f6951af] {
  211. font-size: 0.6875rem;
  212. color: #999;
  213. margin-right: 0.625rem;
  214. }
  215. .course-section .course-list .course-item .course-info .course-stats .course-type[data-v-7f6951af] {
  216. font-size: 0.6875rem;
  217. color: #999;
  218. }
  219. .course-section .course-list .course-item .course-info .course-desc[data-v-7f6951af] {
  220. font-size: 0.75rem;
  221. color: #666;
  222. line-height: 1.4;
  223. }