UNPKG

gramli-angular-notifier

Version:

A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.

377 lines (364 loc) 10.5 kB
.notifier__container * { box-sizing: border-box; } .notifier__container-list { margin-top: 0; margin-bottom: 0; padding-left: 0; list-style-type: none; } .notifier__notification { display: flex; align-items: center; position: fixed; visibility: hidden; z-index: 10000; will-change: transform; backface-visibility: hidden; } .notifier__notification--material { border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); cursor: default; padding-top: 11px; padding-right: 26px; padding-bottom: 10px; padding-left: 26px; } .notifier__notification--material .notifier__notification-message { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: top; line-height: 32px; font-size: 15px; } .notifier__notification--material .notifier__notification-button { display: inline-block; transition: opacity 0.2s ease; opacity: 0.5; margin-right: -10px; margin-left: 10px; outline: none; border: none; background: none; cursor: pointer; padding: 6px; width: 32px; height: 32px; vertical-align: top; } .notifier__notification--material .notifier__notification-button:hover, .notifier__notification--material .notifier__notification-button:focus { opacity: 1; } .notifier__notification--material .notifier__notification-button:active { transform: scale(0.82); opacity: 1; } .notifier__notification--bootstrap { border-radius: 0.375rem; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); cursor: default; padding: 0.75rem 1rem; border: 1px solid transparent; transition: all 0.15s ease-in-out; } .notifier__notification--bootstrap:hover { box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2); transform: translateY(-1px); } .notifier__notification--bootstrap .notifier__notification-message { display: inline-block; margin: 0; vertical-align: middle; line-height: 1.5; font-size: 1rem; font-weight: 400; color: inherit; } .notifier__notification--bootstrap .notifier__notification-button { display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease-in-out; opacity: 1; margin-left: 0.75rem; margin-right: -0.5rem; outline: none; border: none; background: transparent; cursor: pointer; padding: 0.5rem; width: 2rem; height: 2rem; vertical-align: middle; border-radius: 0.25rem; color: #000; filter: brightness(0.7); } .notifier__notification--bootstrap .notifier__notification-button:hover { filter: brightness(0); background-color: rgba(0, 0, 0, 0.1); } .notifier__notification--bootstrap .notifier__notification-button:focus { filter: brightness(0); box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); background-color: rgba(0, 0, 0, 0.1); } .notifier__notification--bootstrap .notifier__notification-button:active { transform: scale(0.95); filter: brightness(0); background-color: rgba(0, 0, 0, 0.15); } .notifier__notification--bootstrap.notifier__notification--default { background-color: #cfe2ff; border-color: #b6d4fe; color: #084298; } .notifier__notification--bootstrap.notifier__notification--info { background-color: #d1ecf1; border-color: #bee5eb; color: #0c5460; } .notifier__notification--bootstrap.notifier__notification--success { background-color: #d1e7dd; border-color: #badbcc; color: #0f5132; } .notifier__notification--bootstrap.notifier__notification--warning { background-color: #fff3cd; border-color: #ffecb5; color: #664d03; } .notifier__notification--bootstrap.notifier__notification--error { background-color: #f8d7da; border-color: #f5c2c7; color: #842029; } @media (max-width: 576px) { .notifier__notification--bootstrap { padding: 0.5rem 0.75rem; border-radius: 0.25rem; } .notifier__notification--bootstrap .notifier__notification-message { font-size: 0.875rem; line-height: 1.4; } .notifier__notification--bootstrap .notifier__notification-button { width: 1.75rem; height: 1.75rem; padding: 0.375rem; } } .notifier__notification--primeng { border-radius: 6px; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); cursor: default; padding: 1rem 1.25rem; border-left: 6px solid; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } .notifier__notification--primeng:hover { box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2), 0 8px 10px 0 rgba(0, 0, 0, 0.14), 0 2px 16px 0 rgba(0, 0, 0, 0.12); transform: translateY(-2px); } .notifier__notification--primeng .notifier__notification-message { display: inline-block; margin: 0; vertical-align: middle; line-height: 1.5; font-size: 1rem; font-weight: 400; color: inherit; } .notifier__notification--primeng .notifier__notification-button { display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-left: 1rem; margin-right: -0.5rem; outline: none; border: none; background: transparent; cursor: pointer; padding: 0.5rem; width: 2rem; height: 2rem; vertical-align: middle; border-radius: 50%; color: currentColor; opacity: 0.7; } .notifier__notification--primeng .notifier__notification-button:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } .notifier__notification--primeng .notifier__notification-button:focus { opacity: 1; box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.3); } .notifier__notification--primeng .notifier__notification-button:active { transform: scale(0.9) rotate(90deg); opacity: 1; background-color: rgba(255, 255, 255, 0.4); } .notifier__notification--primeng.notifier__notification--default, .notifier__notification--primeng.notifier__notification--info { background-color: #3B82F6; border-left-color: #1D4ED8; color: #ffffff; } .notifier__notification--primeng.notifier__notification--success { background-color: #22C55E; border-left-color: #16A34A; color: #ffffff; } .notifier__notification--primeng.notifier__notification--warning { background-color: #F59E0B; border-left-color: #D97706; color: #ffffff; } .notifier__notification--primeng.notifier__notification--error { background-color: #EF4444; border-left-color: #DC2626; color: #ffffff; } .notifier__notification--primeng-light { border-radius: 6px; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); cursor: default; padding: 1rem 1.25rem; border: 1px solid; border-left-width: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } .notifier__notification--primeng-light:hover { box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2), 0 8px 10px 0 rgba(0, 0, 0, 0.14), 0 2px 16px 0 rgba(0, 0, 0, 0.12); transform: translateY(-2px); } .notifier__notification--primeng-light .notifier__notification-message { display: inline-block; margin: 0; vertical-align: middle; line-height: 1.5; font-size: 1rem; font-weight: 500; color: inherit; } .notifier__notification--primeng-light .notifier__notification-button { display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-left: 1rem; margin-right: -0.5rem; outline: none; border: none; background: transparent; cursor: pointer; padding: 0.5rem; width: 2rem; height: 2rem; vertical-align: middle; border-radius: 50%; color: currentColor; opacity: 0.7; } .notifier__notification--primeng-light .notifier__notification-button:hover { opacity: 1; background-color: rgba(0, 0, 0, 0.04); transform: rotate(90deg); } .notifier__notification--primeng-light .notifier__notification-button:focus { opacity: 1; box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.04); } .notifier__notification--primeng-light .notifier__notification-button:active { transform: scale(0.9) rotate(90deg); opacity: 1; background-color: rgba(0, 0, 0, 0.08); } .notifier__notification--primeng-light.notifier__notification--default, .notifier__notification--primeng-light.notifier__notification--info { background-color: #DBEAFE; border-color: #93C5FD; border-left-color: #3B82F6; color: #1E40AF; } .notifier__notification--primeng-light.notifier__notification--success { background-color: #D1FAE5; border-color: #86EFAC; border-left-color: #22C55E; color: #166534; } .notifier__notification--primeng-light.notifier__notification--warning { background-color: #FEF3C7; border-color: #FCD34D; border-left-color: #F59E0B; color: #92400E; } .notifier__notification--primeng-light.notifier__notification--error { background-color: #FEE2E2; border-color: #FCA5A5; border-left-color: #EF4444; color: #991B1B; } @media (max-width: 768px) { .notifier__notification--primeng, .notifier__notification--primeng-light { padding: 0.875rem 1rem; border-radius: 4px; } .notifier__notification--primeng .notifier__notification-message, .notifier__notification--primeng-light .notifier__notification-message { font-size: 0.9375rem; line-height: 1.4; } .notifier__notification--primeng .notifier__notification-button, .notifier__notification--primeng-light .notifier__notification-button { width: 1.875rem; height: 1.875rem; padding: 0.4375rem; margin-left: 0.75rem; } } .notifier__notification--default { background-color: #444; color: #fff; } .notifier__notification--default .notifier__notification-button-icon { fill: #fff; } .notifier__notification--error { background-color: #d9534f; color: #fff; } .notifier__notification--error .notifier__notification-button-icon { fill: #fff; } .notifier__notification--info { background-color: #5bc0de; color: #fff; } .notifier__notification--info .notifier__notification-button-icon { fill: #fff; } .notifier__notification--success { background-color: #5cb85c; color: #fff; } .notifier__notification--success .notifier__notification-button-icon { fill: #fff; } .notifier__notification--warning { background-color: #f0ad4e; color: #fff; } .notifier__notification--warning .notifier__notification-button-icon { fill: #fff; } /*# sourceMappingURL=styles.css.map */