audio.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. @import "vars";
  2. @import "mixins";
  3. audio {
  4. -webkit-appearance:none;
  5. width: 100%;
  6. height: 60px;
  7. }
  8. audio::-webkit-media-controls {
  9. width: inherit;
  10. height: inherit;
  11. position: relative;
  12. direction: ltr;
  13. display: flex;
  14. flex-direction: column;
  15. justify-content: flex-end;
  16. align-items: center;
  17. }
  18. audio::-webkit-media-controls-enclosure {
  19. width: 100%;
  20. height: 60px;
  21. flex-shrink: 0;
  22. bottom: 0px;
  23. text-indent: 0px;
  24. padding: 0px;
  25. box-sizing: border-box;
  26. }
  27. audio::-webkit-media-controls-panel {
  28. display: flex;
  29. flex-direction: row;
  30. align-items: center;
  31. justify-content: flex-start;
  32. -webkit-user-select: none;
  33. position: relative;
  34. width: 100%;
  35. z-index: 0;
  36. overflow: hidden;
  37. text-align: right;
  38. bottom: auto;
  39. height: 60px;
  40. background-color: rgba(20, 20, 20, 0.8);
  41. background-color: $dark;
  42. border-radius: $radius;
  43. color: $light;
  44. box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.05), 0 2px 7px rgba(0, 0, 0, 0.1);
  45. }
  46. input[type="range"]::-webkit-media-slider-thumb {
  47. margin-left: -7px;
  48. margin-right: -7px;
  49. }
  50. input[type="range"]::-webkit-slider-thumb,
  51. input[type="range"]::-webkit-media-slider-thumb {
  52. -webkit-appearance: sliderthumb-horizontal;
  53. box-sizing: border-box;
  54. display: block;
  55. -webkit-user-modify: read-only;
  56. }
  57. input[type="range"]::-webkit-media-slider-container > div {
  58. margin-right: -14px;
  59. }
  60. audio::-webkit-media-slider-container,
  61. input[type="range"]::-webkit-media-slider-container {
  62. display: flex;
  63. align-items: center;
  64. flex-direction: row;
  65. box-sizing: border-box;
  66. height: 100%;
  67. width: 100%;
  68. border: none !important;
  69. border-image-source: initial;
  70. border-image-slice: initial;
  71. border-image-width: initial;
  72. border-image-outset: initial;
  73. border-image-repeat: initial;
  74. border-radius: 0 !important;
  75. background-color: transparent;
  76. }
  77. input[type="range"]::-webkit-slider-runnable-track {
  78. flex: 1 1 0px;
  79. align-self: center;
  80. box-sizing: border-box;
  81. display: block;
  82. -webkit-user-modify: read-only;
  83. }
  84. audio::-webkit-media-controls-mute-button {
  85. -webkit-appearance: media-mute-button;
  86. display: flex;
  87. flex: 0 0 auto;
  88. border: none;
  89. border-image-source: initial;
  90. border-image-slice: initial;
  91. border-image-width: initial;
  92. border-image-outset: initial;
  93. border-image-repeat: initial;
  94. box-sizing: border-box;
  95. width: 60px;
  96. height: 60px;
  97. line-height: 60px;
  98. margin: 0px;
  99. padding: 0px;
  100. background-color: initial;
  101. color: inherit;
  102. }
  103. audio::-webkit-media-controls-play-button {
  104. -webkit-appearance: media-play-button;
  105. display: flex;
  106. flex: 0 0 auto;
  107. border: none;
  108. border-image-source: initial;
  109. border-image-slice: initial;
  110. border-image-width: initial;
  111. border-image-outset: initial;
  112. border-image-repeat: initial;
  113. box-sizing: border-box;
  114. width: 60px;
  115. height: 60px;
  116. line-height: 60px;
  117. margin-left: 0px;
  118. margin-right: 9px;
  119. padding: 0px;
  120. background-color: initial;
  121. color: inherit;
  122. }
  123. audio::-webkit-media-controls-timeline-container {}
  124. audio::-webkit-media-controls-current-time-display {}
  125. audio::-webkit-media-controls-time-remaining-display {}
  126. audio::-webkit-media-controls-current-time-display,
  127. video::-webkit-media-controls-current-time-display,
  128. audio::-webkit-media-controls-time-remaining-display,
  129. video::-webkit-media-controls-time-remaining-display {
  130. -webkit-appearance: media-current-time-display;
  131. -webkit-user-select: none;
  132. flex: 0 0 auto;
  133. display: flex;
  134. border: none;
  135. border-image-source: initial;
  136. border-image-slice: initial;
  137. border-image-width: initial;
  138. border-image-outset: initial;
  139. border-image-repeat: initial;
  140. cursor: default;
  141. height: 60px;
  142. margin: 0px 9px 0px 0px;
  143. padding: 0px;
  144. line-height: 60px;
  145. font-family: $main-font;
  146. font-size: $font-size;
  147. font-weight: normal;
  148. font-style: normal;
  149. color: $medium;
  150. letter-spacing: normal;
  151. word-spacing: normal;
  152. text-transform: none;
  153. text-indent: 0px;
  154. text-shadow: none;
  155. text-decoration: none;
  156. }
  157. audio::-webkit-media-controls-timeline,
  158. video::-webkit-media-controls-timeline {
  159. -webkit-appearance: media-slider;
  160. display: flex;
  161. flex: 1 1 auto;
  162. height: 60px;
  163. margin: 0px 15px 0px 0px;
  164. padding: 0px;
  165. background-color: transparent;
  166. min-width: 60px;
  167. border: initial;
  168. color: inherit;
  169. border-radius: 0 !important;
  170. }
  171. audio::-webkit-media-controls-volume-slider-container {}
  172. audio::-webkit-media-controls-volume-slider {}
  173. audio::-webkit-media-controls-seek-back-button {}
  174. audio::-webkit-media-controls-seek-forward-button {}
  175. audio::-webkit-media-controls-fullscreen-button {}
  176. audio::-webkit-media-controls-rewind-button {}
  177. audio::-webkit-media-controls-return-to-realtime-button {}
  178. audio::-webkit-media-controls-toggle-closed-captions-button {}