index.module.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. .coursewarePlay {
  2. position: relative;
  3. height: 100vh;
  4. background-color: rgba(89, 98, 126, 0.2);
  5. }
  6. .playModel{
  7. position: absolute;
  8. left: 0;
  9. top: 0;
  10. right: 0;
  11. bottom: 0;
  12. box-shadow: inset 0px 0px 164px 0px rgba(0,0,0,1);
  13. }
  14. .headerContainer {
  15. position: fixed;
  16. top: 0;
  17. left: 0;
  18. right: 0;
  19. z-index: 1;
  20. padding: 10px;
  21. display: flex;
  22. align-items: center;
  23. }
  24. .backBtn {
  25. position: absolute;
  26. color: #fff;
  27. width: 40px;
  28. height: 26px;
  29. display: flex;
  30. justify-content: space-between;
  31. align-items: center;
  32. z-index: 10;
  33. }
  34. .menu {
  35. flex: 1;
  36. display: flex;
  37. justify-content: center;
  38. font-size: 12px;
  39. color: #fff;
  40. }
  41. .tabsContent {
  42. width: 100vw;
  43. height: 100vh;
  44. :global {
  45. .van-tabs__wrap {
  46. display: none !important;
  47. }
  48. .van-tabs__content {
  49. width: 100%;
  50. height: 100%;
  51. }
  52. }
  53. }
  54. .videoItem {
  55. width: 100%;
  56. height: 100%;
  57. --plyr-color-main: var(--van-primary);
  58. video {
  59. width: 100%;
  60. height: 100%;
  61. }
  62. :global {
  63. .plyr {
  64. height: 100%;
  65. }
  66. }
  67. }
  68. .imgItem {
  69. width: 100%;
  70. height: 100%;
  71. img {
  72. display: block;
  73. width: 100%;
  74. height: 100%;
  75. object-fit: contain;
  76. }
  77. }
  78. .songItem {
  79. width: 100%;
  80. height: 100%;
  81. }
  82. .rightFixedBtns {
  83. position: fixed;
  84. top: 50%;
  85. transform: translateY(-50%);
  86. right: 20px;
  87. .point {
  88. margin-top: 10px;
  89. border-bottom-left-radius: 0;
  90. border-bottom-right-radius: 0;
  91. }
  92. .point + .fullBtn {
  93. border-top-left-radius: 0;
  94. border-top-right-radius: 0;
  95. }
  96. }
  97. .leftFixedBtns{
  98. position: fixed;
  99. top: 50%;
  100. transform: translateY(-50%);
  101. left: 20px;
  102. .prePoint{
  103. margin-bottom: 8px;
  104. }
  105. }
  106. .fullBtn {
  107. width: 38px;
  108. height: 55px;
  109. background: rgba(51, 51, 51, 0.15);
  110. border-radius: 8px;
  111. display: flex;
  112. flex-direction: column;
  113. align-items: center;
  114. color: #fff;
  115. justify-content: space-evenly;
  116. &:active {
  117. opacity: 0.8;
  118. }
  119. }
  120. .bottomFixedContainer{
  121. position: fixed;
  122. left: 0;
  123. right: 0;
  124. bottom: 0;
  125. .time{
  126. display: flex;
  127. justify-content: space-between;
  128. color: #fff;
  129. font-size: 10px;
  130. padding: 4px 10px;
  131. }
  132. .actions{
  133. display: flex;
  134. justify-content: space-between;
  135. color: #fff;
  136. font-size: 12px;
  137. padding: 4px 10px 18px 10px;
  138. :global{
  139. .van-icon{
  140. font-size: 20px;
  141. margin-right: 14px;
  142. }
  143. }
  144. }
  145. }
  146. .popup {
  147. background: rgba(0, 0, 0, 0.5);
  148. }
  149. .overlayClass {
  150. --van-overlay-background: transparent;
  151. }
  152. :global {
  153. .top-enter-active,
  154. .top-leave-active {
  155. transition: transform 0.5s;
  156. }
  157. .top-enter-from,
  158. .top-leave-to {
  159. transform: translateY(-100%);
  160. }
  161. .left-enter-active,
  162. .left-leave-active {
  163. transition: all 0.5s;
  164. }
  165. .left-enter-from,
  166. .left-leave-to {
  167. left: -60px;
  168. }
  169. .right-enter-active,
  170. .right-leave-active {
  171. transition: all 0.5s;
  172. }
  173. .right-enter-from,
  174. .right-leave-to {
  175. right: -60px;
  176. }
  177. .bottom-enter-active,
  178. .bottom-leave-active {
  179. transition: transform 0.5s;
  180. }
  181. .bottom-enter-from,
  182. .bottom-leave-to {
  183. transform: translateY(100%);
  184. }
  185. }