diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-07 18:37:09 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-07 18:37:09 +0100 |
| commit | 8f49d0cba610e4829e183e81e4126aba136dfccc (patch) | |
| tree | 528b2260c3c8aa2f5d544691797d4f8e7e008625 /tpl/objects/icon.pug | |
| parent | Update (diff) | |
| download | iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.tar.gz iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.tar.bz2 iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.zip | |
Added action-menu
Diffstat (limited to 'tpl/objects/icon.pug')
| -rw-r--r-- | tpl/objects/icon.pug | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tpl/objects/icon.pug b/tpl/objects/icon.pug index 0e444f9..494abf6 100644 --- a/tpl/objects/icon.pug +++ b/tpl/objects/icon.pug | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | mixin icon(id) | 1 | mixin icon(id) |
| 2 | - | 2 | - |
| 3 | let href = 'icons.svg#' + id | 3 | let href = 'icons.svg#' + id |
| 4 | let classes = attributes.class ? attributes.class : '' | 4 | let classes = { |
| 5 | 'o-icon': true | ||
| 6 | } | ||
| 7 | if (attributes.class) { | ||
| 8 | classes[attributes.class] = true; | ||
| 9 | } | ||
| 5 | 10 | ||
| 6 | svg(class=['o-icon', classes] width='1em' height='1em') | 11 | svg(class=classes width='1em' height='1em') |
| 7 | use(href=href) | 12 | use(href=href) |
