diff options
author | Volpeon <git@volpeon.ink> | 2022-03-27 11:23:45 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-27 11:23:45 +0200 |
commit | cac07ec50d360f3916e84bc3af6164ef07ac2f83 (patch) | |
tree | 8bd37d0c30ba176f5a2079dde171c0a80d6f86b6 /src/layouts | |
parent | Lots of updates, especially dialog (diff) | |
download | iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.tar.gz iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.tar.bz2 iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.zip |
Update
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/_bubble-group.scss | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/layouts/_bubble-group.scss b/src/layouts/_bubble-group.scss new file mode 100644 index 0000000..4db70d0 --- /dev/null +++ b/src/layouts/_bubble-group.scss | |||
@@ -0,0 +1,38 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('bubble-group') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --spacing-x: fn.global-dim(--size --225), | ||
8 | --spacing-y: fn.global-dim(--size --50), | ||
9 | ) | ||
10 | ), 'dims'); | ||
11 | |||
12 | @include iro.bem-layout(iro.props-namespace()) { | ||
13 | display: grid; | ||
14 | grid-template-columns: auto 1fr; | ||
15 | grid-auto-rows: auto; | ||
16 | grid-template-areas: 'avatar bubble'; | ||
17 | justify-items: start; | ||
18 | align-items: flex-start; | ||
19 | gap: fn.dim(--spacing-y) fn.dim(--spacing-x); | ||
20 | |||
21 | @include iro.bem-elem('avatar') { | ||
22 | grid-area: avatar; | ||
23 | position: sticky; | ||
24 | top: 0; | ||
25 | justify-self: end; | ||
26 | |||
27 | @include iro.bem-next-elem('bubble') { | ||
28 | &::before { | ||
29 | display: block; | ||
30 | } | ||
31 | } | ||
32 | } | ||
33 | |||
34 | @include iro.bem-elem('bubble') { | ||
35 | grid-column: bubble; | ||
36 | } | ||
37 | } | ||
38 | } | ||