index.module.less 7.0 KB

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