audio.module.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .audioWrap {
  2. width: 100%;
  3. height: 100%;
  4. background-color: #fff;
  5. }
  6. .audioContainer {
  7. position: relative;
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. height: 100%;
  12. padding: 0 240px;
  13. &>div {
  14. flex: 1;
  15. }
  16. .audio {
  17. position: absolute;
  18. top: 0;
  19. opacity: 0;
  20. }
  21. .tempVudio {
  22. position: absolute;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. left: 0;
  27. padding: 0 240px;
  28. }
  29. canvas {
  30. width: 100%;
  31. height: 100%;
  32. }
  33. }
  34. .sectionAnimate {
  35. opacity: 0;
  36. pointer-events: none;
  37. transform: translateY(126px);
  38. transition: all .2s;
  39. }
  40. .controls {
  41. position: absolute;
  42. bottom: 0;
  43. left: 0;
  44. right: 0;
  45. width: 100%;
  46. background-color: rgba(0, 0, 0, 0.7);
  47. // backdrop-filter: blur(26px);
  48. height: 108px;
  49. padding: 0 330px 0 40px !important;
  50. transition: all 0.301s;
  51. display: flex;
  52. align-items: center;
  53. .time {
  54. display: flex;
  55. justify-content: space-between;
  56. color: #fff;
  57. // font-size: 10px;
  58. padding: 4px 20px 4px;
  59. font-size: 24px;
  60. font-weight: 600;
  61. line-height: 33px;
  62. &>div {
  63. font-size: 24px !important;
  64. }
  65. .line {
  66. font-size: 12px;
  67. }
  68. :global {
  69. .plyr__time+.plyr__time:before {
  70. content: '';
  71. margin-right: 0;
  72. }
  73. }
  74. }
  75. }
  76. .actions {
  77. display: flex;
  78. justify-content: space-between;
  79. // width: 100%;
  80. height: 100%;
  81. color: #fff;
  82. font-size: 12px;
  83. align-items: center;
  84. .actionWrap {
  85. display: flex;
  86. }
  87. .actionBtn {
  88. display: flex;
  89. width: 60px;
  90. height: 60px;
  91. padding: 4px 0;
  92. background: transparent;
  93. cursor: pointer;
  94. &>img {
  95. width: 100%;
  96. height: 100%;
  97. }
  98. }
  99. .iconReplay {
  100. width: 40px;
  101. height: 39px;
  102. background-color: transparent;
  103. cursor: pointer;
  104. &>img {
  105. width: 100%;
  106. height: 100%;
  107. }
  108. }
  109. }
  110. .slider {
  111. width: 100%;
  112. padding: 0 20px 0 12px;
  113. :global {
  114. .n-slider .n-slider-rail .n-slider-rail__fill,
  115. .n-slider .n-slider-handles .n-slider-handle-wrapper {
  116. transition: all .2s;
  117. }
  118. }
  119. }