summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-10-18 18:09:33 +0200
committerVolpeon <git@volpeon.ink>2023-10-18 18:09:33 +0200
commita6b0d8432b737d974a22781b8a210f7c75977bde (patch)
tree4dc47778234493099af8019606509740a8228527 /tpl
parentUpdate (diff)
downloadiro-design-a6b0d8432b737d974a22781b8a210f7c75977bde.tar.gz
iro-design-a6b0d8432b737d974a22781b8a210f7c75977bde.tar.bz2
iro-design-a6b0d8432b737d974a22781b8a210f7c75977bde.zip
Improved bubble group customization
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/bubble-group.pug2
-rw-r--r--tpl/objects/bubble.pug2
-rw-r--r--tpl/views/bubble-group.pug2
3 files changed, 4 insertions, 2 deletions
diff --git a/tpl/objects/bubble-group.pug b/tpl/objects/bubble-group.pug
index e6a6d19..4fcb1a4 100644
--- a/tpl/objects/bubble-group.pug
+++ b/tpl/objects/bubble-group.pug
@@ -3,6 +3,8 @@ mixin bubble-group(user)
3 let classes = { 3 let classes = {
4 'l-bubble-group': true, 4 'l-bubble-group': true,
5 'l-bubble-group--compact': attributes.compact, 5 'l-bubble-group--compact': attributes.compact,
6 'l-bubble-group--left': attributes.left,
7 'l-bubble-group--right': attributes.right,
6 'l-bubble-group--arrow': attributes.arrow 8 'l-bubble-group--arrow': attributes.arrow
7 } 9 }
8 if (attributes.class) { 10 if (attributes.class) {
diff --git a/tpl/objects/bubble.pug b/tpl/objects/bubble.pug
index 5782ca5..6a3ea8b 100644
--- a/tpl/objects/bubble.pug
+++ b/tpl/objects/bubble.pug
@@ -35,7 +35,7 @@ mixin bubble(user)
35 span.s-links.s-links--colored 35 span.s-links.s-links--colored
36 - slots.body() 36 - slots.body()
37 if slots.time 37 if slots.time
38 small.o-bubble__time 38 small.o-bubble__suffix
39 - slots.time() 39 - slots.time()
40 if slots.footer 40 if slots.footer
41 footer.o-bubble__footer 41 footer.o-bubble__footer
diff --git a/tpl/views/bubble-group.pug b/tpl/views/bubble-group.pug
index 8464bc7..ce00067 100644
--- a/tpl/views/bubble-group.pug
+++ b/tpl/views/bubble-group.pug
@@ -1,7 +1,7 @@
1mixin view-bubble-group 1mixin view-bubble-group
2 +view('bubble-group', 'Bubble group') 2 +view('bubble-group', 'Bubble group')
3 .c-box.l-overflow(style='resize: vertical') 3 .c-box.l-overflow(style='resize: vertical')
4 +bubble-group('Volpeon')(compact=true arrow=true) 4 +bubble-group('Volpeon')(compact=true arrow=true left=true)
5 +bubble('Volpeon')(compact=true class='l-bubble-group__bubble') 5 +bubble('Volpeon')(compact=true class='l-bubble-group__bubble')
6 +slot('body')= 'Compact bubbles test' 6 +slot('body')= 'Compact bubbles test'
7 +slot('time')= '12:34' 7 +slot('time')= '12:34'