You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

129 lines
2.7 KiB

  1. body {
  2. /* display: grid
  3. grid-template-columns: 100%
  4. grid-template-rows: 1fr 1fr 1fr 1fr */
  5. height: 100vh;
  6. width: 100vw;
  7. margin: 0px;
  8. }
  9. .audio-player {
  10. width: 100vw;
  11. height: 30 rem;
  12. --player-button-width: 3em;
  13. --sound-button-width: 2em;
  14. --space: .5em;
  15. --tw-bg-opacity: 1;
  16. --acc-background: rgb(239 239 239/var(--tw-bg-opacity));
  17. --acc-background: #d9d9d9;
  18. --acc-button: rgb(255 255 255/var(--tw-bg-opacity));
  19. --acc-black: rgb(0 0 0/var(--tw-bg-opacity));
  20. }
  21. .icon-container {
  22. width: 100%;
  23. height: 100%;
  24. background-color: #000000;
  25. background-color: var(--acc-black);
  26. color: #fff;
  27. display: flex;
  28. justify-content: center;
  29. align-items: center;
  30. }
  31. .audio-icon {
  32. width: 90%;
  33. height: 90%;
  34. }
  35. .controls {
  36. display: flex;
  37. flex-direction: row;
  38. align-items: center;
  39. width: 100%;
  40. /* margin-top: 10px; */
  41. }
  42. .player-button {
  43. background-color: transparent;
  44. border: 0;
  45. width: var(--player-button-width);
  46. height: var(--player-button-width);
  47. cursor: pointer;
  48. padding: 0;
  49. box-shadow: 0 0 20px 2px #00000040;
  50. }
  51. .timeline {
  52. -webkit-appearance: none;
  53. width: calc(100% - (var(--player-button-width) + var(--sound-button-width) + var(--space)));
  54. height: .5em;
  55. background-color: var(--acc-background);
  56. border-radius: 5px;
  57. background-size: 0% 100%;
  58. background-image: linear-gradient(#00000080, var(--acc-background));
  59. background-repeat: no-repeat;
  60. margin-right: var(--space);
  61. width: 100vw;
  62. }
  63. .timeline::-webkit-slider-thumb {
  64. -webkit-appearance: none;
  65. width: 1em;
  66. height: 1em;
  67. border-radius: 50%;
  68. cursor: pointer;
  69. opacity: 0;
  70. transition: all .1s;
  71. background-color: var(--acc-background);
  72. }
  73. .timeline::-moz-range-thumb {
  74. -webkit-appearance: none;
  75. width: 1em;
  76. height: 1em;
  77. border-radius: 50%;
  78. cursor: pointer;
  79. opacity: 0;
  80. transition: all .1s;
  81. background-color: var(--acc-background);
  82. }
  83. .timeline::-ms-thumb {
  84. -webkit-appearance: none;
  85. width: 1em;
  86. height: 1em;
  87. border-radius: 50%;
  88. cursor: pointer;
  89. opacity: 0;
  90. transition: all .1s;
  91. background-color: var(--acc-background);
  92. }
  93. .timeline::-webkit-slider-runnable-track {
  94. -webkit-appearance: none;
  95. box-shadow: none;
  96. border: none;
  97. background: transparent;
  98. }
  99. .timeline::-moz-range-track {
  100. -webkit-appearance: none;
  101. box-shadow: none;
  102. border: none;
  103. background: transparent;
  104. }
  105. .timeline::-ms-track {
  106. -webkit-appearance: none;
  107. box-shadow: none;
  108. border: none;
  109. background: transparent;
  110. }
  111. iframe {
  112. width: 100vw;
  113. height: 100vh;
  114. border: none;
  115. }