| .evolutionBadge { |
| |
| |
| @_evolution-green: #33B343; |
|
|
| display: inline-flex; |
| align-items: center; |
| padding-left: 2px; |
| padding-right: 6px; |
| border-radius: 40px; |
| font-size: 12px; |
| font-variant: tabular-nums; |
| line-height: 20px; |
| white-space: nowrap; |
| vertical-align: middle; |
| height: 20px; |
|
|
| .evolutionBadge__icon { |
| display: inline-flex; |
| flex: none; |
| width: 16px; |
| height: 16px; |
|
|
| svg { |
| display: block; |
| width: 100%; |
| height: 100%; |
| } |
| } |
|
|
| &.evolutionBadge--positive { |
| color: @_evolution-green; |
| |
| |
| background-color: lighten(@_evolution-green, 50%); |
| } |
|
|
| &.evolutionBadge--negative { |
| |
| |
| |
| color: @theme-color-base-series; |
| background-color: color-mix(in srgb, @theme-color-base-series 5%, white); |
| } |
|
|
| &.evolutionBadge--neutral { |
| |
| |
| color: @theme-color-text-lighter; |
| background-color: color-mix(in srgb, @theme-color-text-lighter 5%, white); |
| } |
|
|
| |
| |
| .inDarkMode({ |
| &.evolutionBadge--positive { |
| |
| |
| color: lighten(@_evolution-green, 10%); |
| background-color: darken(@_evolution-green, 28%); |
| } |
|
|
| &.evolutionBadge--negative { |
| |
| |
| background-color: color-mix(in srgb, @theme-color-base-series 18%, black); |
| } |
|
|
| &.evolutionBadge--neutral { |
| background-color: color-mix(in srgb, @theme-color-text-lighter 14%, black); |
| } |
| }); |
| } |
|
|