nhsuk-tools-chart-components-react 1.1.8 → 1.1.9

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.
@@ -15,6 +15,63 @@
15
15
  margin-bottom: 3px;
16
16
  }
17
17
 
18
+ .nhsuk-bar-slider-graph {
19
+ position: relative;
20
+ outline: 1px solid black;
21
+ margin-top: 20px;
22
+ display: flex;
23
+ height: 28px;
24
+ }
25
+ @media (min-width: 320px) and (max-width: 641px) {
26
+ .nhsuk-bar-slider-graph {
27
+ height: 24px;
28
+ }
29
+ }
30
+
31
+ .nhsuk-bar-slider-arrow-marker {
32
+ position: absolute;
33
+ height: 16px;
34
+ width: 16px;
35
+ margin: -9px 0 -8px -8px;
36
+ }
37
+ @media (min-width: 320px) and (max-width: 641px) {
38
+ .nhsuk-bar-slider-arrow-marker {
39
+ height: 12px;
40
+ width: 12px;
41
+ margin: -9px 0 -6px -6px;
42
+ }
43
+ }
44
+
45
+ .nhsuk-bar-slider-label-align-left {
46
+ display: flex;
47
+ justify-content: left;
48
+ }
49
+
50
+ .nhsuk-bar-slider-label-align-center {
51
+ display: flex;
52
+ justify-content: center;
53
+ }
54
+
55
+ .nhsuk-bar-slider-label-align-right {
56
+ display: flex;
57
+ justify-content: right;
58
+ }
59
+
60
+ .nhsuk-bar-slider-label-marker {
61
+ position: relative;
62
+ height: 25px;
63
+ width: auto;
64
+ white-space: nowrap;
65
+ margin-top: -30px;
66
+ }
67
+
68
+ .nhsuk-bar-slider-value-marker {
69
+ position: relative;
70
+ font-weight: bold;
71
+ margin-left: 5px;
72
+ margin-right: 2px;
73
+ }
74
+
18
75
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
19
76
  background: #330072;
20
77
  }
@@ -132,108 +189,6 @@
132
189
  box-shadow: none;
133
190
  }
134
191
 
135
- .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
136
- background: #330072;
137
- }
138
-
139
- .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
140
- background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
141
- }
142
-
143
- .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
144
- background: #ffb81c;
145
- }
146
-
147
- .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
148
- background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
149
- }
150
-
151
- #nhsuk-bp-chart > figure {
152
- margin: 0;
153
- }
154
-
155
- .nhsuk-bp-legend-key-wrapper {
156
- display: flex;
157
- }
158
- .nhsuk-bp-legend-key-wrapper:last-child {
159
- margin-top: 5px;
160
- }
161
-
162
- .nhsuk-bp-legend-display-card {
163
- margin-top: 50px;
164
- max-width: 300px;
165
- }
166
-
167
- .nhsuk-bp-legend-key-classification-low {
168
- border-bottom: none;
169
- box-shadow: none;
170
- }
171
-
172
- .nhsuk-bp-legend-key-marker {
173
- border-bottom: none;
174
- box-shadow: none;
175
- }
176
-
177
- .nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
178
- position: absolute;
179
- outline: 0.5px solid black;
180
- }
181
-
182
- .nhsuk-bp-diastolic-axis-label, .nhsuk-bp-systolic-axis-label {
183
- position: absolute;
184
- }
185
-
186
- .nhsuk-bp-systolic-axis-marker {
187
- width: 5px;
188
- left: -5px;
189
- }
190
- .nhsuk-bp-systolic-axis-marker:first-child {
191
- bottom: -1px !important;
192
- }
193
- .nhsuk-bp-systolic-axis-marker:last-child {
194
- bottom: calc(100% + 1px) !important;
195
- }
196
-
197
- .nhsuk-bp-diastolic-axis-marker {
198
- height: 5px;
199
- bottom: -5px;
200
- }
201
- .nhsuk-bp-diastolic-axis-marker:first-child {
202
- left: -1px !important;
203
- }
204
- .nhsuk-bp-diastolic-axis-marker:last-child {
205
- left: calc(100% + 1px) !important;
206
- }
207
-
208
- @media (max-width: 450px) {
209
- .nhsuk-bp-diastolic-axis-marker-85 {
210
- display: none;
211
- }
212
- }
213
-
214
- .nhsuk-bp-diastolic-axis-marker-90 {
215
- display: none;
216
- }
217
- @media (max-width: 450px) {
218
- .nhsuk-bp-diastolic-axis-marker-90 {
219
- display: block;
220
- }
221
- }
222
-
223
- .nhsuk-bp-systolic-axis-label {
224
- left: -30px;
225
- top: -10px;
226
- width: 26px;
227
- text-align: end;
228
- }
229
-
230
- .nhsuk-bp-diastolic-axis-label {
231
- bottom: -25px;
232
- left: -10px;
233
- width: 20px;
234
- text-align: center;
235
- }
236
-
237
192
  .nhsuk-bp-graph {
238
193
  position: relative;
239
194
  margin-left: 20px;
@@ -288,6 +243,63 @@
288
243
  border-bottom: 2px solid black;
289
244
  }
