UNPKG

alert_popup_emoji

Version:

A lightweight emoji-based popup alert system with optional sounds, status codes, and smooth animations — perfect for enhancing user feedback during web requests.

64 lines (55 loc) 1.12 kB
.emoji-alert-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; } .emoji-browser-alert { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-radius: 12px; color: white; font-size: 16px; font-weight: 500; min-width: 260px; max-width: 400px; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: opacity 0.5s ease; } .emoji-browser-alert.success { background-color: #4CAF50; } .emoji-browser-alert.error { background-color: #f44336; } .dismiss-btn { background: transparent; border: none; color: white; font-size: 18px; font-weight: bold; cursor: pointer; } .fade-out { opacity: 0; } .status-code { font-weight: bold; margin-left: 8px; } .emoji-browser-alert.success .status-code { color: #c8ffcf; } .emoji-browser-alert.error .status-code { color: #ffd1d1; }