From 9f60b04c706c5c05085512597db9c755a241dc40 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 20 Jun 2024 09:18:31 +0200 Subject: Update --- tpl/objects/list-group.pug | 8 +++++++- tpl/views/list-group.pug | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/objects/list-group.pug b/tpl/objects/list-group.pug index ad3c212..e9db236 100644 --- a/tpl/objects/list-group.pug +++ b/tpl/objects/list-group.pug @@ -1,5 +1,11 @@ mixin list-group - .o-list-group + - + let classes = { + 'o-list-group': true, + 'o-list-group--horizontal': attributes.horizontal, + } + + div(class=classes) block mixin list-group-item diff --git a/tpl/views/list-group.pug b/tpl/views/list-group.pug index 9acef31..9c6b132 100644 --- a/tpl/views/list-group.pug +++ b/tpl/views/list-group.pug @@ -13,3 +13,10 @@ mixin view-list-group +list-group-item(interactive=true)= 'Second item' +list-group-item(interactive=true)= 'Third item' +list-group-item(interactive=true)= 'Fourth item' + + .c-box + +list-group(horizontal=true) + +list-group-item(interactive=true)= 'First item' + +list-group-item(interactive=true)= 'Second item' + +list-group-item(interactive=true)= 'Third item' + +list-group-item(interactive=true)= 'Fourth item' -- cgit v1.2.3-70-g09d2