@import './mixins/mixins.scss'; @import './themes/vars.scss'; @mixin badge-type-mixin ($type) { @include m($type + '-type') { @include b(badge-sup) { background-color: rgba(9, 133, 91, 1); } } } @include b(badge) { display: inline-block; position: relative; vertical-align: middle; @include m(dot) { @include b(badge-sup) { height: 8px; width: 8px; padding: 0; min-width: 8px; left: calc(100% - 4px); bottom: calc(100% - 4px); } } @include badge-type-mixin('info'); @include badge-type-mixin('success'); @include badge-type-mixin('warning'); @include badge-type-mixin('error'); } @include b(badge-sup) { @include fade-in-scale-up-transition(badge, left bottom); color: white; user-select: none; position: absolute; height: 18px; line-height: 18px; border-radius: 9px; background-color: rgba(186, 45, 67, 1); padding: 0 6px; text-align: center; font-size: 12px; left: calc(100% - 8px); bottom: calc(100% - 8px); font-weight: bold; }