index.module.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. .playContent {
  2. width: 100vw;
  3. height: 100vh;
  4. background-color: #000;
  5. }
  6. .coursewarePlay {
  7. position: relative;
  8. height: 100vh;
  9. margin: 0 auto;
  10. overflow: hidden;
  11. }
  12. .playModel {
  13. position: absolute;
  14. left: 0;
  15. top: 0;
  16. right: 0;
  17. bottom: 0;
  18. box-shadow: inset 0px 0px 164px 0px rgba(0, 0, 0, 1);
  19. pointer-events: none;
  20. }
  21. .headerContainer {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. right: 0;
  26. z-index: 10;
  27. display: flex;
  28. align-items: center;
  29. background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  30. }
  31. .backBtn {
  32. color: #fff;
  33. height: 26px;
  34. display: flex;
  35. justify-content: space-between;
  36. align-items: center;
  37. z-index: 10;
  38. padding: 4px 10px 4px 15px;
  39. :global {
  40. .van-icon {
  41. margin-right: 8px;
  42. }
  43. }
  44. }
  45. .menu {
  46. position: absolute;
  47. width: 100%;
  48. height: 100%;
  49. display: flex;
  50. justify-content: center;
  51. align-items: center;
  52. font-size: 12px;
  53. color: #fff;
  54. }
  55. .tabsContent {
  56. width: 100vw;
  57. height: 100vh;
  58. :global {
  59. .van-tabs__wrap {
  60. display: none !important;
  61. }
  62. .van-tabs__content {
  63. width: 100%;
  64. height: 100%;
  65. }
  66. }
  67. }
  68. .swipeItem {
  69. overflow: hidden;
  70. }
  71. .itemDiv {
  72. position: relative;
  73. width: 100%;
  74. height: 100%;
  75. video {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. img {
  80. display: block;
  81. width: 100%;
  82. height: 100%;
  83. object-fit: contain;
  84. }
  85. }
  86. .rightFixedBtns {
  87. position: absolute;
  88. top: 50%;
  89. transform: translateY(-50%);
  90. right: 12px;
  91. z-index: 10;
  92. .point {
  93. margin-top: 10px;
  94. border-bottom-left-radius: 0;
  95. border-bottom-right-radius: 0;
  96. }
  97. .point + .fullBtn {
  98. border-top-left-radius: 0;
  99. border-top-right-radius: 0;
  100. }
  101. }
  102. .leftFixedBtns {
  103. position: absolute;
  104. top: 50%;
  105. transform: translateY(-50%);
  106. left: 12px;
  107. z-index: 10;
  108. .prePoint {
  109. margin-bottom: 8px;
  110. }
  111. }
  112. .fullBtn {
  113. width: 38px;
  114. height: 55px;
  115. background: rgba(51, 51, 51, 0.4);
  116. border-radius: 8px;
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. color: #fff;
  121. justify-content: space-evenly;
  122. overflow: hidden;
  123. white-space: nowrap;
  124. &:active {
  125. opacity: 0.8;
  126. }
  127. }
  128. .bottomFixedContainer {
  129. position: absolute;
  130. left: 0;
  131. right: 0;
  132. bottom: 0;
  133. z-index: 10;
  134. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  135. transition: transform 0.5s;
  136. .time {
  137. display: flex;
  138. justify-content: space-between;
  139. color: #fff;
  140. font-size: 10px;
  141. padding: 4px 20px;
  142. }
  143. .slider {
  144. padding: 8px 20px;
  145. :global {
  146. .van-slider__button {
  147. background: var(--van-primary);
  148. }
  149. }
  150. }
  151. .actions {
  152. display: flex;
  153. justify-content: space-between;
  154. color: #fff;
  155. font-size: 12px;
  156. padding: 0 10px 4px 20px;
  157. align-items: center;
  158. .actionBtn {
  159. display: flex;
  160. }
  161. .actionBtn > img {
  162. width: 30px;
  163. height: 30px;
  164. display: block;
  165. padding: 4px 10px 4px 4px;
  166. }
  167. }
  168. }
  169. .popup {
  170. background: rgba(0, 0, 0, 0.5);
  171. }
  172. .overlayClass {
  173. --van-overlay-background: transparent;
  174. }
  175. :global {
  176. .top-enter-active,
  177. .top-leave-active {
  178. transition: transform 0.5s;
  179. }
  180. .top-enter-from,
  181. .top-leave-to {
  182. transform: translateY(-100%);
  183. }
  184. .left-enter-active,
  185. .left-leave-active {
  186. transition: all 0.5s;
  187. }
  188. .left-enter-from,
  189. .left-leave-to {
  190. left: -60px;
  191. opacity: 0;
  192. }
  193. .right-enter-active,
  194. .right-leave-active {
  195. transition: all 0.5s;
  196. }
  197. .right-enter-from,
  198. .right-leave-to {
  199. right: -60px;
  200. opacity: 0;
  201. }
  202. .bottom-enter-active,
  203. .bottom-leave-active {
  204. transition: transform 0.5s;
  205. }
  206. .bottom-enter-from,
  207. .bottom-leave-to {
  208. transform: translateY(100%);
  209. }
  210. }
  211. .loadWrap {
  212. position: absolute;
  213. left: 0;
  214. top: 0;
  215. right: 0;
  216. bottom: 0;
  217. background: linear-gradient(45deg, #21232a, #111218);
  218. display: flex;
  219. justify-content: center;
  220. align-items: center;
  221. }
  222. .playRecordTime {
  223. position: fixed;
  224. top: 33px;
  225. left: 16px;
  226. background: rgba(0, 0, 0, 0.4);
  227. border-radius: 20px;
  228. font-size: 6px;
  229. padding: 6px;
  230. display: flex;
  231. align-items: center;
  232. color: #fff;
  233. .timeLoad {
  234. width: 5px;
  235. height: 5px;
  236. background: #ff4e19;
  237. border: .5px solid #ffffff;
  238. border-radius: 50%;
  239. margin-right: 3px;
  240. animation: loadFade 1s ease-in-out infinite;
  241. }
  242. }
  243. @keyframes loadFade {
  244. 0%{
  245. opacity: 0;
  246. }
  247. 50%{
  248. opacity: .5;
  249. }
  250. 100%{
  251. opacity: 1;
  252. }
  253. }