@cdc/waffle-chart 1.0.0 → 1.0.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.
@@ -1,710 +0,0 @@
1
- .spacing-wrapper {
2
- padding-left: 350px;
3
- }
4
-
5
- .editor-panel.hidden + .spacing-wrapper {
6
- padding-left: 0;
7
- }
8
-
9
- .editor-panel {
10
- display: flex;
11
- flex-direction: column;
12
- position: fixed;
13
- top: 0;
14
- bottom: 0;
15
- left: 0;
16
- width: $editorWidth;
17
- background: #fff;
18
- overflow-x: hidden;
19
- overflow-y: auto;
20
- z-index: 8;
21
-
22
- .heading {
23
- font-size: 1.2em;
24
- }
25
-
26
- .two-col-inputs {
27
- display: flex;
28
- margin-top: 1em;
29
- justify-content: space-between;
30
-
31
- > label {
32
- width: 48%;
33
- margin-top: 0 !important
34
- }
35
- }
36
-
37
- .divider-heading {
38
- display: block;
39
- font-size: 1em;
40
- margin-top: 1em;
41
- }
42
-
43
- .series-list {
44
- list-style: none;
45
- border: $lightGray 1px solid;
46
-
47
- &:empty {
48
- border: none !important
49
- }
50
-
51
- li {
52
- padding: .3em .5em;
53
- display: flex;
54
- align-items: center;
55
- justify-content: space-between;
56
- font-size: .9em;
57
-
58
- &:hover {
59
- background-color: $lightestGray;
60
- }
61
-
62
- span {
63
- font-size: .8em;
64
- color: #f00;
65
- cursor: pointer;
66
- }
67
-
68
- + li {
69
- border-top: $lightGray 1px solid;
70
- }
71
- }
72
- }
73
-
74
- .accordion__heading {
75
- background: $lightestGray;
76
- }
77
-
78
- .accordion__item {
79
- select {
80
- text-transform: capitalize;
81
- }
82
-
83
- .number-narrow {
84
- min-width: auto;
85
- width: 75px
86
- }
87
- }
88
-
89
- .form-container {
90
- border-right: $lightGray 1px solid;
91
- flex-grow: 1;
92
- }
93
-
94
- .guidance-link {
95
- margin: 2em 1em 0;
96
- padding: .75em 1em;
97
-
98
- svg {
99
- width: 60px;
100
- color: $blue;
101
- margin-right: 1rem;
102
- height: 60px; // IE11
103
- path {
104
- fill: currentColor;
105
- }
106
- }
107
- }
108
-
109
- .warning {
110
- color: #D8000C;
111
- background-color: #FFD2D2;
112
- border: #D8000C 1px solid;
113
- padding: .75em 1em;
114
- margin: 1em 0;
115
- font-size: .8em;
116
- border-radius: .4em;
117
-
118
- strong {
119
- font-weight: 600;
120
- display: block;
121
- }
122
- }
123
-
124
- .accordion__button {
125
- cursor: pointer;
126
- font-size: 1em;
127
- padding: .3em 1em;
128
- width: 100%;
129
- text-align: left;
130
- position: relative;
131
- border-bottom: 1px solid rgba(0, 0, 0, 0.2);
132
-
133
- &::before {
134
- display: inline-block;
135
- content: '';
136
- height: 7px;
137
- width: 7px;
138
- margin-right: 1em;
139
- border-bottom: 2px solid currentColor;
140
- border-right: 2px solid currentColor;
141
- right: 0;
142
- position: absolute;
143
- top: 50%;
144
- transform: rotate(-45deg) translateY(-50%);
145
- transition: .1s all;
146
- }
147
-
148
- &[aria-expanded='true']::before,
149
- &[aria-selected='true']::before {
150
- transform: rotate(45deg) translateY(-50%);
151
- margin-right: 1.3em;
152
- transition: .1s all;
153
- }
154
- }
155
-
156
- .accordion__panel {
157
- border-bottom: 1px solid rgba(0, 0, 0, 0.2);
158
- padding: 1em 1.25em 2em;
159
- animation: fadein 0.2s ease-in;
160
-
161
- &:first-child {
162
- margin-top: 0;
163
- }
164
-
165
- h5 {
166
- font-size: .8em;
167
- }
168
-
169
- .accordion__panel-section {
170
- padding: 16px;
171
- border: 1px solid #c4c4c4;
172
- border-radius: 8px;
173
- margin-top: 8px;
174
- margin-bottom: 24px;
175
- }
176
-
177
- .accordion__panel-row {
178
- display: flex;
179
- justify-content: flex-start;
180
- margin-left: -4px;
181
- margin-right: -4px;
182
- }
183
-
184
- .accordion__panel-col {
185
- flex: 1 1 0;
186
- padding-left: 4px;
187
- padding-right: 4px;
188
- }
189
-
190
- .accordion__small-inputs {
191
- input[type="text"] {
192
- display: block;
193
- width: 100%;
194
- height: 22px;
195
- min-width: unset !important;
196
- padding-top: 0;
197
- padding-bottom: 0;
198
- font-size: 1.1em;
199
- line-height: 1em;
200
- box-sizing: border-box;
201
- }
202
- }
203
-
204
- .accordion__panel-label {
205
- font-size: 14px;
206
- text-transform: unset;
207
- font-weight: normal;
208
- line-height: 16px;
209
- user-select: none;
210
- }
211
-
212
- .accordion__panel-label--inline {
213
- @extend .accordion__panel-label;
214
- text-align: right;
215
- margin-right: 8px;
216
- }
217
-
218
- .accordion__panel-label--muted {
219
- @extend .accordion__panel-label;
220
- color: #6f6f6f;
221
- }
222
-
223
- .d-flex {
224
- display: flex;
225
- }
226
-
227
- .align-center {
228
- align-items: center;
229
- }
230
-
231
- .justify-end {
232
- justify-content: flex-end;
233
- }
234
-
235
- .accordion__panel-checkbox {
236
- display: block;
237
- width: 18px;
238
- height: 18px;
239
- border: 1px solid #c4c4c4;
240
- cursor: pointer;
241
-
242
- &.checked::after {
243
- content: 'L';
244
- display: block;
245
- position: relative;
246
- top: -7px;
247
- left: -3px;
248
- transform: scaleX(-1) rotate(-35deg);
249
- font-size: 16px;
250
- font-weight: bold;
251
- color: #025eaa;
252
- pointer-events: none;
253
- }
254
- }
255
-
256
- .accordion__input-error {
257
- color: #D8000C;
258
- border: #D8000C 1px solid;
259
- }
260
-
261
- .accordion__panel-error {
262
- color: #D8000C;
263
- background-color: #FFD2D2;
264
- border: #D8000C 1px solid;
265
- margin-top: 12px;
266
- padding: 4px 8px;
267
- line-height: 1.2em;
268
- font-size: 14px;
269
- border-radius: 4px;
270
- }
271
- }
272
-
273
- .advanced {
274
- padding: 0 1em 1em;
275
- text-align: left;
276
-
277
- p {
278
- font-size: .8rem;
279
- }
280
-
281
- .advanced-toggle-link {
282
- padding-top: 1em;
283
- display: block;
284
- text-align: left;
285
- cursor: pointer;
286
- color: rgba(0, 0, 0, .5);
287
- text-decoration: underline;
288
-
289
- span {
290
- text-decoration: none;
291
- display: inline-block;
292
- font-family: monospace;
293
- padding-right: 5px;
294
- }
295
-
296
- &:hover {
297
- color: rgba(0, 0, 0, .7);
298
- }
299
- }
300
-
301
- textarea {
302
- height: 400px;
303
- width: 100%;
304
- font-size: .9em;
305
- padding: .5em;
306
- font-family: monospace;
307
- box-sizing: border-box
308
- }
309
- }
310
-
311
- @keyframes fadein {
312
- 0% {
313
- opacity: 0;
314
- }
315
-
316
- 100% {
317
- opacity: 1;
318
- }
319
- }
320
-
321
- h2 {
322
- background: #565656;
323
- color: #fff;
324
- font-size: 1.1em;
325
- padding: .6em 1em;
326
- position: relative;
327
- border-bottom: #565656 3px solid;
328
- z-index: 3;
329
- }
330
-
331
- label {
332
- text-transform: uppercase;
333
- display: block;
334
- font-size: .8em;
335
- font-weight: 600;
336
-
337
- &:not(:first-child) {
338
- margin-top: 1em;
339
- }
340
-
341
- span.edit-label {
342
- margin-bottom: .3em;
343
- display: block;
344
- }
345
-
346
- span.column-heading {
347
- font-size: 1em;
348
- }
349
-
350
- &.checkbox {
351
- display: flex;
352
-
353
- span {
354
- display: inline;
355
- }
356
-
357
- input {
358
- margin-left: 0;
359
- width: inherit;
360
- display: inline;
361
- }
362
- }
363
- }
364
-
365
- input[type="text"],
366
- input[role="combobox"],
367
- input[type="number"],
368
- textarea {
369
- width: 100%;
370
- min-width: 100%;
371
- max-width: 100%; // Doing this prevents width of textarea from being changed
372
- }
373
-
374
- textarea {
375
- min-height: 140px;
376
- }
377
-
378
- .color-palette {
379
- display: flex;
380
- max-width: 100%;
381
- padding: 0;
382
- margin: .5em 0 0 0;
383
- list-style: none;
384
- flex-wrap: wrap;
385
-
386
- li {
387
- display: flex;
388
- width: 21px;
389
- height: 21px;
390
- border-radius: 40px;
391
- margin-right: 4px;
392
- margin-bottom: 10px;
393
- overflow: hidden;
394
- cursor: pointer;
395
- position: relative;
396
-
397
- .click-target {
398
- position: absolute;
399
- top: 0;
400
- left: 0;
401
- right: 0;
402
- bottom: 0;
403
- }
404
-
405
- &.selected {
406
- border: rgba(0, 0, 0, .8) 2px solid;
407
- }
408
-
409
- span {
410
- width: 33.3%;
411
- }
412
- }
413
-
414
- @at-root .header #{&} {
415
- li {
416
- width: 21px;
417
- height: 21px;
418
- border-radius: 40px;
419
- margin-right: 2.8px;
420
- }
421
- }
422
- }
423
-
424
- fieldset {
425
- display: block;
426
- }
427
-
428
- .primary-fieldset {
429
- padding: 0;
430
- margin: 0;
431
- border: 0;
432
- }
433
-
434
- ul.column-edit {
435
- list-style: none;
436
-
437
- li {
438
- margin-top: 1em;
439
- }
440
-
441
- .three-col {
442
- display: flex;
443
- justify-content: space-between;
444
-
445
- > label {
446
- margin-top: 0;
447
- width: 30%;
448
- display: inline-block;
449
-
450
- input[type="text"], input[type="number"] {
451
- width: 50px;
452
- }
453
- }
454
- }
455
- }
456
-
457
- &.hidden {
458
- display: none;
459
- }
460
-
461
- .remove-column {
462
- float: right;
463
- text-transform: uppercase;
464
- color: #C32B2B;
465
- font-size: .7em;
466
- line-height: 1.6em;
467
- border-radius: 5px;
468
- margin: 0 auto;
469
- transition: .1s all;
470
- border: 0;
471
- text-decoration: underline;
472
- outline: 0;
473
- cursor: pointer;
474
- font-weight: bold;
475
- }
476
-
477
- .edit-block {
478
- padding-left: 1em;
479
- border-left: rgba(0, 0, 0, 0.2) 4px solid;
480
- transition: .2s all;
481
-
482
- &:not(:first-child) {
483
- margin-top: 2em;
484
- }
485
-
486
- input[type="text"], input[type="number"] {
487
- font-size: 1em;
488
- }
489
-
490
- label {
491
- margin-top: 0;
492
- }
493
-
494
- label + label {
495
- margin-top: 1em;
496
- }
497
-
498
- &:hover {
499
- border-left: rgba(0, 0, 0, 0.7) 4px solid;
500
- transition: .2s all;
501
- }
502
- }
503
-
504
- span.subtext {
505
- display: block;
506
- color: rgba(0, 0, 0, .5);
507
- text-transform: none;
508
- font-weight: normal;
509
- }
510
-
511
- .btn {
512
- margin-top: 1em;
513
- }
514
-
515
- .sort-list {
516
- list-style: none;
517
-
518
- > li {
519
- margin-right: .3em;
520
- margin-bottom: .3em;
521
- }
522
-
523
- li > div {
524
- display: block;
525
- box-sizing: border-box;
526
- border: 1px solid #D1D1D1;
527
- border-radius: 2px;
528
- background: #F1F1F1;
529
- padding: .4em .6em;
530
- font-size: .8em;
531
- margin-bottom: .3em;
532
- cursor: move;
533
- }
534
- }
535
-
536
- .info {
537
- font-size: .8em;
538
- line-height: 1.4em;
539
- font-style: italic;
540
- padding-top: 10px;
541
- }
542
-
543
- .react-tags__search {
544
- width: 100%;
545
- }
546
-
547
- .react-tags {
548
- position: relative;
549
- cursor: text;
550
-
551
- input.react-tags__search-input {
552
- font-size: .8rem;
553
- }
554
-
555
- span {
556
- display: inline
557
- }
558
-
559
- &.is-focused {
560
- border-color: rgba(0, 0, 0, 0.7);
561
- }
562
- }
563
-
564
- .react-tags__selected {
565
- display: inline;
566
- }
567
-
568
- .react-tags__selected-tag {
569
- display: inline-block;
570
- box-sizing: border-box;
571
- border: 1px solid #D1D1D1;
572
- border-radius: 2px;
573
- background: #F1F1F1;
574
- padding: .4em .6em;
575
- font-size: .8em;
576
- margin-right: .3em;
577
- margin-bottom: .3em;
578
-
579
- &::after {
580
- content: '\2715';
581
- color: #AAA;
582
- margin-left: 8px;
583
- }
584
-
585
- &:hover,
586
- &:focus {
587
- border-color: #B1B1B1;
588
- }
589
- }
590
-
591
- .react-tags__search {
592
- display: inline-block;
593
- max-width: 100%;
594
-
595
- input {
596
- max-width: 100%;
597
- margin: 0;
598
- outline: none;
599
- padding: .5em .3em;
600
- font-size: inherit;
601
- line-height: inherit;
602
- }
603
-
604
- input::-ms-clear {
605
- display: none;
606
- }
607
- }
608
-
609
- @media screen and (min-width: 30em) {
610
- .react-tags__search {
611
- position: relative;
612
- }
613
- }
614
-
615
- .react-tags__suggestions {
616
- position: absolute;
617
- top: 100%;
618
- left: 0;
619
- width: 100%;
620
-
621
- ul {
622
- margin: 4px -1px;
623
- padding: 0;
624
- list-style: none;
625
- background: white;
626
- border: 1px solid #D1D1D1;
627
- border-radius: 2px;
628
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
629
- }
630
-
631
- li {
632
- border-bottom: 1px solid #ddd;
633
- padding: 6px 8px;
634
-
635
- &:hover {
636
- cursor: pointer;
637
- background: #eee;
638
- }
639
-
640
- &.is-active {
641
- background: #b7cfe0;
642
- }
643
-
644
- &.is-disabled {
645
- opacity: 0.5;
646
- cursor: auto;
647
- }
648
-
649
- mark {
650
- text-decoration: underline;
651
- background: none;
652
- font-weight: 600;
653
- }
654
- }
655
- }
656
-
657
- @media screen and (min-width: 30em) {
658
- .react-tags__suggestions {
659
- width: 240px;
660
- }
661
- }
662
- }
663
-
664
- .editor-toggle {
665
- background: #F2F2F2;
666
- border-radius: 60px;
667
- color: #000;
668
- font-size: 1em;
669
- border: 0;
670
- position: fixed;
671
- z-index: 100;
672
- transition: .1s background;
673
- cursor: pointer;
674
- width: 25px;
675
- height: 25px;
676
- left: 307px;
677
- top: 10px;
678
- box-shadow: rgba(0, 0, 0, .5) 0 1px 2px;
679
-
680
- &:before {
681
- top: 43%;
682
- left: 50%;
683
- transform: translate(-50%, -50%);
684
- position: absolute;
685
- content: "\00ab";
686
- }
687
-
688
- &.collapsed {
689
- left: 1em;
690
- margin-left: 0;
691
-
692
- &:before {
693
- content: "\00bb";
694
- }
695
- }
696
-
697
- &:hover {
698
- background: rgba(255, 255, 255, 1)
699
- }
700
- }
701
-
702
- @include breakpointClass(md) {
703
- .editor-panel:not(.hidden) + .cdc-data-bite-inner-container {
704
- padding-left: $editorWidth;
705
- }
706
-
707
- .waiting {
708
- padding-left: 350px;
709
- }
710
- }
@@ -1 +0,0 @@
1
-
@@ -1,29 +0,0 @@
1
- $theme-colors: (
2
- "blue": $primary,
3
- "purple": $purple-primary,
4
- "brown": $brown-primary,
5
- "teal": $teal-primary,
6
- "pink": $pink-primary,
7
- "orange": $orange-primary,
8
- "slate": $slate-primary,
9
- "indigo": $indigo-primary,
10
- "cyan": $cyan-primary,
11
- "green": $green-primary,
12
- "amber": $amber-primary
13
- );
14
-
15
- $theme-colors-secondary: (
16
- "blue": $secondary,
17
- "purple": $purple-secondary,
18
- "brown": $brown-secondary,
19
- "teal": $teal-secondary,
20
- "pink": $pink-secondary,
21
- "orange": $orange-secondary,
22
- "slate": $slate-secondary,
23
- "indigo": $indigo-secondary,
24
- "cyan": $cyan-secondary,
25
- "green": $green-secondary,
26
- "amber": $amber-secondary
27
- );
28
-
29
- $editorWidth: 350px;