video.module.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .videoWrap {
  2. width: 100%;
  3. height: 100%;
  4. :global {
  5. .plyr--video {
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .plyr__time {
  10. display: block !important;
  11. }
  12. }
  13. }
  14. :global(.bottomFixed).controls {
  15. width: 100%;
  16. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
  17. padding: 0 !important;
  18. flex-direction: column;
  19. transition: all 0.5s;
  20. .time {
  21. display: flex;
  22. justify-content: space-between;
  23. width: 100%;
  24. color: #fff;
  25. font-size: 10px;
  26. padding: 4px 20px;
  27. :global {
  28. .plyr__time+.plyr__time:before {
  29. content: '';
  30. }
  31. }
  32. }
  33. .slider {
  34. width: 100%;
  35. padding: 0 20px;
  36. :global {
  37. .van-slider__button {
  38. background: var(--van-primary);
  39. }
  40. .van-loading {
  41. width: 100%;
  42. height: 100%;
  43. }
  44. }
  45. }
  46. .actions {
  47. display: flex;
  48. justify-content: space-between;
  49. width: 100%;
  50. color: #fff;
  51. font-size: 12px;
  52. padding: 0 20px;
  53. align-items: center;
  54. .actionWrap {
  55. display: flex;
  56. }
  57. .actionBtn {
  58. display: flex;
  59. width: 38px;
  60. height: 38px;
  61. padding: 4px 0;
  62. background: transparent;
  63. }
  64. .actionBtn>img {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. :global {
  69. .van-loading__circular {
  70. width: 100%;
  71. height: 100%;
  72. }
  73. }
  74. .playIcon {
  75. display: none;
  76. }
  77. .btnPlay img:nth-child(2) {
  78. display: block;
  79. }
  80. .btnPause img:nth-child(3) {
  81. display: block;
  82. }
  83. .btnPlay,
  84. .btnPause {
  85. :global {
  86. .van-loading {
  87. display: none;
  88. }
  89. }
  90. }
  91. .loopBtn{
  92. :global{
  93. .loop{
  94. display: block;
  95. }
  96. .loopActive{
  97. display: none;
  98. }
  99. }
  100. }
  101. .loopBtn.active{
  102. :global{
  103. .loop{
  104. display: none;
  105. }
  106. .loopActive{
  107. display: block;
  108. }
  109. }
  110. }
  111. }
  112. }