@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.45 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: "Helvetica Neue", "Helvetica", "Arial", 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: #317ab9;
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: #777;
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: #218739;
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: #dc3243;
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: #aa6708;
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: #1b809e;
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: #333;
}
.e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) {
background-color: #333;
color: #fff;
}
.e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover {
background-color: rgb(38.3205128205, 95.4102564103, 144.6794871795);
}
.e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover {
background-color: rgb(93.5, 93.5, 93.5);
}
.e-badge.e-badge-success[href]:not(.e-badge-ghost):hover {
background-color: rgb(22.9821428571, 94.0178571429, 39.6964285714);
}
.e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover {
background-color: rgb(187.0625, 31.9375, 47.45);
}
.e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover {
background-color: rgb(121.2921348315, 73.4887640449, 5.7078651685);
}
.e-badge.e-badge-info[href]:not(.e-badge-ghost):hover {
background-color: rgb(19.5567567568, 92.7135135135, 114.4432432432);
}
.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(25.5, 25.5, 25.5);
}
.e-badge.e-badge-primary[href].e-badge-ghost:hover {
border-color: rgb(32.9807692308, 82.1153846154, 124.5192307692);
color: rgb(32.9807692308, 82.1153846154, 124.5192307692);
}
.e-badge.e-badge-secondary[href].e-badge-ghost:hover {
border-color: rgb(80.75, 80.75, 80.75);
color: rgb(80.75, 80.75, 80.75);
}
.e-badge.e-badge-success[href].e-badge-ghost:hover {
border-color: rgb(17.9732142857, 73.5267857143, 31.0446428571);
color: rgb(17.9732142857, 73.5267857143, 31.0446428571);
}
.e-badge.e-badge-danger[href].e-badge-ghost:hover {
border-color: rgb(165.28125, 28.21875, 41.925);
color: rgb(165.28125, 28.21875, 41.925);
}
.e-badge.e-badge-warning[href].e-badge-ghost:hover {
border-color: rgb(96.9382022472, 58.7331460674, 4.5617977528);
color: rgb(96.9382022472, 58.7331460674, 4.5617977528);
}
.e-badge.e-badge-info[href].e-badge-ghost:hover {
border-color: rgb(15.8351351351, 75.0702702703, 92.6648648649);
color: rgb(15.8351351351, 75.0702702703, 92.6648648649);
}
.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: rgb(12.75, 12.75, 12.75);
color: rgb(12.75, 12.75, 12.75);
}
.e-badge.e-badge-ghost.e-badge-primary {
background-color: transparent;
border: 1px solid #317ab9;
color: #317ab9;
}
.e-badge.e-badge-ghost.e-badge-secondary {
background-color: transparent;
border: 1px solid #777;
color: #777;
}
.e-badge.e-badge-ghost.e-badge-success {
background-color: transparent;
border: 1px solid #218739;
color: #218739;
}
.e-badge.e-badge-ghost.e-badge-danger {
background-color: transparent;
border: 1px solid #dc3243;
color: #dc3243;
}
.e-badge.e-badge-ghost.e-badge-warning {
background-color: transparent;
border: 1px solid #aa6708;
color: #aa6708;
}
.e-badge.e-badge-ghost.e-badge-info {
background-color: transparent;
border: 1px solid #1b809e;
color: #1b809e;
}
.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 #333;
color: #333;
}