diff options
author | Volpeon <git@volpeon.ink> | 2022-03-27 18:52:27 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-27 18:52:27 +0200 |
commit | a08dee14bcc07ee31175265cb586e857d44fb12e (patch) | |
tree | 4d1d4cfdb09d76d395d37b06983bd212eb44aeb6 /tpl/views | |
parent | Update (diff) | |
download | iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.tar.gz iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.tar.bz2 iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.zip |
Improved bubbles
Diffstat (limited to 'tpl/views')
-rw-r--r-- | tpl/views/bubble-group.pug | 43 | ||||
-rw-r--r-- | tpl/views/bubble.pug | 21 |
2 files changed, 56 insertions, 8 deletions
diff --git a/tpl/views/bubble-group.pug b/tpl/views/bubble-group.pug index 6f057c0..ec7d025 100644 --- a/tpl/views/bubble-group.pug +++ b/tpl/views/bubble-group.pug | |||
@@ -1,9 +1,40 @@ | |||
1 | mixin view-bubble-group | 1 | mixin view-bubble-group |
2 | +view('bubble-group', 'Bubble group') | 2 | +view('bubble-group', 'Bubble group') |
3 | .c-box.l-overflow(style='max-height: 13em') | 3 | .c-box.l-overflow(style='max-height: 15em') |
4 | +bubble-group('Volpeon')(compact=true arrow=true) | ||
5 | +bubble('Volpeon')(compact=true class='l-bubble-group__bubble') | ||
6 | +slot('body')= 'Compact bubbles test' | ||
7 | +slot('time')= '12:34' | ||
8 | +bubble()(compact=true class='l-bubble-group__bubble') | ||
9 | +slot('body')= loremIpsum | ||
10 | +slot('time')= '12:35' | ||
11 | +bubble()(compact=true class='l-bubble-group__bubble') | ||
12 | +slot('body')= 'qwertzuiop' | ||
13 | +slot('time')= '12:36' | ||
14 | +bubble()(compact=true class='l-bubble-group__bubble') | ||
15 | +slot('body')= '🐈️🦊️' | ||
16 | +slot('time')= '12:38' | ||
17 | +bubble()(compact=true class='l-bubble-group__bubble') | ||
18 | +slot('body')= loremIpsum | ||
19 | +slot('time')= '12:39' | ||
20 | |||
21 | .c-box.l-overflow(style='max-height: 15em') | ||
4 | +bubble-group('Volpeon') | 22 | +bubble-group('Volpeon') |
5 | +bubble-group-bubble('12:34')= loremIpsum | 23 | +bubble()(class='l-bubble-group__bubble') |
6 | +bubble-group-bubble('12:35')= loremIpsum | 24 | +slot('header') |
7 | +bubble-group-bubble('12:36')= loremIpsum | 25 | .l-card.l-card--flush |
8 | +bubble-group-bubble('12:38')= loremIpsum | 26 | .l-card__block.l-card__block--main |
9 | +bubble-group-bubble('12:39')= loremIpsum | 27 | strong= 'Volpeon' |
28 | small.u-ml-100= '@volpeon@mk.vulpes.one' | ||
29 | small.l-card__block | ||
30 | = '5 minutes ago' | ||
31 | +icon('lock')(class='u-ml-100') | ||
32 | +slot('body')= 'Full width bubbles test' | ||
33 | +bubble()(class='l-bubble-group__bubble') | ||
34 | +slot('body')= loremIpsum | ||
35 | +bubble()(class='l-bubble-group__bubble') | ||
36 | +slot('body')= 'qwertzuiop' | ||
37 | +bubble()(class='l-bubble-group__bubble') | ||
38 | +slot('body')= '🐈️🦊️' | ||
39 | +bubble()(class='l-bubble-group__bubble') | ||
40 | +slot('body')= loremIpsum | ||
diff --git a/tpl/views/bubble.pug b/tpl/views/bubble.pug index 037398f..5e53f5b 100644 --- a/tpl/views/bubble.pug +++ b/tpl/views/bubble.pug | |||
@@ -1,7 +1,24 @@ | |||
1 | mixin view-bubble | 1 | mixin view-bubble |
2 | +view('bubble', 'Bubble') | 2 | +view('bubble', 'Bubble') |
3 | .c-box | 3 | .c-box |
4 | +bubble('12:34', 'Volpeon')= loremIpsum | 4 | +bubble('Volpeon')(compact=true) |
5 | +slot('body')= loremIpsum | ||
6 | +slot('time') | ||
7 | = '12:34' | ||
8 | +icon('lock')(class='u-ml-100') | ||
9 | |||
10 | .c-box.u-themed.t-hi | ||
11 | +bubble()(compact=true theme='t-def') | ||
12 | +slot('body')= loremIpsum | ||
5 | 13 | ||
6 | .c-box | 14 | .c-box |
7 | +bubble('12:34', 'Volpeon')(scope='lock')= loremIpsum | 15 | +bubble() |
16 | +slot('header') | ||
17 | .l-card.l-card--flush | ||
18 | .l-card__block.l-card__block--main | ||
19 | strong= 'Volpeon' | ||
20 | small.u-ml-100= '@volpeon@mk.vulpes.one' | ||
21 | small.l-card__block | ||
22 | = '5 minutes ago' | ||
23 | +icon('lock')(class='u-ml-100') | ||
24 | +slot('body')= loremIpsum | ||