You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plain-ui/src/scss/components/_modal.scss

91 lines
1.8 KiB

/**
* <figure class="media-figure">
* <img class="media__img" src="https://via.placeholder.com/150" />
* <figcaption class="media-figure__caption">
* food truck yr franzen pabst
* </figcaption>
* </figure>
*
*/
@mixin plain-ui__component__modal()
{
.modal {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
visibility: hidden;
transition: visibility 0s linear 0.5s;
padding: 1em;
z-index: 20;
align-items: center;
justify-content: center;
&__inner {
position: relative;
z-index: 21;
transition: transform 0.5s;
transform: scale(0);
max-width: 500px;
}
&__title {
font-size: 2rem;
text-align: center;
white-space: pre-line;
margin-bottom: 2rem;
.icon {
font-size: 3rem;
}
}
&__title, &__body {
color: white;
}
&__body {
margin-bottom: 1.5rem;
}
.button {
color: white;
}
&:before {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: transparent;
transition: background-color 0.5s;
z-index: 19;
content: '';
}
&--open {
display: flex;
visibility: visible;
transition: visibility 0s linear 0s;
&:before {
background: rgba(0,0,0,.87);
}
.modal__inner {
transform: scale(1);
}
}
}
}