@iamproperty/components 2.0.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/assets/.DS_Store +0 -0
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/main.js +9 -0
- package/assets/js/modules/accordion.js +13 -10
- package/assets/js/modules/modal.js +90 -0
- package/assets/js/modules/youtubevideo.js +145 -0
- package/assets/js/scripts.bundle.js +195 -604
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +3 -3
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_components.scss +4 -0
- package/assets/sass/_corefiles.scss +3 -2
- package/assets/sass/_functions/utilities.scss +41 -1
- package/assets/sass/_functions/variables.scss +74 -21
- package/assets/sass/components/accordion.scss +80 -3
- package/assets/sass/components/charts.scss +562 -0
- package/assets/sass/components/header.scss +1 -1
- package/assets/sass/components/modal.scss +78 -3
- package/assets/sass/components/snapshot.scss +69 -0
- package/assets/sass/components/timeline.scss +93 -0
- package/assets/sass/elements/buttons.scss +1 -1
- package/assets/sass/elements/container.scss +104 -16
- package/assets/sass/elements/lists.scss +5 -0
- package/assets/sass/elements/tooltips.scss +71 -0
- package/assets/sass/elements/type.scss +22 -7
- package/assets/sass/foundations/brand.scss +10 -0
- package/assets/sass/foundations/circles.scss +18 -11
- package/assets/sass/foundations/media.scss +47 -0
- package/assets/sass/foundations/reboot.scss +24 -2
- package/assets/sass/foundations/root.scss +4 -1
- package/dist/components.common.js +651 -5130
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/components.umd.js +651 -5130
- package/dist/components.umd.js.map +1 -1
- package/dist/components.umd.min.js +1 -1
- package/dist/components.umd.min.js.map +1 -1
- package/package.json +48 -46
- package/src/.DS_Store +0 -0
- package/src/components/Accordion/Accordion.vue +0 -18
- package/src/components/Accordion/AccordionItem.vue +43 -0
- package/src/components/Accordion/README.md +21 -8
- package/src/components/Card/Card.vue +13 -13
- package/src/components/Card/README.md +7 -7
- package/src/components/CardDeck/CardDeck.vue +11 -11
- package/src/components/CardDeck/README.md +6 -6
- package/src/components/Carousel/Carousel.vue +10 -10
- package/src/components/Carousel/README.md +1 -1
- package/src/components/Chart/Chart.vue +246 -0
- package/src/components/Chart/README.md +18 -0
- package/src/components/Header/Header.vue +2 -2
- package/src/components/Modal/Modal.vue +15 -4
- package/src/components/Modal/README.md +1 -0
- package/src/components/Nav/Nav.vue +1 -1
- package/src/components/Nav/README.md +3 -3
- package/src/components/PropertySearchbar/PropertySearchbar.vue +13 -13
- package/src/components/Snapshot/README.md +21 -0
- package/src/components/Snapshot/Snapshot.vue +33 -0
- package/src/components/Tabs/Tabs.vue +12 -8
- package/src/components/Timeline/README.md +18 -0
- package/src/components/Timeline/Timeline.vue +25 -0
- package/src/elements/Input/Input.vue +15 -15
- package/src/elements/Input/README.md +4 -4
- package/src/elements/Table/Table.vue +17 -3
- package/src/foundations/YoutubeVideo/README.md +11 -0
- package/src/foundations/YoutubeVideo/YoutubeVideo.vue +24 -0
- package/src/index.js +1 -0
- package/assets/sass/elements/media.scss +0 -3
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
// #region Chart Colours
|
|
2
|
+
$chart-colors: ();
|
|
3
|
+
$chart-colors: map-merge((
|
|
4
|
+
1: --colour-primary,
|
|
5
|
+
2: --colour-secondary,
|
|
6
|
+
3: --colour-info,
|
|
7
|
+
4: --colour-warning,
|
|
8
|
+
5: --colour-dark,
|
|
9
|
+
6: --colour-light,
|
|
10
|
+
7: --colour-primary,
|
|
11
|
+
8: --colour-secondary,
|
|
12
|
+
9: --colour-info,
|
|
13
|
+
10: --colour-warning,
|
|
14
|
+
), $chart-colors);
|
|
15
|
+
|
|
16
|
+
html {
|
|
17
|
+
|
|
18
|
+
@each $index, $value in $chart-colors {
|
|
19
|
+
--colour-chart-#{$index}: var(#{$value});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// #endregion
|
|
23
|
+
|
|
24
|
+
// #region Apply colours
|
|
25
|
+
@for $i from 1 to 10 {
|
|
26
|
+
|
|
27
|
+
.chart__key .key:not(:first-child):nth-child(#{$i+1}):before,
|
|
28
|
+
.chart:not(.chart--none):not(.chart--pie) table tbody tr td:not(:first-child):nth-child(#{$i+1}) {
|
|
29
|
+
background: var(#{'--colour-chart-'+$i});
|
|
30
|
+
}
|
|
31
|
+
.chart.chart--line:not(.chart--none):not(.chart--pie) .line:nth-child(#{$i}) {
|
|
32
|
+
stroke: var(#{'--colour-chart-'+$i});
|
|
33
|
+
z-index: #{10 - $i};
|
|
34
|
+
}
|
|
35
|
+
.chart.chart--pie .pie path:nth-child(#{$i}) {
|
|
36
|
+
fill: var(#{'--colour-chart-'+$i});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// #endregion
|
|
40
|
+
|
|
41
|
+
// #region caption
|
|
42
|
+
.chart__wrapper {
|
|
43
|
+
figcaption {
|
|
44
|
+
font-size: 1rem;
|
|
45
|
+
margin-bottom: 2rem;
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// #endregion
|
|
50
|
+
|
|
51
|
+
// #region Chart key
|
|
52
|
+
.chart__key {
|
|
53
|
+
|
|
54
|
+
padding-bottom: 2rem;
|
|
55
|
+
margin-bottom: 0;
|
|
56
|
+
|
|
57
|
+
&:before {
|
|
58
|
+
content: "Key: ";
|
|
59
|
+
display: inline-block;
|
|
60
|
+
padding-right: 1.5rem;
|
|
61
|
+
margin-bottom: 1rem;
|
|
62
|
+
width: 100%;
|
|
63
|
+
|
|
64
|
+
@include media-breakpoint-up(sm) {
|
|
65
|
+
|
|
66
|
+
width: auto;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.key {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
padding-right: 1.5rem;
|
|
73
|
+
margin-bottom: 1rem;
|
|
74
|
+
|
|
75
|
+
&:before {
|
|
76
|
+
content: "";
|
|
77
|
+
height: 1em;
|
|
78
|
+
width: 1em;
|
|
79
|
+
margin-right: 0.25em;
|
|
80
|
+
background: red;
|
|
81
|
+
display: inline-block;
|
|
82
|
+
vertical-align: middle;
|
|
83
|
+
margin-bottom: 0.2em;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:first-child {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// #endregion
|
|
92
|
+
|
|
93
|
+
// #region Default bar chart (Also applies to line chart)
|
|
94
|
+
.chart:not(.chart--none):not(.chart--pie) {
|
|
95
|
+
|
|
96
|
+
--label-size: #{rem(12)};
|
|
97
|
+
--chart-ratio: 56.25%;
|
|
98
|
+
|
|
99
|
+
@include media-breakpoint-up(sm) {
|
|
100
|
+
|
|
101
|
+
--chart-ratio: 42.86%; // 21:9 ratio
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@include media-breakpoint-up(md) {
|
|
105
|
+
|
|
106
|
+
--label-size: #{rem(14)};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
display: flex;
|
|
110
|
+
position: relative;
|
|
111
|
+
margin-bottom: 2rem;
|
|
112
|
+
|
|
113
|
+
.chart__yaxis {
|
|
114
|
+
margin-bottom: 2rem;
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column-reverse;
|
|
117
|
+
z-index: 2;
|
|
118
|
+
width: 0;
|
|
119
|
+
|
|
120
|
+
.axis__point {
|
|
121
|
+
|
|
122
|
+
bottom: var(--percent);
|
|
123
|
+
position: relative;
|
|
124
|
+
height: 0;
|
|
125
|
+
white-space: nowrap;
|
|
126
|
+
|
|
127
|
+
&:not(:last-child){
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
span {
|
|
132
|
+
display: block;
|
|
133
|
+
transform: translate(0,-50%);
|
|
134
|
+
padding-right: 0.25rem;
|
|
135
|
+
text-align: right;
|
|
136
|
+
font-size: var(--label-size);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:last-child span {
|
|
140
|
+
|
|
141
|
+
transform: translate(0,-100%);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include media-breakpoint-up(sm) {
|
|
146
|
+
|
|
147
|
+
width: auto;
|
|
148
|
+
|
|
149
|
+
.axis__point {
|
|
150
|
+
|
|
151
|
+
&:not(:last-child){
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:last-child span {
|
|
156
|
+
|
|
157
|
+
transform: translate(0,-50%);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.chart__guidelines {
|
|
164
|
+
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 0;
|
|
167
|
+
left: 0;
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: calc(100% - 2rem);
|
|
170
|
+
margin-bottom: 2rem;
|
|
171
|
+
z-index: -1;
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column-reverse;
|
|
174
|
+
|
|
175
|
+
.guideline {
|
|
176
|
+
|
|
177
|
+
bottom: var(--percent);
|
|
178
|
+
position: absolute;
|
|
179
|
+
right: 0;
|
|
180
|
+
width: 100%;
|
|
181
|
+
height: 0px;
|
|
182
|
+
margin-bottom: -1px;
|
|
183
|
+
border-bottom: 1px dashed #eeeeee;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[data-value="0"] {
|
|
187
|
+
border-bottom: 1px solid var(--colour-primary);
|
|
188
|
+
|
|
189
|
+
&:not(:first-child){
|
|
190
|
+
|
|
191
|
+
border-bottom: 1px dashed var(--colour-primary);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.table__wrapper {
|
|
197
|
+
|
|
198
|
+
padding-bottom: 2rem;
|
|
199
|
+
padding-right: 0;
|
|
200
|
+
margin: 0;
|
|
201
|
+
overflow-x: visible;
|
|
202
|
+
position: relative;
|
|
203
|
+
|
|
204
|
+
table{
|
|
205
|
+
overflow: visible;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
table {
|
|
210
|
+
display: block;
|
|
211
|
+
width: 100%;
|
|
212
|
+
padding-top: var(--chart-ratio); // 16:9 ratio
|
|
213
|
+
position: relative;
|
|
214
|
+
margin-bottom: 0;
|
|
215
|
+
//border-bottom: 1px solid black;
|
|
216
|
+
|
|
217
|
+
thead {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
tbody {
|
|
222
|
+
|
|
223
|
+
display: flex;
|
|
224
|
+
position: absolute;
|
|
225
|
+
width: 100%;
|
|
226
|
+
height: 100%;
|
|
227
|
+
top: 0;
|
|
228
|
+
left: 0;
|
|
229
|
+
flex-direction: row;
|
|
230
|
+
border: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
tbody tr {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
align-items: flex-end;
|
|
238
|
+
border: none;
|
|
239
|
+
width: 100%;
|
|
240
|
+
height: 100%;
|
|
241
|
+
position: relative;
|
|
242
|
+
padding: 0 5%;
|
|
243
|
+
|
|
244
|
+
td:first-child {
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 100%;
|
|
247
|
+
left: 50%;
|
|
248
|
+
transform: translate(-50%,0);
|
|
249
|
+
width: auto;
|
|
250
|
+
padding: 0;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
max-width: 120%;
|
|
253
|
+
overflow: hidden;
|
|
254
|
+
text-overflow: ellipsis;
|
|
255
|
+
font-size: var(--label-size);
|
|
256
|
+
display: none;
|
|
257
|
+
|
|
258
|
+
@include media-breakpoint-up(md) {
|
|
259
|
+
display: block;
|
|
260
|
+
max-width: 95%;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&:first-child td:first-child,
|
|
265
|
+
&:last-child td:first-child {
|
|
266
|
+
|
|
267
|
+
display: block;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
td:not(:first-child) {
|
|
271
|
+
height: 100%;
|
|
272
|
+
height: var(--percent, 0%);
|
|
273
|
+
bottom: var(--bottom,0%);
|
|
274
|
+
width: 50%;
|
|
275
|
+
max-width: 10rem;
|
|
276
|
+
position: relative;
|
|
277
|
+
background: green;
|
|
278
|
+
padding: 0;
|
|
279
|
+
|
|
280
|
+
&[data-label]:before {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
span {
|
|
285
|
+
position: absolute;
|
|
286
|
+
bottom: 100%;
|
|
287
|
+
left: 50%;
|
|
288
|
+
font-size: var(--label-size);
|
|
289
|
+
line-height: 1.2;
|
|
290
|
+
transform: translate(-50%,0);
|
|
291
|
+
background: var(--colour-info);
|
|
292
|
+
opacity: 0;
|
|
293
|
+
pointer-events: none;
|
|
294
|
+
padding: 0.5rem;
|
|
295
|
+
border-radius: 0.5rem;
|
|
296
|
+
margin-bottom: 0.25rem;
|
|
297
|
+
color: white;
|
|
298
|
+
white-space: pre;
|
|
299
|
+
text-align: center;
|
|
300
|
+
|
|
301
|
+
&::before {
|
|
302
|
+
content: attr(data-group) '\A' attr(data-label) ': ';
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&:hover {
|
|
307
|
+
//z-index: 1;
|
|
308
|
+
}
|
|
309
|
+
&:hover span {
|
|
310
|
+
opacity: 1;
|
|
311
|
+
z-index: 99;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&:first-child td:not(:first-child) span {
|
|
316
|
+
|
|
317
|
+
left: -20%;
|
|
318
|
+
transform: translate(0%,0);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&:last-child td:not(:first-child) span {
|
|
322
|
+
|
|
323
|
+
left: 120%;
|
|
324
|
+
transform: translate(-100%,0);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@include media-breakpoint-up(sm) {
|
|
328
|
+
|
|
329
|
+
&:first-child td:not(:first-child) span,
|
|
330
|
+
&:last-child td:not(:first-child) span {
|
|
331
|
+
|
|
332
|
+
left: 50%;
|
|
333
|
+
transform: translate(-50%,0);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
td:first-child {
|
|
338
|
+
&[data-label]:before {
|
|
339
|
+
display: none;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.line,
|
|
346
|
+
.pie {
|
|
347
|
+
display: none;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
// #endregion
|
|
351
|
+
|
|
352
|
+
// #region Stacked bar chart
|
|
353
|
+
.chart:not(.chart--none):not(.chart--pie).chart--stacked {
|
|
354
|
+
table tbody tr {
|
|
355
|
+
flex-direction: column-reverse;
|
|
356
|
+
justify-content: flex-start;
|
|
357
|
+
align-items: center;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
// #endregion
|
|
361
|
+
|
|
362
|
+
// #region Line chart
|
|
363
|
+
.chart.chart--line:not(.chart--none):not(.chart--pie) {
|
|
364
|
+
|
|
365
|
+
--line-thickness: 1px;
|
|
366
|
+
|
|
367
|
+
@include media-breakpoint-up(sm) {
|
|
368
|
+
|
|
369
|
+
--line-thickness: 0.8px;
|
|
370
|
+
}
|
|
371
|
+
@include media-breakpoint-up(md) {
|
|
372
|
+
|
|
373
|
+
--line-thickness: 0.5px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
table tbody {
|
|
377
|
+
justify-content: space-between;
|
|
378
|
+
|
|
379
|
+
tr {
|
|
380
|
+
width: 4rem;
|
|
381
|
+
margin-left: -2rem;
|
|
382
|
+
margin-right: -2rem;
|
|
383
|
+
padding: 0;
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
&:first-child td:first-child {
|
|
387
|
+
|
|
388
|
+
transform: translate(0,0);
|
|
389
|
+
display: block;
|
|
390
|
+
}
|
|
391
|
+
&:last-child td:first-child {
|
|
392
|
+
|
|
393
|
+
left: 100%;
|
|
394
|
+
transform: translate(-100%,0);
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
td:first-child {
|
|
399
|
+
left: 50%!important;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
td:not(:first-child) {
|
|
403
|
+
position: absolute;
|
|
404
|
+
left: 50%;
|
|
405
|
+
bottom: var(--percent);
|
|
406
|
+
height: 6px;
|
|
407
|
+
width: 6px;
|
|
408
|
+
margin-bottom: -3px;
|
|
409
|
+
margin-left: -3px;
|
|
410
|
+
border-radius: 3px;
|
|
411
|
+
opacity: 0;
|
|
412
|
+
|
|
413
|
+
&:hover {
|
|
414
|
+
opacity: 1;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&:hover {
|
|
419
|
+
&:before {
|
|
420
|
+
content: "";
|
|
421
|
+
border-left: 1px dashed #eeeeee;
|
|
422
|
+
|
|
423
|
+
height: 100%;
|
|
424
|
+
width: 0;
|
|
425
|
+
position: absolute;
|
|
426
|
+
top: 0;
|
|
427
|
+
left: 50%;
|
|
428
|
+
height: 100%;
|
|
429
|
+
margin-left: -1px;
|
|
430
|
+
z-index: 0;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.line {
|
|
437
|
+
display: block;
|
|
438
|
+
position: absolute;
|
|
439
|
+
top: 0;
|
|
440
|
+
left: 0;
|
|
441
|
+
stroke-width: var(--line-thickness);
|
|
442
|
+
width: 100%;
|
|
443
|
+
height: calc(100% - 2rem);
|
|
444
|
+
pointer-events: none;
|
|
445
|
+
z-index: -1;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.pie {
|
|
449
|
+
display: none;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
// #endregion
|
|
453
|
+
|
|
454
|
+
// #region Pie chart
|
|
455
|
+
.chart.chart--pie {
|
|
456
|
+
|
|
457
|
+
margin-bottom: 2rem;
|
|
458
|
+
|
|
459
|
+
.chart__yaxis,
|
|
460
|
+
.line {
|
|
461
|
+
display: none;
|
|
462
|
+
}
|
|
463
|
+
.table__wrapper {
|
|
464
|
+
display: none;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.pies {
|
|
468
|
+
display: flex;
|
|
469
|
+
flex-direction: row;
|
|
470
|
+
flex-wrap: wrap;
|
|
471
|
+
gap: 2rem;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.pie {
|
|
475
|
+
position: relative;
|
|
476
|
+
width: 100%;
|
|
477
|
+
aspect-ratio: 1 / 1;
|
|
478
|
+
min-width: rem(200);
|
|
479
|
+
flex: 1 1 auto;
|
|
480
|
+
display: inline-block;
|
|
481
|
+
|
|
482
|
+
@include media-breakpoint-up(sm) {
|
|
483
|
+
|
|
484
|
+
max-width: calc(33.333% - 1.4rem);
|
|
485
|
+
}
|
|
486
|
+
@include media-breakpoint-up(md) {
|
|
487
|
+
|
|
488
|
+
max-width: calc(25% - 1.5rem);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
&:first-child {
|
|
493
|
+
margin-left: 0;
|
|
494
|
+
}
|
|
495
|
+
&:last-child {
|
|
496
|
+
margin-right: 0;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.pie svg {
|
|
501
|
+
width: 100%;
|
|
502
|
+
height: 100%;
|
|
503
|
+
|
|
504
|
+
path:hover {
|
|
505
|
+
transform: scale(1.05);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.pie foreignObject {
|
|
510
|
+
background: white;
|
|
511
|
+
border-radius: 50%;
|
|
512
|
+
z-index: 100;
|
|
513
|
+
pointer-events: none;
|
|
514
|
+
display: none;
|
|
515
|
+
padding: 1rem;
|
|
516
|
+
|
|
517
|
+
div {
|
|
518
|
+
display: flex;
|
|
519
|
+
justify-content: center;
|
|
520
|
+
align-items: center;
|
|
521
|
+
height: 100%;
|
|
522
|
+
}
|
|
523
|
+
span {
|
|
524
|
+
text-align: center;
|
|
525
|
+
display: block;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.pie {
|
|
530
|
+
foreignObject:nth-of-type(1) {
|
|
531
|
+
display: block;
|
|
532
|
+
}
|
|
533
|
+
path:hover ~ foreignObject:nth-of-type(1) {
|
|
534
|
+
display: none;
|
|
535
|
+
}
|
|
536
|
+
path:nth-child(1):hover ~ foreignObject:nth-of-type(2),
|
|
537
|
+
path:nth-child(2):hover ~ foreignObject:nth-of-type(3),
|
|
538
|
+
path:nth-child(3):hover ~ foreignObject:nth-of-type(4),
|
|
539
|
+
path:nth-child(4):hover ~ foreignObject:nth-of-type(5),
|
|
540
|
+
path:nth-child(5):hover ~ foreignObject:nth-of-type(6),
|
|
541
|
+
path:nth-child(6):hover ~ foreignObject:nth-of-type(7),
|
|
542
|
+
path:nth-child(7):hover ~ foreignObject:nth-of-type(8),
|
|
543
|
+
path:nth-child(8):hover ~ foreignObject:nth-of-type(9){
|
|
544
|
+
display: block;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
// #endregion
|
|
549
|
+
|
|
550
|
+
// #region Reverted back into a table
|
|
551
|
+
.chart__key.chart__key--none{
|
|
552
|
+
display: none;
|
|
553
|
+
}
|
|
554
|
+
.chart.chart--none {
|
|
555
|
+
|
|
556
|
+
.chart__yaxis,
|
|
557
|
+
.line,
|
|
558
|
+
.pie {
|
|
559
|
+
display: none;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
// #endregion
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
height: 100%;
|
|
12
12
|
background: rgba(0,0,0,0.25);
|
|
13
13
|
z-index: 99999;
|
|
14
|
+
border: none;
|
|
15
|
+
overscroll-behavior: contain;
|
|
14
16
|
|
|
15
|
-
> a {
|
|
17
|
+
> a:first-child {
|
|
16
18
|
|
|
17
19
|
position: absolute;
|
|
18
20
|
top: 0;
|
|
@@ -20,16 +22,66 @@
|
|
|
20
22
|
width: 100%;
|
|
21
23
|
height: 100%;
|
|
22
24
|
opacity: 0;
|
|
25
|
+
cursor: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3e%3cg transform='rotate(45 256 256)'%3e%3crect id='r' x='16' y='216' width='480' height='80' rx='14'/%3e%3cuse href='%23r' transform='rotate(90 256 256)'/%3e%3c/g%3e%3c/svg%3e") 8 8, pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> button {
|
|
29
|
+
display: none;
|
|
30
|
+
|
|
31
|
+
@include media-breakpoint-up(md) {
|
|
32
|
+
display: block;
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
top: 50%;
|
|
36
|
+
transform: translate(0,-50%);
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-indent: 300%;
|
|
39
|
+
width: 2rem;
|
|
40
|
+
height: 2rem;
|
|
41
|
+
|
|
42
|
+
&.btn:not(:hover):not(:focus) {
|
|
43
|
+
background-color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.modal__dock--left {
|
|
47
|
+
right: calc(50% + #{rem(820/2)} + 1rem);
|
|
48
|
+
|
|
49
|
+
&:after {
|
|
50
|
+
transform: rotate(-180deg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
&.modal__dock--right {
|
|
54
|
+
left: calc(50% + #{rem(820/2)} + 1rem);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
&.modal--left button.modal__dock--left {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.modal--left button.modal__dock--right {
|
|
65
|
+
left: calc(#{rem(640)} + 2rem);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.modal--right button.modal__dock--right {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.modal--right button.modal__dock--left {
|
|
73
|
+
right: calc(#{rem(640)} + 2rem);
|
|
23
74
|
}
|
|
24
75
|
}
|
|
25
76
|
|
|
77
|
+
|
|
26
78
|
.modal__outer {
|
|
27
79
|
|
|
28
80
|
position: absolute;
|
|
29
81
|
top: 50%;
|
|
30
82
|
left: 50%;
|
|
31
83
|
width: 90%;
|
|
32
|
-
max-width:
|
|
84
|
+
max-width: rem(820);
|
|
33
85
|
height: fit-content;
|
|
34
86
|
max-height: 90%;
|
|
35
87
|
overflow: visible;
|
|
@@ -47,12 +99,35 @@
|
|
|
47
99
|
background: white;
|
|
48
100
|
}
|
|
49
101
|
}
|
|
102
|
+
@include media-breakpoint-up(md) {
|
|
103
|
+
.modal--left & {
|
|
104
|
+
left: 1rem;
|
|
105
|
+
transform: translate(0,-50%);
|
|
106
|
+
max-width: 40rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.modal--right & {
|
|
110
|
+
left: auto;
|
|
111
|
+
right: 1rem;
|
|
112
|
+
transform: translate(0,-50%);
|
|
113
|
+
max-width: 40rem;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
50
116
|
}
|
|
51
117
|
|
|
52
118
|
.modal__inner {
|
|
53
119
|
background: white;
|
|
54
|
-
|
|
120
|
+
overscroll-behavior: contain;
|
|
55
121
|
height: fit-content;
|
|
56
122
|
max-height: 90vh;
|
|
57
123
|
overflow: auto;
|
|
124
|
+
|
|
125
|
+
& > *:first-child {
|
|
126
|
+
|
|
127
|
+
padding: 1rem;
|
|
128
|
+
@include media-breakpoint-up(sm) {
|
|
129
|
+
|
|
130
|
+
padding: 2rem;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
58
133
|
}
|