290
245
 
246
+ .nhsuk-bmi-axis-marker {
247
+ position: absolute;
248
+ outline: 0.5px solid black;
249
+ height: 5px;
250
+ bottom: -5px;
251
+ }
252
+
253
+ .nhsuk-bmi-axis-marker-label {
254
+ position: absolute;
255
+ bottom: -25px;
256
+ left: -10px;
257
+ width: 20px;
258
+ text-align: center;
259
+ }
260
+
261
+ .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
262
+ background: #330072;
263
+ }
264
+
265
+ .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
266
+ background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
267
+ }
268
+
269
+ .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
270
+ background: #ffb81c;
271
+ }
272
+
273
+ .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
274
+ background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
275
+ }
276
+
277
+ #nhsuk-bp-chart > figure {
278
+ margin: 0;
279
+ }
280
+
281
+ .nhsuk-bp-legend-key-wrapper {
282
+ display: flex;
283
+ }
284
+ .nhsuk-bp-legend-key-wrapper:last-child {
285
+ margin-top: 5px;
286
+ }
287
+
288
+ .nhsuk-bp-legend-display-card {
289
+ margin-top: 50px;
290
+ max-width: 300px;
291
+ }
292
+
293
+ .nhsuk-bp-legend-key-classification-low {
294
+ border-bottom: none;
295
+ box-shadow: none;
296
+ }
297
+
298
+ .nhsuk-bp-legend-key-marker {
299
+ border-bottom: none;
300
+ box-shadow: none;
301
+ }
302
+
291
303
  .nhsuk-bp-graph-marker {
292
304
  position: absolute;
293
305
  z-index: 6;
@@ -310,35 +322,6 @@
310
322
  }
311
323
  }
312
324
 
313
- .nhsuk-bp-graph-cell {
314
- flex-grow: 1;
315
- border-bottom: 1px solid white;
316
- border-left: 1px solid white;
317
- background: transparent;
318
- z-index: 4;
319
- }
320
-
321
- .nhsuk-bp-first-in-column {
322
- border-bottom: none;
323
- }
324
-
325
- .nhsuk-bp-first-in-row {
326
- border-left: none;
327
- }
328
-
329
- .nhsuk-bar-slider-graph {
330
- position: relative;
331
- outline: 1px solid black;
332
- margin-top: 20px;
333
- display: flex;
334
- height: 28px;
335
- }
336
- @media (min-width: 320px) and (max-width: 641px) {
337
- .nhsuk-bar-slider-graph {
338
- height: 24px;
339
- }
340
- }
341
-
342
325
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
343
326
  background: #330072;
344
327
  }
@@ -390,63 +373,80 @@
390
373
  z-index: 0;
391
374
  }
392
375
 
