UNPKG

@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) 5.75 kB
.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: "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.3em 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: 1.1; min-width: 24px; padding: 0.25em 0.4em 0.3em 0.4em; width: auto; font-size: 12px; position: absolute; top: -10px; left: 100%; } .e-badge.e-badge-notification.e-badge-ghost { line-height: 0.9; } .e-badge.e-badge-circle { border-radius: 50%; height: 1.834em; line-height: 1.8em; 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: #ffd939; color: #000; } .e-badge.e-badge-secondary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-secondary[href]:not(.e-badge-ghost) { background-color: #bfbfbf; 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: #166600; 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: #b30900; 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: #944000; 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: #0056b3; 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: #1a1a1a; color: #fff; } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { background-color: #ffcf06; } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { background-color: #a6a6a6; } .e-badge.e-badge-success[href]:not(.e-badge-ghost):hover { background-color: #0b3300; } .e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover { background-color: #800600; } .e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover { background-color: #612a00; } .e-badge.e-badge-info[href]:not(.e-badge-ghost):hover { background-color: #003d80; } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { background-color: #e6e6e6; } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { background-color: #010101; } .e-badge.e-badge-primary[href].e-badge-ghost:hover { border-color: #ecbe00; color: #ecbe00; } .e-badge.e-badge-secondary[href].e-badge-ghost:hover { border-color: #999999; color: #999999; } .e-badge.e-badge-success[href].e-badge-ghost:hover { border-color: #061a00; color: #061a00; } .e-badge.e-badge-danger[href].e-badge-ghost:hover { border-color: #670500; color: #670500; } .e-badge.e-badge-warning[href].e-badge-ghost:hover { border-color: #481f00; color: #481f00; } .e-badge.e-badge-info[href].e-badge-ghost:hover { border-color: #003167; color: #003167; } .e-badge.e-badge-light[href].e-badge-ghost:hover { border-color: #d9d9d9; color: #d9d9d9; } .e-badge.e-badge-dark[href].e-badge-ghost:hover { border-color: black; color: black; } .e-badge.e-badge-ghost.e-badge-primary { background-color: transparent; border: 1px solid #ffd939; color: #ffd939; } .e-badge.e-badge-ghost.e-badge-secondary { background-color: transparent; border: 1px solid #bfbfbf; color: #bfbfbf; } .e-badge.e-badge-ghost.e-badge-success { background-color: transparent; border: 1px solid #166600; color: #166600; } .e-badge.e-badge-ghost.e-badge-danger { background-color: transparent; border: 1px solid #b30900; color: #b30900; } .e-badge.e-badge-ghost.e-badge-warning { background-color: transparent; border: 1px solid #944000; color: #944000; } .e-badge.e-badge-ghost.e-badge-info { background-color: transparent; border: 1px solid #0056b3; color: #0056b3; } .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 #1a1a1a; color: #1a1a1a; }