diff options
author | Volpeon <git@volpeon.ink> | 2022-02-15 12:03:05 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-15 12:03:05 +0100 |
commit | 008d65b383f3eb8970e0fff994323445efac03ca (patch) | |
tree | 4b2bb7fd0523332f4bb8a255561254533037911d /tpl/objects | |
parent | Fix text field rounding (diff) | |
download | iro-design-008d65b383f3eb8970e0fff994323445efac03ca.tar.gz iro-design-008d65b383f3eb8970e0fff994323445efac03ca.tar.bz2 iro-design-008d65b383f3eb8970e0fff994323445efac03ca.zip |
Smaller status indicator
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, 5 insertions, 3 deletions
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 751e29d..b856df8 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)(class='o-action-menu__icon') | 14 | +status-indicator(attributes.icon)(size=125 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 0a654ce..e4180b8 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)(class='o-menu__icon') | 21 | +status-indicator(attributes.icon)(size=125 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 7ecb08a..850348d 100644 --- a/tpl/objects/status-indicator.pug +++ b/tpl/objects/status-indicator.pug | |||
@@ -1,7 +1,9 @@ | |||
1 | mixin status-indicator(status) | 1 | mixin status-indicator(status) |
2 | - | 2 | - |
3 | let size = attributes.size || 100; | ||
3 | let classes = { | 4 | let classes = { |
4 | 'o-status-indicator': true, | 5 | 'o-status-indicator': true, |
6 | ['o-status-indicator--' + size]: true, | ||
5 | } | 7 | } |
6 | classes['is-' + status] = true | 8 | classes['is-' + status] = true |
7 | if (attributes.class) { | 9 | if (attributes.class) { |