393
- .nhsuk-bmi-axis-marker {
376
+ .nhsuk-bp-graph-cell {
377
+ flex-grow: 1;
378
+ border-bottom: 1px solid white;
379
+ border-left: 1px solid white;
380
+ background: transparent;
381
+ z-index: 4;
382
+ }
383
+
384
+ .nhsuk-bp-first-in-column {
385
+ border-bottom: none;
386
+ }
387
+
388
+ .nhsuk-bp-first-in-row {
389
+ border-left: none;
390
+ }
391
+
392
+ .nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
394
393
  position: absolute;
395
394
  outline: 0.5px solid black;
396
- height: 5px;
397
- bottom: -5px;
398
395
  }
399
396
 
400
- .nhsuk-bmi-axis-marker-label {
397
+ .nhsuk-bp-diastolic-axis-label, .nhsuk-bp-systolic-axis-label {
401
398
  position: absolute;
402
- bottom: -25px;
403
- left: -10px;
404
- width: 20px;
405
- text-align: center;
406
399
  }
407
400
 
408
- .nhsuk-bar-slider-arrow-marker {
409
- position: absolute;
410
- height: 16px;
411
- width: 16px;
412
- margin: -9px 0 -8px -8px;
401
+ .nhsuk-bp-systolic-axis-marker {
402
+ width: 5px;
403
+ left: -5px;
413
404
  }
414
- @media (min-width: 320px) and (max-width: 641px) {
415
- .nhsuk-bar-slider-arrow-marker {
416
- height: 12px;
417
- width: 12px;
418
- margin: -9px 0 -6px -6px;
419
- }
405
+ .nhsuk-bp-systolic-axis-marker:first-child {
406
+ bottom: -1px !important;
407
+ }
408
+ .nhsuk-bp-systolic-axis-marker:last-child {
409
+ bottom: calc(100% + 1px) !important;
420
410
  }
421
411
 
422
- .nhsuk-bar-slider-label-align-left {
423
- display: flex;
424
- justify-content: left;
412
+ .nhsuk-bp-diastolic-axis-marker {
413
+ height: 5px;
414
+ bottom: -5px;
415
+ }
416
+ .nhsuk-bp-diastolic-axis-marker:first-child {
417
+ left: -1px !important;
418
+ }
419
+ .nhsuk-bp-diastolic-axis-marker:last-child {
420
+ left: calc(100% + 1px) !important;
425
421
  }
426
422
 
427
- .nhsuk-bar-slider-label-align-center {
428
- display: flex;
429
- justify-content: center;
423
+ @media (max-width: 450px) {
424
+ .nhsuk-bp-diastolic-axis-marker-85 {
425
+ display: none;
426
+ }
430
427
  }
431
428
 
432
- .nhsuk-bar-slider-label-align-right {
433
- display: flex;
434
- justify-content: right;
429
+ .nhsuk-bp-diastolic-axis-marker-90 {
430
+ display: none;
431
+ }
432
+ @media (max-width: 450px) {
433
+ .nhsuk-bp-diastolic-axis-marker-90 {
434
+ display: block;
435
+ }
435
436
  }
436
437
 
437
- .nhsuk-bar-slider-label-marker {
438
- position: relative;
439
- height: 25px;
440
- width: auto;
441
- white-space: nowrap;
442
- margin-top: -30px;
438
+ .nhsuk-bp-systolic-axis-label {
439
+ left: -30px;
440
+ top: -10px;
441
+ width: 26px;
442
+ text-align: end;
443
443
  }
444
444
 
445
- .nhsuk-bar-slider-value-marker {
446
- position: relative;
447
- font-weight: bold;
448
- margin-left: 5px;
449
- margin-right: 2px;
445
+ .nhsuk-bp-diastolic-axis-label {
446
+ bottom: -25px;
447
+ left: -10px;
448
+ width: 20px;
449
+ text-align: center;
450
450
  }
451
451
 
452
452
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
@@ -524,6 +524,41 @@
524
524
  background: #330072;
525
525
  }
526
526
 
527
+ .nhsuk-cbmi-axis-marker {
528
+ border: 1px solid black;
529
+ position: absolute;
530
+ bottom: -5px;
531
+ margin-left: -0.5px;
532
+ box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
533
+ z-index: 100;
534
+ height: 33px;
535
+ }
536
+ @media (min-width: 320px) and (max-width: 641px) {
537
+ .nhsuk-cbmi-axis-marker {
538
+ height: 29px;
539
+ }
540
+ }
541
+
542
+ .nhsuk-cbmi-axis-marker-label {
543
+ position: absolute;
544
+ bottom: -25px;
545
+ left: -10px;
546
+ width: 20px;
547
+ text-align: center;
548
+ }
549
+
550
+ .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
551
+ background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
552
+ }
553
+
554
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
555
+ background: #ffb81c;
556
+ }
557
+
558
+ .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
559
+ background: #330072;
560
+ }
561
+
527
562
  .nhsuk-cbmi-chart-arrow-marker {
528
563
  position: absolute;
529
564
  z-index: 4;
@@ -617,39 +652,4 @@
617
652
 
618
653
  .nhsuk-cbmi-classification-overweight {
619
654
  z-index: 1;
620
- }
621
-
622
- .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
623
- background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
624
- }
625
-
626
- .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
627
- background: #ffb81c;
628
- }
629
-
630
- .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
631
- background: #330072;
632
- }
633
-
634
- .nhsuk-cbmi-axis-marker {
635
- border: 1px solid black;
636
- position: absolute;
637
- bottom: -5px;
638
- margin-left: -0.5px;
639
- box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
640
- z-index: 100;
641
- height: 33px;
642
- }
643
- @media (min-width: 320px) and (max-width: 641px) {
644
- .nhsuk-cbmi-axis-marker {
645
- height: 29px;
646
- }
647
- }
648
-
649
- .nhsuk-cbmi-axis-marker-label {
650
- position: absolute;
651
- bottom: -25px;
652
- left: -10px;
653
- width: 20px;
654
- text-align: center;
655
655
  }
@@ -15,6 +15,63 @@
15
15
  margin-bottom: 3px;
16
16
  }
17
17
 
18
+ .nhsuk-bar-slider-graph {
19
+ position: relative;
20
+ outline: 1px solid black;
21
+ margin-top: 20px;
22
+ display: flex;
23
+ height: 28px;
24
+ }
25
+ @media (min-width: 320px) and (max-width: 641px) {
26
+ .nhsuk-bar-slider-graph {
27
+ height: 24px;
28
+ }
29
+ }
30
+
31
+ .nhsuk-bar-slider-arrow-marker {
32
+ position: absolute;
33
+ height: 16px;
34
+ width: 16px;
35
+ margin: -9px 0 -8px -8px;
36
+ }
37
+ @media (min-width: 320px) and (max-width: 641px) {
38
+ .nhsuk-bar-slider-arrow-marker {
39
+ height: 12px;
40
+ width: 12px;
41
+ margin: -9px 0 -6px -6px;
42
+ }
43
+ }
44
+
45
+ .nhsuk-bar-slider-label-align-left {
46
+ display: flex;
47
+ justify-content: left;
48
+ }
49
+
50
+ .nhsuk-bar-slider-label-align-center {
51
+ display: flex;
52
+ justify-content: center;
53
+ }
54
+
55
+ .nhsuk-bar-slider-label-align-right {
56
+ display: flex;
57
+ justify-content: right;
58
+ }
59
+
60
+ .nhsuk-bar-slider-label-marker {
61
+ position: relative;
62
+ height: 25px;
63
+ width: auto;
64
+ white-space: nowrap;
65
+ margin-top: -30px;
66
+ }
67
+
68
+ .nhsuk-bar-slider-value-marker {
69
+ position: relative;
70
+ font-weight: bold;
71
+ margin-left: 5px;
72
+ margin-right: 2px;
73
+ }
74
+
18
75
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
19
76
  background: #330072;
20
77
  }
