summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/_bubble.scss22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/objects/_bubble.scss b/src/objects/_bubble.scss
index 26746fe..41b26ff 100644
--- a/src/objects/_bubble.scss
+++ b/src/objects/_bubble.scss
@@ -10,15 +10,24 @@
10 10
11 @include iro.props-store(( 11 @include iro.props-store((
12 --dims: ( 12 --dims: (
13 --pad-x: fn.global-dim(--size --150), 13 --pad-x: fn.global-dim(--size --200),
14 --pad-y: fn.global-dim(--size --85), 14 --pad-y: fn.global-dim(--size --150),
15 --rounding: 3px, 15 --rounding: 3px,
16 --arrow-size: fn.global-dim(--size --100), 16 --arrow-size: fn.global-dim(--size --100),
17 --spacing: fn.global-dim(--size --100),
18
19 --compact: (
20 --pad-x: fn.global-dim(--size --150),
21 --pad-y: fn.global-dim(--size --85),
22 ),
17 ) 23 )
18 ), 'dims'); 24 ), 'dims');
19 25
20 @include iro.bem-object(iro.props-namespace()) { 26 @include iro.bem-object(iro.props-namespace()) {
27 display: flex;
21 position: relative; 28 position: relative;
29 flex-direction: column;
30 gap: fn.dim(--spacing);
22 padding: fn.dim(--pad-y) fn.dim(--pad-x); 31 padding: fn.dim(--pad-y) fn.dim(--pad-x);
23 border-radius: fn.dim(--rounding); 32 border-radius: fn.dim(--rounding);
24 background-color: fn.global-color(--bg); 33 background-color: fn.global-color(--bg);
@@ -34,15 +43,16 @@
34 border-bottom-color: transparent; 43 border-bottom-color: transparent;
35 border-left-color: transparent; 44 border-left-color: transparent;
36 } 45 }
37
38 @include iro.bem-elem('user') {
39 display: block;
40 }
41 46
42 @include iro.bem-elem('time') { 47 @include iro.bem-elem('time') {
43 margin-left: 1em; 48 margin-left: 1em;
44 float: right; 49 float: right;
45 transform: translate(.2em, .2em); 50 transform: translate(.2em, .2em);
46 } 51 }
52
53 @include iro.bem-modifier('compact') {
54 gap: 0;
55 padding: fn.dim(--compact --pad-y) fn.dim(--compact --pad-x);
56 }
47 } 57 }
48} 58}