Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

_video-quality.scss 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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: #0E1624;
  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. }
  93. .video-state-indicator {
  94. background: $videoStateIndicatorBackground;
  95. cursor: default;
  96. font-size: 13px;
  97. height: $videoStateIndicatorSize;
  98. line-height: 20px;
  99. text-align: left;
  100. min-width: $videoStateIndicatorSize;
  101. border-radius: 50%;
  102. position: absolute;
  103. box-sizing: border-box;
  104. i {
  105. line-height: $videoStateIndicatorSize;
  106. }
  107. /**
  108. * Give the label padding so it has more volume and can be easily clicked.
  109. */
  110. .video-quality-label-status {
  111. line-height: $videoStateIndicatorSize;
  112. min-width: $videoStateIndicatorSize;
  113. text-align: center;
  114. }
  115. }
  116. .centeredVideoLabel.moveToCorner {
  117. z-index: $tooltipsZ;
  118. }
  119. #videoResolutionLabel {
  120. z-index: #{$tooltipsZ + 1};
  121. }
  122. .centeredVideoLabel {
  123. bottom: 45%;
  124. border-radius: 2px;
  125. display: none;
  126. padding: 10px;
  127. transform: translate(-50%, 0);
  128. z-index: $centeredVideoLabelZ;
  129. &.moveToCorner {
  130. bottom: auto;
  131. transform: none;
  132. -webkit-transition: all 2s 2s linear;
  133. transition: all 2s 2s linear;
  134. }
  135. }
  136. .moveToCorner {
  137. position: absolute;
  138. top: 30px;
  139. right: 30px;
  140. }
  141. .moveToCorner + .moveToCorner {
  142. right: 80px;
  143. }