|
1 | 1 | @import './_vars.scss';
|
2 | 2 | @import './animations/fade.scss';
|
3 | 3 | @import './../../variables';
|
| 4 | +@import './popover.scss'; |
4 | 5 |
|
5 | 6 | .#{$namespace-prefix}-iOS {
|
6 | 7 | cursor: pointer !important;
|
|
32 | 33 | bottom: - $tooltip-arrow-height;
|
33 | 34 | left: 0;
|
34 | 35 | border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
|
35 |
| - border-top-color: $tooltip-arrow-color; |
| 36 | + border-top-color: initial; |
36 | 37 | }
|
37 | 38 | }
|
38 | 39 |
|
39 | 40 | &[data-placement^='bottom'] > .#{$namespace-prefix}-arrow {
|
40 | 41 | top: 0;
|
41 | 42 |
|
42 | 43 | &::before {
|
43 |
| - top: $tooltip-arrow-height; |
| 44 | + top: - $tooltip-arrow-height; |
44 | 45 | left: 0;
|
45 | 46 | border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
|
46 |
| - border-bottom-color: $tooltip-arrow-color; |
| 47 | + border-bottom-color: initial; |
47 | 48 | }
|
48 | 49 | }
|
49 | 50 |
|
|
55 | 56 | &::before {
|
56 | 57 | right: - $tooltip-arrow-height;
|
57 | 58 | border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
|
58 |
| - border-left-color: $tooltip-arrow-color; |
| 59 | + border-left-color: initial; |
59 | 60 | }
|
60 | 61 | }
|
61 | 62 |
|
|
67 | 68 | &::before {
|
68 | 69 | left: - $tooltip-arrow-height;
|
69 | 70 | border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
|
70 |
| - border-right-color: $tooltip-arrow-color; |
| 71 | + border-right-color: initial; |
71 | 72 | }
|
72 | 73 | }
|
73 | 74 |
|
|
81 | 82 | display: block;
|
82 | 83 | width: $tooltip-arrow-width;
|
83 | 84 | height: $tooltip-arrow-height;
|
| 85 | + color: $tooltip-arrow-color; |
84 | 86 |
|
85 | 87 | &::before {
|
86 | 88 | position: absolute;
|
| 89 | + display: block; |
87 | 90 | content: "";
|
88 | 91 | border-color: transparent;
|
89 | 92 | border-style: solid;
|
|
98 | 101 | background-color: $tooltip-bg;
|
99 | 102 | @include border-radius($tooltip-border-radius);
|
100 | 103 | }
|
101 |
| - |
102 |
| -// Popover |
103 |
| - |
104 |
| -.#{$namespace-prefix}-box[data-theme~='cpopover'] { |
105 |
| - z-index: $zindex-popover; |
106 |
| - display: block; |
107 |
| - max-width: $popover-max-width; |
108 |
| - @include reset-text(); |
109 |
| - @include font-size($popover-font-size); |
110 |
| - word-wrap: break-word; |
111 |
| - background-clip: padding-box; |
112 |
| - border: $popover-border-width solid; |
113 |
| - @include border-radius($popover-border-radius); |
114 |
| - @include box-shadow($popover-box-shadow); |
115 |
| - @include themes($popover-theme-map) { |
116 |
| - background-color: themes-get-value("popover-bg"); |
117 |
| - border-color: themes-get-value("popover-border-color"); |
118 |
| - } |
119 |
| - |
120 |
| - > .#{$namespace-prefix}-content { |
121 |
| - max-width: auto; |
122 |
| - padding: 0; |
123 |
| - color: initial; |
124 |
| - text-align: initial; |
125 |
| - background-color: initial; |
126 |
| - border-radius: initial; |
127 |
| - } |
128 |
| - |
129 |
| - > .#{$namespace-prefix}-arrow { |
130 |
| - position: absolute; |
131 |
| - display: block; |
132 |
| - width: $popover-arrow-width; |
133 |
| - height: $popover-arrow-height; |
134 |
| - margin: 0 $popover-border-radius; |
135 |
| - |
136 |
| - &::before, |
137 |
| - &::after { |
138 |
| - position: absolute; |
139 |
| - display: block; |
140 |
| - content: ""; |
141 |
| - border-color: transparent; |
142 |
| - border-style: solid; |
143 |
| - } |
144 |
| - } |
145 |
| - |
146 |
| - &[data-placement^='top'] > .#{$namespace-prefix}-arrow { |
147 |
| - bottom: subtract(-$popover-arrow-height, $popover-border-width); |
148 |
| - |
149 |
| - &::before { |
150 |
| - bottom: 0; |
151 |
| - border-width: $popover-arrow-height ($popover-arrow-width / 2) 0; |
152 |
| - @include themes($popover-theme-map) { |
153 |
| - border-top-color: themes-get-value("popover-arrow-outer-color"); |
154 |
| - } |
155 |
| - } |
156 |
| - |
157 |
| - &::after { |
158 |
| - bottom: $popover-border-width; |
159 |
| - border-width: $popover-arrow-height ($popover-arrow-width / 2) 0; |
160 |
| - @include themes($popover-theme-map) { |
161 |
| - border-top-color: themes-get-value("popover-arrow-color"); |
162 |
| - } |
163 |
| - } |
164 |
| - } |
165 |
| - |
166 |
| - &[data-placement^='right'] > .#{$namespace-prefix}-arrow { |
167 |
| - left: subtract(-$popover-arrow-height, $popover-border-width); |
168 |
| - width: $popover-arrow-height; |
169 |
| - height: add($popover-arrow-width, (2 * $popover-border-radius)); |
170 |
| - padding: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners |
171 |
| - margin: 0; |
172 |
| - |
173 |
| - &::before { |
174 |
| - left: 0; |
175 |
| - border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0; |
176 |
| - @include themes($popover-theme-map) { |
177 |
| - border-right-color: themes-get-value("popover-arrow-outer-color"); |
178 |
| - } |
179 |
| - } |
180 |
| - |
181 |
| - &::after { |
182 |
| - left: $popover-border-width; |
183 |
| - border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0; |
184 |
| - @include themes($popover-theme-map) { |
185 |
| - border-right-color: themes-get-value("popover-arrow-color"); |
186 |
| - } |
187 |
| - } |
188 |
| - } |
189 |
| - |
190 |
| - &[data-placement^='bottom'] > .#{$namespace-prefix}-arrow { |
191 |
| - top: subtract(-$popover-arrow-height, $popover-border-width); |
192 |
| - |
193 |
| - &::before { |
194 |
| - top: 0; |
195 |
| - border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2); |
196 |
| - @include themes($popover-theme-map) { |
197 |
| - border-bottom-color: themes-get-value("popover-arrow-outer-color"); |
198 |
| - } |
199 |
| - } |
200 |
| - |
201 |
| - &::after { |
202 |
| - top: $popover-border-width; |
203 |
| - border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2); |
204 |
| - @include themes($popover-theme-map) { |
205 |
| - border-bottom-color: themes-get-value("popover-arrow-color"); |
206 |
| - } |
207 |
| - } |
208 |
| - } |
209 |
| - |
210 |
| - &[data-placement^='bottom'] { |
211 |
| - > .#{$namespace-prefix}-arrow { |
212 |
| - right: subtract(-$popover-arrow-height, $popover-border-width); |
213 |
| - width: $popover-arrow-height; |
214 |
| - height: add($popover-arrow-width, (2 * $popover-border-radius)); |
215 |
| - padding: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners |
216 |
| - margin: 0; |
217 |
| - |
218 |
| - &::before { |
219 |
| - right: 0; |
220 |
| - border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height; |
221 |
| - @include themes($popover-theme-map) { |
222 |
| - border-left-color: themes-get-value("popover-arrow-outer-color"); |
223 |
| - } |
224 |
| - } |
225 |
| - |
226 |
| - &::after { |
227 |
| - right: $popover-border-width; |
228 |
| - border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height; |
229 |
| - @include themes($popover-theme-map) { |
230 |
| - border-left-color: themes-get-value("popover-arrow-color"); |
231 |
| - } |
232 |
| - } |
233 |
| - } |
234 |
| - |
235 |
| - // This will remove the popover-header's border just below the arrow |
236 |
| - .popover-header::before { |
237 |
| - position: absolute; |
238 |
| - top: 0; |
239 |
| - left: 50%; |
240 |
| - display: block; |
241 |
| - width: $popover-arrow-width; |
242 |
| - margin-left: -$popover-arrow-width / 2; |
243 |
| - content: ""; |
244 |
| - border-bottom: $popover-border-width solid; |
245 |
| - @include themes($popover-theme-map) { |
246 |
| - border-bottom-color: themes-get-value("popover-header-bg"); |
247 |
| - } |
248 |
| - } |
249 |
| - } |
250 |
| -} |
0 commit comments