diff options
author | Volpeon <git@volpeon.ink> | 2022-02-15 12:17:16 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-15 12:17:16 +0100 |
commit | 0ba5a9d7372d80c7f31ddf14d1805de64dc631c7 (patch) | |
tree | 75054d4446dc237449424e9e000f8a57094a6159 /src/objects/_status-indicator.scss | |
parent | Smaller status indicator (diff) | |
download | iro-design-0ba5a9d7372d80c7f31ddf14d1805de64dc631c7.tar.gz iro-design-0ba5a9d7372d80c7f31ddf14d1805de64dc631c7.tar.bz2 iro-design-0ba5a9d7372d80c7f31ddf14d1805de64dc631c7.zip |
Better indicator size handling
Diffstat (limited to 'src/objects/_status-indicator.scss')
-rw-r--r-- | src/objects/_status-indicator.scss | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/objects/_status-indicator.scss b/src/objects/_status-indicator.scss index 6bcb547..b316f69 100644 --- a/src/objects/_status-indicator.scss +++ b/src/objects/_status-indicator.scss | |||
@@ -4,8 +4,7 @@ | |||
4 | @include iro.props-namespace('status-indicator') { | 4 | @include iro.props-namespace('status-indicator') { |
5 | @include iro.props-store(( | 5 | @include iro.props-store(( |
6 | --dims: ( | 6 | --dims: ( |
7 | --100: fn.global-dim(--size --100), | 7 | --size: fn.global-dim(--size --125), |
8 | --125: fn.global-dim(--size --125), | ||
9 | ), | 8 | ), |
10 | ), 'dims'); | 9 | ), 'dims'); |
11 | 10 | ||
@@ -20,17 +19,11 @@ | |||
20 | 19 | ||
21 | @include iro.bem-object(iro.props-namespace()) { | 20 | @include iro.bem-object(iro.props-namespace()) { |
22 | display: inline-block; | 21 | display: inline-block; |
23 | width: fn.dim(--100); | 22 | width: fn.dim(--size); |
24 | height: fn.dim(--100); | 23 | height: fn.dim(--size); |
25 | border-radius: fn.dim(--100); | 24 | border-radius: 10em; |
26 | background-color: fn.color(--default); | 25 | background-color: fn.color(--default); |
27 | 26 | ||
28 | @include iro.bem-modifier('125') { | ||
29 | width: fn.dim(--125); | ||
30 | height: fn.dim(--125); | ||
31 | border-radius: fn.dim(--125); | ||
32 | } | ||
33 | |||
34 | @each $color in 'green' 'yellow' 'red' { | 27 | @each $color in 'green' 'yellow' 'red' { |
35 | @include iro.bem-is($color) { | 28 | @include iro.bem-is($color) { |
36 | background-color: fn.color(--#{$color}); | 29 | background-color: fn.color(--#{$color}); |