@cdc/core 4.24.3 → 4.24.5

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 (72) hide show
  1. package/assets/icon-command.svg +3 -0
  2. package/assets/icon-rotate-left.svg +3 -0
  3. package/components/AdvancedEditor.jsx +9 -0
  4. package/components/DataTable/DataTable.tsx +20 -15
  5. package/components/DataTable/DataTableStandAlone.tsx +51 -4
  6. package/components/DataTable/components/ChartHeader.tsx +3 -2
  7. package/components/DataTable/components/DataTableEditorPanel.tsx +20 -3
  8. package/components/DataTable/components/ExpandCollapse.tsx +22 -16
  9. package/components/DataTable/helpers/chartCellMatrix.tsx +3 -2
  10. package/components/DataTable/helpers/getChartCellValue.ts +21 -1
  11. package/components/DataTable/helpers/getDataSeriesColumns.ts +37 -16
  12. package/components/DataTable/helpers/getSeriesName.ts +2 -1
  13. package/components/DataTable/helpers/mapCellMatrix.tsx +2 -2
  14. package/components/DataTable/helpers/{customColumns.ts → removeNullColumns.ts} +3 -3
  15. package/components/DataTable/types/TableConfig.ts +11 -21
  16. package/components/EditorPanel/ColumnsEditor.tsx +304 -260
  17. package/components/EditorPanel/DataTableEditor.tsx +119 -48
  18. package/components/EditorPanel/VizFilterEditor.tsx +234 -0
  19. package/components/EditorWrapper/EditorWrapper.tsx +48 -0
  20. package/components/EditorWrapper/editor-wrapper.style.css +14 -0
  21. package/components/Filters.jsx +78 -61
  22. package/components/Layout/components/Responsive.tsx +184 -0
  23. package/components/Layout/components/Sidebar/components/Sidebar.tsx +47 -0
  24. package/components/Layout/components/Sidebar/components/sidebar.styles.scss +902 -0
  25. package/components/Layout/components/Sidebar/index.tsx +3 -0
  26. package/components/Layout/components/Visualization/index.tsx +81 -0
  27. package/components/Layout/components/Visualization/visualizations.scss +33 -0
  28. package/components/Layout/index.tsx +11 -0
  29. package/components/Layout/styles/editor-grid-view.scss +156 -0
  30. package/components/Layout/styles/editor-utils.scss +197 -0
  31. package/components/Layout/styles/editor.scss +144 -0
  32. package/components/LegendCircle.jsx +4 -3
  33. package/components/MediaControls.jsx +1 -1
  34. package/components/Table/Table.tsx +7 -5
  35. package/components/Table/components/Row.tsx +6 -2
  36. package/components/Table/types/RowType.ts +3 -0
  37. package/components/Waiting.jsx +11 -1
  38. package/components/_stories/DataTable.stories.tsx +1 -2
  39. package/components/_stories/EditorPanel.stories.tsx +1 -0
  40. package/components/createBarElement.jsx +37 -34
  41. package/components/elements/SkipTo.tsx +37 -5
  42. package/components/managers/DataDesigner.tsx +18 -18
  43. package/components/ui/Icon.tsx +5 -1
  44. package/helpers/DataTransform.ts +9 -32
  45. package/helpers/coveUpdateWorker.ts +21 -0
  46. package/helpers/footnoteSymbols.ts +11 -0
  47. package/helpers/useDataVizClasses.js +1 -5
  48. package/helpers/ver/4.23.4.ts +27 -0
  49. package/helpers/ver/4.24.3.ts +56 -0
  50. package/helpers/ver/4.24.5.ts +32 -0
  51. package/package.json +2 -2
  52. package/styles/_data-table.scss +8 -0
  53. package/styles/_global.scss +7 -4
  54. package/styles/_reset.scss +7 -6
  55. package/styles/_variables.scss +3 -0
  56. package/styles/base.scss +0 -18
  57. package/styles/v2/base/index.scss +1 -1
  58. package/styles/v2/components/ui/tooltip.scss +0 -21
  59. package/types/Axis.ts +4 -0
  60. package/types/Column.ts +1 -0
  61. package/types/ConfigureData.ts +8 -0
  62. package/types/DataDescription.ts +9 -0
  63. package/types/Legend.ts +1 -0
  64. package/types/MarkupInclude.ts +26 -0
  65. package/types/Runtime.ts +1 -0
  66. package/types/Series.ts +1 -1
  67. package/types/Table.ts +15 -13
  68. package/types/Visualization.ts +14 -10
  69. package/types/VizFilter.ts +13 -0
  70. package/helpers/coveUpdateWorker.js +0 -19
  71. package/helpers/ver/4.23.js +0 -10
  72. package/helpers/ver/4.24.3.js +0 -25
