my_course.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /* pages/user/my_course/my_course.wxss */
  2. .container {
  3. padding-bottom: 56rpx;
  4. overflow: hidden;
  5. width: 100%;
  6. min-height: calc(100vh - 56rpx);
  7. background: #F5F5F5;
  8. }
  9. .container-title {
  10. font-size: 48rpx;
  11. font-weight: 700;
  12. line-height: 64rpx;
  13. margin: 48rpx 32rpx 0;
  14. color: var(--td-text-color-primary);
  15. }
  16. .container-desc {
  17. font-size: 28rpx;
  18. color: var(--td-text-color-secondary);
  19. margin: 16rpx 32rpx 0;
  20. line-height: 44rpx;
  21. }
  22. .pulldown-reflesh__content {
  23. margin: 64rpx 32rpx 0;
  24. position: relative;
  25. }
  26. .row {
  27. display: flex;
  28. justify-content: space-between;
  29. margin-top: 32rpx;
  30. }
  31. .text {
  32. position: absolute;
  33. top: 152rpx;
  34. left: 50%;
  35. transform: translateX(-50%);
  36. text-align: center;
  37. font-size: 32rpx;
  38. color: var(--td-text-color-disabled);
  39. width: 686rpx;
  40. }
  41. .list {
  42. display: flex;
  43. flex-direction: column;
  44. align-items: center;
  45. gap: 20rpx 0;
  46. }
  47. .course_item {
  48. width: 670rpx;
  49. height: 126rpx;
  50. background: #FFFFFF;
  51. border-radius: 16rpx 16rpx 16rpx 16rpx;
  52. padding: 20rpx;
  53. display: flex;
  54. flex-direction: row;
  55. justify-content: flex-start;
  56. overflow: hidden;
  57. }
  58. .course_item .cover {
  59. width: 220rpx;
  60. height: 126rpx;
  61. }
  62. .course_item .content {
  63. flex: 1;
  64. display: flex;
  65. flex-direction: column;
  66. justify-content: space-between;
  67. }
  68. .course_item.disabled {
  69. pointer-events: none;
  70. opacity: 0.5;
  71. }
  72. .course_item .title {
  73. max-height: 80rpx;
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. word-break: break-all;
  77. display: -webkit-box;
  78. -webkit-box-orient: vertical;
  79. -webkit-line-clamp: 2;
  80. font-size: 28rpx;
  81. line-height: 33rpx;
  82. font-weight: 400;
  83. padding: 0 20rpx;
  84. }
  85. .sub_info {
  86. color: rgba(136, 136, 136, 0.9);
  87. display: flex;
  88. flex-direction: row;
  89. justify-content: space-between;
  90. font-size: 24rpx;
  91. padding: 0 20rpx;
  92. line-height: 28rpx;
  93. }
  94. .sub_info .author {
  95. max-width: 300rpx;
  96. text-overflow: ellipsis;
  97. word-break: break-all;
  98. white-space: nowrap;
  99. overflow: hidden;
  100. }
  101. .status.live {
  102. color: rgba(215, 95, 93, 1);
  103. }
  104. .empty {
  105. min-height: 80vh;
  106. width: 100%;
  107. display: flex;
  108. justify-content: center;
  109. align-items: center;
  110. }
  111. .empty .t-empty__image {
  112. width: 300rpx;
  113. height: 200rpx;
  114. }