|
1 | 1 | .#{$eccgui}-chat__content { |
| 2 | + @extend .bp5-elevation-1; |
| 3 | + |
2 | 4 | position: relative; |
| 5 | + z-index: 0; |
3 | 6 | min-height: $button-height; |
4 | 7 | padding: $eccgui-size-inline-whitespace; |
5 | 8 | overflow: auto; |
6 | 9 | background-color: var(--#{$eccgui}-chat__content-background); |
7 | | - border-radius: $pt-border-radius; |
| 10 | + border-radius: 3 * $pt-border-radius; |
8 | 11 | } |
9 | 12 |
|
10 | 13 | .#{$eccgui}-chat__content--display-free { |
11 | | - padding: 1px 0; |
12 | | - |
13 | 14 | --#{$eccgui}-chat__content-background: transparent; |
| 15 | + |
| 16 | + padding: 1px 0; |
| 17 | + box-shadow: none; |
14 | 18 | } |
15 | 19 |
|
16 | 20 | .#{$eccgui}-chat__content--display-bubble { |
17 | | - margin-left: 0.5 * $eccgui-size-block-whitespace; |
| 21 | + margin-left: 0.75 * $eccgui-size-block-whitespace; |
18 | 22 |
|
19 | 23 | &.#{$eccgui}-chat__content--align-right { |
20 | | - margin-right: 0.5 * $eccgui-size-block-whitespace; |
| 24 | + margin-right: 0.75 * $eccgui-size-block-whitespace; |
21 | 25 | margin-left: none; |
22 | 26 | } |
23 | 27 | } |
|
28 | 32 | position: relative; |
29 | 33 |
|
30 | 34 | &::before { |
| 35 | + @extend .bp5-elevation-1; |
| 36 | + |
31 | 37 | position: absolute; |
32 | 38 | top: calc(#{mini-units(3)} - #{0.5 * $eccgui-size-block-whitespace}); |
33 | | - left: 0; |
| 39 | + left: 0.25 * $eccgui-size-block-whitespace; |
| 40 | + z-index: 1; |
34 | 41 | width: $eccgui-size-block-whitespace; |
35 | 42 | height: $eccgui-size-block-whitespace; |
36 | 43 | content: " "; |
37 | 44 | background-color: var(--#{$eccgui}-chat__content-background); |
| 45 | + clip-path: polygon(-5px calc(100% + 5px), -5px -5px, calc(100% + 5px) calc(100% + 5px)); |
38 | 46 | transform: rotate(45deg); |
39 | 47 | } |
40 | 48 | } |
41 | 49 | &:has(.#{$eccgui}-chat__content--display-bubble.#{$eccgui}-chat__content--align-right) { |
42 | 50 | &::before { |
43 | | - right: 0; |
| 51 | + right: 0.25 * $eccgui-size-block-whitespace; |
44 | 52 | left: auto; |
| 53 | + transform: rotate(225deg); |
45 | 54 | } |
46 | 55 | } |
47 | 56 | } |
|
0 commit comments