@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.38 kB
CSS
.e-badge {
background: #fafafa;
border-color: transparent;
border-radius: 0.25em;
-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: "Roboto", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif", "-apple-system", "BlinkMacSystemFont";
font-size: 0.75em;
font-weight: 500;
line-height: 1;
padding: 0.25em 0.4em 0.25em 0.4em;
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: #3f51b5;
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: #00b0ff;
color: #000;
}
.e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) {
background-color: #4caf50;
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: #ff6652;
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: #ff9800;
color: #fff;
}
.e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) {
background-color: #03a9f4;
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: #fff;
color: #000;
}
.e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) {
background-color: #212121;
color: #fff;
}
.e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover {
background-color: rgb(49.8319672131, 64.0696721311, 143.1680327869);
}
.e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover {
background-color: rgb(0, 140.8, 204);
}
.e-badge.e-badge-success[href]:not(.e-badge-ghost):hover {
background-color: rgb(60.5577689243, 139.4422310757, 63.7450199203);
}
.e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover {
background-color: rgb(255, 56.8959537572, 31);
}
.e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover {
background-color: rgb(204, 121.6, 0);
}
.e-badge.e-badge-info[href]:not(.e-badge-ghost):hover {
background-color: rgb(2.3805668016, 134.1052631579, 193.6194331984);
}
.e-badge.e-badge-light[href]:not(.e-badge-ghost):hover {
background-color: rgb(229.5, 229.5, 229.5);
}
.e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover {
background-color: rgb(7.5, 7.5, 7.5);
}
.e-badge.e-badge-primary[href].e-badge-ghost:hover {
border-color: rgb(43.2479508197, 55.6045081967, 124.2520491803);
color: rgb(43.2479508197, 55.6045081967, 124.2520491803);
}
.e-badge.e-badge-secondary[href].e-badge-ghost:hover {
border-color: rgb(0, 123.2, 178.5);
color: rgb(0, 123.2, 178.5);
}
.e-badge.e-badge-success[href].e-badge-ghost:hover {
border-color: rgb(52.8366533865, 121.6633466135, 55.6175298805);
color: rgb(52.8366533865, 121.6633466135, 55.6175298805);
}
.e-badge.e-badge-danger[href].e-badge-ghost:hover {
border-color: rgb(255, 34.3439306358, 5.5);
color: rgb(255, 34.3439306358, 5.5);
}
.e-badge.e-badge-warning[href].e-badge-ghost:hover {
border-color: rgb(178.5, 106.4, 0);
color: rgb(178.5, 106.4, 0);
}
.e-badge.e-badge-info[href].e-badge-ghost:hover {
border-color: rgb(2.0708502024, 116.6578947368, 168.4291497976);
color: rgb(2.0708502024, 116.6578947368, 168.4291497976);
}
.e-badge.e-badge-light[href].e-badge-ghost:hover {
border-color: rgb(216.75, 216.75, 216.75);
color: rgb(216.75, 216.75, 216.75);
}
.e-badge.e-badge-dark[href].e-badge-ghost:hover {
border-color: hsl(0, 0%, -2.0588235294%);
color: hsl(0, 0%, -2.0588235294%);
}
.e-badge.e-badge-ghost.e-badge-primary {
background-color: transparent;
border: 1px solid #3f51b5;
color: #3f51b5;
}
.e-badge.e-badge-ghost.e-badge-secondary {
background-color: transparent;
border: 1px solid #00b0ff;
color: #00b0ff;
}
.e-badge.e-badge-ghost.e-badge-success {
background-color: transparent;
border: 1px solid #4caf50;
color: #4caf50;
}
.e-badge.e-badge-ghost.e-badge-danger {
background-color: transparent;
border: 1px solid #ff6652;
color: #ff6652;
}
.e-badge.e-badge-ghost.e-badge-warning {
background-color: transparent;
border: 1px solid #ff9800;
color: #ff9800;
}
.e-badge.e-badge-ghost.e-badge-info {
background-color: transparent;
border: 1px solid #03a9f4;
color: #03a9f4;
}
.e-badge.e-badge-ghost.e-badge-light {
background-color: transparent;
border: 1px solid #fff;
color: #fff;
}
.e-badge.e-badge-ghost.e-badge-dark {
background-color: transparent;
border: 1px solid #212121;
color: #212121;
}