index.module.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. .playContent {
  2. width: 100vw;
  3. height: 100vh;
  4. background-color: #000;
  5. overflow: hidden;
  6. --plyr-color-main: var(--van-primary);
  7. --plyr-range-track-height: 3px;
  8. }
  9. .coursewarePlay {
  10. position: relative;
  11. height: 100vh;
  12. margin: 0 auto;
  13. overflow: hidden;
  14. }
  15. .playModel {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. box-shadow: inset 0px 0px 164px 0px rgba(0, 0, 0, 1);
  22. pointer-events: none;
  23. }
  24. .headerContainer {
  25. position: fixed;
  26. top: 0;
  27. left: 0;
  28. right: 0;
  29. z-index: 10;
  30. display: flex;
  31. align-items: center;
  32. justify-content: space-between;
  33. height: 40px;
  34. background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  35. transition: transform 0.5s;
  36. box-sizing: border-box;
  37. div {
  38. box-sizing: border-box;
  39. }
  40. }
  41. .backBtn {
  42. font-weight: 500;
  43. font-size: 16px;
  44. color: #ffffff;
  45. height: 100%;
  46. display: flex;
  47. justify-content: space-between;
  48. align-items: center;
  49. z-index: 10;
  50. padding: 0 15px;
  51. :global {
  52. .van-icon {
  53. margin-right: 8px;
  54. }
  55. }
  56. }
  57. .headRight {
  58. position: relative;
  59. z-index: 10;
  60. display: flex;
  61. align-items: center;
  62. margin-left: auto;
  63. height: 100%;
  64. padding-right: 15px;
  65. .rightBtn {
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. height: 100%;
  70. padding: 0 10px;
  71. img {
  72. width: 22px;
  73. height: 22px;
  74. display: block;
  75. }
  76. }
  77. }
  78. .menu {
  79. position: absolute;
  80. width: 100%;
  81. height: 100%;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. font-weight: 500;
  86. font-size: 16px;
  87. color: #ffffff;
  88. }
  89. .tabsContent {
  90. width: 100vw;
  91. height: 100vh;
  92. :global {
  93. .van-tabs__wrap {
  94. display: none !important;
  95. }
  96. .van-tabs__content {
  97. width: 100%;
  98. height: 100%;
  99. }
  100. }
  101. }
  102. .wraps {
  103. width: 100%;
  104. height: 100%;
  105. transform-style: preserve-3d;
  106. perspective: (32rem);
  107. transition-timing-function: initial;
  108. }
  109. .itemDiv {
  110. position: absolute;
  111. left: 0;
  112. top: 0;
  113. right: 0;
  114. bottom: 0;
  115. width: 100%;
  116. height: 100%;
  117. background-color: #000;
  118. // transition-duration: .8s;
  119. transform-style: preserve-3d;
  120. transition-property: transform, opacity, height;
  121. backface-visibility: hidden;
  122. overflow: hidden;
  123. z-index: 1;
  124. &.itemActive {
  125. z-index: 10;
  126. }
  127. &.acitveAnimation {
  128. transition-duration: 0.8s;
  129. }
  130. &.show {
  131. display: block;
  132. }
  133. &.hide {
  134. display: none;
  135. }
  136. video {
  137. width: 100%;
  138. height: 100%;
  139. }
  140. img {
  141. display: block;
  142. width: 100%;
  143. height: 100%;
  144. object-fit: contain;
  145. }
  146. }
  147. .fullBtn {
  148. width: 38px;
  149. height: 50px;
  150. display: flex;
  151. flex-direction: column;
  152. align-items: center;
  153. color: #fff;
  154. justify-content: space-evenly;
  155. overflow: hidden;
  156. white-space: nowrap;
  157. &:active {
  158. background: rgba(255, 255, 255, 0.2);
  159. }
  160. }
  161. .rightFixedBtns {
  162. position: absolute;
  163. top: 50%;
  164. transform: translateY(-50%);
  165. right: 12px;
  166. z-index: 10;
  167. .btnsBottom {
  168. margin-top: 10px;
  169. }
  170. }
  171. .leftFixedBtns {
  172. position: absolute;
  173. top: 50%;
  174. transform: translateY(-50%);
  175. left: 12px;
  176. z-index: 10;
  177. .prePoint {
  178. margin-bottom: 8px;
  179. }
  180. }
  181. .btnsWrap {
  182. background: rgba(51, 51, 51, 0.4);
  183. border-radius: 6px;
  184. overflow: hidden;
  185. }
  186. .bottomFixedContainer {
  187. position: absolute;
  188. left: 0;
  189. right: 0;
  190. bottom: 0;
  191. z-index: 10;
  192. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  193. transition: transform 0.5s;
  194. .time {
  195. display: flex;
  196. justify-content: space-between;
  197. color: #fff;
  198. font-size: 10px;
  199. padding: 4px 20px;
  200. }
  201. .slider {
  202. padding: 8px 20px;
  203. :global {
  204. .van-slider__button {
  205. background: var(--van-primary);
  206. }
  207. }
  208. }
  209. .actions {
  210. display: flex;
  211. justify-content: space-between;
  212. color: #fff;
  213. font-size: 12px;
  214. padding: 0 10px 4px 20px;
  215. align-items: center;
  216. .actionBtn {
  217. display: flex;
  218. }
  219. .actionBtn>img {
  220. width: 30px;
  221. height: 30px;
  222. display: block;
  223. padding: 4px 10px 4px 4px;
  224. }
  225. }
  226. }
  227. .popup {
  228. background: rgba(0, 0, 0, 0.5);
  229. }
  230. .overlayClass {
  231. --van-overlay-background: transparent;
  232. }
  233. :global {
  234. .top-enter-active,
  235. .top-leave-active {
  236. transition: transform 0.5s;
  237. }
  238. .top-enter-from,
  239. .top-leave-to {
  240. transform: translateY(-100%);
  241. }
  242. .left-enter-active,
  243. .left-leave-active {
  244. transition: all 0.5s;
  245. }
  246. .left-enter-from,
  247. .left-leave-to {
  248. left: -60px;
  249. opacity: 0;
  250. }
  251. .right-enter-active,
  252. .right-leave-active {
  253. transition: all 0.5s;
  254. }
  255. .right-enter-from,
  256. .right-leave-to {
  257. right: -60px;
  258. opacity: 0;
  259. }
  260. .bottom-enter-active,
  261. .bottom-leave-active {
  262. transition: transform 0.5s;
  263. }
  264. .bottom-enter-from,
  265. .bottom-leave-to {
  266. transform: translateY(100%);
  267. }
  268. }
  269. .loadWrap {
  270. position: absolute;
  271. left: -6px;
  272. top: 0;
  273. right: -6px;
  274. bottom: 0;
  275. background: linear-gradient(45deg, #21232a, #111218);
  276. display: flex;
  277. justify-content: center;
  278. align-items: center;
  279. }
  280. .playRecordTime {
  281. width: 90px;
  282. margin-right: 10px;
  283. background: rgba(0, 0, 0, 0.4);
  284. border-radius: 20px;
  285. font-size: 12px;
  286. padding: 6px;
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. color: #fff;
  291. .timeLoad {
  292. width: 5px;
  293. height: 5px;
  294. background: #ff4e19;
  295. border: 0.5px solid #ffffff;
  296. border-radius: 50%;
  297. margin-right: 3px;
  298. animation: loadFade 1s ease-in-out infinite;
  299. }
  300. }
  301. @keyframes loadFade {
  302. 0% {
  303. opacity: 0;
  304. }
  305. 50% {
  306. opacity: 0.5;
  307. }
  308. 100% {
  309. opacity: 1;
  310. }
  311. }
  312. .swiperContainer {
  313. :global {
  314. .swiper-wrapper {
  315. height: 100vh;
  316. }
  317. }
  318. }
  319. .popupMore {
  320. background: rgba(0, 0, 0, 0.8);
  321. }
  322. .goPractice {
  323. width: 89px;
  324. height: 32px;
  325. background: url('./image/btn_go_practice.png') no-repeat center;
  326. background-size: contain;
  327. position: absolute;
  328. right: 12px;
  329. bottom: 60px;
  330. z-index: 11;
  331. transition: all .5s ease;
  332. &.hide {
  333. transform: translateX(66px);
  334. }
  335. }