@@ -41,6 +98,21 @@
41
98
  box-shadow: none;
42
99
  }
43
100
 
101
+ .nhsuk-bmi-chart-marker {
102
+ position: absolute;
103
+ z-index: 4;
104
+ height: 24px;
105
+ width: 24px;
106
+ margin: 2px 0 -12px -12px;
107
+ }
108
+ @media (min-width: 320px) and (max-width: 641px) {
109
+ .nhsuk-bmi-chart-marker {
110
+ height: 20px;
111
+ width: 20px;
112
+ margin: 2px 0 -10px -10px;
113
+ }
114
+ }
115
+
44
116
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
45
117
  background: #330072;
46
118
  }
@@ -57,32 +129,35 @@
57
129
  background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
58
130
  }
59
131
 
60
- .nhsuk-bmi-graph {
61
- position: relative;
132
+ .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
133
+ position: absolute;
134
+ bottom: 0%;
62
135
  outline: 1px solid black;
63
- display: flex;
136
+ border-right: 1px solid black;
137
+ box-shadow: -1px 0px white inset, 2px 0px white, 0px -2px white;
64
138
  height: 28px;
65
- margin-bottom: nhsuk-spacing(4);
66
139
  }
67
140
  @media (min-width: 320px) and (max-width: 641px) {
68
- .nhsuk-bmi-graph {
141
+ .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
69
142
  height: 24px;
70
143
  }
71
144
  }
