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.
|
|
|
/**
|
|
|
|
* <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>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
.modal {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
// make sure that animation starts after visibility is not longer hidden
|
|
|
|
visibility: hidden;
|
|
|
|
transition: visibility 0s linear 0.5s;
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
z-index: 20;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&__inner {
|
|
|
|
position: relative;
|
|
|
|
z-index: 21;
|
|
|
|
|
|
|
|
transition: transform 0.5s;
|
|
|
|
transform: scale(0);
|
|
|
|
|
|
|
|
max-width: 600px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
font-size: 2rem;
|
|
|
|
text-align: center;
|
|
|
|
white-space: pre-line;
|
|
|
|
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
font-size: 3rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title, &__body {
|
|
|
|
color: var(--text-contrast);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
color: var(--text-contrast);
|
|
|
|
}
|
|
|
|
|
|
|
|
&: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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|