.mask{
position:absolute;left:0;top:0;height:100vh;width:100vw;filter:Alpha(opacity=60);background-color: rgba(0,0,0,0.6);font-size:3vh;
display: -ms-flexbox;
-ms-flex-align:center;
display: -webkit-box;
-webkit-box-orient: horizontal;
-webkit-box-pack: center;
-webkit-box-align: center;
display: box;
box-orient: horizontal;
box-pack: center;
box-align: center;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
width: 100%;
height: 100%;
}
<div style="position:relative;background:#fff;max-width:500px;width:100%;border-radius:5px;line-height:6vh;font-size:16px;padding:10px;" ng-click="stopPropagation()">