72
145
 
73
- .nhsuk-bmi-chart-marker {
74
- position: absolute;
75
- z-index: 4;
76
- height: 24px;
77
- width: 24px;
78
- margin: 2px 0 -12px -12px;
146
+ .nhsuk-bmi-classification-underweight {
147
+ z-index: 3;
79
148
  }
80
- @media (min-width: 320px) and (max-width: 641px) {
81
- .nhsuk-bmi-chart-marker {
82
- height: 20px;
83
- width: 20px;
84
- margin: 2px 0 -10px -10px;
85
- }
149
+
150
+ .nhsuk-bmi-classification-healthy {
151
+ z-index: 2;
152
+ }
153
+
154
+ .nhsuk-bmi-classification-overweight {
155
+ z-index: 1;
156
+ }
157
+
158
+ .nhsuk-bmi-classification-obese {
159
+ border-right: none;
160
+ box-shadow: none;
86
161
  }
87
162
 
88
163
  .nhsuk-bmi-axis-marker {
@@ -100,61 +175,46 @@
100
175
  text-align: center;
101
176
  }
102
177
 
103
- .nhsuk-bar-slider-graph {
104
- position: relative;
105
- outline: 1px solid black;
106
- margin-top: 20px;
107
- display: flex;
108
- height: 28px;
178
+ .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
179
+ background: #330072;
109
180
  }
110
- @media (min-width: 320px) and (max-width: 641px) {
111
- .nhsuk-bar-slider-graph {
112
- height: 24px;
113
- }
181
+
182
+ .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
183
+ background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
114
184
  }
115
185
 
116
- .nhsuk-bar-slider-arrow-marker {
117
- position: absolute;
118
- height: 16px;
119
- width: 16px;
120
- margin: -9px 0 -8px -8px;
186
+ .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
187
+ background: #ffb81c;
121
188
  }
122
- @media (min-width: 320px) and (max-width: 641px) {
123
- .nhsuk-bar-slider-arrow-marker {
124
- height: 12px;
125
- width: 12px;
126
- margin: -9px 0 -6px -6px;
127
- }
189
+
190
+ .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
191
+ background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
128
192
  }
129
193
 
130
- .nhsuk-bar-slider-label-align-left {
131
- display: flex;
132
- justify-content: left;
194
+ #nhsuk-bp-chart > figure {
195
+ margin: 0;
133
196
  }
134
197
 
135
- .nhsuk-bar-slider-label-align-center {
198
+ .nhsuk-bp-legend-key-wrapper {
136
199
  display: flex;
137
- justify-content: center;
200
+ }
201
+ .nhsuk-bp-legend-key-wrapper:last-child {
202
+ margin-top: 5px;
138
203
  }
139
204
 
140
- .nhsuk-bar-slider-label-align-right {
141
- display: flex;
142
- justify-content: right;
205
+ .nhsuk-bp-legend-display-card {
206
+ margin-top: 50px;
207
+ max-width: 300px;
143
208
  }
144
209
 
145
- .nhsuk-bar-slider-label-marker {
146
- position: relative;
147
- height: 25px;
148
- width: auto;
149
- white-space: nowrap;
150
- margin-top: -30px;
210
+ .nhsuk-bp-legend-key-classification-low {
211
+ border-bottom: none;
212
+ box-shadow: none;
151
213
  }
152
214
 
153
- .nhsuk-bar-slider-value-marker {
154
- position: relative;
155
- font-weight: bold;
156
- margin-left: 5px;
157
- margin-right: 2px;
215
+ .nhsuk-bp-legend-key-marker {
216
+ border-bottom: none;
217
+ box-shadow: none;
158
218
  }
159
219
 
160
220
  .nhsuk-bp-graph {
@@ -211,6 +271,28 @@
211
271
  border-bottom: 2px solid black;
212
272
  }
213
273
 
274
+ .nhsuk-bp-graph-marker {
275
+ position: absolute;
276
+ z-index: 6;
277
+ height: 24px;
278
+ width: 24px;
279
+ margin: 0 0 -12px -12px;
280
+ }
281
+ @media (max-width: 320px) {
282
+ .nhsuk-bp-graph-marker {
283
+ height: 20px;
284
+ width: 20px;
285
+ margin: 0 0 -10px -10px;
286
+ }
287
+ }
288
+ @media (min-width: 320px) and (max-width: 641px) {
289
+ .nhsuk-bp-graph-marker {
290
+ height: 22px;
291
+ width: 22px;
292
+ margin: 0 0 -11px -11px;
293
+ }
294
+ }
295
+
214
296
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
215
297
  background: #330072;
216
298
  }
@@ -227,30 +309,55 @@
227
309
  background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
228
310
  }
229
311
 
230
- #nhsuk-bp-chart > figure {
231
- margin: 0;
312
+ .nhsuk-bp-region-boundary {
313
+ position: absolute;
314
+ bottom: 0%;
315
+ outline: 1px solid black;
316
+ border-top: 1px solid black;
317
+ border-right: 1px solid black;
318
+ box-shadow: -1px 1px white inset, 2px 0px white, 0px -2px white, 2px -2px white;
319
+ z-index: 5;
320
+ background: transparent;
232
321
  }
233
322
 
234
- .nhsuk-bp-legend-key-wrapper {
235
- display: flex;
323
+ .nhsuk-bp-classification-low {
324
+ position: absolute;
325
+ bottom: 0%;
326
+ z-index: 3;
236
327
  }
237
- .nhsuk-bp-legend-key-wrapper:last-child {
238
- margin-top: 5px;
328
+
329
+ .nhsuk-bp-classification-healthy {
330
+ position: absolute;
331
+ bottom: 0%;
332
+ z-index: 2;
239
333
  }
240
334
 
241
- .nhsuk-bp-legend-display-card {
242
- margin-top: 50px;
243
- max-width: 300px;
335
+ .nhsuk-bp-classification-slightlyraised {
336
+ position: absolute;
337
+ bottom: 0%;
338
+ z-index: 1;
244
339
  }
245
340
 
246
- .nhsuk-bp-legend-key-classification-low {
247
- border-bottom: none;
248
- box-shadow: none;
341
+ .nhsuk-bp-classification-high {
342
+ position: absolute;
343
+ bottom: 0%;
344
+ z-index: 0;
249
345
  }
250
346
 
251
- .nhsuk-bp-legend-key-marker {
347
+ .nhsuk-bp-graph-cell {
348
+ flex-grow: 1;
349
+ border-bottom: 1px solid white;
350
+ border-left: 1px solid white;
351
+ background: transparent;
352
+ z-index: 4;
353
+ }
354
+
355
+ .nhsuk-bp-first-in-column {
252
356
  border-bottom: none;
253
- box-shadow: none;
357
+ }
358
+
359
+ .nhsuk-bp-first-in-row {
360
+ border-left: none;
254
361
  }
255
362
 
256
363
  .nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
@@ -313,104 +420,15 @@
313
420
  text-align: center;
314
421
  }
315
422
 
316
- .nhsuk-bp-graph-marker {
317
- position: absolute;
318
- z-index: 6;
319
- height: 24px;
320
- width: 24px;
321
- margin: 0 0 -12px -12px;
322
- }
323
- @media (max-width: 320px) {
324
- .nhsuk-bp-graph-marker {
325
- height: 20px;
326
- width: 20px;
327
- margin: 0 0 -10px -10px;
328
- }
329
- }
330
- @media (min-width: 320px) and (max-width: 641px) {
331
- .nhsuk-bp-graph-marker {
332
- height: 22px;
333
- width: 22px;
334
- margin: 0 0 -11px -11px;
335
- }
336
- }
337
-
338
- .nhsuk-bp-graph-cell {
339
- flex-grow: 1;
340
- border-bottom: 1px solid white;
341
- border-left: 1px solid white;
342
- background: transparent;
343
- z-index: 4;
344
- }
345
-
346
- .nhsuk-bp-first-in-column {
347
- border-bottom: none;
348
- }
349
-
350
- .nhsuk-bp-first-in-row {
351
- border-left: none;
352
- }
353
-
354
- .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
355
- background: #330072;
356
- }
357
-
358
- .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
359
- background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
360
- }
361
-
362
- .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
363
- background: #ffb81c;
364
- }
365
-
366
- .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
367
- background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
368
- }
369
-
370
- .nhsuk-bp-region-boundary {
371
- position: absolute;
372
- bottom: 0%;
373
- outline: 1px solid black;
374
- border-top: 1px solid black;
375
- border-right: 1px solid black;
376
- box-shadow: -1px 1px white inset, 2px 0px white, 0px -2px white, 2px -2px white;
377
- z-index: 5;
378
- background: transparent;
379
- }
380
-
381
- .nhsuk-bp-classification-low {
382
- position: absolute;
383
- bottom: 0%;
384
- z-index: 3;
385
- }
386
-
387
- .nhsuk-bp-classification-healthy {
388
- position: absolute;
389
- bottom: 0%;
390
- z-index: 2;
391
- }
392
-
393
- .nhsuk-bp-classification-slightlyraised {
394
- position: absolute;
395
- bottom: 0%;
396
- z-index: 1;
397
- }
398
-
399
- .nhsuk-bp-classification-high {
400
- position: absolute;
401
- bottom: 0%;
402
- z-index: 0;
403
- }
404
-
405
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
423
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
406
424
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
407
425
  }
408
426
 
409
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
427
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
410
428
  background: #ffb81c;
411
429
  }
412
430
 
413
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
431
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
414
432
  background: #330072;
415
433
  }
416
434
 
@@ -427,53 +445,15 @@
427
445
  }
