index.module.less 2.1 KB

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