index.module.less 7.5 KB

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