428
446
  }
429
447
 
430
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
448
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
431
449
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
432
450
  }
433
451
 
434
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
452
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
435
453
  background: #ffb81c;
436
454
  }
437
455
 
438
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
439
- background: #330072;
440
- }
441
-
442
- .nhsuk-cbmi-legend-key-classification-overweight {
443
- border-bottom: none;
444
- box-shadow: none;
445
- }
446
-
447
- .nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
448
- border-bottom: 2px solid white;
449
- margin-bottom: 2px;
450
- }
451
-
452
- .nhsuk-cbmi-legend-marker {
453
- margin-bottom: 2px;
454
- }
455
-
456
- .nhsuk-cbmi-classification-underweight-heading {
457
- border-left: 8px solid #330072;
458
- }
459
-
460
- .nhsuk-cbmi-classification-healthy-heading {
461
- border-left: 8px solid #30b4ab;
462
- }
463
-
464
- .nhsuk-cbmi-classification-overweight-heading {
465
- border-left: 8px solid #ffb81c;
466
- }
467
-
468
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
469
- background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
470
- }
471
-
472
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
473
- background: #ffb81c;
474
- }
475
-
476
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
456
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
477
457
  background: #330072;
478
458
  }
479
459
 
@@ -500,15 +480,15 @@
500
480
  text-align: center;
