소스 검색

Adjusted styles for "Live Streaming" indicator.

j8
Maxim Voloshin 8 년 전
부모
커밋
d09a8b1896
5개의 변경된 파일23개의 추가작업 그리고 34개의 파일을 삭제
  1. 1
    1
      css/_recording.scss
  2. 1
    1
      css/_toolbars.scss
  3. 2
    1
      css/_variables.scss
  4. 17
    29
      css/_videolayout_default.scss
  5. 2
    2
      index.html

+ 1
- 1
css/_recording.scss 파일 보기

@@ -1,4 +1,4 @@
1 1
 .recordingSpinner {
2 2
     display: none;
3
-    vertical-align: text-bottom;
3
+    vertical-align: top;
4 4
 }

+ 1
- 1
css/_toolbars.scss 파일 보기

@@ -1,5 +1,5 @@
1 1
 .toolbar {
2
-    background-color: rgba(0,0,0,0.5);
2
+    background-color: $toolbarBackground;
3 3
     position: relative;
4 4
     z-index: $toolbarZ;
5 5
     height: 100%;

+ 2
- 1
css/_variables.scss 파일 보기

@@ -27,6 +27,7 @@ $defaultBackground: #474747;
27 27
 $tooltipBg: rgba(0,0,0, 0.7);
28 28
 
29 29
 // Toolbar
30
+$toolbarBackground: rgba(0, 0, 0, 0.5);
30 31
 $toolbarSelectBackground: rgba(0, 0, 0, .6);
31 32
 $toolbarBadgeBackground: #165ECC;
32 33
 $toolbarBadgeColor: #FFFFFF;
@@ -47,7 +48,7 @@ $raiseHandBg: #D6D61E;
47 48
 $audioLevelBg: #44A5FF;
48 49
 $audioLevelShadow: rgba(9, 36, 77, 0.9);
49 50
 $videoStateIndicatorColor: $defaultColor;
50
-$videoStateIndicatorBackground: $tooltipBg;
51
+$videoStateIndicatorBackground: $toolbarBackground;
51 52
 
52 53
 /**
53 54
  * Feedback Modal

+ 17
- 29
css/_videolayout_default.scss 파일 보기

@@ -550,51 +550,39 @@
550 550
     background: $videoStateIndicatorBackground;
551 551
     color: $videoStateIndicatorColor;
552 552
     font-size: 13px;
553
-    line-height: 1.4;
553
+    line-height: 20px;
554 554
     text-align: center;
555
-    display: block;
556
-    min-width: 37px;
557
-    padding: 10px 0;
555
+    min-width: 40px;
556
+    height: 40px;
557
+    padding: 10px 5px;
558 558
     border-radius: 50%;
559
+    position: absolute;
560
+    box-sizing: border-box;
559 561
 }
560 562
 
561
-#videoResolutionLabel {
563
+#videoResolutionLabel,
564
+.centeredVideoLabel {
562 565
     display: none;
563
-    position: absolute;
564
-    top: 30px;
565
-    right: 30px;
566 566
     z-index: 1011;
567 567
 }
568 568
 
569 569
 .centeredVideoLabel {
570
-    display: none;
571
-    position: absolute;
572 570
     bottom: 45%;
573
-    top: auto;
574
-    right: auto;
575
-    left: auto;
576
-    line-height: 28px;
577
-    height: 28px;
578
-    width: auto;
579
-    padding: 5px;
580
-    margin-right: auto;
581
-    margin-left: auto;
582
-    background: rgba(0,0,0,.5);
583
-    color: #FFF;
584
-    z-index: 1011;
585 571
     border-radius: 2px;
586 572
     -webkit-transition: all 2s 2s linear;
587 573
     transition: all 2s 2s linear;
574
+
575
+    &.moveToCorner {
576
+        bottom: auto;
577
+    }
588 578
 }
589 579
 
590 580
 .moveToCorner {
581
+    position: absolute;
591 582
     top: 30px;
592
-    right: 80px; /*leave free space for the HD label*/
593
-    margin-right: 0px;
594
-    margin-left: auto;
595
-    background: rgba(0,0,0,.3);
596
-    color: rgba(255,255,255,.5);
583
+    right: 30px;
597 584
 }
598 585
 
599
-.hidden {
600
-}
586
+.moveToCorner + .moveToCorner {
587
+    right: 80px;
588
+}

+ 2
- 2
index.html 파일 보기

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

Loading…
취소
저장