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

42 lines
965 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: 16px;
box-sizing: border-box;
& > .window {
position: relative;
box-shadow: 0 0 6px $color-shadow;
background-color: $color-bg-panel;
border-radius: 3px;
overflow: auto;
box-sizing: border-box;
max-height: 100%;
transform: scale3d(.9, .9, .9);
transition: transform 200ms ease-in-out;
outline: none;
}
&.shown > .window {
transform: scale3d(1, 1, 1);
}
}
}