JuiceUI/Libraries/css/themekit/_modal.scss
2020-02-27 22:57:16 -05:00

51 lines
901 B
SCSS

.modal {
visibility: hidden;
opacity: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: fixed;
z-index: 2048;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
overflow: auto;
background-color: $background;
background-color: rgba($background, 0.4);
transition: visibility 0s, opacity 150ms ease-in-out;
}
/* Modal Content */
.modal-content {
background-color: lighten($background, 15%);
padding: 20px;
border: 1px solid lighten($background, 10%);
width: 80%;
border-radius: 8px;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
.container {
width: 100%;
height: 100%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
&:hover,
&:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
}
}