/
DeReTeX
/
L_1_2_frontend
Обзор
Документация
Войти
/
DeReTeX
/
L_1_2_frontend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/components/Notification/Notification.css
122 строки
2 KB
deretexDEV
[ADD]
21 фев 2026, 13:03
21 фев 2026, 13:03
418d4ec
Код
Авторство
О чём код?
.g-notification-container { grid-area: notification; position: fixed; bottom: 20px; right: 20px; z-index: 1000; max-width: 400px; display: flex; flex-direction: column-reverse; z-index: 10000; } .g-notification { margin-top: 10px; margin-bottom: 0; padding: 15px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); position: relative; min-width: 250px; opacity: 0; transform: translateX(100%); transition: all 0.3s ease; } .g-notification--show { opacity: 1; transform: translateX(0); } .g-notification--hide { opacity: 0; transform: translateX(100%); pointer-events: none; } /* Модификаторы типов уведомлений */ .g-notification--success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; } .g-notification--warning { background: #fff3cd; border: 1px solid #ffeaa7; color: #856404; } .g-notification--error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; } .g-notification--info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; } /* Элементы внутри блока уведомления */ .g-notification__title { font-weight: bold; margin-bottom: 5px; font-size: 14px; } .g-notification__message { font-size: 13px; line-height: 1.4; } .g-notification__close { position: absolute; top: 5px; right: 8px; background: none; border: none; font-size: 16px; cursor: pointer; color: inherit; opacity: 0.7; outline: none; padding: 0; transition: opacity 0.2s ease; } .g-notification__close:focus { outline: none; box-shadow: none; } .g-notification__close:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.3); outline-offset: 2px; } .g-notification__close:hover { opacity: 1; } .g-notification__progress { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(0, 0, 0, 0.2); width: 100%; transform-origin: left; animation: g-notification-progress linear forwards; border-radius: 0 0 5px 5px; } @keyframes g-notification-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }