index.module.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .coursewarePlay {
  2. position: relative;
  3. height: 100vh;
  4. background-color: rgba(89, 98, 126, 0.2);
  5. }
  6. .playModel {
  7. position: absolute;
  8. left: 0;
  9. top: 0;
  10. right: 0;
  11. bottom: 0;
  12. box-shadow: inset 0px 0px 164px 0px rgba(0, 0, 0, 1);
  13. pointer-events: none;
  14. }
  15. .headerContainer {
  16. position: fixed;
  17. top: 0;
  18. left: 0;
  19. right: 0;
  20. z-index: 1;
  21. padding: 10px;
  22. display: flex;
  23. align-items: center;
  24. color: #fff;
  25. font-size: 12px;
  26. background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent);
  27. }
  28. .backBtn {
  29. color: #fff;
  30. width: 40px;
  31. height: 26px;
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. z-index: 10;
  36. }
  37. .menu {
  38. flex: 1;
  39. display: flex;
  40. justify-content: center;
  41. color: #fff;
  42. }
  43. .tabsContent {
  44. width: 100vw;
  45. height: 100vh;
  46. :global {
  47. .van-tabs__wrap {
  48. display: none !important;
  49. }
  50. .van-tabs__content {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. }
  55. }
  56. .itemDiv {
  57. position: relative;
  58. width: 100%;
  59. height: 100%;
  60. video {
  61. width: 100%;
  62. height: 100%;
  63. }
  64. img {
  65. display: block;
  66. width: 100%;
  67. height: 100%;
  68. object-fit: contain;
  69. }
  70. }
  71. .rightFixedBtns {
  72. position: fixed;
  73. top: 50%;
  74. transform: translateY(-50%);
  75. right: 20px;
  76. .point {
  77. margin-top: 10px;
  78. border-bottom-left-radius: 0;
  79. border-bottom-right-radius: 0;
  80. }
  81. .point + .fullBtn {
  82. border-top-left-radius: 0;
  83. border-top-right-radius: 0;
  84. }
  85. }
  86. .leftFixedBtns {
  87. position: fixed;
  88. top: 50%;
  89. transform: translateY(-50%);
  90. left: 20px;
  91. .prePoint {
  92. margin-bottom: 8px;
  93. }
  94. }
  95. .fullBtn {
  96. width: 38px;
  97. height: 55px;
  98. background: rgba(51, 51, 51, 0.15);
  99. border-radius: 8px;
  100. display: flex;
  101. flex-direction: column;
  102. align-items: center;
  103. color: #fff;
  104. justify-content: space-evenly;
  105. &:active {
  106. opacity: 0.8;
  107. }
  108. }
  109. .bottomFixedContainer {
  110. position: absolute;
  111. left: 0;
  112. right: 0;
  113. bottom: 0;
  114. z-index: 10;
  115. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  116. .time {
  117. display: flex;
  118. justify-content: space-between;
  119. color: #fff;
  120. font-size: 10px;
  121. padding: 4px 10px;
  122. }
  123. .slider {
  124. padding: 8px 10px;
  125. }
  126. .actions {
  127. display: flex;
  128. justify-content: space-between;
  129. color: #fff;
  130. font-size: 12px;
  131. padding: 8px 10px;
  132. align-items: center;
  133. :global {
  134. .van-icon {
  135. font-size: 20px;
  136. margin-right: 14px;
  137. }
  138. }
  139. }
  140. }
  141. .popup {
  142. background: rgba(0, 0, 0, 0.5);
  143. }
  144. .overlayClass {
  145. --van-overlay-background: transparent;
  146. }
  147. :global {
  148. .top-enter-active,
  149. .top-leave-active {
  150. transition: transform 0.5s;
  151. }
  152. .top-enter-from,
  153. .top-leave-to {
  154. transform: translateY(-100%);
  155. }
  156. .left-enter-active,
  157. .left-leave-active {
  158. transition: all 0.5s;
  159. }
  160. .left-enter-from,
  161. .left-leave-to {
  162. left: -60px;
  163. }
  164. .right-enter-active,
  165. .right-leave-active {
  166. transition: all 0.5s;
  167. }
  168. .right-enter-from,
  169. .right-leave-to {
  170. right: -60px;
  171. }
  172. .bottom-enter-active,
  173. .bottom-leave-active {
  174. transition: transform 0.5s;
  175. }
  176. .bottom-enter-from,
  177. .bottom-leave-to {
  178. transform: translateY(100%);
  179. }
  180. }