blob: c0e8e43823cd0c287f6b1c474cecaafd54a523df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
@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 --150),
--compact: (
--spacing-x: fn.global-dim(--size --225),
--spacing-y: fn.global-dim(--size --50),
)
)
), 'dims');
@include iro.bem-layout(iro.props-namespace()) {
display: flex;
align-items: flex-start;
gap: fn.dim(--spacing-x);
@include iro.bem-elem('avatar') {
flex: 0 0 auto;
}
@include iro.bem-elem('content') {
grid-column: content;
display: flex;
flex-direction: column;
min-width: 0;
gap: fn.dim(--spacing-y);
}
@include iro.bem-modifier('compact') {
gap: fn.dim(--compact --spacing-x);
@include iro.bem-elem('content') {
gap: fn.dim(--compact --spacing-y);
}
@include iro.bem-modifier('left') {
@include iro.bem-elem('content') {
align-items: flex-start;
}
}
@include iro.bem-modifier('right') {
@include iro.bem-elem('content') {
align-items: flex-end;
}
}
}
@include iro.bem-modifier('right') {
flex-direction: row-reverse;
}
@include iro.bem-modifier('no-avatar') {
@include iro.bem-elem('avatar') {
display: none;
}
}
@include iro.bem-modifier('arrow') {
@include iro.bem-elem('bubble') {
&::before {
display: block;
}
@include iro.bem-sibling-elem('bubble') {
&::before {
display: none;
}
}
}
@include iro.bem-modifier('right') {
@include iro.bem-elem('bubble') {
&::before {
display: none;
}
&::after {
display: block;
}
@include iro.bem-sibling-elem('bubble') {
&::after {
display: none;
}
}
}
}
}
}
}
|