您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_video-quality.scss 3.8KB

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