bookmark-audio-fragment/app/assets/ main.css
276 lines
4.9 KiB

  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. width: 100%;
  89. text-align: unset;
  90. background: none;
  91. border: none;
  92. font-size: 1em;
  93. padding: 4px 20px;
  94. }
  95. .context-menu button:hover {
  96. background: #dddddd99;
  97. }
  98. .playlist .channel {
  99. background: #aaa;
  100. }
  101. .playlist .channel-progress {
  102. background: none;
  103. }
  104. .playlist .state-cursor {
  105. cursor: default;
  106. }
  107. .playlist .selection.point {
  108. width: 2px !important;
  109. transform: translateX(-0.5px); /* Correct for the extra 1px of width we add. */
  110. }
  111. .playlist .selection.point::after {
  112. /* Draw a triangle at the bottom */
  113. content: '';
  114. position: absolute;
  115. width: 0;
  116. height: 0;
  117. bottom: 0;
  118. left: -5px;
  119. border-left: 6px solid transparent;
  120. border-right: 6px solid transparent;
  121. border-bottom: 6px solid #f00;
  122. }
  123. .playlist .selection.segment {
  124. background: #f006;
  125. border-left: 2px solid red;
  126. border-right: 2px solid red;
  127. box-sizing: border-box;
  128. }
  129. .playlist .selection.segment:before {
  130. /* Draw a triangle at the bottom */
  131. content: '';
  132. position: absolute;
  133. width: 0;
  134. height: 0;
  135. bottom: 0;
  136. left: -7px;
  137. border-left: 6px solid transparent;
  138. border-right: 6px solid transparent;
  139. border-bottom: 6px solid red;
  140. }
  141. .playlist .selection.segment:after {
  142. /* Draw a triangle at the bottom */
  143. content: '';
  144. position: absolute;
  145. width: 0;
  146. height: 0;
  147. bottom: 0;
  148. right: -7px;
  149. border-left: 6px solid transparent;
  150. border-right: 6px solid transparent;
  151. border-bottom: 6px solid red;
  152. }
  153. .playlist .playlist-time-scale {
  154. color: #666;
  155. font-family: sans-serif;
  156. font-size: smaller;
  157. }
  158. .playlist .cursor {
  159. width: 2px !important;
  160. transform: translateX(-0.5px); /* Correct for the extra 1px of width we add. */
  161. background: #666;
  162. }
  163. .playlist .cursor::after {
  164. /* Draw a triangle at the bottom */
  165. content: '';
  166. position: absolute;
  167. width: 0;
  168. height: 0;
  169. bottom: 0;
  170. left: -5px;
  171. border-left: 6px solid transparent;
  172. border-right: 6px solid transparent;
  173. border-bottom: 6px solid #666;
  174. }
  175. .playlist .annotations .annotations-text {
  176. display: none;
  177. }
  178. .playlist .annotations a.annotation-box {
  179. color: unset;
  180. text-decoration: unset;
  181. }
  182. .playlist .annotations .annotation-box {
  183. background: #ffff0099;
  184. border: 1px solid #ff8800;
  185. border-radius: 2px;
  186. padding: 0;
  187. z-index: 3;
  188. }
  189. .playlist .annotations .annotation-box .id {
  190. overflow: hidden;
  191. text-overflow: ellipsis;
  192. white-space: nowrap;
  193. padding: 0 10px;
  194. box-sizing: border-box;
  195. }
  196. .playlist .annotations .annotation-box .resize-handle {
  197. display: none;
  198. }
  199. .playlist .annotations .annotation-box.segment-annotation {
  200. border-top: none;
  201. border-left: 2px solid #ff8800;
  202. border-right: 2px solid #ff8800;
  203. border-top-left-radius: 0;
  204. border-top-right-radius: 0;
  205. }
  206. .playlist .annotations .annotation-box.point-annotation::before {
  207. /* Draw a triangle at the top */
  208. content: '';
  209. position: absolute;
  210. left: 7px;
  211. top: -7px;
  212. width: 0;
  213. height: 0;
  214. border-left: 6px solid transparent;
  215. border-right: 6px solid transparent;
  216. border-bottom: 6px solid #ff8800;
  217. }
  218. .playlist .annotations .annotation-box.segment-annotation::before {
  219. /* Draw a triangle at the top */
  220. content: '';
  221. position: absolute;
  222. left: -7px;
  223. top: -6px;
  224. width: 0;
  225. height: 0;
  226. border-left: 6px solid transparent;
  227. border-right: 6px solid transparent;
  228. border-bottom: 6px solid #ff8800;
  229. }
  230. .playlist .annotations .annotation-box.segment-annotation::after {
  231. /* Draw a triangle at the top */
  232. content: '';
  233. position: absolute;
  234. right: -7px;
  235. top: -6px;
  236. width: 0;
  237. height: 0;
  238. border-left: 6px solid transparent;
  239. border-right: 6px solid transparent;
  240. border-bottom: 6px solid #ff8800;
  241. }