| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- @import "./variables.scss";
- $module: #{$prefix}-badge;
- .#{$module} {
- position: relative;
- display: inline-block;
- &-dot {
- box-sizing: border-box;
- width: $width-badge_dot;
- height: $height-badge_dot;
- border-radius: $radius-badge_dot;
- background-color: $color-badge_default-bg-default;
- border: $width-badge-border $color-badge_default-border-default solid;
- z-index: $z-badge;
- }
- &-count {
- box-sizing: border-box;
- height: $height-badge_count;
- min-width: $height-badge_count;
- border-radius: $height-badge_count * 0.5;
- padding: $spacing-badge_count-paddingY $spacing-badge_count-paddingX;
- background-color: $color-badge_default-bg-default;
- border: $width-badge-border $color-badge_default-border-default solid;
- z-index: $z-badge;
- text-align: center;
- @include font-size-small;
- font-weight: $font-size-regular;
- color: $color-badge_default-text-default;
- }
- &-rightTop {
- position: absolute;
- top: 0;
- right: 0;
- transform: translate(50%, -50%);
- transform-origin: 100% 0%;
- }
- &-rightBottom {
- position: absolute;
- right: 0;
- bottom: 0;
- transform: translate(50%, 50%);
- transform-origin: 100% 0%;
- }
- &-leftTop {
- position: absolute;
- top: 0;
- left: 0;
- transform: translate(-50%, -50%);
- transform-origin: 100% 0%;
- }
- &-leftBottom {
- position: absolute;
- bottom: 0;
- left: 0;
- transform: translate(-50%, 50%);
- transform-origin: 100% 0%;
- }
- &-custom {
- display: flex;
- }
- &-block {
- position: static;
- display: inline-block;
- }
- &-light::before {
- content: "";
- display: block;
- width: 100%;
- height: 100%;
- border-radius: inherit;
- position: absolute;
- top: 0;
- left: 0;
- background-color: $color-badge_default_light-bg-default;
- z-index: $z-badge_light-bg;
- }
- &-light::after {
- content: "";
- display: block;
- width: 100%;
- height: 100%;
- border-radius: inherit;
- position: absolute;
- top: 0;
- left: 0;
- background-color: inherit;
- z-index: $z-badge_light-bg;
- }
- &-primary {
- &.#{$module}-solid {
- background-color: $color-badge_primary_solid-bg-default;
- }
- &.#{$module}-light {
- background-color: $color-badge_primary_light-bg-default;
- color: $color-badge_primary_light-text-default;
- }
- &.#{$module}-inverted {
- color: $color-badge_primary_inverted-text-default;
- }
- }
- &-secondary {
- &.#{$module}-solid {
- background-color: $color-badge_secondary_solid-bg-default;
- }
- &.#{$module}-light {
- background-color: $color-badge_secondary_light-bg-default;
- color: $color-badge_secondary_light-text-default;
- }
- &.#{$module}-inverted {
- color: $color-badge_secondary_inverted-text-default;
- }
- }
- &-tertiary {
- &.#{$module}-solid {
- background-color: $color-badge_tertiary_solid-bg-default;
- }
- &.#{$module}-light {
- background-color: $color-badge_tertiary_light-bg-default;
- color: $color-badge_tertiary_light-text-default;
- }
- &.#{$module}-inverted {
- color: $color-badge_tertiary_inverted-text-default;
- }
- }
- &-danger {
- &.#{$module}-solid {
- background-color: $color-badge_danger_solid-bg-default;
- }
- &.#{$module}-light {
- background-color: $color-badge_danger_light-bg-default;
- color: $color-badge_danger_light-text-default;
- }
- &.#{$module}-inverted {
- color: $color-badge_danger_inverted-text-default;
- }
- }
- &-warning {
- &.#{$module}-solid {
- background-color: $color-badge_warning_solid-bg-default;
- }
- &.#{$module}-light {
- background-color: $color-badge_warning_light-bg-default;
- color: $color-badge_warning_light-text-default;
- }
- &.#{$module}-inverted {
- color: $color-badge_warning_inverted-text-default;
- }
- }
- }
- @import "./rtl.scss";
|