main.css 3.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 .selection.point {
  103. width: 2px !important;
  104. }
  105. .playlist .selection.point::after {
  106. /* Draw a triangle at the bottom */
  107. content: '';
  108. position: absolute;
  109. width: 0;
  110. height: 0;
  111. bottom: 0;
  112. left: -5px;
  113. border-left: 6px solid transparent;
  114. border-right: 6px solid transparent;
  115. border-bottom: 6px solid #f00;
  116. }
  117. .playlist .selection.segment {
  118. background: #f006;
  119. border-left: 2px solid red;
  120. border-right: 2px solid red;
  121. }
  122. .playlist .selection.segment:before {
  123. /* Draw a triangle at the bottom */
  124. content: '';
  125. position: absolute;
  126. width: 0;
  127. height: 0;
  128. bottom: 0;
  129. left: -7px;
  130. border-left: 6px solid transparent;
  131. border-right: 6px solid transparent;
  132. border-bottom: 6px solid red;
  133. }
  134. .playlist .selection.segment:after {
  135. /* Draw a triangle at the bottom */
  136. content: '';
  137. position: absolute;
  138. width: 0;
  139. height: 0;
  140. bottom: 0;
  141. right: -7px;
  142. border-left: 6px solid transparent;
  143. border-right: 6px solid transparent;
  144. border-bottom: 6px solid red;
  145. }
  146. .playlist .playlist-time-scale {
  147. color: #666;
  148. font-family: sans-serif;
  149. font-size: smaller;
  150. }
  151. .playlist .cursor {
  152. width: 2px !important;
  153. background: #666;
  154. }
  155. .playlist .cursor::after {
  156. /* Draw a triangle at the bottom */
  157. content: '';
  158. position: absolute;
  159. width: 0;
  160. height: 0;
  161. bottom: 0;
  162. left: -5px;
  163. border-left: 6px solid transparent;
  164. border-right: 6px solid transparent;
  165. border-bottom: 6px solid #666;
  166. }