index.module.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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: center;
  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: center;
  48. z-index: 10;
  49. padding: 0 15px;
  50. pointer-events: auto;
  51. :global {
  52. .van-icon {
  53. margin-right: 8px;
  54. }
  55. }
  56. }
  57. .headRight {
  58. position: relative;
  59. z-index: 10;
  60. display: flex;
  61. align-items: center;
  62. margin-left: auto;
  63. height: 100%;
  64. padding-right: 15px;
  65. .rightBtn {
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. height: 100%;
  70. padding: 0 10px;
  71. img {
  72. width: 22px;
  73. height: 22px;
  74. display: block;
  75. }
  76. }
  77. }
  78. .menu {
  79. position: absolute;
  80. width: 100%;
  81. height: 100%;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. font-size: 12px;
  86. color: #fff;
  87. }
  88. .tabsContent {
  89. width: 100vw;
  90. height: 100vh;
  91. :global {
  92. .van-tabs__wrap {
  93. display: none !important;
  94. }
  95. .van-tabs__content {
  96. width: 100%;
  97. height: 100%;
  98. }
  99. }
  100. }
  101. .wraps {
  102. width: 100%;
  103. height: 100%;
  104. // transform-style: preserve-3d;
  105. perspective: (32rem);
  106. transition-timing-function: initial;
  107. }
  108. .itemDiv {
  109. position: absolute;
  110. left: 0;
  111. top: 0;
  112. width: calc(100% + 4Px);
  113. height: 100%;
  114. background-color: #000;
  115. transform-style: preserve-3d;
  116. transition-property: transform, opacity, height;
  117. backface-visibility: hidden;
  118. overflow: hidden;
  119. z-index: 1;
  120. .tempoPracticeGroup {
  121. width: 100%;
  122. }
  123. &.itemActive {
  124. z-index: 10;
  125. }
  126. &.acitveAnimation {
  127. transition-duration: .8s;
  128. }
  129. &.show {
  130. display: block;
  131. }
  132. &.hide {
  133. display: none;
  134. }
  135. video {
  136. width: 100%;
  137. height: 100%;
  138. }
  139. img {
  140. display: block;
  141. width: 100%;
  142. height: 100%;
  143. object-fit: contain;
  144. }
  145. }
  146. .rightFixedBtns {
  147. position: absolute;
  148. top: 50%;
  149. transform: translateY(-55%);
  150. right: 12px;
  151. z-index: 10;
  152. }
  153. .fullBtn {
  154. width: 38px;
  155. height: 46px;
  156. display: flex;
  157. flex-direction: column;
  158. align-items: center;
  159. color: #fff;
  160. justify-content: space-evenly;
  161. overflow: hidden;
  162. white-space: nowrap;
  163. background: rgba(51, 51, 51, 0.8);
  164. border-radius: 6px;
  165. overflow: hidden;
  166. &:not(:last-child):not(:first-child) {
  167. margin: 8px 0;
  168. }
  169. &:active {
  170. opacity: .8;
  171. }
  172. &.btnsDisabled {
  173. opacity: .3;
  174. pointer-events: none;
  175. }
  176. }
  177. .popup {
  178. background: rgba(0, 0, 0, 0.5);
  179. box-shadow: -5px 0 10px 0 rgba(0, 0, 0, 0.1);
  180. }
  181. .overlayClass {
  182. --van-overlay-background: transparent;
  183. }
  184. :global {
  185. .top-enter-active,
  186. .top-leave-active {
  187. transition: transform 0.5s;
  188. }
  189. .top-enter-from,
  190. .top-leave-to {
  191. transform: translateY(-100%);
  192. }
  193. .right-enter-active,
  194. .right-leave-active {
  195. transition: all 0.5s;
  196. }
  197. .right-enter-from,
  198. .right-leave-to {
  199. right: -60px;
  200. opacity: 0;
  201. }
  202. .bottom-enter-active,
  203. .bottom-leave-active {
  204. transition: transform 0.5s;
  205. }
  206. .bottom-enter-from,
  207. .bottom-leave-to {
  208. transform: translateY(100%);
  209. }
  210. }
  211. .loadWrap {
  212. position: absolute;
  213. left: 0;
  214. top: 0;
  215. right: 0;
  216. bottom: 0;
  217. background: linear-gradient(45deg, #21232a, #111218);
  218. display: flex;
  219. justify-content: center;
  220. align-items: center;
  221. }