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.

287 lines (285 loc) 7.04 kB
.e-badge { background: #f9fafb; 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: #374151; display: inline-block; font-family: "Inter"; font-size: 10px; font-weight: 500; line-height: 1; padding: 4px; height: 18px; 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: 4px 10px 4px 10px; } .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: 4px 10px 4px 10px; width: auto; font-size: 10px; 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: 18px; line-height: 1; min-width: 0; padding: 4px 3px 4px 3px; width: 18px; } .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: 0 1px 2px 0 rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 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: #4f46e5; 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: #f9fafb; color: #374151; } .e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) { background-color: #dcfce7; color: #15803d; } .e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) { background-color: #fee2e2; color: #dc2626; } .e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) { background-color: #ffedd5; color: #c2410c; } .e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) { background-color: #cffafe; color: #0e7490; } .e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) { background-color: #f3f4f6; color: #374151; } .e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) { background-color: #6b7280; color: #f3f4f6; } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { background-color: #291fd9; } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { background-color: #dae1e7; } .e-badge.e-badge-success[href]:not(.e-badge-ghost):hover { background-color: #adf8c7; } .e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover { background-color: #fcb1b1; } .e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover { background-color: #ffd7a2; } .e-badge.e-badge-info[href]:not(.e-badge-ghost):hover { background-color: #9df5fd; } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { background-color: #d6d9e0; } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { background-color: #545964; } .e-badge.e-badge-primary[href].e-badge-ghost:hover { border-color: #251bc3; color: #251bc3; } .e-badge.e-badge-secondary[href].e-badge-ghost:hover { border-color: #cbd4dc; color: #cbd4dc; } .e-badge.e-badge-success[href].e-badge-ghost:hover { border-color: #96f6b7; color: #96f6b7; } .e-badge.e-badge-danger[href].e-badge-ghost:hover { border-color: #fb9898; color: #fb9898; } .e-badge.e-badge-warning[href].e-badge-ghost:hover { border-color: #ffcc89; color: #ffcc89; } .e-badge.e-badge-info[href].e-badge-ghost:hover { border-color: #84f2fc; color: #84f2fc; } .e-badge.e-badge-light[href].e-badge-ghost:hover { border-color: #c7ccd5; color: #c7ccd5; } .e-badge.e-badge-dark[href].e-badge-ghost:hover { border-color: #484d56; color: #484d56; } .e-badge.e-badge-ghost.e-badge-primary { background-color: transparent; border: 1px solid #4f46e5; color: #4f46e5; } .e-badge.e-badge-ghost.e-badge-secondary { background-color: transparent; border: 1px solid #374151; color: #374151; border: 1px solid #f9fafb; color: #f9fafb; } .e-badge.e-badge-ghost.e-badge-success { background-color: transparent; border: 1px solid #15803d; color: #15803d; border: 1px solid #dcfce7; color: #dcfce7; } .e-badge.e-badge-ghost.e-badge-danger { background-color: transparent; border: 1px solid #dc2626; color: #dc2626; border: 1px solid #fee2e2; color: #fee2e2; } .e-badge.e-badge-ghost.e-badge-warning { background-color: transparent; border: 1px solid #c2410c; color: #c2410c; } .e-badge.e-badge-ghost.e-badge-info { background-color: transparent; border: 1px solid #0e7490; color: #0e7490; } .e-badge.e-badge-ghost.e-badge-light { background-color: transparent; border: 1px solid #374151; color: #374151; border: 1px solid #f3f4f6; color: #f3f4f6; } .e-badge.e-badge-ghost.e-badge-dark { background-color: transparent; border: 1px solid #6b7280; color: #6b7280; } .e-bigger .e-badge, .e-badge.e-bigger { font-size: 12px; font-weight: 400; border-radius: 4px; height: 20px; line-height: 18px; padding: 1px 6px; } .e-bigger .e-badge.e-badge-pill, .e-badge.e-bigger.e-badge-pill { border-radius: 10px; padding: 1px 10px; } .e-bigger .e-badge.e-badge-ghost, .e-badge.e-bigger.e-badge-ghost { padding: 0 10px; } .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: 34px; padding: 1px 10px; } .e-bigger .e-badge.e-badge-circle, .e-badge.e-bigger.e-badge-circle { border-radius: 10px; min-width: 0; padding: 1px 3px; width: 20px; } .e-bigger .e-badge.e-badge-dot, .e-badge.e-bigger.e-badge-dot { border-radius: 10px; height: 12px; width: 12px; }