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 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. .modal-dialog-form {
  113. .video-quality-dialog-title {
  114. display: none;
  115. }
  116. }
  117. .video-state-indicator {
  118. background: $videoStateIndicatorBackground;
  119. cursor: default;
  120. font-size: 13px;
  121. height: $videoStateIndicatorSize;
  122. line-height: 20px;
  123. text-align: left;
  124. min-width: $videoStateIndicatorSize;
  125. border-radius: 50%;
  126. position: absolute;
  127. box-sizing: border-box;
  128. &.is-recording {
  129. background: none;
  130. opacity: 0.9;
  131. padding: 0;
  132. }
  133. i {
  134. line-height: $videoStateIndicatorSize;
  135. }
  136. /**
  137. * Give the label padding so it has more volume and can be easily clicked.
  138. */
  139. .video-quality-label-status {
  140. line-height: $videoStateIndicatorSize;
  141. min-width: $videoStateIndicatorSize;
  142. text-align: center;
  143. }
  144. .recording-icon,
  145. .recording-icon i {
  146. line-height: $videoStateIndicatorSize;
  147. font-size: $videoStateIndicatorSize;
  148. opacity: 0.9;
  149. position: relative;
  150. }
  151. .icon-rec {
  152. color: #FF5630;
  153. }
  154. .icon-live {
  155. color: #0065FF;
  156. }
  157. .recording-icon-background {
  158. background: white;
  159. border-radius: 50%;
  160. height: calc(#{$videoStateIndicatorSize} - 1px);
  161. left: 50%;
  162. opacity: 0.9;
  163. position: absolute;
  164. top: 50%;
  165. transform: translate(-50%, -50%);
  166. width: calc(#{$videoStateIndicatorSize} - 1px);
  167. }
  168. #recordingLabelText {
  169. display: inline-block;
  170. }
  171. }
  172. .centeredVideoLabel.moveToCorner {
  173. z-index: $zindex3;
  174. }
  175. #videoResolutionLabel {
  176. z-index: $zindex3 + 1;
  177. }
  178. .centeredVideoLabel {
  179. bottom: 45%;
  180. border-radius: 2px;
  181. display: none;
  182. padding: 10px;
  183. transform: translate(-50%, 0);
  184. z-index: $centeredVideoLabelZ;
  185. &.moveToCorner {
  186. bottom: auto;
  187. transform: none;
  188. }
  189. }
  190. .moveToCorner {
  191. position: absolute;
  192. top: 30px;
  193. right: 30px;
  194. }
  195. .moveToCorner + .moveToCorner {
  196. right: 80px;
  197. }