index.module.less 7.2 KB

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