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 /tpl/objects | |
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 'tpl/objects')
-rw-r--r-- | tpl/objects/action-menu.pug | 2 | ||||
-rw-r--r-- | tpl/objects/menu.pug | 2 | ||||
-rw-r--r-- | tpl/objects/status-indicator.pug | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index b856df8..751e29d 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug | |||
@@ -11,7 +11,7 @@ mixin action-menu-item | |||
11 | .l-card__block.o-action-menu__icon-slot | 11 | .l-card__block.o-action-menu__icon-slot |
12 | if attributes.icon | 12 | if attributes.icon |
13 | if attributes.iconIsStatus | 13 | if attributes.iconIsStatus |
14 | +status-indicator(attributes.icon)(size=125 class='o-action-menu__icon') | 14 | +status-indicator(attributes.icon)(class='o-action-menu__icon') |
15 | else | 15 | else |
16 | +icon(attributes.icon)(class='o-action-menu__icon') | 16 | +icon(attributes.icon)(class='o-action-menu__icon') |
17 | .l-card__block.l-card__block--main | 17 | .l-card__block.l-card__block--main |
diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index e4180b8..0a654ce 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug | |||
@@ -18,7 +18,7 @@ mixin menu-item | |||
18 | if attributes.icon | 18 | if attributes.icon |
19 | .l-card__block.o-menu__icon-slot | 19 | .l-card__block.o-menu__icon-slot |
20 | if attributes.iconIsStatus | 20 | if attributes.iconIsStatus |
21 | +status-indicator(attributes.icon)(size=125 class='o-menu__icon') | 21 | +status-indicator(attributes.icon)(class='o-menu__icon') |
22 | else | 22 | else |
23 | +icon(attributes.icon)(class='o-menu__icon') | 23 | +icon(attributes.icon)(class='o-menu__icon') |
24 | .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) | 24 | .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) |
diff --git a/tpl/objects/status-indicator.pug b/tpl/objects/status-indicator.pug index 850348d..7ecb08a 100644 --- a/tpl/objects/status-indicator.pug +++ b/tpl/objects/status-indicator.pug | |||
@@ -1,9 +1,7 @@ | |||
1 | mixin status-indicator(status) | 1 | mixin status-indicator(status) |
2 | - | 2 | - |
3 | let size = attributes.size || 100; | ||
4 | let classes = { | 3 | let classes = { |
5 | 'o-status-indicator': true, | 4 | 'o-status-indicator': true, |
6 | ['o-status-indicator--' + size]: true, | ||
7 | } | 5 | } |
8 | classes['is-' + status] = true | 6 | classes['is-' + status] = true |
9 | if (attributes.class) { | 7 | if (attributes.class) { |