index.module.less 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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.4;
  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. &:active {
  193. background: rgba(255, 255, 255, 0.2);
  194. }
  195. img {
  196. width: inherit;
  197. height: inherit;
  198. }
  199. }
  200. .rightFixedBtns {
  201. position: absolute;
  202. top: 50%;
  203. transform: translateY(-50%);
  204. right: 12px;
  205. z-index: 10;
  206. }
  207. .leftFixedBtns {
  208. position: absolute;
  209. top: 50%;
  210. transform: translateY(-50%);
  211. left: 12px;
  212. z-index: 10;
  213. background: rgba(0, 0, 0, 0.4);
  214. border-radius: 7px;
  215. .prePoint {
  216. margin-bottom: 8px;
  217. }
  218. }
  219. .btnsWrap {
  220. // background: rgba(51, 51, 51, 0.4);
  221. // border-radius: 6px;
  222. // overflow: hidden;
  223. }
  224. .bottomFixedContainer {
  225. position: absolute;
  226. left: 0;
  227. right: 0;
  228. bottom: 0;
  229. z-index: 10;
  230. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  231. transition: transform 0.5s;
  232. .time {
  233. display: flex;
  234. justify-content: space-between;
  235. color: #fff;
  236. font-size: 10px;
  237. padding: 4px 20px;
  238. }
  239. .slider {
  240. padding: 8px 20px;
  241. :global {
  242. .van-slider__button {
  243. background: var(--van-primary);
  244. }
  245. }
  246. }
  247. .actions {
  248. display: flex;
  249. justify-content: space-between;
  250. color: #fff;
  251. font-size: 12px;
  252. padding: 0 10px 4px 20px;
  253. align-items: center;
  254. .actionBtn {
  255. display: flex;
  256. }
  257. .actionBtn > img {
  258. width: 30px;
  259. height: 30px;
  260. display: block;
  261. padding: 4px 10px 4px 4px;
  262. }
  263. }
  264. }
  265. .popup {
  266. background: rgba(0, 0, 0, 0.5);
  267. }
  268. .overlayClass {
  269. --van-overlay-background: transparent;
  270. }
  271. :global {
  272. .top-enter-active,
  273. .top-leave-active {
  274. transition: transform 0.5s;
  275. }
  276. .top-enter-from,
  277. .top-leave-to {
  278. transform: translateY(-100%);
  279. }
  280. .left-enter-active,
  281. .left-leave-active {
  282. transition: all 0.5s;
  283. }
  284. .left-enter-from,
  285. .left-leave-to {
  286. left: -60px;
  287. opacity: 0;
  288. }
  289. .right-enter-active,
  290. .right-leave-active {
  291. transition: all 0.5s;
  292. }
  293. .right-enter-from,
  294. .right-leave-to {
  295. right: -60px;
  296. opacity: 0;
  297. }
  298. .bottom-enter-active,
  299. .bottom-leave-active {
  300. transition: transform 0.5s;
  301. }
  302. .bottom-enter-from,
  303. .bottom-leave-to {
  304. transform: translateY(100%);
  305. }
  306. }
  307. .loadWrap {
  308. position: absolute;
  309. left: -6px;
  310. top: 0;
  311. right: -6px;
  312. bottom: 0;
  313. background: linear-gradient(45deg, #21232a, #111218);
  314. display: flex;
  315. justify-content: center;
  316. align-items: center;
  317. }
  318. .playRecordTimeWrap {
  319. position: absolute;
  320. top: 11px;
  321. left: 50%;
  322. transform: translateX(-50%);
  323. }
  324. .playRecordTime {
  325. // width: 90px;
  326. // margin-right: 10px;
  327. background: rgba(0, 0, 0, 0.4);
  328. border-radius: 20px;
  329. font-size: 12px;
  330. padding: 6px 8px;
  331. display: flex;
  332. align-items: center;
  333. justify-content: center;
  334. color: #fff;
  335. .timeLoad {
  336. width: 5px;
  337. height: 5px;
  338. background: #ff4e19;
  339. // border: 0.5px solid #ffffff;
  340. border-radius: 50%;
  341. margin-right: 6px;
  342. // animation: loadFade 1s ease-in-out infinite;
  343. }
  344. }
  345. // @keyframes loadFade {
  346. // 0% {
  347. // opacity: 0;
  348. // }
  349. // 50% {
  350. // opacity: 0.5;
  351. // }
  352. // 100% {
  353. // opacity: 1;
  354. // }
  355. // }
  356. .swiperContainer {
  357. :global {
  358. .swiper-wrapper {
  359. height: 100vh;
  360. }
  361. }
  362. }
  363. .popupMore {
  364. background: rgba(0, 0, 0, 0.8);
  365. }
  366. .goPractice {
  367. width: 89px;
  368. height: 32px;
  369. background: url('./image/btn_go_practice.png') no-repeat center;
  370. background-size: contain;
  371. position: absolute;
  372. right: 12px;
  373. bottom: 60px;
  374. z-index: 11;
  375. transition: all 0.5s ease;
  376. &.hide {
  377. transform: translateX(66px);
  378. }
  379. }