@cdc/core 1.1.2 → 1.1.3
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/assets/alabama-graphic.svg +23 -0
- package/assets/check.svg +3 -0
- package/assets/dashboard.svg +11 -0
- package/assets/file-upload-solid.svg +1 -0
- package/assets/horizontal-stacked-bar.svg +1 -0
- package/assets/icon-code.svg +3 -0
- package/assets/icon-grid.svg +4 -0
- package/assets/icon-info.svg +3 -0
- package/assets/icon-warning.svg +3 -0
- package/assets/link.svg +1 -0
- package/assets/map-folded.svg +1 -0
- package/assets/paired-bar.svg +11 -0
- package/assets/upload-solid.svg +1 -0
- package/assets/usa-region-graphic.svg +393 -0
- package/components/AdvancedEditor.js +74 -0
- package/components/GlobalContext.jsx +41 -0
- package/components/Loading.js +3 -2
- package/components/elements/Button.jsx +12 -0
- package/components/inputs/InputCheckbox.jsx +59 -0
- package/components/inputs/InputSelect.jsx +49 -0
- package/components/inputs/InputText.jsx +68 -0
- package/components/inputs/InputToggle.jsx +95 -0
- package/components/ui/Accordion.jsx +64 -0
- package/components/ui/Icon.jsx +63 -0
- package/components/ui/Modal.jsx +87 -0
- package/components/ui/Overlay.jsx +84 -0
- package/components/ui/OverlayFrame.jsx +16 -0
- package/components/ui/Tooltip.jsx +55 -0
- package/data/colorPalettes.js +240 -0
- package/helpers/events.js +15 -0
- package/helpers/numberFromString.js +4 -3
- package/helpers/updatePaletteNames.js +18 -0
- package/helpers/validateFipsCodeLength.js +67 -0
- package/package.json +16 -2
- package/styles/_data-table.scss +8 -2
- package/styles/_global.scss +5 -3
- package/styles/v2/base/_general.scss +46 -0
- package/styles/v2/base/_reset.scss +81 -0
- package/styles/v2/base/_typography.scss +0 -0
- package/styles/v2/base/index.scss +3 -0
- package/styles/v2/components/accordion.scss +156 -0
- package/styles/v2/components/button.scss +178 -0
- package/styles/v2/components/editor.scss +487 -0
- package/styles/v2/components/icon.scss +23 -0
- package/styles/v2/components/input.scss +372 -0
- package/styles/v2/components/modal.scss +64 -0
- package/styles/v2/components/overlay.scss +80 -0
- package/styles/v2/layout/_alert.scss +36 -0
- package/styles/v2/layout/_component.scss +31 -0
- package/styles/v2/layout/_data-table.scss +278 -0
- package/styles/v2/layout/_header.scss +13 -0
- package/styles/v2/layout/_link.scss +46 -0
- package/styles/v2/layout/_progression.scss +80 -0
- package/styles/v2/layout/_tooltip.scss +132 -0
- package/styles/v2/layout/index.scss +7 -0
- package/styles/v2/main.scss +15 -0
- package/styles/v2/themes/_color-definitions.scss +129 -0
- package/styles/v2/themes/index.scss +1 -0
- package/styles/v2/utils/_animations.scss +63 -0
- package/styles/v2/utils/_functions.scss +0 -0
- package/styles/v2/utils/_mixins.scss +29 -0
- package/styles/v2/utils/_variables.scss +2 -0
- package/styles/v2/utils/index.scss +4 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
.collapsed + .table-container {
|
|
2
|
+
border-bottom: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.table-container {
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
border-right: 1px solid $lightGray;
|
|
8
|
+
border-left: 1px solid $lightGray;
|
|
9
|
+
border-bottom: 1px solid $lightGray;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
div.data-table-heading {
|
|
13
|
+
background: rgba(0, 0, 0, 0.05);
|
|
14
|
+
padding: .5em .7em;
|
|
15
|
+
border: $lightGray 1px solid;
|
|
16
|
+
border-bottom: 0;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
background-image: url(~@cdc/core/assets/minus.svg);
|
|
19
|
+
background-size: 15px 15px; // Need to define both for IE11
|
|
20
|
+
background-position: right .7em center;
|
|
21
|
+
background-repeat: no-repeat;
|
|
22
|
+
|
|
23
|
+
&:focus {
|
|
24
|
+
z-index: 2;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.collapsed {
|
|
29
|
+
background-image: url(~@cdc/core/assets/plus.svg);
|
|
30
|
+
background-size: 15px 15px; // Need to define both for IE11
|
|
31
|
+
background-position: right .7em center;
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
border-bottom: $lightGray 1px solid;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
table.data-table {
|
|
38
|
+
width: 100%;
|
|
39
|
+
background: #fff;
|
|
40
|
+
position: relative;
|
|
41
|
+
border: none;
|
|
42
|
+
overflow-x: auto;
|
|
43
|
+
border-collapse: collapse;
|
|
44
|
+
overflow: auto;
|
|
45
|
+
appearance: none;
|
|
46
|
+
|
|
47
|
+
* {
|
|
48
|
+
box-sizing: border-box
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
thead {
|
|
52
|
+
user-select: none;
|
|
53
|
+
-moz-user-select: none;
|
|
54
|
+
user-select: none;
|
|
55
|
+
|
|
56
|
+
tr {
|
|
57
|
+
background: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
thead {
|
|
62
|
+
color: #fff;
|
|
63
|
+
background-color: $mediumGray;
|
|
64
|
+
|
|
65
|
+
.resizer {
|
|
66
|
+
cursor: e-resize;
|
|
67
|
+
width: 10px;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
right: 0;
|
|
72
|
+
touch-action: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
tr {
|
|
76
|
+
text-align: left;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
th,
|
|
80
|
+
td {
|
|
81
|
+
padding: .5em 1.3em .5em .7em;
|
|
82
|
+
line-height: normal;
|
|
83
|
+
position: relative;
|
|
84
|
+
text-align: left;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
border-right: 1px solid $lightGray !important;
|
|
87
|
+
|
|
88
|
+
svg {
|
|
89
|
+
margin-left: 1rem;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
th.sort {
|
|
94
|
+
background-color: darken($mediumGray, 10%);
|
|
95
|
+
background-repeat: no-repeat;
|
|
96
|
+
background-position: right .5em center;
|
|
97
|
+
background-size: 10px 5px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
th.sort-asc,
|
|
101
|
+
td.sort-asc {
|
|
102
|
+
background-image: url(~@cdc/core/assets/asc.svg);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
th.sort-desc,
|
|
106
|
+
td.sort-desc {
|
|
107
|
+
background-image: url(~@cdc/core/assets/desc.svg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
th:last-child,
|
|
111
|
+
td:last-child {
|
|
112
|
+
border-right: 0
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
tbody {
|
|
117
|
+
tr {
|
|
118
|
+
width: 100%;
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
background: rgba(0, 0, 0, 0.05)
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
tr {
|
|
127
|
+
border-bottom: solid 1px #E5E5E5;
|
|
128
|
+
min-width: 100%; // Needed to fill content up
|
|
129
|
+
&:last-child {
|
|
130
|
+
border-bottom: 0
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
td {
|
|
135
|
+
padding: .3em .7em;
|
|
136
|
+
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
th,
|
|
140
|
+
td {
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
|
|
145
|
+
&:last-child {
|
|
146
|
+
border-right: 0 !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:first-child {
|
|
150
|
+
flex-grow: 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
td {
|
|
155
|
+
position: relative;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
td a {
|
|
159
|
+
padding: .3em .7em;
|
|
160
|
+
position: absolute;
|
|
161
|
+
top: 0;
|
|
162
|
+
bottom: 0;
|
|
163
|
+
right: 0;
|
|
164
|
+
left: 0;
|
|
165
|
+
display: block;
|
|
166
|
+
color: inherit;
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
td span.table-link {
|
|
171
|
+
text-decoration: underline;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
color: #075290;
|
|
174
|
+
|
|
175
|
+
svg {
|
|
176
|
+
max-width: 13px;
|
|
177
|
+
vertical-align: baseline;
|
|
178
|
+
margin-left: 5px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.no-data {
|
|
184
|
+
position: relative;
|
|
185
|
+
|
|
186
|
+
.no-data-message {
|
|
187
|
+
@include emptyState;
|
|
188
|
+
|
|
189
|
+
h3 {
|
|
190
|
+
font-size: 1.3rem;
|
|
191
|
+
font-weight: 600;
|
|
192
|
+
margin-bottom: .3rem;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
tr:hover {
|
|
197
|
+
background: #fff;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
th, td {
|
|
201
|
+
width: 50%;
|
|
202
|
+
|
|
203
|
+
&::before {
|
|
204
|
+
content: "\00a0";
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.data-table-pagination {
|
|
210
|
+
margin: 1rem 0;
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
|
|
214
|
+
ul {
|
|
215
|
+
list-style: none;
|
|
216
|
+
margin: 0 1rem 0 0;
|
|
217
|
+
display: flex;
|
|
218
|
+
|
|
219
|
+
li + li {
|
|
220
|
+
margin-left: .3rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
button {
|
|
224
|
+
background: $mediumGray;
|
|
225
|
+
padding: .6rem .8rem;
|
|
226
|
+
|
|
227
|
+
&:hover {
|
|
228
|
+
background: lighten($mediumGray, 5%);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
button.btn-next {
|
|
233
|
+
&::before {
|
|
234
|
+
content: " ";
|
|
235
|
+
background-image: url(~@cdc/core/assets/asc.svg);
|
|
236
|
+
background-size: 10px 5px;
|
|
237
|
+
width: 10px;
|
|
238
|
+
height: 5px;
|
|
239
|
+
display: block;
|
|
240
|
+
transform: rotate(90deg);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
button.btn-prev {
|
|
245
|
+
&::before {
|
|
246
|
+
content: " ";
|
|
247
|
+
background-image: url(~@cdc/core/assets/asc.svg);
|
|
248
|
+
background-size: 10px 5px;
|
|
249
|
+
width: 10px;
|
|
250
|
+
height: 5px;
|
|
251
|
+
display: block;
|
|
252
|
+
transform: rotate(-90deg);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
button[disabled] {
|
|
257
|
+
background: $mediumGray;
|
|
258
|
+
opacity: .3;
|
|
259
|
+
cursor: default;
|
|
260
|
+
|
|
261
|
+
&:hover {
|
|
262
|
+
background: $mediumGray;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.btn-download {
|
|
269
|
+
color: #fff;
|
|
270
|
+
float: right;
|
|
271
|
+
text-decoration: none;
|
|
272
|
+
transition: .3s all;
|
|
273
|
+
margin: 1em 0;
|
|
274
|
+
|
|
275
|
+
&:hover {
|
|
276
|
+
transition: .3s all;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.guidance-link {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
padding: .75em 1em;
|
|
5
|
+
margin: 2em 0 1em;
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
font-size: 1em;
|
|
8
|
+
border: $lightGray 1px solid;
|
|
9
|
+
color: #444;
|
|
10
|
+
transition: .2s all;
|
|
11
|
+
|
|
12
|
+
&:before {
|
|
13
|
+
content: " ";
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: -1px;
|
|
16
|
+
left: -1px;
|
|
17
|
+
bottom: -1px;
|
|
18
|
+
width: 5px;
|
|
19
|
+
background: $blue;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
background: $lightestGray;
|
|
24
|
+
color: #444;
|
|
25
|
+
transition: .2s all;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> div {
|
|
29
|
+
font-size: .9em;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
svg {
|
|
33
|
+
width: 60px;
|
|
34
|
+
color: $blue;
|
|
35
|
+
margin-right: 1rem;
|
|
36
|
+
|
|
37
|
+
path {
|
|
38
|
+
fill: currentColor;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h3 {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
font-size: 1.2rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.waiting {
|
|
2
|
+
@include emptyState;
|
|
3
|
+
padding-top: 0;
|
|
4
|
+
|
|
5
|
+
&.collapsed {
|
|
6
|
+
padding: 2em !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.waiting-container {
|
|
10
|
+
max-width: 400px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h3 {
|
|
14
|
+
font-size: 1.3rem;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
margin-bottom: .3rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
p {
|
|
20
|
+
font-size: 1em;
|
|
21
|
+
|
|
22
|
+
strong {
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.loading {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
min-height: 30%;
|
|
35
|
+
text-align: center;
|
|
36
|
+
background: rgba(255, 255, 255, .5);
|
|
37
|
+
z-index: 3;
|
|
38
|
+
|
|
39
|
+
span {
|
|
40
|
+
display: block;
|
|
41
|
+
margin-bottom: 1em;
|
|
42
|
+
font-size: 1.3em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.la-ball-beat {
|
|
46
|
+
display: flex;
|
|
47
|
+
position: relative;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
width: 108px;
|
|
51
|
+
height: 36px;
|
|
52
|
+
margin: 0 auto;
|
|
53
|
+
font-size: 0;
|
|
54
|
+
transform: scale(1.3);
|
|
55
|
+
color: #777;
|
|
56
|
+
|
|
57
|
+
&.sm, &.xs, &.xxs {
|
|
58
|
+
transform: scale(0.7)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
div + div {
|
|
62
|
+
margin-left: 10px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
> div {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
position: relative;
|
|
68
|
+
width: 20px;
|
|
69
|
+
height: 20px;
|
|
70
|
+
background-color: currentColor;
|
|
71
|
+
border: 0 solid currentColor;
|
|
72
|
+
border-radius: 100%;
|
|
73
|
+
animation: ball-beat .7s -.15s infinite linear;
|
|
74
|
+
|
|
75
|
+
&:nth-child(2n-1) {
|
|
76
|
+
animation-delay: -.5s;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
//# Must be loaded outside of Tooltip component for animation availability
|
|
2
|
+
|
|
3
|
+
$cove-tooltip-bg: #fff;
|
|
4
|
+
$cove-tooltip-color: #333;
|
|
5
|
+
$cove-tooltip-animation: 500ms cubic-bezier(0.16, 1, 0.3, 1) 50ms 1 forwards;
|
|
6
|
+
|
|
7
|
+
.cove-tooltip {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cove-tooltip--target {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cove-tooltip__content {
|
|
16
|
+
max-width: 280px;
|
|
17
|
+
padding: 10px 8px;
|
|
18
|
+
text-align: left;
|
|
19
|
+
font-size: 0.875rem;
|
|
20
|
+
color: $cove-tooltip-color;
|
|
21
|
+
background-color: $cove-tooltip-bg;
|
|
22
|
+
border-radius: 5px;
|
|
23
|
+
user-select: none;
|
|
24
|
+
cursor: default;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
|
|
27
|
+
&.place-top {
|
|
28
|
+
&.has-shadow {
|
|
29
|
+
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.show {
|
|
33
|
+
animation: tooltip-btt $cove-tooltip-animation;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.place-right {
|
|
38
|
+
&.has-shadow {
|
|
39
|
+
box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.15), -4px 4px 8px rgba(0, 0, 0, 0.1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.show {
|
|
43
|
+
animation: tooltip-ltr $cove-tooltip-animation;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.place-bottom {
|
|
48
|
+
&.has-shadow {
|
|
49
|
+
box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.15), 0 8px 8px rgba(0, 0, 0, 0.1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.show {
|
|
53
|
+
animation: tooltip-ttb $cove-tooltip-animation;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.place-left {
|
|
58
|
+
&.has-shadow {
|
|
59
|
+
box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.15), 4px 4px 8px rgba(0, 0, 0, 0.1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.show {
|
|
63
|
+
animation: tooltip-rtl $cove-tooltip-animation;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.interactive {
|
|
69
|
+
a {
|
|
70
|
+
pointer-events: all;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cove-tooltip--border-0 {
|
|
75
|
+
border-width: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cove-tooltip--border-1 {
|
|
79
|
+
border-width: 1px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cove-tooltip--border-2 {
|
|
83
|
+
border-width: 2px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes tooltip-ltr {
|
|
87
|
+
0% {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: translateX(-8px);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
100% {
|
|
93
|
+
opacity: 1;
|
|
94
|
+
transform: translateX(0);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes tooltip-rtl {
|
|
99
|
+
0% {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
transform: translateX(8px);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
transform: translateX(0);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes tooltip-ttb {
|
|
111
|
+
0% {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
transform: translateY(-8px);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
100% {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
transform: translateY(0);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes tooltip-btt {
|
|
123
|
+
0% {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: translateY(8px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
100% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: translateY(0);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
$theme: (
|
|
4
|
+
'amber': ('#fbab18', '#ffd54f', '#ffecb3', '#fff7e1'),
|
|
5
|
+
'blue': ('#005eaa', '#88c3ea', '#c0e9ff', '#edf9ff'),
|
|
6
|
+
'brown': ('#705043', '#ad907b', '#d7ccc8', '#f2ebe8'),
|
|
7
|
+
'cyan': ('#006778', '#65b0bd', '#cce5e9', '#ebf5f6'),
|
|
8
|
+
'green': ('#4b830d', '#84bc49', '#dcedc8', '#f1f8e9'),
|
|
9
|
+
'indigo': ('#26418f', '#92a6dd', '#dee8ff', '#f2f6ff'),
|
|
10
|
+
'orange': ('#bb4d00', '#ffad42', '#ffe97d', '#fff4cf'),
|
|
11
|
+
'pink': ('#af4448', '#e57373', '#ffc2c2', '#ffe7e7'),
|
|
12
|
+
'purple': ('#712177', '#b890bb', '#e3d3e4', '#f7f2f7'),
|
|
13
|
+
'slate': ('#29434e', '#7e9ba5', '#b6c6d2', '#e2e8ed'),
|
|
14
|
+
'teal': ('#00695c', '#4ebaaa', '#ceece7', '#ebf7f5' )
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// .type-sparkline class used for creating sparklines
|
|
18
|
+
// once v2 is released plz update html structure
|
|
19
|
+
// to use .cove
|
|
20
|
+
.markup-include,
|
|
21
|
+
.type-waffle-chart,
|
|
22
|
+
.type-data-bite,
|
|
23
|
+
.cdc-open-viz-module.type-chart.type-sparkline,
|
|
24
|
+
.cove {
|
|
25
|
+
@each $theme-name, $theme-colors in $theme {
|
|
26
|
+
// Header
|
|
27
|
+
.theme-#{$theme-name} {
|
|
28
|
+
background-color: string.unquote(nth($theme-colors, 1));
|
|
29
|
+
border-color: string.unquote(nth($theme-colors, 2));
|
|
30
|
+
border-bottom-style: solid;
|
|
31
|
+
border-bottom-width: 4px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.theme-#{$theme-name} {
|
|
35
|
+
|
|
36
|
+
.cove-component__content:not(.no-borders).component--has-borderColorTheme {
|
|
37
|
+
border-left: 1px solid string.unquote(nth($theme-colors, 1));
|
|
38
|
+
border-right: 1px solid string.unquote(nth($theme-colors, 1));
|
|
39
|
+
border-bottom: 1px solid string.unquote(nth($theme-colors, 1));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// when component doesn't have a title add border top
|
|
43
|
+
.cove-component__inner:not(.component--has-title) .cove-component__content.component--has-borderColorTheme:not(.no-borders) {
|
|
44
|
+
border-top: 1px solid string.unquote(nth($theme-colors, 1));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// should probably be in color definitions but logically makes sense here.
|
|
48
|
+
.cove-component__inner:not(.component--has-title) .cove-component__content {
|
|
49
|
+
border-top: 1px solid #ccc;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.cove-component__header {
|
|
53
|
+
border-color: string.unquote(nth($theme-colors, 2));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.cove-component__content.component--has-accent {
|
|
57
|
+
border-left: .5rem solid string.unquote(nth($theme-colors, 1)) !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cove-component__content.component--has-background:not(.component--hideBackgroundColor) {
|
|
61
|
+
background: string.unquote(nth($theme-colors, 3));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
$baseColor: #333;
|
|
68
|
+
$blue: #005EAA;
|
|
69
|
+
$lightestGray: #F2F2F2;
|
|
70
|
+
$lightGray: #C7C7C7;
|
|
71
|
+
$mediumGray: #565656;
|
|
72
|
+
$darkGray: #333;
|
|
73
|
+
$red: #d8000c;
|
|
74
|
+
$white: #fff;
|
|
75
|
+
|
|
76
|
+
$primary: #005eaa !default;
|
|
77
|
+
$secondary: #88c3ea !default;
|
|
78
|
+
$tertiary: #c0e9ff !default;
|
|
79
|
+
$quaternary: #edf9ff !default;
|
|
80
|
+
|
|
81
|
+
$purple-primary: #712177 !default;
|
|
82
|
+
$purple-secondary: #b890bb !default;
|
|
83
|
+
$purple-tertiary: #e3d3e4 !default;
|
|
84
|
+
$purple-quaternary: #f7f2f7 !default;
|
|
85
|
+
|
|
86
|
+
$brown-primary: #705043 !default;
|
|
87
|
+
$brown-secondary: #ad907b !default;
|
|
88
|
+
$brown-tertiary: #d7ccc8 !default;
|
|
89
|
+
$brown-quaternary: #f2ebe8 !default;
|
|
90
|
+
|
|
91
|
+
$teal-primary: #00695c !default;
|
|
92
|
+
$teal-secondary: #4ebaaa !default;
|
|
93
|
+
$teal-tertiary: #ceece7 !default;
|
|
94
|
+
$teal-quaternary: #ebf7f5 !default;
|
|
95
|
+
|
|
96
|
+
$pink-primary: #af4448 !default;
|
|
97
|
+
$pink-secondary: #e57373 !default;
|
|
98
|
+
$pink-tertiary: #ffc2c2 !default;
|
|
99
|
+
$pink-quaternary: #ffe7e7 !default;
|
|
100
|
+
|
|
101
|
+
$orange-primary: #bb4d00 !default;
|
|
102
|
+
$orange-secondary: #ffad42 !default;
|
|
103
|
+
$orange-tertiary: #ffe97d !default;
|
|
104
|
+
$orange-quaternary: #fff4cf !default;
|
|
105
|
+
|
|
106
|
+
$slate-primary: #29434e !default;
|
|
107
|
+
$slate-secondary: #7e9ba5 !default;
|
|
108
|
+
$slate-tertiary: #b6c6d2 !default;
|
|
109
|
+
$slate-quaternary: #e2e8ed !default;
|
|
110
|
+
|
|
111
|
+
$indigo-primary: #26418f !default;
|
|
112
|
+
$indigo-secondary: #92a6dd !default;
|
|
113
|
+
$indigo-tertiary: #dee8ff !default;
|
|
114
|
+
$indigo-quaternary: #f2f6ff !default;
|
|
115
|
+
|
|
116
|
+
$cyan-primary: #006778 !default;
|
|
117
|
+
$cyan-secondary: #65b0bd !default;
|
|
118
|
+
$cyan-tertiary: #cce5e9 !default;
|
|
119
|
+
$cyan-quaternary: #ebf5f6 !default;
|
|
120
|
+
|
|
121
|
+
$green-primary: #4b830d !default;
|
|
122
|
+
$green-secondary: #84bc49 !default;
|
|
123
|
+
$green-tertiary: #dcedc8 !default;
|
|
124
|
+
$green-quaternary: #f1f8e9 !default;
|
|
125
|
+
|
|
126
|
+
$amber-primary: #fbab18 !default;
|
|
127
|
+
$amber-secondary: #ffd54f !default;
|
|
128
|
+
$amber-tertiary: #ffecb3 !default;
|
|
129
|
+
$amber-quaternary: #fff7e1 !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "color-definitions";
|