Przeglądaj źródła

Relocated "HD" label

j8
Maxim Voloshin 9 lat temu
rodzic
commit
88be44b472
3 zmienionych plików z 19 dodań i 9 usunięć
  1. 2
    0
      css/_variables.scss
  2. 16
    8
      css/_videolayout_default.scss
  3. 1
    1
      index.html

+ 2
- 0
css/_variables.scss Wyświetl plik

46
 $raiseHandBg: #D6D61E;
46
 $raiseHandBg: #D6D61E;
47
 $audioLevelBg: #44A5FF;
47
 $audioLevelBg: #44A5FF;
48
 $audioLevelShadow: rgba(9, 36, 77, 0.9);
48
 $audioLevelShadow: rgba(9, 36, 77, 0.9);
49
+$videoStateIndicatorColor: $defaultColor;
50
+$videoStateIndicatorBackground: $tooltipBg;
49
 
51
 
50
 /**
52
 /**
51
  * Feedback Modal
53
  * Feedback Modal

+ 16
- 8
css/_videolayout_default.scss Wyświetl plik

546
                     0px 0px 1px rgba(0,0,0,0.3);
546
                     0px 0px 1px rgba(0,0,0,0.3);
547
 }
547
 }
548
 
548
 
549
+.video-state-indicator {
550
+    background: $videoStateIndicatorBackground;
551
+    color: $videoStateIndicatorColor;
552
+    font-size: 13px;
553
+    line-height: 1.4;
554
+    text-align: center;
555
+    display: block;
556
+    min-width: 37px;
557
+    padding: 10px 0;
558
+    border-radius: 50%;
559
+}
560
+
549
 #videoResolutionLabel {
561
 #videoResolutionLabel {
550
     display: none;
562
     display: none;
551
     position: absolute;
563
     position: absolute;
552
-    top: 5px;
553
-    right: 5px;
554
-    background: rgba(0,0,0,.5);
555
-    padding: 10px;
556
-    color: rgba(255,255,255,.5);
564
+    top: 30px;
565
+    right: 30px;
557
     z-index: 1011;
566
     z-index: 1011;
558
-    border-radius: 50%;
559
 }
567
 }
560
 
568
 
561
 .centeredVideoLabel {
569
 .centeredVideoLabel {
580
 }
588
 }
581
 
589
 
582
 .moveToCorner {
590
 .moveToCorner {
583
-    top: 5px;
584
-    right: 50px; /*leave free space for the HD label*/
591
+    top: 30px;
592
+    right: 80px; /*leave free space for the HD label*/
585
     margin-right: 0px;
593
     margin-right: 0px;
586
     margin-left: auto;
594
     margin-left: auto;
587
     background: rgba(0,0,0,.3);
595
     background: rgba(0,0,0,.3);

+ 1
- 1
index.html Wyświetl plik

240
                     <video id="largeVideo" muted="true" autoplay></video>
240
                     <video id="largeVideo" muted="true" autoplay></video>
241
                 </div>
241
                 </div>
242
                 <span id="localConnectionMessage"></span>
242
                 <span id="localConnectionMessage"></span>
243
-                <span id="videoResolutionLabel">HD</span>
243
+                <span id="videoResolutionLabel" class="video-state-indicator">HD</span>
244
                 <span id="recordingLabel" class="centeredVideoLabel">
244
                 <span id="recordingLabel" class="centeredVideoLabel">
245
                     <span id="recordingLabelText"></span>
245
                     <span id="recordingLabelText"></span>
246
                     <img id="recordingSpinner" class="recordingSpinner" src="images/spin.svg"></img>
246
                     <img id="recordingSpinner" class="recordingSpinner" src="images/spin.svg"></img>

Ładowanie…
Anuluj
Zapisz