Bläddra i källkod

fix(UserMediaPermissionsGuidanceOverlay): broken display

j8
paweldomas 9 år sedan
förälder
incheckning
c473178dfe

+ 5
- 23
css/overlay/_overlay.scss Visa fil

1
-.overlay {
2
-    position: fixed;
3
-    left: 0;
4
-    top: 0;
5
-    width: 100%;
6
-    height: 100%;
7
-    z-index: $overlayZ;
8
-    background: #21B9FC; /* Old browsers */
9
-    opacity: 0.75;
10
-    display: block;
11
-}
12
-
13
-.overlay_transparent {
14
-    background: rgba(22, 185, 252, .9);
15
-}
16
-
17
 .overlay_container {
1
 .overlay_container {
2
+    top: 0;
3
+    left: 0;
18
     width: 100%;
4
     width: 100%;
19
     height: 100%;
5
     height: 100%;
20
     position: fixed;
6
     position: fixed;
21
     z-index: $overlayZ;
7
     z-index: $overlayZ;
8
+    background: rgba(22, 185, 252, .9);
22
 }
9
 }
23
 
10
 
24
 .overlay_content {
11
 .overlay_content {
25
     color: #fff;
12
     color: #fff;
26
-    font-weight: normal;
27
-    font-size: 20px;
28
     text-align: center;
13
     text-align: center;
29
     width: 400px;
14
     width: 400px;
30
     height: 250px;
15
     height: 250px;
31
     top: 50%;
16
     top: 50%;
32
     left: 50%;
17
     left: 50%;
33
-    position:absolute;
18
+    position: absolute;
34
     margin-top: -125px;
19
     margin-top: -125px;
35
     margin-left: -200px;
20
     margin-left: -200px;
36
 }
21
 }
37
 
22
 
38
-
39
 .overlay_text_small {
23
 .overlay_text_small {
24
+    display: block;
40
     font-size: 18px;
25
     font-size: 18px;
41
 }
26
 }
42
 
27
 
43
 .overlay_icon {
28
 .overlay_icon {
44
-    position: relative;
45
-    z-index: 1013;
46
-    float: none;
47
     font-size: 100px;
29
     font-size: 100px;
48
 }
30
 }

+ 1
- 2
modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js Visa fil

11
 function buildOverlayHtml(browser) {
11
 function buildOverlayHtml(browser) {
12
     $overlay = $(`
12
     $overlay = $(`
13
         <div class='overlay_container'>
13
         <div class='overlay_container'>
14
-            <div class='overlay overlay_transparent' />
15
             <div class='overlay_content'>
14
             <div class='overlay_content'>
16
                 <span class="overlay_icon icon-microphone"></span>
15
                 <span class="overlay_icon icon-microphone"></span>
17
                 <span class="overlay_icon icon-camera"></span>
16
                 <span class="overlay_icon icon-camera"></span>
18
                 <span data-i18n='[html]userMedia.${browser}GrantPermissions' 
17
                 <span data-i18n='[html]userMedia.${browser}GrantPermissions' 
19
-                    class='overlay_text overlay_text_small'></span>
18
+                      class='overlay_text_small'></span>
20
             </div>
19
             </div>
21
         </div>`);
20
         </div>`);
22
 
21
 

Laddar…
Avbryt
Spara