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) 6.42 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: "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: #0070f0; 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: #f0f0f0; color: #2a2a2a; } .e-badge.e-badge-success:not(.e-badge-ghost):not([href]), .e-badge.e-badge-success[href]:not(.e-badge-ghost) { background-color: #358238; color: #131313; } .e-badge.e-badge-danger:not(.e-badge-ghost):not([href]), .e-badge.e-badge-danger[href]:not(.e-badge-ghost) { background-color: #c12f2f; color: #131313; } .e-badge.e-badge-warning:not(.e-badge-ghost):not([href]), .e-badge.e-badge-warning[href]:not(.e-badge-ghost) { background-color: #f9ad37; color: #f0f0f0; } .e-badge.e-badge-info:not(.e-badge-ghost):not([href]), .e-badge.e-badge-info[href]:not(.e-badge-ghost) { background-color: #208090; color: #131313; } .e-badge.e-badge-light:not(.e-badge-ghost):not([href]), .e-badge.e-badge-light[href]:not(.e-badge-ghost) { background-color: #414141; color: #fff; } .e-badge.e-badge-dark:not(.e-badge-ghost):not([href]), .e-badge.e-badge-dark[href]:not(.e-badge-ghost) { background-color: #acacac; color: #131313; } .e-badge.e-badge-primary[href]:not(.e-badge-ghost):hover { background-color: rgb(0, 88.2, 189); } .e-badge.e-badge-secondary[href]:not(.e-badge-ghost):hover { background-color: rgb(214.5, 214.5, 214.5); } .e-badge.e-badge-success[href]:not(.e-badge-ghost):hover { background-color: rgb(38.2295081967, 93.7704918033, 40.393442623); } .e-badge.e-badge-danger[href]:not(.e-badge-ghost):hover { background-color: rgb(151.9875, 37.0125, 37.0125); } .e-badge.e-badge-warning[href]:not(.e-badge-ghost):hover { background-color: rgb(245.6310679612, 152.2912621359, 7.3689320388); } .e-badge.e-badge-info[href]:not(.e-badge-ghost):hover { background-color: rgb(22.7272727273, 90.9090909091, 102.2727272727); } .e-badge.e-badge-light[href]:not(.e-badge-ghost):hover { background-color: rgb(39.5, 39.5, 39.5); } .e-badge.e-badge-dark[href]:not(.e-badge-ghost):hover { background-color: rgb(146.5, 146.5, 146.5); } .e-badge.e-badge-primary[href].e-badge-ghost:hover { border-color: rgb(0, 76.3, 163.5); color: rgb(0, 76.3, 163.5); } .e-badge.e-badge-secondary[href].e-badge-ghost:hover { border-color: rgb(201.75, 201.75, 201.75); color: rgb(201.75, 201.75, 201.75); } .e-badge.e-badge-success[href].e-badge-ghost:hover { border-color: rgb(30.8442622951, 75.6557377049, 32.5901639344); color: rgb(30.8442622951, 75.6557377049, 32.5901639344); } .e-badge.e-badge-danger[href].e-badge-ghost:hover { border-color: rgb(131.48125, 32.01875, 32.01875); color: rgb(131.48125, 32.01875, 32.01875); } .e-badge.e-badge-warning[href].e-badge-ghost:hover { border-color: rgb(220.8737864078, 136.9417475728, 6.6262135922); color: rgb(220.8737864078, 136.9417475728, 6.6262135922); } .e-badge.e-badge-info[href].e-badge-ghost:hover { border-color: rgb(18.0909090909, 72.3636363636, 81.4090909091); color: rgb(18.0909090909, 72.3636363636, 81.4090909091); } .e-badge.e-badge-light[href].e-badge-ghost:hover { border-color: rgb(26.75, 26.75, 26.75); color: rgb(26.75, 26.75, 26.75); } .e-badge.e-badge-dark[href].e-badge-ghost:hover { border-color: rgb(133.75, 133.75, 133.75); color: rgb(133.75, 133.75, 133.75); } .e-badge.e-badge-ghost.e-badge-primary { background-color: transparent; border: 1px solid #0070f0; color: #0070f0; } .e-badge.e-badge-ghost.e-badge-secondary { background-color: transparent; border: 1px solid #f0f0f0; color: #f0f0f0; } .e-badge.e-badge-ghost.e-badge-success { background-color: transparent; border: 1px solid #358238; color: #358238; } .e-badge.e-badge-ghost.e-badge-danger { background-color: transparent; border: 1px solid #c12f2f; color: #c12f2f; } .e-badge.e-badge-ghost.e-badge-warning { background-color: transparent; border: 1px solid #f9ad37; color: #f9ad37; } .e-badge.e-badge-ghost.e-badge-info { background-color: transparent; border: 1px solid #208090; color: #208090; } .e-badge.e-badge-ghost.e-badge-light { background-color: transparent; border: 1px solid #414141; color: #414141; } .e-badge.e-badge-ghost.e-badge-dark { background-color: transparent; border: 1px solid #acacac; color: #acacac; }