|
| 1 | +/* stylelint-disable primer/spacing */ |
| 2 | + |
1 | 3 | .tooltipped {
|
2 | 4 | position: relative;
|
3 | 5 | }
|
|
7 | 9 | position: absolute;
|
8 | 10 | z-index: 1000000;
|
9 | 11 | display: none;
|
10 |
| - padding: $em-spacer-5 $em-spacer-6; |
11 |
| - font: normal normal 11px/1.5 $body-font; |
| 12 | + padding: var(--overlay-paddingBlock-condensed, 0.25rem) var(--overlay-padding-condensed, 0.5rem); |
| 13 | + font: var(--text-body-shorthand-small, normal normal 11px/1.5 $body-font); |
12 | 14 | -webkit-font-smoothing: subpixel-antialiased;
|
13 | 15 | color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
|
14 | 16 | text-align: center;
|
|
21 | 23 | pointer-events: none;
|
22 | 24 | content: attr(aria-label);
|
23 | 25 | background: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus));
|
24 |
| - border-radius: $border-radius; |
25 |
| - opacity: 0; |
26 |
| -} |
27 |
| - |
28 |
| -// This is the tooltip arrow |
29 |
| -.tooltipped::before { |
30 |
| - position: absolute; |
31 |
| - z-index: 1000001; |
32 |
| - display: none; |
33 |
| - width: 0; |
34 |
| - height: 0; |
35 |
| - color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)); |
36 |
| - pointer-events: none; |
37 |
| - content: ''; |
38 | 26 | // stylelint-disable-next-line primer/borders
|
39 |
| - border: 6px $border-style transparent; |
| 27 | + border-radius: var(--borderRadius-medium); |
40 | 28 | opacity: 0;
|
41 | 29 | }
|
42 | 30 |
|
|
63 | 51 | animation-duration: $tooltip-duration;
|
64 | 52 | animation-fill-mode: forwards;
|
65 | 53 | animation-timing-function: ease-in;
|
66 |
| - animation-delay: $tooltip-delay; |
67 | 54 | }
|
68 | 55 | }
|
69 | 56 |
|
|
91 | 78 | &::after {
|
92 | 79 | top: 100%;
|
93 | 80 | right: 50%;
|
94 |
| - // stylelint-disable-next-line primer/spacing |
95 | 81 | margin-top: 6px;
|
96 | 82 | }
|
97 |
| - |
98 |
| - &::before { |
99 |
| - top: auto; |
100 |
| - right: 50%; |
101 |
| - bottom: -7px; |
102 |
| - // stylelint-disable-next-line primer/spacing |
103 |
| - margin-right: -6px; |
104 |
| - border-bottom-color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)); |
105 |
| - } |
106 | 83 | }
|
107 | 84 |
|
108 | 85 | .tooltipped-se {
|
|
124 | 101 | &::after {
|
125 | 102 | right: 50%;
|
126 | 103 | bottom: 100%;
|
127 |
| - // stylelint-disable-next-line primer/spacing |
128 | 104 | margin-bottom: 6px;
|
129 | 105 | }
|
130 |
| - |
131 |
| - &::before { |
132 |
| - top: -7px; |
133 |
| - right: 50%; |
134 |
| - bottom: auto; |
135 |
| - // stylelint-disable-next-line primer/spacing |
136 |
| - margin-right: -6px; |
137 |
| - border-top-color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)); |
138 |
| - } |
139 | 106 | }
|
140 | 107 |
|
141 | 108 | .tooltipped-ne {
|
|
161 | 128 | &::after {
|
162 | 129 | right: 100%;
|
163 | 130 | bottom: 50%;
|
164 |
| - // stylelint-disable-next-line primer/spacing |
165 | 131 | margin-right: 6px;
|
166 | 132 | transform: translateY(50%);
|
167 | 133 | }
|
168 |
| - |
169 |
| - &::before { |
170 |
| - top: 50%; |
171 |
| - bottom: 50%; |
172 |
| - left: -7px; |
173 |
| - // stylelint-disable-next-line primer/spacing |
174 |
| - margin-top: -6px; |
175 |
| - border-left-color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)); |
176 |
| - } |
177 | 134 | }
|
178 | 135 |
|
179 | 136 | // tooltipped to the right
|
180 | 137 | .tooltipped-e {
|
181 | 138 | &::after {
|
182 | 139 | bottom: 50%;
|
183 | 140 | left: 100%;
|
184 |
| - // stylelint-disable-next-line primer/spacing |
185 | 141 | margin-left: 6px;
|
186 | 142 | transform: translateY(50%);
|
187 | 143 | }
|
188 |
| - |
189 |
| - &::before { |
190 |
| - top: 50%; |
191 |
| - right: -7px; |
192 |
| - bottom: 50%; |
193 |
| - // stylelint-disable-next-line primer/spacing |
194 |
| - margin-top: -6px; |
195 |
| - border-right-color: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)); |
196 |
| - } |
197 | 144 | }
|
198 | 145 |
|
199 | 146 | // Tooltip align right and left
|
|
218 | 165 | }
|
219 | 166 |
|
220 | 167 | .tooltipped-align-left-1,
|
221 |
| -.tooltipped-align-left-2, { |
| 168 | +.tooltipped-align-left-2 { |
222 | 169 | &::after {
|
223 | 170 | left: 0;
|
224 | 171 | margin-left: 0;
|
|
245 | 192 | .tooltipped-multiline {
|
246 | 193 | &::after {
|
247 | 194 | width: max-content;
|
248 |
| - max-width: $tooltip-max-width; |
| 195 | + max-width: var(--overlay-width-small, 20rem); |
249 | 196 | word-wrap: break-word;
|
250 | 197 | white-space: pre-line;
|
251 | 198 | border-collapse: separate;
|
|
0 commit comments