You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_video-quality.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .video-quality-dialog {
  2. color: $modalTextColor;
  3. .video-quality-dialog-title {
  4. margin-bottom: 10px;
  5. }
  6. .video-quality-dialog-contents {
  7. align-items: center;
  8. color: $modalTextColor;
  9. display: flex;
  10. flex-direction: column;
  11. padding: 10px;
  12. min-width: 250px;
  13. .video-quality-dialog-slider-container {
  14. width: 100%;
  15. text-align: center;
  16. }
  17. .video-quality-dialog-slider {
  18. width: calc(100% - 5px);
  19. @mixin sliderTrackStyles() {
  20. height: 15px;
  21. border-radius: 10px;
  22. background: black;
  23. }
  24. &::-ms-track {
  25. @include sliderTrackStyles();
  26. }
  27. &::-moz-range-track {
  28. @include sliderTrackStyles();
  29. }
  30. &::-webkit-slider-runnable-track {
  31. @include sliderTrackStyles();
  32. }
  33. @mixin sliderThumbStyles() {
  34. top: 50%;
  35. border: none;
  36. position: relative;
  37. opacity: 0;
  38. }
  39. &::-ms-thumb {
  40. @include sliderThumbStyles();
  41. }
  42. &::-moz-range-thumb {
  43. @include sliderThumbStyles();
  44. }
  45. &::-webkit-slider-thumb {
  46. @include sliderThumbStyles();
  47. }
  48. }
  49. .video-quality-dialog-labels {
  50. box-sizing: border-box;
  51. display: flex;
  52. margin-top: 5px;
  53. position: relative;
  54. width: 90%;
  55. }
  56. .video-quality-dialog-label-container {
  57. position: absolute;
  58. text-align: center;
  59. transform: translate(-50%, 0%);
  60. &::before {
  61. background: rgb(140, 156, 189);
  62. content: '';
  63. border-radius: 50%;
  64. left: 0;
  65. height: 6px;
  66. margin: 0 auto;
  67. pointer-events: none;
  68. position: absolute;
  69. right: 0;
  70. top: -16px;
  71. width: 6px;
  72. }
  73. }
  74. .video-quality-dialog-label-container.active {
  75. color: $toolbarToggleBackground;
  76. &::before {
  77. background: $toolbarToggleBackground;
  78. height: 12px;
  79. top: -19px;
  80. width: 12px;
  81. }
  82. }
  83. .video-quality-dialog-label-container:first-child {
  84. position: relative;
  85. }
  86. .video-quality-dialog-label {
  87. display: table-caption;
  88. word-spacing: unset;
  89. }
  90. }
  91. }
  92. .video-state-indicator {
  93. background: $videoStateIndicatorBackground;
  94. color: $videoStateIndicatorColor;
  95. cursor: default;
  96. font-size: 13px;
  97. height: 40px;
  98. line-height: 20px;
  99. text-align: left;
  100. min-width: 40px;
  101. border-radius: 50%;
  102. position: absolute;
  103. box-sizing: border-box;
  104. i {
  105. cursor: pointer;
  106. }
  107. /**
  108. * Give the label padding so it has more volume and can be easily clicked.
  109. */
  110. .video-quality-label-status {
  111. cursor: pointer;
  112. padding: 10px 5px;
  113. text-align: center;
  114. }
  115. }
  116. #videoResolutionLabel,
  117. .centeredVideoLabel.moveToCorner {
  118. z-index: $tooltipsZ;
  119. }
  120. .centeredVideoLabel {
  121. bottom: 45%;
  122. border-radius: 2px;
  123. display: none;
  124. -webkit-transition: all 2s 2s linear;
  125. transition: all 2s 2s linear;
  126. z-index: $centeredVideoLabelZ;
  127. &.moveToCorner {
  128. bottom: auto;
  129. }
  130. }
  131. .moveToCorner {
  132. position: absolute;
  133. top: 30px;
  134. right: 30px;
  135. }
  136. .moveToCorner + .moveToCorner {
  137. right: 80px;
  138. }