fix(UserMediaPermissionsGuidanceOverlay): broken display

pull/1008/head
paweldomas 8 years ago
parent 229a3b4418
commit c473178dfe
  1. 28
      css/overlay/_overlay.scss
  2. 3
      modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js

@ -1,48 +1,30 @@
.overlay {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: $overlayZ;
background: #21B9FC; /* Old browsers */
opacity: 0.75;
display: block;
}
.overlay_transparent {
background: rgba(22, 185, 252, .9);
}
.overlay_container {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
z-index: $overlayZ;
background: rgba(22, 185, 252, .9);
}
.overlay_content {
color: #fff;
font-weight: normal;
font-size: 20px;
text-align: center;
width: 400px;
height: 250px;
top: 50%;
left: 50%;
position:absolute;
position: absolute;
margin-top: -125px;
margin-left: -200px;
}
.overlay_text_small {
display: block;
font-size: 18px;
}
.overlay_icon {
position: relative;
z-index: 1013;
float: none;
font-size: 100px;
}

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

Loading…
Cancel
Save