codecheck
95 строк · 2.0 Кб
1// core
2.p-badge {3display: inline-block;4border-radius: 10px;5text-align: center;6padding: 0 .5rem;7}
8
9.p-overlay-badge {10position: relative;11}
12
13.p-overlay-badge .p-badge {14position: absolute;15top: 0;16right: 0;17transform: translate(50%,-50%);18transform-origin: 100% 0;19margin: 0;20}
21
22.p-badge.p-badge-dot {23width: .5rem;24min-width: .5rem;25height: .5rem;26border-radius: 50%;27padding: 0;28}
29
30.p-badge-no-gutter {31padding: 0;32border-radius: 50%;33}
34
35// theme
36.p-badge {37background: $badgeBg;38color: $badgeTextColor;39font-size: $badgeFontSize;40font-weight: $badgeFontWeight;41min-width: $badgeMinWidth;42height: $badgeHeight;43line-height: $badgeHeight;44
45&.p-badge-secondary {46background-color: $secondaryButtonBg;47color: $secondaryButtonTextColor;48}49
50&.p-badge-success {51background-color: $successButtonBg;52color: $successButtonTextColor;53}54
55&.p-badge-info {56background-color: $infoButtonBg;57color: $infoButtonTextColor;58}59
60&.p-badge-warning {61background-color: $warningButtonBg;62color: $warningButtonTextColor;63}64
65&.p-badge-danger {66background-color: $dangerButtonBg;67color: $dangerButtonTextColor;68}69
70@if variable-exists(secondaryMessageBg) {71&.p-badge-secondary {72background-color: $secondaryButtonBg;73color: $secondaryButtonTextColor;74}75
76&.p-badge-contrast {77background-color: $contrastButtonBg;78color: $contrastButtonTextColor;79}80}81
82&.p-badge-lg {83font-size: 1.5 * $badgeFontSize;84min-width: 1.5 * $badgeMinWidth;85height: 1.5 * $badgeHeight;86line-height: 1.5 * $badgeHeight;87}88
89&.p-badge-xl {90font-size: 2 * $badgeFontSize;91min-width: 2 * $badgeMinWidth;92height: 2 * $badgeHeight;93line-height: 2 * $badgeHeight;94}95}