@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.
255 lines (253 loc) • 7.17 kB
CSS
.e-badge {
background: #f8f9fa;
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: #343a40;
display: inline-block;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 12px;
font-weight: 500;
line-height: 1;
padding: 3px 4px;
height: 20px;
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: 3px 11px 3px 11px;
}
.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: 3px 10px;
width: auto;
font-size: 12px;
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: 20px;
line-height: 1;
min-width: 0;
padding: 4px 3px 4px 3px;
width: 20px;
}
.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: none;
box-shadow: none;
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: #0d6efd;
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: #f8f9fa;
color: #343a40;
}
.e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) {
background-color: rgb(209, 231, 220.8);
color: rgb(17.03125, 91.96875, 57.225);
}
.e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) {
background-color: rgb(248, 214.6, 217.8);
color: rgb(189.2151898734, 32.7848101266, 47.7721518987);
}
.e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) {
background-color: rgb(255, 242.6, 205.4);
color: rgb(134.5, 100.875, 0);
}
.e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) {
background-color: rgb(206.6, 244.4, 252);
color: rgb(6.4486166008, 100.2015810277, 119.0513833992);
}
.e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) {
background-color: #e9ecef;
color: #343a40;
}
.e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) {
background-color: #495057;
color: #fff;
}
.e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-success[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-info[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-light[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover {
background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
}
.e-badge.e-badge-ghost.e-badge-primary {
background-color: transparent;
border: 1px solid #0d6efd;
color: #0d6efd;
}
.e-badge.e-badge-ghost.e-badge-secondary {
background-color: transparent;
border: 1px solid #343a40;
color: #343a40;
border: 1px solid #f8f9fa;
color: #f8f9fa;
}
.e-badge.e-badge-ghost.e-badge-success {
background-color: transparent;
border: 1px solid rgb(17.03125, 91.96875, 57.225);
color: rgb(17.03125, 91.96875, 57.225);
border: 1px solid rgb(209, 231, 220.8);
color: rgb(209, 231, 220.8);
}
.e-badge.e-badge-ghost.e-badge-danger {
background-color: transparent;
border: 1px solid rgb(189.2151898734, 32.7848101266, 47.7721518987);
color: rgb(189.2151898734, 32.7848101266, 47.7721518987);
border: 1px solid rgb(248, 214.6, 217.8);
color: rgb(248, 214.6, 217.8);
}
.e-badge.e-badge-ghost.e-badge-warning {
background-color: transparent;
border: 1px solid rgb(134.5, 100.875, 0);
color: rgb(134.5, 100.875, 0);
}
.e-badge.e-badge-ghost.e-badge-info {
background-color: transparent;
border: 1px solid rgb(6.4486166008, 100.2015810277, 119.0513833992);
color: rgb(6.4486166008, 100.2015810277, 119.0513833992);
}
.e-badge.e-badge-ghost.e-badge-light {
background-color: transparent;
border: 1px solid #343a40;
color: #343a40;
border: 1px solid #e9ecef;
color: #e9ecef;
}
.e-badge.e-badge-ghost.e-badge-dark {
background-color: transparent;
border: 1px solid #495057;
color: #495057;
}
.e-bigger .e-badge,
.e-badge.e-bigger {
font-size: 14px;
font-weight: 500;
border-radius: 4px;
height: 22px;
line-height: 1;
padding: 4px 3px;
}
.e-bigger .e-badge.e-badge-pill,
.e-badge.e-bigger.e-badge-pill {
border-radius: 10px;
padding: 3px 8px;
}
.e-bigger .e-badge.e-badge-ghost,
.e-badge.e-bigger.e-badge-ghost {
padding: 3px;
}
.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: 30px;
padding: 3px 8px;
}
.e-bigger .e-badge.e-badge-circle,
.e-badge.e-bigger.e-badge-circle {
border-radius: 10px;
min-width: 0;
padding: 4px 3px;
width: 22px;
}
.e-bigger .e-badge.e-badge-dot,
.e-badge.e-bigger.e-badge-dot {
border-radius: 10px;
height: 12px;
width: 12px;
}