501
481
  }
502
482
 
503
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
483
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
504
484
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
505
485
  }
506
486
 
507
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
487
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
508
488
  background: #ffb81c;
509
489
  }
510
490
 
511
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
491
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
512
492
  background: #330072;
513
493
  }
514
494
 
@@ -571,15 +551,15 @@
571
551
  }
572
552
  }
573
553
 
574
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
554
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
575
555
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
576
556
  }
577
557
 
578
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
558
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
579
559
  background: #ffb81c;
580
560
  }
581
561
 
582
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
562
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
583
563
  background: #330072;
584
564
  }
585
565
 
@@ -607,49 +587,69 @@
607
587
  z-index: 1;
608
588
  }
609
589
 
610
- .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
590
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
591
+ background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
592
+ }
593
+
594
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
595
+ background: #ffb81c;
596
+ }
597
+
598
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
611
599
  background: #330072;
612
600
  }
613
601
 
614
- .nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
615
- background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
602
+ .nhsuk-cbmi-legend-key-classification-overweight {
603
+ border-bottom: none;
604
+ box-shadow: none;
616
605
  }
617
606
 
618
- .nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
619
- background: #ffb81c;
607
+ .nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
608
+ border-bottom: 2px solid white;
609
+ margin-bottom: 2px;
620
610
  }
