main.css 1.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. button#playpause {
  25. border: none;
  26. background: none;
  27. cursor: pointer;
  28. font-size: 64px;
  29. margin: 8px;
  30. vertical-align: middle;
  31. transition: all 50ms;
  32. }
  33. button#playpause:hover,
  34. button#playpause:focus {
  35. filter: brightness(120%);
  36. outline: none;
  37. }
  38. button#playpause:active {
  39. transform: translate(1px, 1px);
  40. }
  41. label#volume-label {
  42. font-size: 30px;
  43. vertical-align: middle;
  44. }
  45. input#volume {
  46. vertical-align: middle;
  47. width: 80px;
  48. height: 30px;
  49. border-radius: 3px;
  50. background: #eee;
  51. cursor: pointer;
  52. -webkit-appearance: none;
  53. }
  54. input#volume::-moz-range-thumb {
  55. height: 30px;
  56. width: 20px;
  57. background-color: #999;
  58. border-radius: 3px;
  59. }
  60. input#volume::-webkit-slider-thumb {
  61. height: 30px;
  62. width: 20px;
  63. background-color: #999;
  64. border-radius: 3px;
  65. -webkit-appearance: none;
  66. }
  67. input#volume:hover,
  68. input#volume:focus {
  69. filter: brightness(102%);
  70. outline: none;
  71. }