gramli-angular-notifier
Version:
A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.
182 lines (177 loc) • 5.67 kB
CSS
.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;
}
}
/*# sourceMappingURL=theme-primeng.css.map */