index.module.less 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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: flex-start;
  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. pointer-events: none;
  38. div {
  39. box-sizing: border-box;
  40. }
  41. }
  42. .backBtn {
  43. color: #fff;
  44. height: 100%;
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: flex-start;
  48. z-index: 10;
  49. font-size: 18px;
  50. padding: 12px 15px 20px 40px;
  51. :global {
  52. .van-icon {
  53. margin-right: 8px;
  54. pointer-events: auto;
  55. }
  56. }
  57. .titleSection {
  58. .title {
  59. font-weight: 600;
  60. font-size: 16px;
  61. color: #ffffff;
  62. line-height: 22px;
  63. pointer-events: auto;
  64. }
  65. }
  66. .titleContent {
  67. display: flex;
  68. align-items: center;
  69. padding-top: 6px;
  70. p {
  71. font-size: 14px;
  72. color: #ffffff;
  73. line-height: 20px;
  74. pointer-events: auto;
  75. }
  76. span {
  77. margin-left: 6px;
  78. font-size: 11px;
  79. color: #ffffff;
  80. line-height: 1.4;
  81. background: rgba(0, 0, 0, 0.1);
  82. border-radius: 15px;
  83. border: 1px solid rgba(255, 255, 255, 0.7);
  84. padding: 3px 8px 2px;
  85. box-sizing: content-box;
  86. pointer-events: auto;
  87. }
  88. }
  89. }
  90. .headRight {
  91. position: relative;
  92. z-index: 10;
  93. display: flex;
  94. align-items: center;
  95. margin-left: auto;
  96. height: 100%;
  97. padding-right: 40px;
  98. padding-top: 12px;
  99. .pointBtn {
  100. font-weight: 600;
  101. font-size: 14px;
  102. color: #FFFFFF;
  103. line-height: 20px;
  104. padding-right: 20px;
  105. pointer-events: auto;
  106. }
  107. .rightBtn {
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. height: 100%;
  112. pointer-events: auto;
  113. img {
  114. width: 24px;
  115. height: 24px;
  116. display: block;
  117. }
  118. }
  119. }
  120. .menu {
  121. position: absolute;
  122. width: 100%;
  123. height: 100%;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. font-size: 12px;
  128. color: #fff;
  129. }
  130. .tabsContent {
  131. width: 100vw;
  132. height: 100vh;
  133. :global {
  134. .van-tabs__wrap {
  135. display: none !important;
  136. }
  137. .van-tabs__content {
  138. width: 100%;
  139. height: 100%;
  140. }
  141. }
  142. }
  143. .wraps {
  144. width: 100%;
  145. height: 100%;
  146. transform-style: preserve-3d;
  147. perspective: (32rem);
  148. transition-timing-function: initial;
  149. }
  150. .itemDiv {
  151. position: absolute;
  152. left: 0;
  153. top: 0;
  154. right: 0;
  155. bottom: 0;
  156. width: 100%;
  157. height: 100%;
  158. background-color: #000;
  159. // transition-duration: .8s;
  160. transform-style: preserve-3d;
  161. transition-property: transform, opacity, height;
  162. backface-visibility: hidden;
  163. overflow: hidden;
  164. z-index: 1;
  165. &.itemActive {
  166. z-index: 10;
  167. }
  168. &.acitveAnimation {
  169. transition-duration: 0.8s;
  170. }
  171. &.show {
  172. display: block;
  173. }
  174. &.hide {
  175. display: none;
  176. }
  177. video {
  178. width: 100%;
  179. height: 100%;
  180. }
  181. img {
  182. display: block;
  183. width: 100%;
  184. height: 100%;
  185. object-fit: contain;
  186. }
  187. }
  188. .fullBtn {
  189. width: 24px;
  190. height: 24px;
  191. padding: 10px 9px;
  192. display: flex;
  193. flex-direction: column;
  194. align-items: center;
  195. color: #fff;
  196. justify-content: space-evenly;
  197. overflow: hidden;
  198. white-space: nowrap;
  199. box-sizing: content-box;
  200. border-radius: 7px;
  201. &:active {
  202. background: rgba(255, 255, 255, 0.2);
  203. }
  204. &.disabled {
  205. opacity: 0.4;
  206. }
  207. img {
  208. width: inherit;
  209. height: inherit;
  210. }
  211. }
  212. .rightFixedBtns {
  213. position: absolute;
  214. top: 50%;
  215. transform: translateY(-50%);
  216. right: 12px;
  217. z-index: 10;
  218. }
  219. .leftFixedBtns {
  220. position: absolute;
  221. top: 50%;
  222. transform: translateY(-50%);
  223. left: 40px;
  224. z-index: 10;
  225. background: rgba(0, 0, 0, 0.4);
  226. border-radius: 7px;
  227. // .prePoint {
  228. // margin-bottom: 8px;
  229. // }
  230. }
  231. .btnsWrap {
  232. background: rgba(51, 51, 51, 0.4);
  233. border-radius: 6px;
  234. overflow: hidden;
  235. }
  236. .bottomFixedContainer {
  237. position: absolute;
  238. left: 0;
  239. right: 0;
  240. bottom: 0;
  241. z-index: 10;
  242. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  243. transition: transform 0.5s;
  244. .time {
  245. display: flex;
  246. justify-content: space-between;
  247. color: #fff;
  248. font-size: 10px;
  249. padding: 4px 20px;
  250. }
  251. .slider {
  252. padding: 8px 20px;
  253. :global {
  254. .van-slider__button {
  255. background: var(--van-primary);
  256. }
  257. }
  258. }
  259. .actions {
  260. display: flex;
  261. justify-content: space-between;
  262. color: #fff;
  263. font-size: 12px;
  264. padding: 0 10px 4px 20px;
  265. align-items: center;
  266. .actionBtn {
  267. display: flex;
  268. }
  269. .actionBtn > img {
  270. width: 30px;
  271. height: 30px;
  272. display: block;
  273. padding: 4px 10px 4px 4px;
  274. }
  275. }
  276. }
  277. .popup {
  278. background: rgba(0, 0, 0, 0.5);
  279. }
  280. .popupCoursewarePlay {
  281. background: rgba(0, 0, 0, 0.8) !important;
  282. box-shadow: -6px 0px 20px 0px rgba(0,0,0,0.3) !important;
  283. border-radius: 16px 0px 0px 16px !important;
  284. backdrop-filter: blur(12px);
  285. }
  286. .popupPoint {
  287. :global {
  288. .van-popup__close-icon {
  289. font-size: 18px;
  290. top: 14px;
  291. right: 20px;
  292. color: #333333;
  293. }
  294. }
  295. }
  296. .overlayClass {
  297. --van-overlay-background: transparent;
  298. }
  299. :global {
  300. .top-enter-active,
  301. .top-leave-active {
  302. transition: transform 0.5s;
  303. }
  304. .top-enter-from,
  305. .top-leave-to {
  306. transform: translateY(-100%);
  307. }
  308. .left-enter-active,
  309. .left-leave-active {
  310. transition: all 0.5s;
  311. }
  312. .left-enter-from,
  313. .left-leave-to {
  314. left: -60px;
  315. opacity: 0;
  316. }
  317. .right-enter-active,
  318. .right-leave-active {
  319. transition: all 0.5s;
  320. }
  321. .right-enter-from,
  322. .right-leave-to {
  323. right: -60px;
  324. opacity: 0;
  325. }
  326. .bottom-enter-active,
  327. .bottom-leave-active {
  328. transition: transform 0.5s;
  329. }
  330. .bottom-enter-from,
  331. .bottom-leave-to {
  332. transform: translateY(100%);
  333. }
  334. }
  335. .loadWrap {
  336. position: absolute;
  337. left: -6px;
  338. top: 0;
  339. right: -6px;
  340. bottom: 0;
  341. background: linear-gradient(45deg, #21232a, #111218);
  342. display: flex;
  343. justify-content: center;
  344. align-items: center;
  345. }
  346. .playRecordTimeWrap {
  347. position: absolute;
  348. top: 11px;
  349. left: 50%;
  350. transform: translateX(-50%);
  351. }
  352. .playRecordTime {
  353. // width: 90px;
  354. // margin-right: 10px;
  355. background: rgba(0, 0, 0, 0.4);
  356. border-radius: 20px;
  357. font-size: 12px;
  358. padding: 6px 8px;
  359. display: flex;
  360. align-items: center;
  361. justify-content: center;
  362. color: #fff;
  363. .timeLoad {
  364. width: 4px;
  365. height: 4px;
  366. background: #ff4e19;
  367. border: 0.5px solid #ffffff;
  368. border-radius: 50%;
  369. margin-right: 6px;
  370. box-sizing: content-box;
  371. // animation: loadFade 1s ease-in-out infinite;
  372. }
  373. }
  374. // @keyframes loadFade {
  375. // 0% {
  376. // opacity: 0;
  377. // }
  378. // 50% {
  379. // opacity: 0.5;
  380. // }
  381. // 100% {
  382. // opacity: 1;
  383. // }
  384. // }
  385. .swiperContainer {
  386. :global {
  387. .swiper-wrapper {
  388. height: 100vh;
  389. }
  390. }
  391. }
  392. .popupMore {
  393. background: rgba(0, 0, 0, 0.8);
  394. }
  395. .goPractice {
  396. position: absolute;
  397. right: 39px;
  398. bottom: 12px;
  399. width: 86px;
  400. height: 30px;
  401. background: url('./image/btn_go_practice.png') no-repeat center;
  402. background-size: contain;
  403. z-index: 11;
  404. transition: all .5s ease;
  405. &.hide {
  406. transform: translateY(55px);
  407. }
  408. }