audio.module.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. .controls {
  35. position: absolute;
  36. bottom: 0;
  37. left: 0;
  38. right: 0;
  39. width: 100%;
  40. background: rgba(0, 0, 0, 0.6);
  41. backdrop-filter: blur(26px);
  42. height: 150px;
  43. padding: 0 250px 0 40px !important;
  44. transition: all 0.5s;
  45. display: flex;
  46. align-items: center;
  47. transition: all .5s;
  48. .time {
  49. display: flex;
  50. justify-content: space-between;
  51. color: #fff;
  52. // font-size: 10px;
  53. padding: 4px 20px 4px;
  54. font-size: 24px;
  55. font-weight: 600;
  56. line-height: 33px;
  57. &>div {
  58. font-size: 24px !important;
  59. }
  60. .line {
  61. font-size: 12px;
  62. }
  63. :global {
  64. .plyr__time+.plyr__time:before {
  65. content: '';
  66. margin-right: 0;
  67. }
  68. }
  69. }
  70. }
  71. .actions {
  72. display: flex;
  73. justify-content: space-between;
  74. // width: 100%;
  75. height: 100%;
  76. color: #fff;
  77. font-size: 12px;
  78. align-items: center;
  79. .actionWrap {
  80. display: flex;
  81. }
  82. .actionBtn {
  83. display: flex;
  84. width: 82px;
  85. height: 82px;
  86. padding: 4px 0;
  87. background: transparent;
  88. &>img {
  89. width: 100%;
  90. height: 100%;
  91. }
  92. }
  93. .iconReplay {
  94. width: 43px;
  95. height: 42px;
  96. background-color: transparent;
  97. &>img {
  98. width: 100%;
  99. height: 100%;
  100. }
  101. }
  102. }
  103. .slider {
  104. width: 100%;
  105. padding: 0 20px 0 12px;
  106. :global {
  107. .n-slider .n-slider-rail .n-slider-rail__fill,
  108. .n-slider .n-slider-handles .n-slider-handle-wrapper {
  109. transition: all .2s;
  110. }
  111. }
  112. }
  113. .sectionAnimate {
  114. opacity: 0;
  115. pointer-events: none;
  116. transform: translateY(100%);
  117. transition: all .5s;
  118. }