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: #1b2430; 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: #d1d5db; 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: #22d3ee; 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: #1b2430; color: #d1d5db; } .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: #22c55e; } .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: #f87171; } .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: #f97316; } .e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) { background-color: #e0f2fe; color: #38bdf8; } .e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) { background-color: #374151; color: #d1d5db; } .e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) { background-color: #9ca3af; color: #374151; } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { background-color: #10b4cd; } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { background-color: #090c10; } .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: #afddfc; } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { background-color: #222933; } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { background-color: #808998; } .e-badge.e-badge-primary[href].e-badge-ghost:hover { border-color: #0e9fb6; color: #0e9fb6; } .e-badge.e-badge-secondary[href].e-badge-ghost:hover { border-color: black; color: black; } .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: #96d3fc; color: #96d3fc; } .e-badge.e-badge-light[href].e-badge-ghost:hover { border-color: #181c23; color: #181c23; } .e-badge.e-badge-dark[href].e-badge-ghost:hover { border-color: #727c8d; color: #727c8d; } .e-badge.e-badge-ghost.e-badge-primary { background-color: transparent; border: 1px solid #22d3ee; color: #22d3ee; } .e-badge.e-badge-ghost.e-badge-secondary { background-color: transparent; border: 1px solid #d1d5db; color: #d1d5db; border: 1px solid #1b2430; color: #1b2430; } .e-badge.e-badge-ghost.e-badge-success { background-color: transparent; border: 1px solid #22c55e; color: #22c55e; border: 1px solid #dcfce7; color: #dcfce7; } .e-badge.e-badge-ghost.e-badge-danger { background-color: transparent; border: 1px solid #f87171; color: #f87171; border: 1px solid #fee2e2; color: #fee2e2; } .e-badge.e-badge-ghost.e-badge-warning { background-color: transparent; border: 1px solid #f97316; color: #f97316; } .e-badge.e-badge-ghost.e-badge-info { background-color: transparent; border: 1px solid #38bdf8; color: #38bdf8; } .e-badge.e-badge-ghost.e-badge-light { background-color: transparent; border: 1px solid #d1d5db; color: #d1d5db; border: 1px solid #374151; color: #374151; } .e-badge.e-badge-ghost.e-badge-dark { background-color: transparent; border: 1px solid #9ca3af; color: #9ca3af; } .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; }