Alex A. Naanou f00aebe3d5 some more refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2015-09-07 18:51:42 +03:00

58 lines
989 B
CSS
Executable File

.overlay-widget {
position: absolute;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
overflow: hidden;
background: rgba(0, 0, 0, 0.5);
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.overlay-widget~.overlay-widget {
background: rgba(0, 0, 0, 0.1);
}
.overlay-widget .content {
position: relative;
display: inline-block;
background: white;
top: 50%;
left: 50%;
width: auto;
height: auto;
min-width: 200px;
max-width: 80vw;
max-height: 100vh;
transform: translateY(-50%) translateX(-50%);
box-shadow: rgba(0, 0, 0, 0.1) 0.3em 0.3em 5em;
}
.overlay-widget~.overlay-widget .content {
box-shadow: rgba(0, 0, 0, 0.05) 0.1em 0.1em 3em;
}
/* NOTE: this does not include text...
...need a way to go around this...
*/
.blur>* {
-webkit-filter: blur(2px);
filter: blur(2px);
}
.blur>.overlay-widget {
-webkit-filter: none;
filter: none;
}