Browse Source

fix(UserMediaPermissionsGuidanceOverlay): broken display

master
paweldomas 9 years ago
parent
commit
c473178dfe

+ 5
- 23
css/overlay/_overlay.scss View File

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

+ 1
- 2
modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js View File

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

Loading…
Cancel
Save