@@ -0,0 +1,902 @@
1
+ @import '@cdc/core/styles/v2/themes/_color-definitions.scss';
2
+
3
+ .cdc-editor .configure .type-dashboard .sidebar {
4
+ top: 0;
5
+ }
6
+
7
+ .cdc-editor .configure .editor-heading + .cdc-open-viz-module .editor-panel__toggle {
8
+ top: 12px;
9
+ position: relative;
10
+ }
11
+
12
+ .cdc-editor .configure .cdc-open-viz-module:not(.type-dashboard) .editor-panel__toggle {
13
+ position: absolute;
14
+ top: 10px;
15
+ }
16
+
17
+ .cdc-editor .configure .cdc-open-viz-module:not(.type-dashboard) .sidebar {
18
+ position: relative;
19
+ }
20
+
21
+ .cdc-open-viz-module {
22
+ .waiting {
23
+ padding-top: 0 !important;
24
+ padding-left: 0 !important;
25
+ }
26
+
27
+ .sidebar {
28
+ position: fixed;
29
+ height: 100vh;
30
+ top: 0;
31
+ max-width: 350px;
32
+ width: 350px;
33
+ background-color: var(--white);
34
+ grid-area: panel;
35
+
36
+ .editor-toggle {
37
+ position: fixed !important;
38
+ top: 10px !important;
39
+ }
40
+
41
+ .editor-panel {
42
+ position: fixed !important;
43
+ top: 0 !important;
44
+ }
45
+
46
+ &.editor-panel--hidden &.hidden {
47
+ display: none;
48
+ }
49
+
50
+ .two-col-inputs {
51
+ display: flex;
52
+ margin-top: 1em;
53
+ justify-content: space-between;
54
+
55
+ > label {
56
+ width: 48%;
57
+ margin-top: 0 !important;
58
+ }
59
+ }
60
+
61
+ .helper-tooltip {
62
+ padding: 5px;
63
+ max-width: 300px;
64
+ }
65
+
66
+ .helper {
67
+ position: relative;
68
+ opacity: 0.7;
69
+ cursor: pointer;
70
+ width: 17px;
71
+ height: 17px;
72
+ align-self: center;
73
+ margin-left: 0.3rem;
74
+ margin-top: -0.3rem;
75
+ border: none !important;
76
+ box-shadow: none !important;
77
+
78
+ svg {
79
+ position: absolute;
80
+ top: 0;
81
+ left: 0;
82
+ width: 100%;
83
+ height: 100%;
84
+ }
85
+ }
86
+
87
+ .divider-heading {
88
+ display: block;
89
+ font-size: 1em;
90
+ margin-top: 1em;
91
+ }
92
+
93
+ .series-list {
94
+ list-style: none;
95
+ border: var(--lightGray) 1px solid;
96
+
97
+ &:empty {
98
+ border: none !important;
99
+ }
100
+
101
+ li {
102
+ padding: 0.3em 0.5em;
103
+ display: flex;
104
+ align-items: center;
105
+ justify-content: space-between;
106
+ font-size: 0.9em;
107
+ position: relative;
108
+
109
+ &:hover {
110
+ background-color: var(--lightestGray);
111
+ }
112
+
113
+ div {
114
+ width: 100%;
115
+ }
116
+
117
+ .series-list__name {
118
+ position: relative;
119
+ user-select: none;
120
+
121
+ &.series-list__name--truncate {
122
+ &[data-title] {
123
+ $bgColor: rgb(34 34 34 / 90%);
124
+ position: relative;
125
+
126
+ &::before,
127
+ &::after {
128
+ opacity: 0;
129
+ pointer-events: none;
130
+ position: absolute;
131
+ transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
132
+ z-index: 1;
133
+ }
134
+
135
+ &::before {
136
+ content: attr(data-title);
137
+ bottom: -39px;
138
+ padding: 6px 10px;
139
+ background: $bgColor;
140
+ color: #fff;
141
+ font-size: 14px;
142
+ white-space: nowrap;
143
+ border-radius: 4px;
144
+ }
145
+
146
+ &::after {
147
+ content: '';
148
+ bottom: -8px;
149
+ left: 10px;
150
+ border: 7px solid transparent;
151
+ border-bottom: 6px solid $bgColor;
152
+ }
153
+
154
+ &:hover {
155
+ &::before,
156
+ &::after {
157
+ opacity: 1;
158
+ }
159
+ }
160
+ }
161
+
162
+ .series-list__name-text {
163
+ cursor: pointer;
164
+ }
165
+ }
166
+ }
167
+
168
+ .series-list__dropdown {
169
+ width: 100%;
170
+ display: block;
171
+ font-size: 0.8em;
172
+ margin-bottom: 10px;
173
+ select {
174
+ width: 100%;
175
+ }
176
+ }
177
+
178
+ .series-list__remove {
179
+ padding: 0 4px;
180
+ font-size: 1.125rem;
181
+ color: #f00;
182
+ cursor: pointer;
183
+ position: absolute;
184
+ top: 5px;
185
+ right: 5px;
186
+ }
187
+
188
+ + li {
189
+ border-top: var(--lightGray) 1px solid;
190
+ }
191
+ }
192
+ }
193
+
194
+ .series-list__name-text {
195
+ max-width: 150px;
196
+ margin-bottom: 10px;
197
+ white-space: nowrap;
198
+ text-overflow: ellipsis;
199
+ overflow: hidden;
200
+ }
201
+
202
+ .accordion__heading {
203
+ background: var(--lightestGray);
204
+ }
205
+
206
+ .accordion__item {
207
+ select {
208
+ text-transform: capitalize;
209
+ outline: none;
210
+ }
211
+
212
+ .number-narrow {
213
+ min-width: auto;
214
+ width: 75px;
215
+ }
216
+ }
217
+
218
+ .guidance-link {
219
+ margin: 2em 1em 0;
220
+ padding: 0.75em 1em;
221
+
222
+ svg {
223
+ width: 60px;
224
+ color: $blue;
225
+ margin-right: 1rem;
226
+ height: 60px; // IE11
227
+ path {
228
+ fill: currentColor;
229
+ }
230
+ }
231
+ }
232
+
233
+ .warning {
234
+ color: #d8000c;
235
+ background-color: #ffd2d2;
236
+ padding: 0.75em 1em;
237
+ margin: 1em 0;
238
+ font-size: 0.8em;
239
+ border: #d8000c 1px solid;
240
+ border-radius: 0.4em;
241
+
242
+ strong {
243
+ font-weight: 600;
244
+ display: block;
245
+ }
246
+ }
247
+
248
+ .accordion__button {
249
+ cursor: pointer;
250
+ font-size: 1em;
251
+ padding: 0.3em 1em;
252
+ width: 100%;
253
+ text-align: left;
254
+ position: relative;
255
+ border-bottom: 1px solid rgba(0, 0, 0, 0.2);
256
+
257
+ &::before {
258
+ display: inline-block;
259
+ content: '';
260
+ height: 7px;
261
+ width: 7px;
262
+ margin-right: 1em;
263
+ border-bottom: 2px solid currentColor;
264
+ border-right: 2px solid currentColor;
265
+ right: 0;
266
+ position: absolute;
267
+ top: 50%;
268
+ transform: rotate(-45deg) translateY(-50%);
269
+ transition: 0.1s all;
270
+ }
271
+
272
+ &[aria-expanded='true']::before {
273
+ transform: rotate(45deg) translateY(-50%);
274
+ transform-origin: right;
275
+ margin-right: 1.3em;
276
+ transition: 0.1s all;
277
+ }
278
+ }
279
+
280
+ .accordion__panel {
281
+ border-bottom: 1px solid rgba(0, 0, 0, 0.2);
282
+ padding: 1em 1.25em 2em;
283
+ animation: fadein 0.2s ease-in;
284
+
285
+ &:first-child {
286
+ margin-top: 0;
287
+ }
288
+
289
+ h5 {
290
+ font-size: 0.8em;
291
+ }
292
+ }
293
+
294
+ .advanced {
295
+ padding: 0 1em 1em;
296
+ text-align: left;
297
+
298
+ p {
299
+ font-size: 0.8rem;
300
+ }
301
+
302
+ .advanced-toggle-link {
303
+ padding-top: 1em;
304
+ display: block;
305
+ text-align: left;
306
+ cursor: pointer;
307
+ text-decoration: underline;
308
+
309
+ span {
310
+ text-decoration: none;
311
+ display: inline-block;
312
+ font-family: monospace;
313
+ padding-right: 5px;
314
+ }
315
+
316
+ &:hover {
317
+ color: rgba(0, 0, 0, 0.7);
318
+ }
319
+ }
320
+
321
+ textarea {
322
+ height: 400px;
323
+ width: 100%;
324
+ font-size: 0.9em;
325
+ padding: 0.5em;
326
+ font-family: monospace;
327
+ box-sizing: border-box;
328
+ }
329
+ }
330
+
331
+ @keyframes fadein {
332
+ 0% {
333
+ opacity: 0;
334
+ }
335
+
336
+ 100% {
337
+ opacity: 1;
338
+ }
339
+ }
340
+
341
+ .heading-2 {
342
+ background: #565656;
343
+ color: #fff;
344
+ font-size: 1.1em;
345
+ padding: 0.6em 1em;
346
+ position: relative;
347
+ border-bottom: #565656 3px solid;
348
+ z-index: 3;
349
+ }
350
+
351
+ legend,
352
+ label {
353
+ text-transform: uppercase;
354
+ display: block;
355
+ font-size: 0.8em;
356
+ font-weight: 600;
357
+ user-select: none;
358
+
359
+ &:not(:first-child) {
360
+ margin-top: 1em;
361
+ }
362
+
363
+ span.edit-label {
364
+ margin-bottom: 0.3em;
365
+ display: block;
366
+ }
367
+
368
+ span.column-heading {
369
+ font-size: 1em;
370
+ }
371
+
372
+ &.checkbox {
373
+ display: flex;
374
+
375
+ input {
376
+ margin-left: 0;
377
+ width: inherit;
378
+ display: inline;
379
+ }
380
+ }
381
+ }
382
+
383
+ legend {
384
+ font-weight: normal;
385
+ margin-bottom: 0.3em;
386
+ }
387
+
388
+ legend + span {
389
+ float: left;
390
+ }
391
+
392
+ .radio-label {
393
+ font-weight: normal;
394
+ }
395
+
396
+ .accordion__panel fieldset:not(:first-child) {
397
+ margin-top: 1em;
398
+ }
399
+
400
+ .accordion__panel fieldset {
401
+ label:not(:first-child) {
402
+ margin-top: 0rem;
403
+ }
404
+ }
405
+
406
+ input[type='text'],
407
+ input[role='combobox'],
408
+ input[type='number'],
409
+ textarea {
410
+ min-width: 100%;
411
+ max-width: 100%; // Doing this prevents width of textarea from being changed
412
+ }
413
+
414
+ textarea {
415
+ min-height: 140px;
416
+ }
417
+
418
+ .header .color-palette button {
419
+ width: 21px;
420
+ height: 21px;
421
+ border-radius: 40px;
422
+ margin-right: 2.8px;
423
+ }
424
+
425
+ .color-palette {
426
+ display: flex;
427
+ max-width: 100%;
428
+ padding: 0;
429
+ margin: 0.5em 0 0 0;
430
+ list-style: none;
431
+ flex-wrap: wrap;
432
+
433
+ button {
434
+ width: 45px;
435
+ height: 23px;
436
+ margin-right: 4px;
437
+ margin-bottom: 10px;
438
+ display: flex;
439
+ border-radius: 5px;
440
+ overflow: hidden;
441
+ cursor: pointer;
442
+ position: relative;
443
+ padding: 0;
444
+
445
+ .click-target {
446
+ position: absolute;
447
+ top: 0;
448
+ left: 0;
449
+ right: 0;
450
+ bottom: 0;
451
+ }
452
+
453
+ &.selected {
454
+ border: rgba(0, 0, 0, 0.8) 2px solid;
455
+ }
456
+
457
+ span {
458
+ width: 33.3%;
459
+ height: 100%;
460
+ }
461
+
462
+ span.two-color {
463
+ width: 50%;
464
+ height: 100%;
465
+ }
466
+ }
467
+ }
468
+
469
+ fieldset {
470
+ display: block;
471
+
472
+ .float-left {
473
+ float: left;
474
+ }
475
+ }
476
+
477
+ .primary-fieldset {
478
+ padding: 0;
479
+ margin: 0;
480
+ border: 0;
481
+ }
482
+
483
+ ul.column-edit {
484
+ list-style: none;
485
+
486
+ li {
487
+ margin-top: 1em;
488
+ }
489
+
490
+ .three-col {
491
+ display: flex;
492
+ justify-content: space-between;
493
+
494
+ > label {
495
+ margin-top: 0;
496
+ width: 30%;
497
+ display: inline-block;
498
+
499
+ input[type='text'],
500
+ input[type='number'] {
501
+ width: 50px;
502
+ }
503
+ }
504
+ }
505
+ }
506
+
507
+ .emove-column {
508
+ float: right;
509
+ text-transform: uppercase;
510
+ color: #c32b2b;
511
+ font-size: 0.7em;
512
+ line-height: 1.6em;
513
+ border-radius: 5px;
514
+ margin: 0 auto;
515
+ transition: 0.1s all;
516
+ border: 0;
517
+ text-decoration: underline;
518
+ outline: 0;
519
+ cursor: pointer;
520
+ font-weight: bold;
521
+ }
522
+
523
+ .edit-block {
524
+ padding-left: 1em;
525
+ border-left: rgba(0, 0, 0, 0.2) 4px solid;
526
+ transition: 0.2s all;
527
+
528
+ &:not(:first-child) {
529
+ margin-top: 2em;
530
+ }
531
+
532
+ input[type='text'],
533
+ input[type='number'] {
534
+ font-size: 1em;
535
+ }
536
+
537
+ label {
538
+ margin-top: 0;
539
+ }
540
+
541
+ label + label {
542
+ margin-top: 1em;
543
+ }
544
+
545
+ &:hover {
546
+ border-left: rgba(0, 0, 0, 0.7) 4px solid;
547
+ transition: 0.2s all;
548
+ }
549
+ }
550
+
551
+ span.subtext {
552
+ display: block;
553
+ color: rgba(0, 0, 0, 0.5);
554
+ text-transform: none;
555
+ font-weight: normal;
556
+ }
557
+
558
+ .btn {
559
+ margin-top: 1em;
560
+ }
561
+
562
+ .sort-list {
563
+ list-style: none;
564
+
565
+ > li {
566
+ margin-right: 0.3em;
567
+ margin-bottom: 0.3em;
568
+ }
569
+ }
570
+
571
+ .sort-list li > div {
572
+ display: block;
573
+ box-sizing: border-box;
574
+ border: 1px solid #d1d1d1;
575
+ border-radius: 2px;
576
+ background: #f1f1f1;
577
+ padding: 0.4em 0.6em;
578
+ font-size: 0.8em;
579
+ margin-bottom: 0.3em;
580
+ cursor: move;
581
+ }
582
+
583
+ .info {
584
+ font-size: 0.8em;
585
+ line-height: 1.4em;
586
+ font-style: italic;
587
+ padding-top: 10px;
588
+ }
589
+
590
+ .react-tags__search {
591
+ width: 100%;
592
+ }
593
+
594
+ .react-tags {
595
+ position: relative;
596
+
597
+ input.react-tags__search-input {
598
+ font-size: 0.8rem;
599
+ }
600
+
601
+ /* clicking anywhere will focus the input */
602
+ cursor: text;
603
+
604
+ span {
605
+ display: inline;
606
+ }
607
+ }
608
+
609
+ .react-tags.is-focused {
610
+ border-color: rgba(0, 0, 0, 0.7);
611
+ }
612
+
613
+ .react-tags__selected {
614
+ display: inline;
615
+ }
616
+
617
+ .react-tags__selected-tag {
618
+ display: inline-block;
619
+ box-sizing: border-box;
620
+ border: 1px solid #d1d1d1;
621
+ border-radius: 2px;
622
+ background: #f1f1f1;
623
+ padding: 0.4em 0.6em;
624
+ font-size: 0.8em;
625
+ margin-right: 0.3em;
626
+ margin-bottom: 0.3em;
627
+ }
628
+
629
+ .react-tags__selected-tag:after {
630
+ content: '\2715';
631
+ color: #aaa;
632
+ margin-left: 8px;
633
+ }
634
+
635
+ .react-tags__selected-tag:hover,
636
+ .react-tags__selected-tag:focus {
637
+ border-color: #b1b1b1;
638
+ }
639
+
640
+ .react-tags__search {
641
+ display: inline-block;
642
+
643
+ /* prevent autoresize overflowing the container */
644
+ max-width: 100%;
645
+ }
646
+
647
+ @media screen and (min-width: 30em) {
648
+ .react-tags__search {
649
+ /* this will become the offsetParent for suggestions */
650
+ position: relative;
651
+ }
652
+ }
653
+
654
+ .react-tags__search input {
655
+ /* prevent autoresize overflowing the container */
656
+ max-width: 100%;
657
+
658
+ /* emove styles and layout from this element */
659
+ margin: 0;
660
+ outline: none;
661
+ padding: 0.5em 0.3em;
662
+
663
+ /* match the font styles */
664
+ font-size: inherit;
665
+ line-height: inherit;
666
+ }
667
+
668
+ .react-tags__search input::-ms-clear {
669
+ display: none;
670
+ }
671
+
672
+ .react-tags__suggestions {
673
+ position: absolute;
674
+ top: 100%;
675
+ left: 0;
676
+ width: 100%;
677
+ }
678
+
679
+ @media screen and (min-width: 30em) {
680
+ .react-tags__suggestions {
681
+ width: 240px;
682
+ }
683
+ }
684
+
685
+ .react-tags__suggestions ul {
686
+ margin: 4px -1px;
687
+ padding: 0;
688
+ list-style: none;
689
+ background: white;
690
+ border: 1px solid #d1d1d1;
691
+ border-radius: 2px;
692
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
693
+ }
694
+
695
+ .react-tags__suggestions li {
696
+ border-bottom: 1px solid #ddd;
697
+ padding: 6px 8px;
698
+ }
699
+
700
+ .react-tags__suggestions li mark {
701
+ text-decoration: underline;
702
+ background: none;
703
+ font-weight: 600;
704
+ }
705
+
706
+ .react-tags__suggestions li:hover {
707
+ cursor: pointer;
708
+ background: #eee;
709
+ }
710
+
711
+ .react-tags__suggestions li.is-active {
712
+ background: #b7cfe0;
713
+ }
714
+
715
+ .react-tags__suggestions li.is-disabled {
716
+ opacity: 0.5;
717
+ cursor: auto;
718
+ }
719
+
720
+ input[type='radio'] {
721
+ border: 1px solid #8c8f94;
722
+ border-radius: 50%;
723
+ margin-right: 5px;
724
+ }
725
+
726
+ // tooltips
727
+ .cove-label + .cove-tooltip {
728
+ top: 1px;
729
+ margin-left: 0.5rem;
730
+ font-size: 0.75rem;
731
+ }
732
+
733
+ .cove-accordion__button .cove-tooltip {
734
+ display: inline-flex;
735
+ right: 1.5rem;
736
+ line-height: inherit;
737
+ }
738
+
739
+ .cove-list-group__item .cove-tooltip {
740
+ width: 100%;
741
+ display: block;
742
+ line-height: inherit;
743
+ }
744
+
745
+ // CHART > Series align-items
746
+ .series-item {
747
+ list-style: none;
748
+ position: relative;
749
+
750
+ $border: 1px solid #ccc;
751
+
752
+ @at-root .accordion:first-of-type .series-item__title {
753
+ border-top: $border;
754
+ }
755
+
756
+ @at-root .accordion:last-of-type .series-item__title {
757
+ border-bottom: $border;
758
+ }
759
+
760
+ .accordion__button {
761
+ border-bottom: unset;
762
+
763
+ &.hide-arrow:before {
764
+ display: none;
765
+ }
766
+ }
767
+
768
+ .accordion__panel {
769
+ border-left: $border;
770
+ border-right: $border;
771
+ padding: 10px;
772
+ }
773
+
774
+ .series-list__remove {
775
+ margin-left: auto;
776
+ margin-right: 20px;
777
+ border: 1px solid red;
778
+ border-radius: 10px;
779
+ }
780
+
781
+ .hide-arrow .series-list__remove {
782
+ margin-right: 0px;
783
+ }
784
+
785
+ label {
786
+ font-size: 0.8rem;
787
+ font-weight: normal;
788
+ }
789
+
790
+ .series-item__title {
791
+ width: 100%;
792
+ background-color: #f5f5f5;
793
+ border-right: $border;
794
+ border-left: $border;
795
+ display: block;
796
+ padding: 5px;
797
+
798
+ .accordion__button {
799
+ border-bottom: none !important;
800
+ }
801
+ }
802
+
803
+ li {
804
+ padding: 5px;
805
+ }
806
+
807
+ .series_item__title {
808
+ font-size: 12px;
809
+ font-weight: bold;
810
+ text-transform: uppercase;
811
+ }
812
+
813
+ .series-item__dropdown {
814
+ display: block;
815
+ margin-bottom: 8px;
816
+ }
817
+
818
+ // chart series list
819
+ &--chart {
820
+ padding: 5px 5px 0;
821
+
822
+ .accordion__button {
823
+ display: flex;
824
+ padding-left: 5px !important;
825
+
826
+ .cove-icon {
827
+ padding-right: 5px;
828
+ margin-right: 10px;
829
+ }
830
+ }
831
+
832
+ &:last-child {
833
+ padding-bottom: 5px;
834
+ }
835
+ }
836
+ }
837
+ }
838
+
839
+ &.editor-panel--visible {
840
+ .form-container {
841
+ border-right: var(--lightGray) 1px solid;
842
+ flex-grow: 1;
843
+ height: 100%;
844
+ overflow: auto;
845
+ }
846
+ }
847
+
848
+ .editor-panel__title {
849
+ background: #565656;
850
+ color: #fff;
851
+ font-size: 1.1em;
852
+ padding: 0.6em 1em;
853
+ position: relative;
854
+ border-bottom: #565656 3px solid;
855
+ z-index: 3;
856
+ margin: 0;
857
+ }
858
+
859
+ &.type-dashboard {
860
+ .editor-panel__toggle {
861
+ top: 64px;
862
+ }
863
+ }
864
+
865
+ .editor-panel__toggle {
866
+ background: #f2f2f2;
867
+ border-radius: 60px;
868
+ color: #000;
869
+ font-size: 1em;
870
+ border: 0;
871
+ position: fixed;
872
+ z-index: 100;
873
+ transition: 0.1s background;
874
+ cursor: pointer;
875
+ width: 25px;
876
+ height: 25px;
877
+ left: 307px;
878
+ top: 10px;
879
+ box-shadow: rgba(0, 0, 0, 0.5) 0 1px 2px;
880
+
881
+ &:before {
882
+ top: 43%;
883
+ left: 50%;
884
+ transform: translate(-50%, -50%);
885
+ position: absolute;
886
+ content: '\00ab';
887
+ }
888
+
889
+ &.collapsed {
890
+ left: 1em;
891
+ margin-left: 0;
892
+
893
+ &:before {
894
+ content: '\00bb';
895
+ }
896
+ }
897
+
898
+ &:hover {
899
+ background: rgba(255, 255, 255, 1);
900
+ }
901
+ }
902
+ }