88 lines
1.8 KiB
JavaScript
88 lines
1.8 KiB
JavaScript
|
export default {
|
||
|
css: `
|
||
|
.p-badge {
|
||
|
display: inline-flex;
|
||
|
border-radius: 10px;
|
||
|
justify-content: center;
|
||
|
padding: 0 0.5rem;
|
||
|
background: var(--p-primary-color);
|
||
|
color: var(--p-primary-color-inverse);
|
||
|
font-size: 0.75rem;
|
||
|
font-weight: 700;
|
||
|
min-width: 1.5rem;
|
||
|
height: 1.5rem;
|
||
|
line-height: 1.5rem;
|
||
|
}
|
||
|
|
||
|
.p-overlay-badge {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.p-overlay-badge .p-badge {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
transform: translate(50%, -50%);
|
||
|
transform-origin: 100% 0;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.p-badge-dot {
|
||
|
width: 0.5rem;
|
||
|
min-width: 0.5rem;
|
||
|
height: 0.5rem;
|
||
|
border-radius: 50%;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
.p-badge-no-gutter {
|
||
|
padding: 0;
|
||
|
border-radius: 50%;
|
||
|
}
|
||
|
|
||
|
.p-badge-secondary {
|
||
|
background-color: var(--p-dark-surface-800, var(--p-surface-100));
|
||
|
color: var(--p-dark-surface-300, var(--p-surface-600));
|
||
|
}
|
||
|
|
||
|
.p-badge-success {
|
||
|
background-color: var(--p-dark-green-400, var(--p-green-500));
|
||
|
color: var(--p-dark-green-950, var(--p-surface-0));
|
||
|
}
|
||
|
|
||
|
.p-badge-info {
|
||
|
background-color:var(--p-dark-sky-400, var(--p-sky-500));
|
||
|
color: var(--p-dark-sky-950, var(--p-surface-0));
|
||
|
}
|
||
|
|
||
|
.p-badge-warning {
|
||
|
background-color: var(--p-dark-orange-400, var(--p-orange-500));
|
||
|
color: var(--p-dark-orange-950, var(--p-surface-0));
|
||
|
}
|
||
|
|
||
|
.p-badge-danger {
|
||
|
background-color:var(--p-dark-red-400, var(--p-red-500));
|
||
|
color: var(--p-dark-red-950, var(--p-surface-0));
|
||
|
}
|
||
|
|
||
|
.p-badge-contrast {
|
||
|
background-color: var(--p-dark-surface-0, var(--p-surface-950));
|
||
|
color: var(--p-dark-surface-950, var(--p-surface-0));
|
||
|
}
|
||
|
|
||
|
.p-badge-lg {
|
||
|
font-size: 1.125rem;
|
||
|
min-width: 2.25rem;
|
||
|
height: 2.25rem;
|
||
|
line-height: 2.25rem;
|
||
|
}
|
||
|
|
||
|
.p-badge-xl {
|
||
|
font-size: 1.5rem;
|
||
|
min-width: 3rem;
|
||
|
height: 3rem;
|
||
|
line-height: 3rem;
|
||
|
}
|
||
|
`
|
||
|
};
|