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.

344 lines (336 loc) 11.1 kB
/* stylelint-disable */ .e-badge.e-badge-primary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-primary[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-utility-primary-light); } .e-badge.e-badge-secondary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-secondary[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-border-primary); } .e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-utility-success-lighter); } .e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-utility-danger-lighter); } .e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-utility-warning-lighter); } .e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-utility-info-lighter); } .e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-bg-secondary); } .e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) { border: 1px solid var(--color-sf-text-tertiary); } .e-badge.e-badge-ghost.e-badge-primary { border: 1px solid var(--color-sf-brand-primary) !important; color: var(--color-sf-brand-primary) !important; } .e-badge.e-badge-ghost.e-badge-success { border: 1px solid var(--color-sf-utility-success-lighter) !important; color: var(--color-sf-utility-success) !important; } .e-badge.e-badge-ghost.e-badge-danger { border: 1px solid var(--color-sf-utility-danger-lighter) !important; color: var(--color-sf-utility-danger) !important; } .e-badge.e-badge-ghost.e-badge-warning { border: 1px solid var(--color-sf-utility-warning-lighter) !important; color: var(--color-sf-utility-warning) !important; } .e-badge.e-badge-ghost.e-badge-info { border: 1px solid var(--color-sf-utility-info-lighter) !important; color: var(--color-sf-utility-info) !important; } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-success[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-info[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-primary[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-secondary[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-success[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-danger[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-warning[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-info[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-light[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge.e-badge-dark[href].e-badge-ghost:hover { background-color: var(--color-sf-bg-secondary) !important; } .e-badge { background: var(--color-sf-bg-primary-alt); border-color: transparent; border-radius: 6px; -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: var(--color-sf-text-secondary); display: inline-block; font-family: "Inter"; font-size: 12px; font-weight: 500 !important; line-height: 1.2; padding: 4px 6px; 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: 12px; } .e-badge.e-badge-notification { border-radius: 12px; height: 22px; line-height: 1.2; min-width: 32px; padding: 4px 6px 4px 6px; width: auto; font-size: 12px; position: absolute; top: -10px; left: 100%; } .e-badge.e-badge-notification.e-badge-ghost { line-height: 1.2; } .e-badge.e-badge-circle { border-radius: 12px; height: 22px; line-height: 1.2; min-width: 0; padding: 4px 3px 4px 3px; width: 22px; } .e-badge.e-badge-circle.e-badge-ghost { line-height: 1.2; 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.2; min-width: 0; padding: 0; width: 10px; -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05); box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 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: 0.9; position: relative; top: -2px; } button .e-badge.e-badge-circle { height: 22px; line-height: 1.2; width: 22px; } button .e-badge.e-badge-circle.e-badge-ghost { line-height: 1.2; } .e-badge.e-badge-primary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-primary[href]:not(.e-badge-ghost) { background-color: var(--color-sf-utility-primary-lighter); color: var(--color-sf-utility-primary-alt); } .e-badge.e-badge-secondary:not(.e-badge-ghost):not([href]), .e-badge.e-badge-secondary[href]:not(.e-badge-ghost) { background-color: var(--color-sf-bg-secondary); color: var(--color-sf-text-secondary); } .e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) { background-color: var(--color-sf-utility-success-light); color: var(--color-sf-utility-success); } .e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) { background-color: var(--color-sf-utility-danger-light); color: var(--color-sf-utility-danger); } .e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) { background-color: var(--color-sf-utility-warning-light); color: var(--color-sf-utility-warning); } .e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) { background-color: var(--color-sf-utility-info-light); color: var(--color-sf-utility-info); } .e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) { background: var(--color-sf-bg-secondary); color: var(--color-sf-text-primary); } .e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) { background-color: var(--color-sf-text-tertiary); color: var(--color-sf-bg-primary-alt); } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-success[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-info[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { text-decoration: underline; } .e-badge.e-badge-ghost.e-badge-primary { background-color: transparent; border: 1px solid var(--color-sf-utility-primary-lighter); color: var(--color-sf-utility-primary-lighter); } .e-badge.e-badge-ghost.e-badge-secondary { background-color: transparent; border: 1px solid var(--color-sf-text-secondary); color: var(--color-sf-text-secondary); border: 1px solid var(--color-sf-bg-secondary); color: var(--color-sf-bg-secondary); } .e-badge.e-badge-ghost.e-badge-success { background-color: transparent; border: 1px solid var(--color-sf-utility-success-light); color: var(--color-sf-utility-success-light); } .e-badge.e-badge-ghost.e-badge-danger { background-color: transparent; border: 1px solid var(--color-sf-utility-danger-light); color: var(--color-sf-utility-danger-light); } .e-badge.e-badge-ghost.e-badge-warning { background-color: transparent; border: 1px solid var(--color-sf-utility-warning-light); color: var(--color-sf-utility-warning-light); } .e-badge.e-badge-ghost.e-badge-info { background-color: transparent; border: 1px solid var(--color-sf-utility-info-light); color: var(--color-sf-utility-info-light); } .e-badge.e-badge-ghost.e-badge-light { background-color: transparent; border: 1px solid var(--color-sf-text-primary); color: var(--color-sf-text-primary); border: 1px solid var(--color-sf-bg-secondary); color: var(--color-sf-bg-secondary); } .e-badge.e-badge-ghost.e-badge-dark { background-color: transparent; border: 1px solid var(--color-sf-text-tertiary); color: var(--color-sf-text-tertiary); } .e-bigger .e-badge, .e-badge.e-bigger { font-size: 14px; font-weight: 500; border-radius: 6px; height: 24px; line-height: 20px; padding: 1px 6px; } .e-bigger .e-badge.e-badge-pill, .e-badge.e-bigger.e-badge-pill { border-radius: 12px; 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: 12px; min-width: 34px; padding: 1px 10px; } .e-bigger .e-badge.e-badge-circle, .e-badge.e-bigger.e-badge-circle { border-radius: 12px; min-width: 0; padding: 1px 3px; width: 24px; } .e-bigger .e-badge.e-badge-dot, .e-badge.e-bigger.e-badge-dot { border-radius: 10px; height: 14px; width: 14px; }