animationBar.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .animationBar {
  2. align-items: center;
  3. color: white;
  4. min-height: 30px;
  5. height: var(--footer-height);
  6. background-color: var(--footer-background);
  7. grid-column: 2;
  8. grid-row: 1;
  9. margin-left: 10px;
  10. display: flex;
  11. * {
  12. padding: 0px;
  13. margin: 0px;
  14. }
  15. .row {
  16. display: flex;
  17. flex-direction: row;
  18. justify-content: center;
  19. flex-grow: 10;
  20. align-items: center
  21. }
  22. #playBtn {
  23. display: flex;
  24. align-items: center;
  25. height: var(--footer-height);
  26. width: var(--footer-height);
  27. border: none;
  28. background-color: inherit;
  29. cursor: pointer;
  30. img {
  31. width: var(--footer-height);
  32. height: var(--footer-height);
  33. }
  34. &:hover {
  35. background-color: var(--button-hover-color);
  36. }
  37. &:active {
  38. background-color: var(--button-hover-background);
  39. }
  40. &:focus {
  41. outline: none !important;
  42. border: none;
  43. }
  44. }
  45. .slider {
  46. -webkit-appearance: none;
  47. cursor: pointer;
  48. width: 100%;
  49. max-width: 820px;
  50. height: var(--footer-height);
  51. outline: none;
  52. margin-left: 20px;
  53. margin-right: 10px;
  54. background-color: transparent;
  55. }
  56. /*Chrome -webkit */
  57. .slider::-webkit-slider-thumb {
  58. -webkit-appearance: none;
  59. width: 20px;
  60. height: 20px;
  61. border: 2px solid white;
  62. border-radius: 50%;
  63. background: var(--footer-background);
  64. margin-top: -10px;
  65. }
  66. .slider::-webkit-slider-runnable-track {
  67. height: 2px;
  68. -webkit-appearance: none;
  69. background-color: white;
  70. }
  71. /** FireFox -moz */
  72. .slider::-moz-range-progress {
  73. background-color: white;
  74. height: 2px;
  75. }
  76. .slider::-moz-range-thumb{
  77. width: 20px;
  78. height: 20px;
  79. border: 2px solid white;
  80. border-radius: 50%;
  81. background: var(--footer-background);
  82. }
  83. .slider::-moz-range-track {
  84. background: white;
  85. height: 2px;
  86. }
  87. /** IE -ms */
  88. .slider::-ms-track {
  89. height: 2px;
  90. /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
  91. background: transparent;
  92. /*leave room for the larger thumb to overflow with a transparent border */
  93. border-color: transparent;
  94. border-width: 10px 0;
  95. /*remove default tick marks*/
  96. color: transparent;
  97. }
  98. .slider::-ms-fill-lower {
  99. background: white;
  100. border-radius: 5px;
  101. }
  102. .slider::-ms-fill-upper {
  103. background: white;
  104. border-radius: 5px;
  105. }
  106. .slider::-ms-thumb {
  107. width: 16px;
  108. height: 16px;
  109. border: 2px solid white;
  110. border-radius: 50%;
  111. background: var(--footer-background);
  112. margin-top: 0px;
  113. }
  114. }
  115. @media (max-width: 768px) {
  116. .animationBar {
  117. margin-left: 0;
  118. }
  119. }