salix/front/core/components/popup/style.scss

41 lines
939 B
SCSS

@import "effects";
.vn-popup {
z-index: 20;
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
opacity: 0;
transition: opacity 200ms ease-in-out;
&.shown {
opacity: 1;
transform: scale3d(1, 1, 1);
}
&.centered {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, .6);
padding: 1em;
box-sizing: border-box;
& > .window {
position: relative;
box-shadow: 0 0 .4em $color-shadow;
background-color: $color-bg-panel;
border-radius: .2em;
overflow: auto;
box-sizing: border-box;
max-height: 100%;
transform: scale3d(.5, .5, .5);
transition: transform 200ms ease-in-out;
}
&.shown > .window {
transform: scale3d(1, 1, 1);
}
}
}