main.css 4.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. body {
  2. all: unset;
  3. min-height: 100vh;
  4. display: flex;
  5. justify-content: center;
  6. align-items: center;
  7. user-select: none;
  8. }
  9. main {
  10. flex-grow: 1;
  11. display: flex;
  12. }
  13. #controls {
  14. margin: 20px;
  15. display: flex;
  16. flex-flow: column;
  17. justify-content: center;
  18. align-items: center;
  19. }
  20. #container {
  21. flex-grow: 1;
  22. margin: 20px;
  23. }
  24. ::-moz-focus-inner {
  25. border: none;
  26. }
  27. button#playpause {
  28. border: none;
  29. background: none;
  30. cursor: pointer;
  31. font-size: 64px;
  32. margin: 8px;
  33. vertical-align: middle;
  34. transition: all 50ms;
  35. }
  36. button#playpause:hover,
  37. button#playpause:focus {
  38. filter: brightness(120%);
  39. outline: none;
  40. }
  41. button#playpause:active {
  42. transform: translate(1px, 1px);
  43. }
  44. label#volume-label {
  45. font-size: 30px;
  46. vertical-align: middle;
  47. }
  48. input#volume {
  49. vertical-align: middle;
  50. width: 80px;
  51. height: 30px;
  52. border-radius: 3px;
  53. background: #eee;
  54. cursor: pointer;
  55. -webkit-appearance: none;
  56. }
  57. input#volume::-moz-range-thumb {
  58. height: 30px;
  59. width: 20px;
  60. background-color: #999;
  61. border-radius: 3px;
  62. border: none;
  63. }
  64. input#volume::-webkit-slider-thumb {
  65. height: 30px;
  66. width: 20px;
  67. background-color: #999;
  68. border-radius: 3px;
  69. -webkit-appearance: none;
  70. }
  71. input#volume:hover,
  72. input#volume:focus {
  73. filter: brightness(102%);
  74. outline: none;
  75. }
  76. .context-menu {
  77. list-style: none;
  78. margin: 0;
  79. padding: 0;
  80. position: absolute;
  81. z-index: 9999999;
  82. border: 1px solid #999999;
  83. border-radius: 2px;
  84. box-shadow: 2px 2px 6px #66666633;
  85. background: #fcfcfc;
  86. }
  87. .context-menu button {
  88. background: none;
  89. border: none;
  90. font-size: 1em;
  91. padding: 4px 20px;
  92. }
  93. .context-menu button:hover {
  94. background: #dddddd99;
  95. }
  96. .playlist .channel {
  97. background: #aaa;
  98. }
  99. .playlist .channel-progress {
  100. background: none;
  101. }
  102. .playlist .state-cursor {
  103. cursor: default;
  104. }
  105. .playlist .selection.point {
  106. width: 2px !important;
  107. transform: translateX(-0.5px); /* Correct for the extra 1px of width we add. */
  108. }
  109. .playlist .selection.point::after {
  110. /* Draw a triangle at the bottom */
  111. content: '';
  112. position: absolute;
  113. width: 0;
  114. height: 0;
  115. bottom: 0;
  116. left: -5px;
  117. border-left: 6px solid transparent;
  118. border-right: 6px solid transparent;
  119. border-bottom: 6px solid #f00;
  120. }
  121. .playlist .selection.segment {
  122. background: #f006;
  123. border-left: 2px solid red;
  124. border-right: 2px solid red;
  125. box-sizing: border-box;
  126. }
  127. .playlist .selection.segment:before {
  128. /* Draw a triangle at the bottom */
  129. content: '';
  130. position: absolute;
  131. width: 0;
  132. height: 0;
  133. bottom: 0;
  134. left: -7px;
  135. border-left: 6px solid transparent;
  136. border-right: 6px solid transparent;
  137. border-bottom: 6px solid red;
  138. }
  139. .playlist .selection.segment:after {
  140. /* Draw a triangle at the bottom */
  141. content: '';
  142. position: absolute;
  143. width: 0;
  144. height: 0;
  145. bottom: 0;
  146. right: -7px;
  147. border-left: 6px solid transparent;
  148. border-right: 6px solid transparent;
  149. border-bottom: 6px solid red;
  150. }
  151. .playlist .playlist-time-scale {
  152. color: #666;
  153. font-family: sans-serif;
  154. font-size: smaller;
  155. }
  156. .playlist .cursor {
  157. width: 2px !important;
  158. transform: translateX(-0.5px); /* Correct for the extra 1px of width we add. */
  159. background: #666;
  160. }
  161. .playlist .cursor::after {
  162. /* Draw a triangle at the bottom */
  163. content: '';
  164. position: absolute;
  165. width: 0;
  166. height: 0;
  167. bottom: 0;
  168. left: -5px;
  169. border-left: 6px solid transparent;
  170. border-right: 6px solid transparent;
  171. border-bottom: 6px solid #666;
  172. }
  173. .playlist .annotations .annotations-text {
  174. display: none;
  175. }
  176. .playlist .annotations a.annotation-box {
  177. color: unset;
  178. text-decoration: unset;
  179. }
  180. .playlist .annotations .annotation-box {
  181. background: #ffff0099;
  182. border: 1px solid #ff8800;
  183. border-radius: 2px;
  184. padding: 0;
  185. z-index: 3;
  186. }
  187. .playlist .annotations .annotation-box .id {
  188. overflow: hidden;
  189. text-overflow: ellipsis;
  190. white-space: nowrap;
  191. padding: 0 10px;
  192. box-sizing: border-box;
  193. }
  194. .playlist .annotations .annotation-box .resize-handle {
  195. display: none;
  196. }
  197. .playlist .annotations .annotation-box.segment-annotation {
  198. border-top: none;
  199. border-left: 2px solid #ff8800;
  200. border-right: 2px solid #ff8800;
  201. border-top-left-radius: 0;
  202. border-top-right-radius: 0;
  203. }
  204. .playlist .annotations .annotation-box.point-annotation::before {
  205. /* Draw a triangle at the top */
  206. content: '';
  207. position: absolute;
  208. left: 7px;
  209. top: -7px;
  210. width: 0;
  211. height: 0;
  212. border-left: 6px solid transparent;
  213. border-right: 6px solid transparent;
  214. border-bottom: 6px solid #ff8800;
  215. }
  216. .playlist .annotations .annotation-box.segment-annotation::before {
  217. /* Draw a triangle at the top */
  218. content: '';
  219. position: absolute;
  220. left: -7px;
  221. top: -6px;
  222. width: 0;
  223. height: 0;
  224. border-left: 6px solid transparent;
  225. border-right: 6px solid transparent;
  226. border-bottom: 6px solid #ff8800;
  227. }
  228. .playlist .annotations .annotation-box.segment-annotation::after {
  229. /* Draw a triangle at the top */
  230. content: '';
  231. position: absolute;
  232. right: -7px;
  233. top: -6px;
  234. width: 0;
  235. height: 0;
  236. border-left: 6px solid transparent;
  237. border-right: 6px solid transparent;
  238. border-bottom: 6px solid #ff8800;
  239. }