Files
flood/client/source/sass/objects/_modals.scss
2015-11-08 16:00:21 -08:00

72 lines
1.0 KiB
SCSS

.modal {
background: $modal--overlay;
height: 100%;
left: 0;
position: fixed;
top: 0;
transition: opacity 0.5s;
width: 100%;
z-index: 100;
&__content {
background: $modal--background;
border-radius: 5px;
box-shadow:
0 0 0 1px $modal--content--border,
0 0 35px $modal--content--shadow;
left: 50%;
max-height: 80%;
max-width: 80%;
overflow: auto;
padding: 30px;
position: absolute;
top: 10%;
transform: translate(-50%, 0);
width: 500px;
}
}
.modal {
&__button-group {
text-align: right;
.button {
& + .button {
margin-left: 20px;
}
}
}
}
.modal {
&__header {
color: $modal--header--foreground;
font-size: 1.1em;
font-weight: 400;
margin-bottom: 20px;
}
}
.modal {
&__animation-enter {
opacity: 0;
}
&__animation-enter-active {
opacity: 1;
}
&__animation-leave {
opacity: 1;
pointer-events: none;
}
&__animation-leave-active {
opacity: 0;
}
}