course.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. .container {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. padding: 0 0;
  5. height: 100%;
  6. }
  7. .search-bar {
  8. width: 100%;
  9. position: relative;
  10. display: flex;
  11. align-items: center;
  12. /* height: 70rpx; */
  13. background-color: #fff;
  14. border: 1rpx solid #dcdfe6;
  15. border-radius: 12rpx;
  16. padding: 16rpx 20rpx;
  17. }
  18. .search-bar input {
  19. flex: 1;
  20. height: 100%;
  21. padding-right: 60rpx;
  22. font-size: 32rpx;
  23. border: none;
  24. background: transparent;
  25. }
  26. .search-icon {
  27. position: absolute;
  28. right: 20rpx;
  29. width: 45rpx;
  30. height: 45rpx;
  31. }
  32. .category-tabs {
  33. width: 100%;
  34. display: flex;
  35. /* justify-content: space-between; */
  36. margin: 20rpx;
  37. }
  38. .category-tab {
  39. margin: 0 16rpx;
  40. padding: 13rpx 30rpx;
  41. font-size: 26rpx;
  42. color: #666;
  43. border-radius: 25rpx;
  44. }
  45. .category-tab.active {
  46. color: #409eff;
  47. background: #ecf5ff;
  48. border: 1rpx solid #d9ecff;
  49. }
  50. .course-list{
  51. width: 100%;
  52. margin-top: 20rpx;
  53. display: flex;
  54. flex-wrap: wrap;
  55. }
  56. .card {
  57. width: 48%;
  58. margin-right: 4%;
  59. margin-bottom: 20rpx;
  60. background-color: #fff;
  61. border-radius: 12rpx;
  62. overflow: hidden;
  63. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
  64. }
  65. .card:nth-child(2n) {
  66. margin-right: 0;
  67. }
  68. .label {
  69. width: 60rpx;
  70. height: 43rpx;
  71. text-align: center;
  72. line-height: 45rpx;
  73. font-size: 26rpx;
  74. padding: 5rpx 16rpx;
  75. border-radius: 40rpx;
  76. }
  77. .label.PDF { background: #ffeaea; color: #ff4d4f; border: 1rpx solid #fde2e2;}
  78. .label.shipin { background: #e6f7ff; color: #1890ff; border: 1rpx solid #d9ecff;}
  79. .label.yinpin { background: #f6ffed; color: #52c41a; border: 1rpx solid #e1f3d8;}
  80. .label.PPT { background: #fff7e6; color: #faad14; border: 1rpx solid #fde2e2;}
  81. .preview-btn {
  82. flex: 1;
  83. background-color: #409eff;
  84. color: #fff;
  85. border: none;
  86. border-radius: 40rpx;
  87. padding: 12rpx 0;
  88. font-size: 32rpx;
  89. display: flex;
  90. justify-content: center;
  91. align-content: center;
  92. }
  93. .cardimg {
  94. width: 100%;
  95. height: 300rpx;
  96. background: papayawhip;
  97. border-radius: 12rpx;
  98. position: relative;
  99. }
  100. .labelwg {
  101. position: absolute;
  102. top: 16rpx;
  103. left: 16rpx;
  104. }
  105. .info {
  106. display: flex;
  107. justify-content: space-between;
  108. padding-top: 16rpx;
  109. font-size: 26rpx;
  110. }
  111. .title_box.list {
  112. width: 320rpx;
  113. height: 100%;
  114. margin-right: 80rpx;
  115. }
  116. .item-content {
  117. padding: 20rpx;
  118. }
  119. .item-title {
  120. font-size: 32rpx;
  121. color: #333;
  122. margin-bottom: 10rpx;
  123. }
  124. .item-subtitle {
  125. font-size: 28rpx;
  126. color: #666;
  127. margin-bottom: 10rpx;
  128. }
  129. .item-download-count {
  130. font-size: 24rpx;
  131. color: #999;
  132. margin-bottom: 20rpx;
  133. }
  134. .item-buttons {
  135. display: flex;
  136. align-items: center;
  137. align-content: center;
  138. }
  139. .download-icon {
  140. width: 45rpx;
  141. height: 40rpx;
  142. margin-left: 20rpx;
  143. }
  144. .download-icons {
  145. width: 45rpx;
  146. height: 40rpx;
  147. margin-right: 20rpx;
  148. }
  149. .group-options {
  150. display: flex;
  151. justify-content: space-between;
  152. margin-top: 20rpx;
  153. width: 100%;
  154. }
  155. .option {
  156. text-align: center;
  157. margin-top: 20rpx;
  158. display: flex;
  159. align-items: center;
  160. flex-direction: column;
  161. }
  162. .option-icon {
  163. width: 80rpx;
  164. height: 80rpx;
  165. border-radius: 50%;
  166. }
  167. .option-text {
  168. font-size: 28rpx;
  169. color: #666;
  170. margin-top: 16rpx;
  171. }
  172. .course-lists {
  173. display: flex;
  174. flex-direction: column;
  175. gap: 20rpx;
  176. margin-top: 20rpx;
  177. }
  178. .course-items {
  179. background-color: #fff;
  180. border-radius: 8rpx;
  181. overflow: hidden;
  182. }
  183. .course-videos {
  184. width: 100%;
  185. height: 385rpx;
  186. object-fit: cover;
  187. }
  188. .course-infos {
  189. padding: 20rpx;
  190. }
  191. .course-titles {
  192. font-size: 36rpx;
  193. font-weight: bold;
  194. color: #333;
  195. margin-bottom: 10rpx;
  196. }
  197. .course-descriptions {
  198. font-size: 28rpx;
  199. color: #666;
  200. line-height: 1.5;
  201. }