@cdc/chart 4.23.11 → 4.24.2

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.
Files changed (104) hide show
  1. package/dist/cdcchart.js +35740 -35027
  2. package/examples/feature/bar/additional-column-tooltip.json +446 -0
  3. package/examples/feature/bar/tall-data.json +98 -0
  4. package/examples/feature/forest-plot/forest-plot.json +63 -19
  5. package/examples/feature/forest-plot/linear.json +52 -3
  6. package/examples/feature/forest-plot/log.json +26 -0
  7. package/examples/feature/forest-plot/logarithmic.json +0 -35
  8. package/examples/feature/line/line-chart-preliminary.json +393 -0
  9. package/examples/feature/regions/index.json +9 -5
  10. package/examples/feature/scatterplot/scatterplot.json +272 -33
  11. package/index.html +10 -8
  12. package/package.json +2 -2
  13. package/src/CdcChart.tsx +70 -234
  14. package/src/ConfigContext.tsx +6 -0
  15. package/src/_stories/ChartEditor.stories.tsx +22 -0
  16. package/src/_stories/ChartLine.preliminary.tsx +19 -0
  17. package/src/_stories/_mock/pie_config.json +192 -0
  18. package/src/_stories/_mock/pie_data.json +218 -0
  19. package/src/_stories/_mock/preliminary_mock.json +346 -0
  20. package/src/components/{AreaChart.Stacked.jsx → AreaChart/components/AreaChart.Stacked.jsx} +2 -2
  21. package/src/components/{AreaChart.jsx → AreaChart/components/AreaChart.jsx} +2 -26
  22. package/src/components/AreaChart/index.tsx +4 -0
  23. package/src/components/{BarChart.Horizontal.tsx → BarChart/components/BarChart.Horizontal.tsx} +8 -8
  24. package/src/components/{BarChart.StackedHorizontal.tsx → BarChart/components/BarChart.StackedHorizontal.tsx} +37 -7
  25. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +108 -0
  26. package/src/components/{BarChart.Vertical.tsx → BarChart/components/BarChart.Vertical.tsx} +53 -70
  27. package/src/components/BarChart/components/BarChart.jsx +39 -0
  28. package/src/components/{BarChartType.jsx → BarChart/components/BarChartType.jsx} +0 -2
  29. package/src/components/BarChart/components/context.tsx +13 -0
  30. package/src/components/BarChart/index.tsx +3 -0
  31. package/src/components/{BoxPlot.jsx → BoxPlot/BoxPlot.jsx} +10 -9
  32. package/src/components/BoxPlot/index.tsx +3 -0
  33. package/src/components/EditorPanel/EditorPanel.tsx +2776 -0
  34. package/src/components/EditorPanel/EditorPanelContext.ts +40 -0
  35. package/src/components/EditorPanel/components/PanelProps.ts +3 -0
  36. package/src/components/EditorPanel/components/Panels/Panel.BoxPlot.tsx +148 -0
  37. package/src/components/{ForestPlotSettings.jsx → EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx} +97 -167
  38. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +160 -0
  39. package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +168 -0
  40. package/src/components/{Series.jsx → EditorPanel/components/Panels/Panel.Series.tsx} +4 -4
  41. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +297 -0
  42. package/src/components/EditorPanel/components/Panels/index.tsx +17 -0
  43. package/src/components/EditorPanel/components/panels.scss +72 -0
  44. package/src/components/EditorPanel/editor-panel.scss +739 -0
  45. package/src/components/EditorPanel/index.tsx +3 -0
  46. package/src/{hooks → components/EditorPanel}/useEditorPermissions.js +34 -2
  47. package/src/components/{Forecasting.jsx → Forecasting/Forecasting.jsx} +1 -1
  48. package/src/components/Forecasting/index.tsx +3 -0
  49. package/src/components/ForestPlot/ForestPlot.tsx +254 -0
  50. package/src/components/ForestPlot/ForestPlotProps.ts +7 -0
  51. package/src/components/ForestPlot/index.tsx +1 -209
  52. package/src/components/Legend/Legend.Component.tsx +199 -0
  53. package/src/components/Legend/Legend.tsx +28 -0
  54. package/src/components/Legend/helpers/createFormatLabels.tsx +140 -0
  55. package/src/components/Legend/index.tsx +3 -0
  56. package/src/components/LineChart/LineChartProps.ts +29 -0
  57. package/src/components/LineChart/components/LineChart.Circle.tsx +147 -0
  58. package/src/components/LineChart/helpers.ts +45 -0
  59. package/src/components/LineChart/index.tsx +111 -23
  60. package/src/components/LinearChart.jsx +55 -72
  61. package/src/components/PairedBarChart.jsx +4 -2
  62. package/src/components/{PieChart.jsx → PieChart/PieChart.tsx} +93 -31
  63. package/src/components/PieChart/index.tsx +3 -0
  64. package/src/components/Regions/components/Regions.tsx +144 -0
  65. package/src/components/Regions/index.tsx +3 -0
  66. package/src/components/{ScatterPlot.jsx → ScatterPlot/ScatterPlot.jsx} +3 -3
  67. package/src/components/ScatterPlot/index.tsx +3 -0
  68. package/src/components/{SparkLine.jsx → Sparkline/SparkLine.jsx} +2 -2
  69. package/src/components/Sparkline/index.tsx +3 -0
  70. package/src/data/initial-state.js +10 -8
  71. package/src/helpers/abbreviateNumber.ts +17 -0
  72. package/src/helpers/computeMarginBottom.ts +55 -0
  73. package/src/helpers/filterData.ts +18 -0
  74. package/src/helpers/generateColorsArray.ts +8 -0
  75. package/src/helpers/getQuartiles.ts +30 -0
  76. package/src/helpers/handleChartAriaLabels.ts +19 -0
  77. package/src/helpers/handleLineType.ts +18 -0
  78. package/src/helpers/lineOptions.ts +18 -0
  79. package/src/helpers/sort.ts +7 -0
  80. package/src/helpers/tests/computeMarginBottom.test.ts +20 -0
  81. package/src/hooks/useBarChart.js +7 -6
  82. package/src/hooks/useHighlightedBars.js +1 -1
  83. package/src/hooks/useMinMax.ts +3 -3
  84. package/src/hooks/useScales.ts +19 -6
  85. package/src/hooks/{useTooltip.jsx → useTooltip.tsx} +31 -25
  86. package/src/scss/main.scss +0 -3
  87. package/src/types/ChartConfig.ts +167 -23
  88. package/src/types/ChartContext.ts +34 -12
  89. package/src/types/ForestPlot.ts +7 -14
  90. package/src/types/Label.ts +7 -0
  91. package/examples/feature/scatterplot/scatterplot-continuous.csv +0 -17
  92. package/src/ConfigContext.jsx +0 -5
  93. package/src/components/BarChart.StackedVertical.tsx +0 -91
  94. package/src/components/BarChart.jsx +0 -30
  95. package/src/components/EditorPanel.jsx +0 -3356
  96. package/src/components/ForestPlot/Readme.md +0 -0
  97. package/src/components/Legend.jsx +0 -310
  98. package/src/components/LineChart/LineChart.Circle.tsx +0 -105
  99. package/src/scss/LinearChart.scss +0 -0
  100. package/src/scss/editor-panel.scss +0 -745
  101. package/src/scss/legend.scss +0 -206
  102. package/src/scss/mixins.scss +0 -0
  103. package/src/scss/variables.scss +0 -1
  104. package/src/types/ChartProps.ts +0 -7
