/
guselnikov
/
inst
Обзор
Документация
Войти
/
guselnikov
/
inst
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin/src/components/ui/Modal.module.css
123 строки
2 KB
Viktor Guselnikov
first_commit
07 июл 2026, 11:54
07 июл 2026, 11:54
098126a
Код
Авторство
О чём код?
.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(12px); animation: fadeIn 200ms var(--ease); } .dialog { width: 100%; max-height: min(90dvh, 720px); display: flex; flex-direction: column; background: var(--bg-elevated); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); animation: slideUp 240ms var(--ease); } .sm { max-width: 400px; } .md { max-width: 520px; } .lg { max-width: 680px; } .header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 0; } .title { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; } .description { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; } .close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: var(--radius-full); background: var(--bg-hover); color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: background var(--transition), color var(--transition); } .close:hover { background: var(--bg-active); color: var(--text-primary); } .body { padding: 20px 28px; overflow-y: auto; flex: 1; } .footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 28px 24px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } } @media (prefers-reduced-motion: reduce) { .overlay, .dialog { animation: none; } } [data-theme='light'] .overlay { background: rgba(24, 24, 27, 0.35); }