1 | @import "mixins/settings.global";
|
2 |
|
3 | .c-bubble {
|
4 | display: inline-block;
|
5 | position: relative;
|
6 | padding: $bubble-padding;
|
7 | border-radius: $bubble-border-radius;
|
8 | background-color: $bubble-background-color;
|
9 | color: $bubble-color;
|
10 | text-align: $bubble-text-align;
|
11 | white-space: nowrap;
|
12 |
|
13 | &:after {
|
14 | display: block;
|
15 | position: absolute;
|
16 | width: 0;
|
17 | height: 0;
|
18 | border: $bubble-arrow-width solid transparent;
|
19 | content: "";
|
20 | }
|
21 | }
|
22 |
|
23 | .c-bubble--top:after {
|
24 | bottom: -($bubble-arrow-width * 2);
|
25 | left: 50%;
|
26 | transform: translateX(-50%);
|
27 | border-top-color: $bubble-background-color;
|
28 | }
|
29 |
|
30 | .c-bubble--right:after {
|
31 | top: 50%;
|
32 | left: -($bubble-arrow-width * 2);
|
33 | transform: translateY(-50%);
|
34 | border-right-color: $bubble-background-color;
|
35 | }
|
36 |
|
37 | .c-bubble--bottom:after {
|
38 | top: -($bubble-arrow-width * 2);
|
39 | left: 50%;
|
40 | transform: translateX(-50%);
|
41 | border-bottom-color: $bubble-background-color;
|
42 | }
|
43 |
|
44 | .c-bubble--left:after {
|
45 | top: 50%;
|
46 | right: -($bubble-arrow-width * 2);
|
47 | transform: translateY(-50%);
|
48 | border-left-color: $bubble-background-color;
|
49 | }
|