index.module.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. .listContainer {
  2. margin: 10px 0;
  3. max-height: calc(var(--window-page-lesson-height) - 204px);
  4. // overflow-x: auto;
  5. &.listNoMusic {
  6. max-height: calc(var(--window-page-lesson-height) - 150px);
  7. .listSection {
  8. min-height: calc(var(--window-page-lesson-height) - 150px);
  9. }
  10. }
  11. .listSection {
  12. min-height: calc(var(--window-page-lesson-height) - 204px);
  13. }
  14. .emptySection {
  15. display: flex;
  16. align-items: center;
  17. }
  18. .list {
  19. padding: 10px 0;
  20. text-align: center;
  21. & > div {
  22. margin-bottom: 20px;
  23. &:last-child {
  24. margin-bottom: 0;
  25. }
  26. }
  27. }
  28. }
  29. .trainEditModal {
  30. width: 524px;
  31. }
  32. .itemModal {
  33. display: flex;
  34. align-items: center;
  35. margin: 0 17px 20px;
  36. .itemCover {
  37. position: relative;
  38. width: 118px;
  39. height: 66px;
  40. margin-right: 10px;
  41. border-radius: 12px;
  42. border: 1px solid #eff0f2;
  43. overflow: hidden;
  44. .statusCon {
  45. position: absolute;
  46. top: 2px;
  47. left: 2px;
  48. z-index: 9;
  49. display: flex;
  50. align-items: center;
  51. transform: scale(0.8);
  52. .status {
  53. background: rgba(0, 0, 0, 0.5);
  54. border-radius: 4px;
  55. font-weight: 600;
  56. font-size: max(12px, 11Px);
  57. color: #ffffff;
  58. padding: 2px 6px;
  59. }
  60. }
  61. :global {
  62. .n-image {
  63. width: 118px;
  64. height: 66px;
  65. }
  66. }
  67. img {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. &:hover {
  72. .function {
  73. opacity: 1;
  74. transition: opacity 0.2s ease;
  75. }
  76. }
  77. }
  78. .function {
  79. position: absolute;
  80. inset: 0;
  81. background: rgba(0, 0, 0, 0.3);
  82. display: flex;
  83. align-items: center;
  84. justify-content: space-evenly;
  85. opacity: 0;
  86. transition: opacity 0.2s ease;
  87. .iconLook,
  88. .iconAdd {
  89. cursor: pointer;
  90. width: 27px;
  91. height: 27px;
  92. border-radius: 50%;
  93. background: rgba(0, 0, 0, 0.4);
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. }
  98. .iconLook {
  99. &::before {
  100. display: inline-block;
  101. content: '';
  102. width: 15px;
  103. height: 15px;
  104. background: url('../../../../images/icon-look.png') no-repeat center;
  105. background-size: contain;
  106. }
  107. }
  108. .iconAdd {
  109. &::before {
  110. display: inline-block;
  111. content: '';
  112. width: 12px;
  113. height: 12px;
  114. background: url('../../../../images/icon-add.png') no-repeat center;
  115. background-size: contain;
  116. }
  117. }
  118. }
  119. .itemContent {
  120. max-width: 158px;
  121. text-align: left;
  122. flex: 1;
  123. .itemTitle {
  124. font-weight: 600;
  125. font-size: max(12px, 11Px);
  126. color: #000000;
  127. line-height: 17px;
  128. &:hover {
  129. color: #1677ff;
  130. cursor: pointer;
  131. }
  132. }
  133. .itemSubject {
  134. padding-top: 7px;
  135. width: 100%;
  136. overflow: hidden;
  137. text-overflow: ellipsis;
  138. white-space: nowrap;
  139. font-size: 11px;
  140. color: #777777;
  141. line-height: 15px;
  142. }
  143. .updateTime {
  144. font-size: max(12px, 10Px);
  145. color: #777777;
  146. padding-top: 2px;
  147. }
  148. .other {
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. span {
  153. font-size: max(12px, 10Px);
  154. color: #777777;
  155. }
  156. }
  157. .addCourseBtn {
  158. display: inline-block;
  159. padding: 2px 6px;
  160. background: #e8f4ff;
  161. border-radius: 2px;
  162. font-weight: 500;
  163. font-size: max(10px, 10Px);
  164. color: #0378ec;
  165. cursor: pointer;
  166. }
  167. }
  168. }