@@ -1,745 +0,0 @@
1
- //TODO: Remove after COVE refactor
2
- .cove {
3
- @import '@cdc/core/styles/v2/layout/tooltip.scss';
4
- }
5
-
6
- .editor-panel {
7
- display: flex;
8
- flex-direction: column;
9
- position: fixed;
10
- top: 0;
11
- bottom: 0;
12
- left: 0;
13
- width: $editorWidth;
14
- background: #fff;
15
- z-index: 8;
16
-
17
- &.hidden {
18
- display: none;
19
- }
20
-
21
- .two-col-inputs {
22
- display: flex;
23
- margin-top: 1em;
24
- justify-content: space-between;
25
-
26
- > label {
27
- width: 48%;
28
- margin-top: 0 !important;
29
- }
30
- }
31
-
32
- .helper-tooltip {
33
- padding: 5px;
34
- max-width: 300px;
35
- }
36
-
37
- .helper {
38
- position: relative;
39
- opacity: 0.7;
40
- cursor: pointer;
41
- width: 17px;
42
- height: 17px;
43
- align-self: center;
44
- margin-left: 0.3rem;
45
- margin-top: -0.3rem;
46
- border: none !important;
47
- box-shadow: none !important;
48
-
49
- svg {
50
- position: absolute;
51
- top: 0;
52
- left: 0;
53
- width: 100%;
54
- height: 100%;
55
- }
56
- }
57
-
58
- .divider-heading {
59
- display: block;
60
- font-size: 1em;
61
- margin-top: 1em;
62
- }
63
-
64
- .series-list {
65
- list-style: none;
66
- border: $lightGray 1px solid;
67
-
68
- &:empty {
69
- border: none !important;
70
- }
71
-
72
- li {
73
- padding: 0.3em 0.5em;
74
- display: flex;
75
- align-items: center;
76
- justify-content: space-between;
77
- font-size: 0.9em;
78
- position: relative;
79
-
80
- &:hover {
81
- background-color: $lightestGray;
82
- }
83
-
84
- div {
85
- width: 100%;
86
- }
87
-
88
- .series-list__name {
89
- position: relative;
90
- user-select: none;
91
-
92
- &.series-list__name--truncate {
93
- &[data-title] {
94
- $bgColor: rgb(34 34 34 / 90%);
95
- position: relative;
96
-
97
- &::before,
98
- &::after {
99
- opacity: 0;
100
- pointer-events: none;
101
- position: absolute;
102
- transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
103
- z-index: 1;
104
- }
105
-
106
- &::before {
107
- content: attr(data-title);
108
- bottom: -39px;
109
- padding: 6px 10px;
110
- background: $bgColor;
111
- color: #fff;
112
- font-size: 14px;
113
- white-space: nowrap;
114
- border-radius: 4px;
115
- }
116
-
117
- &::after {
118
- content: '';
119
- bottom: -8px;
120
- left: 10px;
121
- border: 7px solid transparent;
122
- border-bottom: 6px solid $bgColor;
123
- }
124
-
125
- &:hover {
126
- &::before,
127
- &::after {
128
- opacity: 1;
129
- }
130
- }
131
- }
132
-
133
- .series-list__name-text {
134
- cursor: pointer;
135
- }
136
- }
137
- }
138
-
139
- .series-list__dropdown {
140
- width: 100%;
141
- display: block;
142
- font-size: 0.8em;
143
- margin-bottom: 10px;
144
- select {
145
- width: 100%;
146
- }
147
- }
148
-
149
- .series-list__remove {
150
- padding: 0 4px;
151
- font-size: 1.125rem;
152
- color: #f00;
153
- cursor: pointer;
154
- position: absolute;
155
- top: 5px;
156
- right: 5px;
157
- }
158
-
159
- + li {
160
- border-top: $lightGray 1px solid;
161
- }
162
- }
163
- }
164
-
165
- .series-list__name-text {
166
- max-width: 150px;
167
- margin-bottom: 10px;
168
- white-space: nowrap;
169
- text-overflow: ellipsis;
170
- overflow: hidden;
171
- }
172
-
173
- .accordion__heading {
174
- background: $lightestGray;
175
- }
176
-
177
- .accordion__item {
178
- select {
179
- text-transform: capitalize;
180
- outline: none;
181
- }
182
-
183
- .number-narrow {
184
- min-width: auto;
185
- width: 75px;
186
- }
187
- }
188
-
189
- .form-container {
190
- border-right: $lightGray 1px solid;
191
- flex-grow: 1;
192
- }
193
-
194
- .guidance-link {
195
- margin: 2em 1em 0;
196
- padding: 0.75em 1em;
197
-
198
- svg {
199
- width: 60px;
200
- color: $blue;
201
- margin-right: 1rem;
202
- height: 60px; // IE11
203
- path {
204
- fill: currentColor;
205
- }
206
- }
207
- }
208
-
209
- .warning {
210
- color: #d8000c;
211
- background-color: #ffd2d2;
212
- padding: 0.75em 1em;
213
- margin: 1em 0;
214
- font-size: 0.8em;
215
- border: #d8000c 1px solid;
216
- border-radius: 0.4em;
217
-
218
- strong {
219
- font-weight: 600;
220
- display: block;
221
- }
222
- }
223
-
224
- .accordion__button {
225
- cursor: pointer;
226
- font-size: 1em;
227
- padding: 0.3em 1em;
228
- width: 100%;
229
- text-align: left;
230
- position: relative;
231
- border-bottom: 1px solid rgba(0, 0, 0, 0.2);
232
-
233
- &::before {
234
- display: inline-block;
235
- content: '';
236
- height: 7px;
237
- width: 7px;
238
- margin-right: 1em;
239
- border-bottom: 2px solid currentColor;
240
- border-right: 2px solid currentColor;
241
- right: 0;
242
- position: absolute;
243
- top: 50%;
244
- transform: rotate(-45deg) translateY(-50%);
245
- transition: 0.1s all;
246
- }
247
-
248
- &[aria-expanded='true']::before {
249
- transform: rotate(45deg) translateY(-50%);
250
- transform-origin: right;
251
- margin-right: 1.3em;
252
- transition: 0.1s all;
253
- }
254
- }
255
-
256
- .accordion__panel {
257
- border-bottom: 1px solid rgba(0, 0, 0, 0.2);
258
- padding: 1em 1.25em 2em;
259
- animation: fadein 0.2s ease-in;
260
-
261
- &:first-child {
262
- margin-top: 0;
263
- }
264
-
265
- h5 {
266
- font-size: 0.8em;
267
- }
268
- }
269
-
270
- .advanced {
271
- padding: 0 1em 1em;
272
- text-align: left;
273
-
274
- p {
275
- font-size: 0.8rem;
276
- }
277
-
278
- .advanced-toggle-link {
279
- padding-top: 1em;
280
- display: block;
281
- text-align: left;
282
- cursor: pointer;
283
- text-decoration: underline;
284
-
285
- span {
286
- text-decoration: none;
287
- display: inline-block;
288
- font-family: monospace;
289
- padding-right: 5px;
290
- }
291
-
292
- &:hover {
293
- color: rgba(0, 0, 0, 0.7);
294
- }
295
- }
296
-
297
- textarea {
298
- height: 400px;
299
- width: 100%;
300
- font-size: 0.9em;
301
- padding: 0.5em;
302
- font-family: monospace;
303
- box-sizing: border-box;
304
- }
305
- }
306
-
307
- @keyframes fadein {
308
- 0% {
309
- opacity: 0;
310
- }
311
-
312
- 100% {
313
- opacity: 1;
314
- }
315
- }
316
-
317
- .heading-2 {
318
- background: #565656;
319
- color: #fff;
320
- font-size: 1.1em;
321
- padding: 0.6em 1em;
322
- position: relative;
323
- border-bottom: #565656 3px solid;
324
- z-index: 3;
325
- }
326
-
327
- legend,
328
- label {
329
- text-transform: uppercase;
330
- display: block;
331
- font-size: 0.8em;
332
- font-weight: 600;
333
- user-select: none;
334
-
335
- &:not(:first-child) {
336
- margin-top: 1em;
337
- }
338
-
339
- span.edit-label {
340
- margin-bottom: 0.3em;
341
- display: block;
342
- }
343
-
344
- span.column-heading {
345
- font-size: 1em;
346
- }
347
-
348
- &.checkbox {
349
- display: flex;
350
-
351
- input {
352
- margin-left: 0;
353
- width: inherit;
354
- display: inline;
355
- }
356
- }
357
- }
358
-
359
- legend {
360
- font-weight: normal;
361
- margin-bottom: 0.3em;
362
- }
363
-
364
- legend + span {
365
- float: left;
366
- }
367
-
368
- .radio-label {
369
- font-weight: normal;
370
- }
371
-
372
- .accordion__panel fieldset:not(:first-child) {
373
- margin-top: 1em;
374
- }
375
-
376
- .accordion__panel fieldset {
377
- label:not(:first-child) {
378
- margin-top: 0rem;
379
- }
380
- }
381
-
382
- input[type='text'],
383
- input[role='combobox'],
384
- input[type='number'],
385
- textarea {
386
- min-width: 100%;
387
- max-width: 100%; // Doing this prevents width of textarea from being changed
388
- }
389
-
390
- textarea {
391
- min-height: 140px;
392
- }
393
-
394
- .header .color-palette button {
395
- width: 21px;
396
- height: 21px;
397
- border-radius: 40px;
398
- margin-right: 2.8px;
399
- }
400
-
401
- .color-palette {
402
- display: flex;
403
- max-width: 100%;
404
- padding: 0;
405
- margin: 0.5em 0 0 0;
406
- list-style: none;
407
- flex-wrap: wrap;
408
-
409
- button {
410
- width: 45px;
411
- height: 23px;
412
- margin-right: 4px;
413
- margin-bottom: 10px;
414
- display: flex;
415
- border-radius: 5px;
416
- overflow: hidden;
417
- cursor: pointer;
418
- position: relative;
419
- padding: 0;
420
-
421
- .click-target {
422
- position: absolute;
423
- top: 0;
424
- left: 0;
425
- right: 0;
426
- bottom: 0;
427
- }
428
-
429
- &.selected {
430
- border: rgba(0, 0, 0, 0.8) 2px solid;
431
- }
432
-
433
- span {
434
- width: 33.3%;
435
- height: 100%;
436
- }
437
-
438
- span.two-color {
439
- width: 50%;
440
- height: 100%;
441
- }
442
- }
443
- }
444
-
445
- fieldset {
446
- display: block;
447
-
448
- .float-left {
449
- float: left;
450
- }
451
- }
452
-
453
- .primary-fieldset {
454
- padding: 0;
455
- margin: 0;
456
- border: 0;
457
- }
458
-
459
- ul.column-edit {
460
- list-style: none;
461
-
462
- li {
463
- margin-top: 1em;
464
- }
465
-
466
- .three-col {
467
- display: flex;
468
- justify-content: space-between;
469
-
470
- > label {
471
- margin-top: 0;
472
- width: 30%;
473
- display: inline-block;
474
-
475
- input[type='text'],
476
- input[type='number'] {
477
- width: 50px;
478
- }
479
- }
480
- }
481
- }
482
-
483
- .emove-column {
484
- float: right;
485
- text-transform: uppercase;
486
- color: #c32b2b;
487
- font-size: 0.7em;
488
- line-height: 1.6em;
489
- border-radius: 5px;
490
- margin: 0 auto;
491
- transition: 0.1s all;
492
- border: 0;
493
- text-decoration: underline;
494
- outline: 0;
495
- cursor: pointer;
496
- font-weight: bold;
497
- }
498
-
499
- .edit-block {
500
- padding-left: 1em;
501
- border-left: rgba(0, 0, 0, 0.2) 4px solid;
502
- transition: 0.2s all;
503
-
504
- &:not(:first-child) {
505
- margin-top: 2em;
506
- }
507
-
508
- input[type='text'],
509
- input[type='number'] {
510
- font-size: 1em;
511
- }
512
-
513
- label {
514
- margin-top: 0;
515
- }
516
-
517
- label + label {
518
- margin-top: 1em;
519
- }
520
-
521
- &:hover {
522
- border-left: rgba(0, 0, 0, 0.7) 4px solid;
523
- transition: 0.2s all;
524
- }
525
- }
526
-
527
- span.subtext {
528
- display: block;
529
- color: rgba(0, 0, 0, 0.5);
530
- text-transform: none;
531
- font-weight: normal;
532
- }
533
-
534
- .btn {
535
- margin-top: 1em;
536
- }
537
-
538
- .sort-list {
539
- list-style: none;
540
-
541
- > li {
542
- margin-right: 0.3em;
543
- margin-bottom: 0.3em;
544
- }
545
- }
546
-
547
- .sort-list li > div {
548
- display: block;
549
- box-sizing: border-box;
550
- border: 1px solid #d1d1d1;
551
- border-radius: 2px;
552
- background: #f1f1f1;
553
- padding: 0.4em 0.6em;
554
- font-size: 0.8em;
555
- margin-bottom: 0.3em;
556
- cursor: move;
557
- }
558
-
559
- .info {
560
- font-size: 0.8em;
561
- line-height: 1.4em;
562
- font-style: italic;
563
- padding-top: 10px;
564
- }
565
-
566
- .react-tags__search {
567
- width: 100%;
568
- }
569
-
570
- .react-tags {
571
- position: relative;
572
-
573
- input.react-tags__search-input {
574
- font-size: 0.8rem;
575
- }
576
-
577
- /* clicking anywhere will focus the input */
578
- cursor: text;
579
-
580
- span {
581
- display: inline;
582
- }
583
- }
584
-
585
- .react-tags.is-focused {
586
- border-color: rgba(0, 0, 0, 0.7);
587
- }
588
-
589
- .react-tags__selected {
590
- display: inline;
591
- }
592
-
593
- .react-tags__selected-tag {
594
- display: inline-block;
595
- box-sizing: border-box;
596
- border: 1px solid #d1d1d1;
597
- border-radius: 2px;
598
- background: #f1f1f1;
599
- padding: 0.4em 0.6em;
600
- font-size: 0.8em;
601
- margin-right: 0.3em;
602
- margin-bottom: 0.3em;
603
- }
604
-
605
- .react-tags__selected-tag:after {
606
- content: '\2715';
607
- color: #aaa;
608
- margin-left: 8px;
609
- }
610
-
611
- .react-tags__selected-tag:hover,
612
- .react-tags__selected-tag:focus {
613
- border-color: #b1b1b1;
614
- }
615
-
616
- .react-tags__search {
617
- display: inline-block;
618
-
619
- /* prevent autoresize overflowing the container */
620
- max-width: 100%;
621
- }
622
-
623
- @media screen and (min-width: 30em) {
624
- .react-tags__search {
625
- /* this will become the offsetParent for suggestions */
626
- position: relative;
627
- }
628
- }
629
-
630
- .react-tags__search input {
631
- /* prevent autoresize overflowing the container */
632
- max-width: 100%;
633
-
634
- /* emove styles and layout from this element */
635
- margin: 0;
636
- outline: none;
637
- padding: 0.5em 0.3em;
638
-
639
- /* match the font styles */
640
- font-size: inherit;
641
- line-height: inherit;
642
- }
643
-
644
- .react-tags__search input::-ms-clear {
645
- display: none;
646
- }
647
-
648
- .react-tags__suggestions {
649
- position: absolute;
650
- top: 100%;
651
- left: 0;
652
- width: 100%;
653
- }
654
-
655
- @media screen and (min-width: 30em) {
656
- .react-tags__suggestions {
657
- width: 240px;
658
- }
659
- }
660
-
661
- .react-tags__suggestions ul {
662
- margin: 4px -1px;
663
- padding: 0;
664
- list-style: none;
665
- background: white;
666
- border: 1px solid #d1d1d1;
667
- border-radius: 2px;
668
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
669
- }
670
-
671
- .react-tags__suggestions li {
672
- border-bottom: 1px solid #ddd;
673
- padding: 6px 8px;
674
- }
675
-
676
- .react-tags__suggestions li mark {
677
- text-decoration: underline;
678
- background: none;
679
- font-weight: 600;
680
- }
681
-
682
- .react-tags__suggestions li:hover {
683
- cursor: pointer;
684
- background: #eee;
685
- }
686
-
687
- .react-tags__suggestions li.is-active {
688
- background: #b7cfe0;
689
- }
690
-
691
- .react-tags__suggestions li.is-disabled {
692
- opacity: 0.5;
693
- cursor: auto;
694
- }
695
-
696
- input[type='radio'] {
697
- border: 1px solid #8c8f94;
698
- border-radius: 50%;
699
- margin-right: 5px;
700
- }
701
- }
702
-
703
- .editor-toggle {
704
- background: #f2f2f2;
705
- border-radius: 60px;
706
- color: #000;
707
- font-size: 1em;
708
- border: 0;
709
- position: fixed;
710
- z-index: 100;
711
- transition: 0.1s background;
712
- cursor: pointer;
713
- width: 25px;
714
- height: 25px;
715
- left: 307px;
716
- top: 10px;
717
- box-shadow: rgba(0, 0, 0, 0.5) 0 1px 2px;
718
-
719
- &:before {
720
- top: 43%;
721
- left: 50%;
722
- transform: translate(-50%, -50%);
723
- position: absolute;
724
- content: '\00ab';
725
- }
726
-
727
- &.collapsed {
728
- left: 1em;
729
- margin-left: 0;
730
-
731
- &:before {
732
- content: '\00bb';
733
- }
734
- }
735
-
736
- &:hover {
737
- background: rgba(255, 255, 255, 1);
738
- }
739
- }
740
-
741
- @include breakpointClass(md) {
742
- .editor-panel:not(.hidden) + .cdc-chart-inner-container {
743
- padding-left: $editorWidth;
744
- }
745
- }