/** *
* *
* food truck yr franzen pabst *
*
* * * @author Björn Hase, me@herr-hase.wtf * @license http://opensource.org/licenses/MIT The MIT License * @link https://gitea.node001.net/tiny-components/plain-ui.git * */ .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; // adding overlay and transition &:before { @include overlay($z-index: 19); transition: background-color 0.5s; } &__inner { position: relative; z-index: 21; transition: transform 0.5s; transform: scale(0); max-width: 600px; width: 100%; } &__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); } // modal with overlay visible &--open { display: flex; visibility: visible; transition: visibility 0s linear 0s; &:before { background-color: var(--background-alpha); } .modal__inner { transform: scale(1); } } }