Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

_video-quality.scss 4.4KB

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