621
611
 
622
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
623
- background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
612
+ .nhsuk-cbmi-legend-marker {
613
+ margin-bottom: 2px;
624
614
  }
625
615
 
626
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
627
- position: absolute;
628
- bottom: 0%;
629
- outline: 1px solid black;
630
- border-right: 1px solid black;
631
- box-shadow: -1px 0px white inset, 2px 0px white, 0px -2px white;
632
- height: 28px;
616
+ .nhsuk-cbmi-classification-underweight-heading {
617
+ border-left: 8px solid #330072;
633
618
  }
634
- @media (min-width: 320px) and (max-width: 641px) {
635
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
636
- height: 24px;
637
- }
619
+
620
+ .nhsuk-cbmi-classification-healthy-heading {
621
+ border-left: 8px solid #30b4ab;
638
622
  }
639
623
 
640
- .nhsuk-bmi-classification-underweight {
641
- z-index: 3;
624
+ .nhsuk-cbmi-classification-overweight-heading {
625
+ border-left: 8px solid #ffb81c;
642
626
  }
643
627
 
644
- .nhsuk-bmi-classification-healthy {
645
- z-index: 2;
628
+ .nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
629
+ background: #330072;
646
630
  }
647
631
 
648
- .nhsuk-bmi-classification-overweight {
649
- z-index: 1;
632
+ .nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
633
+ background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
650
634
  }
651
635
 
652
- .nhsuk-bmi-classification-obese {
653
- border-right: none;
654
- box-shadow: none;
636
+ .nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
637
+ background: #ffb81c;
638
+ }
639
+
640
+ .nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
641
+ background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
642
+ }
643
+
644
+ .nhsuk-bmi-graph {
645
+ position: relative;
646
+ outline: 1px solid black;
647
+ display: flex;
648
+ height: 28px;
649
+ margin-bottom: nhsuk-spacing(4);
650
+ }
651
+ @media (min-width: 320px) and (max-width: 641px) {
652
+ .nhsuk-bmi-graph {
653
+ height: 24px;
654
+ }
655
655
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhsuk-tools-chart-components-react",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",