|
51 | 51 |
|
52 | 52 | // Sides
|
53 | 53 | .isRootAtTop {
|
54 |
| - bottom: 100%; |
| 54 | + bottom: calc(100% + #{theme.$arrow-gap} - #{theme.$arrow-safe-rendering-overlap}); |
55 | 55 | }
|
56 | 56 |
|
57 | 57 | .isRootAtBottom {
|
58 |
| - top: 100%; |
| 58 | + top: calc(100% + #{theme.$arrow-gap} - #{theme.$arrow-safe-rendering-overlap}); |
59 | 59 | }
|
60 | 60 |
|
61 | 61 | .isRootAtLeft {
|
62 |
| - right: 100%; |
| 62 | + right: calc(100% + #{theme.$arrow-gap} - #{theme.$arrow-safe-rendering-overlap}); |
63 | 63 | }
|
64 | 64 |
|
65 | 65 | .isRootAtRight {
|
66 |
| - left: 100%; |
| 66 | + left: calc(100% + #{theme.$arrow-gap} - #{theme.$arrow-safe-rendering-overlap}); |
67 | 67 | }
|
68 | 68 |
|
69 | 69 | // Arrows
|
70 | 70 | .isRootAtTop > .arrow {
|
71 |
| - top: 100%; |
| 71 | + top: calc(100% - #{theme.$arrow-safe-rendering-overlap}); |
72 | 72 | }
|
73 | 73 |
|
74 | 74 | .isRootAtBottom > .arrow {
|
75 |
| - bottom: 100%; |
| 75 | + bottom: calc(100% - #{theme.$arrow-safe-rendering-overlap}); |
76 | 76 | }
|
77 | 77 |
|
78 | 78 | .isRootAtLeft > .arrow {
|
79 |
| - left: 100%; |
| 79 | + left: calc(100% - #{theme.$arrow-safe-rendering-overlap}); |
80 | 80 | }
|
81 | 81 |
|
82 | 82 | .isRootAtRight > .arrow {
|
83 |
| - right: 100%; |
| 83 | + right: calc(100% - #{theme.$arrow-safe-rendering-overlap}); |
84 | 84 | }
|
85 | 85 |
|
86 | 86 | // Side alignments: top
|
87 | 87 | .isRootAtTop.isRootAtCenter {
|
88 | 88 | left: 50%;
|
89 |
| - transform: translate(-50%, #{-1 * theme.$arrow-height}); |
| 89 | + transform: translate(-50%, calc(-1 * #{theme.$arrow-height})); |
90 | 90 | }
|
91 | 91 |
|
92 | 92 | .isRootAtTop.isRootAtStart {
|
93 | 93 | left: 0;
|
94 |
| - transform: translate(0, #{-1 * theme.$arrow-height}); |
| 94 | + transform: translate(0, calc(-1 * #{theme.$arrow-height})); |
95 | 95 | }
|
96 | 96 |
|
97 | 97 | .isRootAtTop.isRootAtEnd {
|
98 | 98 | right: 0;
|
99 |
| - transform: translate(0, #{-1 * theme.$arrow-height}); |
| 99 | + transform: translate(0, calc(-1 * #{theme.$arrow-height})); |
100 | 100 | }
|
101 | 101 |
|
102 | 102 | .isRootAtTop.isRootAtCenter > .arrow {
|
|
148 | 148 | // Side alignments: left
|
149 | 149 | .isRootAtLeft.isRootAtCenter {
|
150 | 150 | top: 50%;
|
151 |
| - transform: translate(#{-1 * theme.$arrow-height}, -50%); |
| 151 | + transform: translate(calc(-1 * #{theme.$arrow-height}), -50%); |
152 | 152 | }
|
153 | 153 |
|
154 | 154 | .isRootAtLeft.isRootAtStart {
|
155 | 155 | top: 0;
|
156 |
| - transform: translate(#{-1 * theme.$arrow-height}, 0); |
| 156 | + transform: translate(calc(-1 * #{theme.$arrow-height}), 0); |
157 | 157 | }
|
158 | 158 |
|
159 | 159 | .isRootAtLeft.isRootAtEnd {
|
160 | 160 | bottom: 0;
|
161 |
| - transform: translate(#{-1 * theme.$arrow-height}, 0); |
| 161 | + transform: translate(calc(-1 * #{theme.$arrow-height}), 0); |
162 | 162 | }
|
163 | 163 |
|
164 | 164 | .isRootAtLeft.isRootAtCenter > .arrow {
|
|
216 | 216 | }
|
217 | 217 |
|
218 | 218 | .isRootControlled.isRootAtTop {
|
219 |
| - transform: translate(0, #{-1 * theme.$arrow-height}); // 2. |
| 219 | + transform: translate(0, calc(-1 * #{theme.$arrow-height})); // 2. |
220 | 220 | }
|
221 | 221 |
|
222 | 222 | .isRootControlled.isRootAtBottom {
|
223 | 223 | transform: translate(0, #{theme.$arrow-height}); // 2.
|
224 | 224 | }
|
225 | 225 |
|
226 | 226 | .isRootControlled.isRootAtLeft {
|
227 |
| - transform: translate(#{-1 * theme.$arrow-height}, 0); // 2. |
| 227 | + transform: translate(calc(-1 * #{theme.$arrow-height}), 0); // 2. |
228 | 228 | }
|
229 | 229 |
|
230 | 230 | .isRootControlled.isRootAtRight {
|
|
0 commit comments