video.module.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. .videoWrap {
  2. width: 100%;
  3. height: 100%;
  4. --plyr-color-main: #198CFE;
  5. --plyr-range-track-height: 4Px;
  6. --plyr-tooltip-radius: 3px;
  7. --plyr-range-thumb-height: 18Px;
  8. :global {
  9. .plyr--video {
  10. width: 100%;
  11. height: 100%;
  12. }
  13. .plyr__time {
  14. display: block !important;
  15. }
  16. .plyr__video-wrapper {
  17. pointer-events: none;
  18. }
  19. }
  20. }
  21. :global(.bottomFixed).controls {
  22. width: 100%;
  23. background: rgba(0, 0, 0, 0.6);
  24. backdrop-filter: blur(26px);
  25. height: 150px;
  26. padding: 0 250px 0 40px !important;
  27. transition: all 0.5s;
  28. .time {
  29. display: flex;
  30. justify-content: space-between;
  31. color: #fff;
  32. // font-size: 10px;
  33. padding: 4px 0 4px 20px;
  34. font-size: 24px;
  35. font-weight: 600;
  36. line-height: 33px;
  37. &>div {
  38. font-size: 24px !important;
  39. }
  40. .line {
  41. font-size: 12px;
  42. }
  43. :global {
  44. .plyr__time+.plyr__time:before {
  45. content: '';
  46. margin-right: 0;
  47. }
  48. }
  49. }
  50. .slider {
  51. width: 100%;
  52. padding: 0 20px 0 12px;
  53. :global {
  54. .van-slider__button {
  55. background: var(--van-primary);
  56. }
  57. .van-loading {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. }
  62. }
  63. .actions {
  64. display: flex;
  65. justify-content: space-between;
  66. color: #fff;
  67. font-size: 12px;
  68. padding-right: 20px;
  69. align-items: center;
  70. .actionWrap {
  71. display: flex;
  72. }
  73. .actionBtn {
  74. display: flex;
  75. // width: 43px !important;
  76. // height: 43px !important;
  77. width: 82px;
  78. height: 82px;
  79. padding: 4px 0;
  80. background: transparent;
  81. }
  82. .actionBtn>img {
  83. width: 100%;
  84. height: 100%;
  85. }
  86. :global {
  87. .van-loading__circular {
  88. width: 100%;
  89. height: 100%;
  90. }
  91. }
  92. .playIcon {
  93. display: none;
  94. }
  95. .btnPlay img:nth-child(2) {
  96. display: block;
  97. }
  98. .btnPause img:nth-child(3) {
  99. display: block;
  100. }
  101. .btnPlay,
  102. .btnPause {
  103. :global {
  104. .van-loading {
  105. display: none;
  106. }
  107. }
  108. }
  109. .loopBtn {
  110. background-color: transparent;
  111. width: 43px;
  112. height: 42px;
  113. padding: 0;
  114. cursor: pointer;
  115. :global {
  116. .loop {
  117. display: block;
  118. }
  119. .loopActive {
  120. display: none;
  121. }
  122. }
  123. }
  124. }
  125. }