audio.css 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .audio-spectrogram {
  2. position: relative;
  3. }
  4. .audio-spectrogram > img {
  5. width: 100%;
  6. }
  7. .playhead {
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. background: rgba(134, 212, 177, 0.3);
  12. border-right: thin solid #ffaa00;
  13. height: 100%;
  14. -webkit-transition: width .1s ease-out;
  15. -moz-transition: width .1s ease-out;
  16. transition: width .1s ease-out;
  17. }
  18. .audio-control-play-pause {
  19. position: absolute;
  20. bottom: 0;
  21. left: 5px;
  22. cursor: pointer;
  23. /* background: rgba(0, 0, 0, 0.7); */
  24. font-size: 40px;
  25. width: 50px;
  26. text-shadow: 0 0 10px black;
  27. }
  28. .audio-control-play-pause.playing {
  29. color: #b71500;
  30. letter-spacing: -17px;
  31. margin-left: -7px;
  32. }
  33. .audio-control-play-pause.paused {
  34. /* Warning: this means the the play button shows! */
  35. color: rgb(134, 212, 177);
  36. }
  37. .buffered-indicators {
  38. position: absolute;
  39. bottom: 0;
  40. left: 0;
  41. height: 2px;
  42. }
  43. .buffered-indicators div {
  44. position: absolute;
  45. height: 2px;
  46. left: 0;
  47. background: rgba(134, 177, 212, 1);
  48. -webkit-transition: left 1s ease-out;
  49. -moz-transition: left 1s ease-out;
  50. transition: left 1s ease-out;
  51. -webkit-transition: width 1s ease-out;
  52. -moz-transition: width 1s ease-out;
  53. transition: width 1s ease-out;
  54. cursor: pointer;
  55. }
  56. .seekbar {
  57. position: absolute;
  58. top: 0;
  59. left: 0;
  60. width: 100%;
  61. height: 100%;
  62. }
  63. .audio-currentTime {
  64. position: absolute;
  65. bottom: 0;
  66. right: 0;
  67. background: rgba(0, 0, 0, 0.7);
  68. }
  69. .audio-volume {
  70. position: absolute;
  71. left: 50px;
  72. bottom: 10px;
  73. opacity: 0.3;
  74. -moz-transition: opacity .1s ease-in-out;
  75. -webkit-transition: opacity .1s ease-in-out;
  76. transition: opacity .1s ease-in-out;
  77. }
  78. .audio-spectrogram:hover .audio-volume {
  79. opacity: 0.7;
  80. }