show.wxss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .container {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. padding: 0 0;
  5. height: 100%;
  6. }
  7. .search-bar {
  8. width: calc(100% - 50rpx);
  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 21rpx;
  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-lists {
  51. display: flex;
  52. flex-direction: column;
  53. gap: 20rpx;
  54. margin-top: 20rpx;
  55. }
  56. .course-items {
  57. background-color: #fff;
  58. border-radius: 8rpx;
  59. overflow: hidden;
  60. }
  61. .course-videos {
  62. width: 100%;
  63. height: 385rpx;
  64. object-fit: cover;
  65. }
  66. .course-infos {
  67. padding: 20rpx;
  68. }
  69. .course-titles {
  70. font-size: 36rpx;
  71. font-weight: bold;
  72. color: #333;
  73. margin-bottom: 10rpx;
  74. }
  75. .course-descriptions {
  76. font-size: 28rpx;
  77. color: #666;
  78. line-height: 1.5;
  79. }