From cac07ec50d360f3916e84bc3af6164ef07ac2f83 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 27 Mar 2022 11:23:45 +0200 Subject: Update --- src/layouts/_bubble-group.scss | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/layouts/_bubble-group.scss (limited to 'src/layouts') 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 @@ +@use 'iro-sass/src/index' as iro; +@use '../functions' as fn; + +@include iro.props-namespace('bubble-group') { + @include iro.props-store(( + --dims: ( + --spacing-x: fn.global-dim(--size --225), + --spacing-y: fn.global-dim(--size --50), + ) + ), 'dims'); + + @include iro.bem-layout(iro.props-namespace()) { + display: grid; + grid-template-columns: auto 1fr; + grid-auto-rows: auto; + grid-template-areas: 'avatar bubble'; + justify-items: start; + align-items: flex-start; + gap: fn.dim(--spacing-y) fn.dim(--spacing-x); + + @include iro.bem-elem('avatar') { + grid-area: avatar; + position: sticky; + top: 0; + justify-self: end; + + @include iro.bem-next-elem('bubble') { + &::before { + display: block; + } + } + } + + @include iro.bem-elem('bubble') { + grid-column: bubble; + } + } +} -- cgit v1.2.3-70-g09d2