index.module.less 7.4 KB

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