@syncfusion/ej2-notifications
Version:
A package of Essential JS 2 notification components such as Toast and Badge which used to notify important information to end-users.
287 lines (285 loc) • 7.86 kB
CSS
.e-badge {
background: #f9fafb;
border-color: transparent;
border-radius: 2px;
-webkit-box-shadow: 0 0 0 2px transparent;
box-shadow: 0 0 0 2px transparent;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #374151;
display: inline-block;
font-family: "Inter";
font-size: 10px;
font-weight: 500;
line-height: 1;
padding: 4px;
height: 18px;
overflow: hidden;
text-align: center;
text-decoration: none;
text-indent: 0;
vertical-align: middle;
}
.e-badge:hover {
text-decoration: none;
}
.e-badge.e-badge-pill {
border-radius: 10px;
padding: 4px 10px 4px 10px;
}
.e-badge.e-badge-ghost {
line-height: 1;
padding: 3px 10px 3px 10px;
}
.e-badge.e-badge-notification {
border-radius: 10px;
height: 18px;
line-height: 1;
min-width: 32px;
padding: 4px 10px 4px 10px;
width: auto;
font-size: 10px;
position: absolute;
top: -10px;
left: 100%;
}
.e-badge.e-badge-notification.e-badge-ghost {
line-height: 1;
}
.e-badge.e-badge-circle {
border-radius: 10px;
height: 18px;
line-height: 1;
min-width: 0;
padding: 4px 3px 4px 3px;
width: 18px;
}
.e-badge.e-badge-circle.e-badge-ghost {
line-height: 1;
padding: 3px;
}
.e-badge.e-badge-overlap {
position: absolute;
top: -10px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.e-badge.e-badge-dot {
border-radius: 10px;
height: 10px;
line-height: 1;
min-width: 0;
padding: 0;
width: 10px;
-webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
margin: 0;
overflow: visible;
position: absolute;
top: -3px;
left: 100%;
}
.e-badge.e-badge-bottom.e-badge-dot {
position: absolute;
top: auto;
bottom: 3px;
}
.e-badge.e-badge-bottom.e-badge-notification {
position: absolute;
top: auto;
bottom: -3px;
}
button .e-badge {
line-height: 1;
position: relative;
top: -2px;
}
button .e-badge.e-badge-circle {
height: 18px;
line-height: 1;
width: 18px;
}
button .e-badge.e-badge-circle.e-badge-ghost {
line-height: 1;
}
.e-badge.e-badge-primary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-primary[href]:not(.e-badge-ghost) {
background-color: #4f46e5;
color: #fff;
}
.e-badge.e-badge-secondary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-secondary[href]:not(.e-badge-ghost) {
background-color: #f9fafb;
color: #374151;
}
.e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) {
background-color: #dcfce7;
color: #15803d;
}
.e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) {
background-color: #fee2e2;
color: #dc2626;
}
.e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) {
background-color: #ffedd5;
color: #c2410c;
}
.e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) {
background-color: #cffafe;
color: #0e7490;
}
.e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) {
background-color: #f3f4f6;
color: #374151;
}
.e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) {
background-color: #6b7280;
color: #f3f4f6;
}
.e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover {
background-color: rgb(41.1374407583, 30.5592417062, 217.4407582938);
}
.e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover {
background-color: rgb(218.4, 224.5, 230.6);
}
.e-badge.e-badge-success[href]:not(.e-badge-ghost):hover {
background-color: rgb(173.0263157895, 247.9736842105, 198.7894736842);
}
.e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover {
background-color: rgb(252.3, 176.7, 176.7);
}
.e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover {
background-color: rgb(255, 215.1428571429, 162);
}
.e-badge.e-badge-info[href]:not(.e-badge-ghost):hover {
background-color: rgb(157.0408163265, 244.7959183673, 252.9591836735);
}
.e-badge.e-badge-light[href]:not(.e-badge-ghost):hover {
background-color: rgb(213.8571428571, 217.2857142857, 224.1428571429);
}
.e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover {
background-color: rgb(83.7787234043, 89.2595744681, 100.2212765957);
}
.e-badge.e-badge-primary[href].e-badge-ghost:hover {
border-color: rgb(36.9075829384, 27.4170616114, 195.0829383886);
color: rgb(36.9075829384, 27.4170616114, 195.0829383886);
}
.e-badge.e-badge-secondary[href].e-badge-ghost:hover {
border-color: rgb(203.1, 211.75, 220.4);
color: rgb(203.1, 211.75, 220.4);
}
.e-badge.e-badge-success[href].e-badge-ghost:hover {
border-color: rgb(149.5394736842, 245.9605263158, 182.6842105263);
color: rgb(149.5394736842, 245.9605263158, 182.6842105263);
}
.e-badge.e-badge-danger[href].e-badge-ghost:hover {
border-color: rgb(251.45, 152.05, 152.05);
color: rgb(251.45, 152.05, 152.05);
}
.e-badge.e-badge-warning[href].e-badge-ghost:hover {
border-color: rgb(255, 204.2142857143, 136.5);
color: rgb(255, 204.2142857143, 136.5);
}
.e-badge.e-badge-info[href].e-badge-ghost:hover {
border-color: rgb(132.0612244898, 242.193877551, 252.4387755102);
color: rgb(132.0612244898, 242.193877551, 252.4387755102);
}
.e-badge.e-badge-light[href].e-badge-ghost:hover {
border-color: rgb(199.2857142857, 203.9285714286, 213.2142857143);
color: rgb(199.2857142857, 203.9285714286, 213.2142857143);
}
.e-badge.e-badge-dark[href].e-badge-ghost:hover {
border-color: rgb(72.1680851064, 76.8893617021, 86.3319148936);
color: rgb(72.1680851064, 76.8893617021, 86.3319148936);
}
.e-badge.e-badge-ghost.e-badge-primary {
background-color: transparent;
border: 1px solid #4f46e5;
color: #4f46e5;
}
.e-badge.e-badge-ghost.e-badge-secondary {
background-color: transparent;
border: 1px solid #374151;
color: #374151;
border: 1px solid #f9fafb;
color: #f9fafb;
}
.e-badge.e-badge-ghost.e-badge-success {
background-color: transparent;
border: 1px solid #15803d;
color: #15803d;
border: 1px solid #dcfce7;
color: #dcfce7;
}
.e-badge.e-badge-ghost.e-badge-danger {
background-color: transparent;
border: 1px solid #dc2626;
color: #dc2626;
border: 1px solid #fee2e2;
color: #fee2e2;
}
.e-badge.e-badge-ghost.e-badge-warning {
background-color: transparent;
border: 1px solid #c2410c;
color: #c2410c;
}
.e-badge.e-badge-ghost.e-badge-info {
background-color: transparent;
border: 1px solid #0e7490;
color: #0e7490;
}
.e-badge.e-badge-ghost.e-badge-light {
background-color: transparent;
border: 1px solid #374151;
color: #374151;
border: 1px solid #f3f4f6;
color: #f3f4f6;
}
.e-badge.e-badge-ghost.e-badge-dark {
background-color: transparent;
border: 1px solid #6b7280;
color: #6b7280;
}
.e-bigger .e-badge,
.e-badge.e-bigger {
font-size: 12px;
font-weight: 400;
border-radius: 4px;
height: 20px;
line-height: 18px;
padding: 1px 6px;
}
.e-bigger .e-badge.e-badge-pill,
.e-badge.e-bigger.e-badge-pill {
border-radius: 10px;
padding: 1px 10px;
}
.e-bigger .e-badge.e-badge-ghost,
.e-badge.e-bigger.e-badge-ghost {
padding: 0 10px;
}
.e-bigger .e-badge.e-badge-ghost.e-badge-circle,
.e-badge.e-bigger.e-badge-ghost.e-badge-circle {
padding: 3px;
}
.e-bigger .e-badge.e-badge-ghost.e-badge-notification,
.e-badge.e-bigger.e-badge-ghost.e-badge-notification {
padding: 3px 10px;
}
.e-bigger .e-badge.e-badge-notification,
.e-badge.e-bigger.e-badge-notification {
border-radius: 10px;
min-width: 34px;
padding: 1px 10px;
}
.e-bigger .e-badge.e-badge-circle,
.e-badge.e-bigger.e-badge-circle {
border-radius: 10px;
min-width: 0;
padding: 1px 3px;
width: 20px;
}
.e-bigger .e-badge.e-badge-dot,
.e-badge.e-bigger.e-badge-dot {
border-radius: 10px;
height: 12px;
width: 12px;
}