index.module.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. .playContent {
  2. width: 100vw;
  3. height: 100vh;
  4. background-color: #000;
  5. overflow: hidden;
  6. // :global {
  7. // // 更改动画样式
  8. // .van-swipe__track {
  9. // height: 100% !important;
  10. // transform: translateY(0px) !important;
  11. // position: relative;
  12. // }
  13. // }
  14. }
  15. .coursewarePlay {
  16. position: relative;
  17. height: 100vh;
  18. margin: 0 auto;
  19. overflow: hidden;
  20. }
  21. .playModel {
  22. position: absolute;
  23. left: 0;
  24. top: 0;
  25. right: 0;
  26. bottom: 0;
  27. box-shadow: inset 0px 0px 164px 0px rgba(0, 0, 0, 1);
  28. pointer-events: none;
  29. }
  30. .headerContainer {
  31. position: fixed;
  32. top: 0;
  33. left: 0;
  34. right: 0;
  35. z-index: 10;
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  40. transition: transform 0.5s;
  41. }
  42. .backBtn {
  43. color: #fff;
  44. height: 26px;
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. z-index: 10;
  49. padding: 4px 10px 4px 15px;
  50. :global {
  51. .van-icon {
  52. margin-right: 8px;
  53. }
  54. }
  55. }
  56. .menu {
  57. position: absolute;
  58. width: 100%;
  59. height: 100%;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. font-size: 12px;
  64. color: #fff;
  65. }
  66. .tabsContent {
  67. width: 100vw;
  68. height: 100vh;
  69. :global {
  70. .van-tabs__wrap {
  71. display: none !important;
  72. }
  73. .van-tabs__content {
  74. width: 100%;
  75. height: 100%;
  76. }
  77. }
  78. }
  79. .swipeItem {
  80. overflow: hidden;
  81. }
  82. .itemDiv {
  83. position: relative;
  84. width: 100%;
  85. height: 100%;
  86. background-color: #000;
  87. video {
  88. width: 100%;
  89. height: 100%;
  90. }
  91. img {
  92. display: block;
  93. width: 100%;
  94. height: 100%;
  95. object-fit: contain;
  96. }
  97. }
  98. .rightFixedBtns {
  99. position: absolute;
  100. top: 50%;
  101. transform: translateY(-50%);
  102. right: 12px;
  103. z-index: 10;
  104. .point {
  105. margin-top: 10px;
  106. border-bottom-left-radius: 0;
  107. border-bottom-right-radius: 0;
  108. }
  109. .point + .fullBtn {
  110. border-top-left-radius: 0;
  111. border-top-right-radius: 0;
  112. }
  113. }
  114. .leftFixedBtns {
  115. position: absolute;
  116. top: 50%;
  117. transform: translateY(-50%);
  118. left: 12px;
  119. z-index: 10;
  120. .prePoint {
  121. margin-bottom: 8px;
  122. }
  123. }
  124. .fullBtn {
  125. width: 38px;
  126. height: 55px;
  127. background: rgba(51, 51, 51, 0.4);
  128. border-radius: 8px;
  129. display: flex;
  130. flex-direction: column;
  131. align-items: center;
  132. color: #fff;
  133. justify-content: space-evenly;
  134. overflow: hidden;
  135. white-space: nowrap;
  136. &:active {
  137. opacity: 0.8;
  138. }
  139. }
  140. .bottomFixedContainer {
  141. position: absolute;
  142. left: 0;
  143. right: 0;
  144. bottom: 0;
  145. z-index: 10;
  146. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  147. transition: transform 0.5s;
  148. .time {
  149. display: flex;
  150. justify-content: space-between;
  151. color: #fff;
  152. font-size: 10px;
  153. padding: 4px 20px;
  154. }
  155. .slider {
  156. padding: 8px 20px;
  157. :global {
  158. .van-slider__button {
  159. background: var(--van-primary);
  160. }
  161. }
  162. }
  163. .actions {
  164. display: flex;
  165. justify-content: space-between;
  166. color: #fff;
  167. font-size: 12px;
  168. padding: 0 10px 4px 20px;
  169. align-items: center;
  170. .actionBtn {
  171. display: flex;
  172. }
  173. .actionBtn > img {
  174. width: 30px;
  175. height: 30px;
  176. display: block;
  177. padding: 4px 10px 4px 4px;
  178. }
  179. }
  180. }
  181. .popup {
  182. background: rgba(0, 0, 0, 0.5);
  183. }
  184. .overlayClass {
  185. --van-overlay-background: transparent;
  186. }
  187. :global {
  188. .top-enter-active,
  189. .top-leave-active {
  190. transition: transform 0.5s;
  191. }
  192. .top-enter-from,
  193. .top-leave-to {
  194. transform: translateY(-100%);
  195. }
  196. .left-enter-active,
  197. .left-leave-active {
  198. transition: all 0.5s;
  199. }
  200. .left-enter-from,
  201. .left-leave-to {
  202. left: -60px;
  203. opacity: 0;
  204. }
  205. .right-enter-active,
  206. .right-leave-active {
  207. transition: all 0.5s;
  208. }
  209. .right-enter-from,
  210. .right-leave-to {
  211. right: -60px;
  212. opacity: 0;
  213. }
  214. .bottom-enter-active,
  215. .bottom-leave-active {
  216. transition: transform 0.5s;
  217. }
  218. .bottom-enter-from,
  219. .bottom-leave-to {
  220. transform: translateY(100%);
  221. }
  222. }
  223. .loadWrap {
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. right: 0;
  228. bottom: 0;
  229. background: linear-gradient(45deg, #21232a, #111218);
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. }
  234. .playRecordTime {
  235. width: 90px;
  236. margin-right: 10px;
  237. background: rgba(0, 0, 0, 0.4);
  238. border-radius: 20px;
  239. font-size: 12px;
  240. padding: 6px;
  241. display: flex;
  242. align-items: center;
  243. justify-content: center;
  244. color: #fff;
  245. .timeLoad {
  246. width: 5px;
  247. height: 5px;
  248. background: #ff4e19;
  249. border: 0.5px solid #ffffff;
  250. border-radius: 50%;
  251. margin-right: 3px;
  252. animation: loadFade 1s ease-in-out infinite;
  253. }
  254. }
  255. @keyframes loadFade {
  256. 0% {
  257. opacity: 0;
  258. }
  259. 50% {
  260. opacity: 0.5;
  261. }
  262. 100% {
  263. opacity: 1;
  264. }
  265. }
  266. /* ----------------------------------------------
  267. * Generated by Animista on 2023-2-13 18:55:56
  268. * Licensed under FreeBSD License.
  269. * See http://animista.net/license for more info.
  270. * w: http://animista.net, t: @cssanimista
  271. * ---------------------------------------------- */
  272. /**
  273. * ----------------------------------------
  274. * animation rotate-vert-right
  275. * ----------------------------------------
  276. */
  277. @-webkit-keyframes rotate-vert-right {
  278. 0% {
  279. -webkit-transform: rotateY(0);
  280. transform: rotateY(0);
  281. -webkit-transform-origin: right;
  282. transform-origin: right;
  283. }
  284. 100% {
  285. -webkit-transform: rotateY(-360deg);
  286. transform: rotateY(-360deg);
  287. -webkit-transform-origin: right;
  288. transform-origin: right;
  289. }
  290. }
  291. @keyframes rotate-vert-right {
  292. 0% {
  293. -webkit-transform: rotateY(0);
  294. transform: rotateY(0);
  295. -webkit-transform-origin: right;
  296. transform-origin: right;
  297. }
  298. 100% {
  299. -webkit-transform: rotateY(-360deg);
  300. transform: rotateY(-360deg);
  301. -webkit-transform-origin: right;
  302. transform-origin: right;
  303. }
  304. }
  305. .rotate-vert-right {
  306. -webkit-animation: rotate-vert-right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) both;
  307. animation: rotate-vert-right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) both;
  308. }