/
engineunity_sub
/
doxml_work_site
Обзор
Документация
Войти
/
engineunity_sub
/
doxml_work_site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
src/css/blocks/modal.css
139 строк
2 KB
PauloChaser
move content from branch dev to master
12 фев 2025, 18:06
12 фев 2025, 18:06
a2e2735
Код
Авторство
О чём код?
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, .5); -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 50px } .modal__wrapper { background-color: #fefefe; margin: auto; border: 1px solid #888; width: 100%; border-radius: 10px; position: relative; max-width: none; padding: 40px 32px; } .modal--narrow .modal__wrapper { padding: 80px 40px; max-width: 500px; } .modal--registration { max-width: 700px; } .modal__heading { margin-bottom: 30px; } .modal__heading .modal__title { margin-bottom: 12px; } .modal__title { font-size: 28px; /*margin-bottom: 24px*/ } .modal__title { text-align: center; margin: auto; } .modal__closeWrapper { position: absolute; right: 10px; top: 10px; padding: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center; width: 52px; height: 52px } .modal__close { color: #aaa; font-size: 32px; -webkit-transition: .2s; -o-transition: .2s; transition: .2s } .modal__closeWrapper:focus .modal__close, .modal__closeWrapper:hover .modal__close { -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); color: #000; text-decoration: none } .modal__countdown { display: inline-block; margin-top: 20px; text-align: center; } .modal__countdown span { color: var(--blue); } .modal__content { background-color: #fff; border-radius: 15px; text-align: center; } .modal--narrow .modal__content > *, .modal__wrapper { text-align: center } @media screen and (max-width: 991px) { .modal { padding: 0; min-height: 100vh } .modal__wrapper { padding: 32px 24px } .modal__title { font-size: 20px } .modal__closeWrapper { right: 10px; top: 10px; } .modal__close { font-size: 32px } .modal--narrow .modal__close { position: absolute; padding: unset } }