@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.
226 lines (225 loc) • 6.44 kB
CSS
.e-badge {
background: #fafafa;
border-color: transparent;
border-radius: 0.335em;
-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: rgba(0, 0, 0, 0.87);
display: inline-block;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif, "-apple-system", "BlinkMacSystemFont";
font-size: 0.75em;
font-weight: 500;
line-height: 1;
padding: 0.25em 0.42em 0.25em 0.42em;
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: 5em;
}
.e-badge.e-badge-notification {
border-radius: 1em;
height: 18px;
line-height: 18px;
min-width: 24px;
padding: 0 8px 0 8px;
width: auto;
font-size: 12px;
position: absolute;
top: -10px;
left: 100%;
}
.e-badge.e-badge-notification.e-badge-ghost {
line-height: 16px;
}
.e-badge.e-badge-circle {
border-radius: 50%;
height: 1.834em;
line-height: 1.834em;
min-width: 0;
padding: 0;
width: 1.834em;
}
.e-badge.e-badge-circle.e-badge-ghost {
line-height: 1.8em;
}
.e-badge.e-badge-overlap {
position: absolute;
top: -10px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.e-badge.e-badge-dot {
border-radius: 100%;
height: 6px;
line-height: 1;
min-width: 0;
padding: 0;
width: 6px;
-webkit-box-shadow: 0 0 0 1px #fff;
box-shadow: 0 0 0 1px #fff;
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: 0.9;
position: relative;
top: -2px;
}
button .e-badge.e-badge-circle {
height: 2em;
line-height: 2em;
width: 2em;
}
button .e-badge.e-badge-circle.e-badge-ghost {
line-height: 1.9em;
}
.e-badge.e-badge-primary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-primary[href]:not(.e-badge-ghost) {
background-color: #007bff;
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: #6c757d;
color: #fff;
}
.e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) {
background-color: #28a745;
color: #fff;
}
.e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) {
background-color: #dc3545;
color: #fff;
}
.e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) {
background-color: #ffc107;
color: #212529;
}
.e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) {
background-color: #17a2b8;
color: #fff;
}
.e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) {
background-color: #f8f9fa;
color: #212529;
}
.e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) {
background-color: #343a40;
color: #fff;
}
.e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover {
background-color: rgb(0, 98.4, 204);
}
.e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover {
background-color: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}
.e-badge.e-badge-success[href]:not(.e-badge-ghost):hover {
background-color: rgb(30.1449275362, 125.8550724638, 52);
}
.e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover {
background-color: rgb(189.2151898734, 32.7848101266, 47.7721518987);
}
.e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover {
background-color: rgb(211, 158.25, 0);
}
.e-badge.e-badge-info[href]:not(.e-badge-ghost):hover {
background-color: rgb(17.3333333333, 122.0869565217, 138.6666666667);
}
.e-badge.e-badge-light[href]:not(.e-badge-ghost):hover {
background-color: rgb(218.25, 223.5, 228.75);
}
.e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover {
background-color: rgb(29.1379310345, 32.5, 35.8620689655);
}
.e-badge.e-badge-primary[href].e-badge-ghost:hover {
border-color: rgb(0, 86.1, 178.5);
color: rgb(0, 86.1, 178.5);
}
.e-badge.e-badge-secondary[href].e-badge-ghost:hover {
border-color: rgb(72.5407725322, 78.5858369099, 83.9592274678);
color: rgb(72.5407725322, 78.5858369099, 83.9592274678);
}
.e-badge.e-badge-success[href].e-badge-ghost:hover {
border-color: rgb(25.2173913043, 105.2826086957, 43.5);
color: rgb(25.2173913043, 105.2826086957, 43.5);
}
.e-badge.e-badge-danger[href].e-badge-ghost:hover {
border-color: rgb(167.4810126582, 29.0189873418, 42.2848101266);
color: rgb(167.4810126582, 29.0189873418, 42.2848101266);
}
.e-badge.e-badge-warning[href].e-badge-ghost:hover {
border-color: rgb(185.5, 139.125, 0);
color: rgb(185.5, 139.125, 0);
}
.e-badge.e-badge-info[href].e-badge-ghost:hover {
border-color: rgb(14.5, 102.1304347826, 116);
color: rgb(14.5, 102.1304347826, 116);
}
.e-badge.e-badge-light[href].e-badge-ghost:hover {
border-color: rgb(203.375, 210.75, 218.125);
color: rgb(203.375, 210.75, 218.125);
}
.e-badge.e-badge-dark[href].e-badge-ghost:hover {
border-color: rgb(17.7068965517, 19.75, 21.7931034483);
color: rgb(17.7068965517, 19.75, 21.7931034483);
}
.e-badge.e-badge-ghost.e-badge-primary {
background-color: transparent;
border: 1px solid #007bff;
color: #007bff;
}
.e-badge.e-badge-ghost.e-badge-secondary {
background-color: transparent;
border: 1px solid #6c757d;
color: #6c757d;
}
.e-badge.e-badge-ghost.e-badge-success {
background-color: transparent;
border: 1px solid #28a745;
color: #28a745;
}
.e-badge.e-badge-ghost.e-badge-danger {
background-color: transparent;
border: 1px solid #dc3545;
color: #dc3545;
}
.e-badge.e-badge-ghost.e-badge-warning {
background-color: transparent;
border: 1px solid #ffc107;
color: #ffc107;
}
.e-badge.e-badge-ghost.e-badge-info {
background-color: transparent;
border: 1px solid #17a2b8;
color: #17a2b8;
}
.e-badge.e-badge-ghost.e-badge-light {
background-color: transparent;
border: 1px solid #f8f9fa;
color: #f8f9fa;
}
.e-badge.e-badge-ghost.e-badge-dark {
background-color: transparent;
border: 1px solid #343a40;
color: #343a40;
}