nhsuk-tools-chart-components-react 1.0.5 → 1.1.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.
- package/README.md +49 -3
- package/dist/cjs/bundle.css +108 -275
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/bundle.css +121 -288
- package/dist/esm/components/bar-slider/bar-slider-chart-axis.js +2 -0
- package/dist/esm/components/bar-slider/bar-slider-chart-axis.js.map +1 -0
- package/dist/esm/components/bar-slider/bar-slider-chart-marker.js +2 -0
- package/dist/esm/components/bar-slider/bar-slider-chart-marker.js.map +1 -0
- package/dist/esm/components/bar-slider/bar-slider-chart-regions.js +2 -0
- package/dist/esm/components/bar-slider/bar-slider-chart-regions.js.map +1 -0
- package/dist/esm/components/bar-slider/bar-slider-chart.js +2 -0
- package/dist/esm/components/bar-slider/bar-slider-chart.js.map +1 -0
- package/dist/esm/components/bar-slider/bar-slider-figure-chart.js +2 -0
- package/dist/esm/components/bar-slider/bar-slider-figure-chart.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/bar-slider-chart.model.js +2 -0
- package/dist/esm/models/bar-slider-chart.model.js.map +1 -0
- package/dist/esm/src/__tests__/__helpers__/mocks/bar-slider-results.d.ts +4 -0
- package/dist/esm/src/__tests__/models/bar-slider-chart.model.test.d.ts +1 -0
- package/dist/esm/src/__tests__/utils/bar-slider.utils.test.d.ts +1 -0
- package/dist/esm/src/components/bar-slider/bar-slider-chart-axis.d.ts +7 -0
- package/dist/esm/src/components/bar-slider/bar-slider-chart-marker.d.ts +8 -0
- package/dist/esm/src/components/bar-slider/bar-slider-chart-regions.d.ts +5 -0
- package/dist/esm/src/components/bar-slider/bar-slider-chart.d.ts +27 -0
- package/dist/esm/src/components/bar-slider/bar-slider-figure-chart.d.ts +29 -0
- package/dist/esm/src/custom-types/bar-slider.types.d.ts +35 -0
- package/dist/esm/src/custom-types/chart.types.d.ts +2 -0
- package/dist/esm/src/index.d.ts +9 -8
- package/dist/esm/src/models/bar-slider-chart.model.d.ts +45 -0
- package/dist/esm/src/utils/bar-slider.utils.d.ts +10 -0
- package/dist/esm/stories/Charts/BarSlider/Chart.stories.d.ts +219 -0
- package/dist/esm/stories/Charts/BarSlider/Figure.stories.d.ts +198 -0
- package/dist/esm/utils/bar-slider.utils.js +2 -0
- package/dist/esm/utils/bar-slider.utils.js.map +1 -0
- package/dist/index.d.ts +113 -112
- package/package.json +3 -3
- package/dist/esm/components/whtr/whtr-chart-axes.js +0 -2
- package/dist/esm/components/whtr/whtr-chart-axes.js.map +0 -1
- package/dist/esm/components/whtr/whtr-chart-marker.js +0 -2
- package/dist/esm/components/whtr/whtr-chart-marker.js.map +0 -1
- package/dist/esm/components/whtr/whtr-chart-regions.js +0 -2
- package/dist/esm/components/whtr/whtr-chart-regions.js.map +0 -1
- package/dist/esm/components/whtr/whtr-chart.js +0 -2
- package/dist/esm/components/whtr/whtr-chart.js.map +0 -1
- package/dist/esm/components/whtr/whtr-figure-chart.js +0 -2
- package/dist/esm/components/whtr/whtr-figure-chart.js.map +0 -1
- package/dist/esm/custom-types/whtr.types.js +0 -2
- package/dist/esm/custom-types/whtr.types.js.map +0 -1
- package/dist/esm/models/horizontal-weighted-chart.model.js +0 -2
- package/dist/esm/models/horizontal-weighted-chart.model.js.map +0 -1
- package/dist/esm/models/whtr-chart.model.js +0 -2
- package/dist/esm/models/whtr-chart.model.js.map +0 -1
- package/dist/esm/src/__tests__/__helpers__/mocks/whtr-results.d.ts +0 -18
- package/dist/esm/src/components/whtr/whtr-chart-axes.d.ts +0 -8
- package/dist/esm/src/components/whtr/whtr-chart-marker.d.ts +0 -8
- package/dist/esm/src/components/whtr/whtr-chart-regions.d.ts +0 -6
- package/dist/esm/src/components/whtr/whtr-chart.d.ts +0 -27
- package/dist/esm/src/components/whtr/whtr-figure-chart.d.ts +0 -33
- package/dist/esm/src/custom-types/whtr.types.d.ts +0 -11
- package/dist/esm/src/models/horizontal-weighted-chart.model.d.ts +0 -20
- package/dist/esm/src/models/whtr-chart.model.d.ts +0 -9
- package/dist/esm/stories/Charts/Waist to height/Chart.stories.d.ts +0 -63
- package/dist/esm/stories/Charts/Waist to height/Figure.stories.d.ts +0 -78
- package/dist/esm/utils/horizontal-bar-transformer.utils.js +0 -2
- package/dist/esm/utils/horizontal-bar-transformer.utils.js.map +0 -1
- package/dist/esm/utils/type-safe.utils..js +0 -2
- package/dist/esm/utils/type-safe.utils..js.map +0 -1
- /package/dist/esm/src/__tests__/components/{whtr/whtr-chart.test.d.ts → bar-slider/bar-slider-chart.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,11 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
This repository contains the code for NHS.UK Chart components
|
|
4
4
|
|
|
5
|
-
These chart components are designed for visualizing Body Mass Index (BMI), Child Body Mass Index (CBMI)
|
|
5
|
+
These chart components are designed for visualizing Body Mass Index (BMI), Child Body Mass Index (CBMI) and Blood Pressure (BP) data.
|
|
6
6
|
|
|
7
7
|
Initially, these charts were integrated into separate codebases for each of the individual tools. To support consistency and reusability across NHS projects, we have migrated these chart components into a dedicated library.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
### Bar Slider
|
|
12
|
+
|
|
13
|
+
The `Bar Slider` chart is a generic chart component that can be used to visualize a variety of data. It is part of the NHS.UK Chart component library and can be customized to fit specific needs.
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
<BarSliderChart
|
|
17
|
+
config={mockBarSliderConfigExample2}
|
|
18
|
+
value={35.7}
|
|
19
|
+
markerText="Your Result:"
|
|
20
|
+
/>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Body Mass Index
|
|
24
|
+
|
|
25
|
+
The Body Mass Index (BMI) chart component can be used to visualise body mass index data.
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
<BmiChart classificationBounds={classificationBounds} bmi={19.4} />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Child Body Mass Index
|
|
32
|
+
|
|
33
|
+
The Child Body Mass Index (CBMI) chart component can be used to visualise the centile score.
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
<ChildBmiChart
|
|
37
|
+
classificationBounds={classificationBounds}
|
|
38
|
+
centile={{ value: 1, label: 'Below 2' }}
|
|
39
|
+
markerText="The centile:"
|
|
40
|
+
/>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Blood Pressure
|
|
44
|
+
|
|
45
|
+
The Blood Pressure (BP) chart component can be used to visualise systolic and diastolic blood pressure readings.
|
|
46
|
+
|
|
47
|
+
```jsx
|
|
48
|
+
<BpChart
|
|
49
|
+
bounds={bounds}
|
|
50
|
+
reading={{ systolic: 120, diastolic: 80 }}
|
|
51
|
+
graphLayout={graphLayoutProp}
|
|
52
|
+
/>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
A `storybook` instance for the components can be found in `https://tools-graph-components.nhswebsite-dev.nhs.uk/?path=/docs/welcome--docs`
|
|
10
56
|
|
|
11
57
|
## Installation
|
|
12
58
|
|
|
@@ -22,7 +68,7 @@ Ensure you have Node.js 20.x.x. installed. Usage of NVM is recommended, to allow
|
|
|
22
68
|
|
|
23
69
|
`npm run storybook` will build and deploy the storybook locally in `http://localhost:6006/`
|
|
24
70
|
|
|
25
|
-
|
|
71
|
+
## Import the compiled CSS
|
|
26
72
|
|
|
27
73
|
Before using the components, import the compiled CSS file from your project's build directory:
|
|
28
74
|
|
package/dist/cjs/bundle.css
CHANGED
|
@@ -11,23 +11,11 @@
|
|
|
11
11
|
height: 25px;
|
|
12
12
|
margin-right: 10px;
|
|
13
13
|
border-bottom: 1px solid white;
|
|
14
|
-
box-shadow: 0px 2px 0px 0px
|
|
14
|
+
box-shadow: 0px 2px 0px 0px black;
|
|
15
15
|
margin-bottom: 3px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.nhsuk-
|
|
19
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
23
|
-
background: #ffb81c;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
27
|
-
background: #330072;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.nhsuk-cbmi-graph {
|
|
18
|
+
.nhsuk-bar-slider-graph {
|
|
31
19
|
position: relative;
|
|
32
20
|
outline: 1px solid black;
|
|
33
21
|
margin-top: 20px;
|
|
@@ -35,189 +23,53 @@
|
|
|
35
23
|
height: 28px;
|
|
36
24
|
}
|
|
37
25
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
38
|
-
.nhsuk-
|
|
26
|
+
.nhsuk-bar-slider-graph {
|
|
39
27
|
height: 24px;
|
|
40
28
|
}
|
|
41
29
|
}
|
|
42
30
|
|
|
43
|
-
.nhsuk-
|
|
44
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
48
|
-
background: #ffb81c;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
52
|
-
background: #330072;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.nhsuk-cbmi-legend-key-classification-overweight {
|
|
56
|
-
border-bottom: none;
|
|
57
|
-
box-shadow: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
61
|
-
border-bottom: 2px solid white;
|
|
62
|
-
margin-bottom: 2px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.nhsuk-cbmi-legend-marker {
|
|
66
|
-
margin-bottom: 2px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.nhsuk-cbmi-classification-underweight-heading {
|
|
70
|
-
border-left: 8px solid #330072;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.nhsuk-cbmi-classification-healthy-heading {
|
|
74
|
-
border-left: 8px solid #30b4ab;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.nhsuk-cbmi-classification-overweight-heading {
|
|
78
|
-
border-left: 8px solid #ffb81c;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
82
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
86
|
-
background: #ffb81c;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
90
|
-
background: #330072;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.nhsuk-cbmi-axis-marker {
|
|
94
|
-
border: 1px solid black;
|
|
95
|
-
position: absolute;
|
|
96
|
-
bottom: -5px;
|
|
97
|
-
margin-left: -0.5px;
|
|
98
|
-
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
99
|
-
z-index: 4;
|
|
100
|
-
height: 33px;
|
|
101
|
-
}
|
|
102
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
103
|
-
.nhsuk-cbmi-axis-marker {
|
|
104
|
-
height: 29px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.nhsuk-cbmi-axis-marker-label {
|
|
109
|
-
position: absolute;
|
|
110
|
-
bottom: -25px;
|
|
111
|
-
left: -10px;
|
|
112
|
-
width: 20px;
|
|
113
|
-
text-align: center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
117
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
121
|
-
background: #ffb81c;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
125
|
-
background: #330072;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.nhsuk-cbmi-chart-arrow-marker {
|
|
31
|
+
.nhsuk-bar-slider-arrow-marker {
|
|
129
32
|
position: absolute;
|
|
130
|
-
z-index: 4;
|
|
131
33
|
height: 16px;
|
|
132
34
|
width: 16px;
|
|
133
35
|
margin: -9px 0 -8px -8px;
|
|
134
36
|
}
|
|
135
37
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
136
|
-
.nhsuk-
|
|
38
|
+
.nhsuk-bar-slider-arrow-marker {
|
|
137
39
|
height: 12px;
|
|
138
40
|
width: 12px;
|
|
139
41
|
margin: -9px 0 -6px -6px;
|
|
140
42
|
}
|
|
141
43
|
}
|
|
142
44
|
|
|
143
|
-
.nhsuk-
|
|
45
|
+
.nhsuk-bar-slider-label-align-left {
|
|
144
46
|
display: flex;
|
|
145
47
|
justify-content: left;
|
|
146
48
|
}
|
|
147
49
|
|
|
148
|
-
.nhsuk-
|
|
50
|
+
.nhsuk-bar-slider-label-align-center {
|
|
149
51
|
display: flex;
|
|
150
52
|
justify-content: center;
|
|
151
53
|
}
|
|
152
54
|
|
|
153
|
-
.nhsuk-
|
|
55
|
+
.nhsuk-bar-slider-label-align-right {
|
|
154
56
|
display: flex;
|
|
155
57
|
justify-content: right;
|
|
156
58
|
}
|
|
157
59
|
|
|
158
|
-
.nhsuk-
|
|
60
|
+
.nhsuk-bar-slider-label-marker {
|
|
159
61
|
position: relative;
|
|
160
62
|
height: 25px;
|
|
161
63
|
width: auto;
|
|
162
64
|
white-space: nowrap;
|
|
163
65
|
margin-top: -30px;
|
|
164
|
-
z-index: 4;
|
|
165
66
|
}
|
|
166
67
|
|
|
167
|
-
.nhsuk-
|
|
68
|
+
.nhsuk-bar-slider-value-marker {
|
|
168
69
|
position: relative;
|
|
169
70
|
font-weight: bold;
|
|
170
71
|
margin-left: 5px;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
.nhsuk-cbmi-chart-axis-marker {
|
|
174
|
-
position: absolute;
|
|
175
|
-
margin-left: -1px;
|
|
176
|
-
border: 1.5px solid black;
|
|
177
|
-
box-shadow: 0px 0px white inset, 2px 0px white, -2px 0px white;
|
|
178
|
-
z-index: 4;
|
|
179
|
-
height: 28px;
|
|
180
|
-
}
|
|
181
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
182
|
-
.nhsuk-cbmi-chart-axis-marker {
|
|
183
|
-
height: 24px;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
188
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
192
|
-
background: #ffb81c;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
196
|
-
background: #330072;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
200
|
-
position: absolute;
|
|
201
|
-
bottom: 0%;
|
|
202
|
-
outline: 1px solid black;
|
|
203
|
-
height: 28px;
|
|
204
|
-
}
|
|
205
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
206
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
207
|
-
height: 24px;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.nhsuk-cbmi-classification-underweight {
|
|
212
|
-
z-index: 3;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.nhsuk-cbmi-classification-healthy {
|
|
216
|
-
z-index: 2;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.nhsuk-cbmi-classification-overweight {
|
|
220
|
-
z-index: 1;
|
|
72
|
+
margin-right: 2px;
|
|
221
73
|
}
|
|
222
74
|
|
|
223
75
|
.nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
|
|
@@ -337,21 +189,6 @@
|
|
|
337
189
|
box-shadow: none;
|
|
338
190
|
}
|
|
339
191
|
|
|
340
|
-
.nhsuk-bmi-axis-marker {
|
|
341
|
-
position: absolute;
|
|
342
|
-
outline: 0.5px solid black;
|
|
343
|
-
height: 5px;
|
|
344
|
-
bottom: -5px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.nhsuk-bmi-axis-marker-label {
|
|
348
|
-
position: absolute;
|
|
349
|
-
bottom: -25px;
|
|
350
|
-
left: -10px;
|
|
351
|
-
width: 20px;
|
|
352
|
-
text-align: center;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
192
|
.nhsuk-bp-graph {
|
|
356
193
|
position: relative;
|
|
357
194
|
margin-left: 20px;
|
|
@@ -406,6 +243,21 @@
|
|
|
406
243
|
border-bottom: 2px solid black;
|
|
407
244
|
}
|
|
408
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
|
+
|
|
409
261
|
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
410
262
|
background: #330072;
|
|
411
263
|
}
|
|
@@ -597,19 +449,19 @@
|
|
|
597
449
|
border-left: none;
|
|
598
450
|
}
|
|
599
451
|
|
|
600
|
-
.nhsuk-
|
|
601
|
-
background: #
|
|
452
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
453
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
602
454
|
}
|
|
603
455
|
|
|
604
|
-
.nhsuk-
|
|
605
|
-
background:
|
|
456
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
457
|
+
background: #ffb81c;
|
|
606
458
|
}
|
|
607
459
|
|
|
608
|
-
.nhsuk-
|
|
609
|
-
background:
|
|
460
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
461
|
+
background: #330072;
|
|
610
462
|
}
|
|
611
463
|
|
|
612
|
-
.nhsuk-
|
|
464
|
+
.nhsuk-cbmi-graph {
|
|
613
465
|
position: relative;
|
|
614
466
|
outline: 1px solid black;
|
|
615
467
|
margin-top: 20px;
|
|
@@ -617,62 +469,97 @@
|
|
|
617
469
|
height: 28px;
|
|
618
470
|
}
|
|
619
471
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
620
|
-
.nhsuk-
|
|
472
|
+
.nhsuk-cbmi-graph {
|
|
621
473
|
height: 24px;
|
|
622
474
|
}
|
|
623
475
|
}
|
|
624
476
|
|
|
625
|
-
.nhsuk-
|
|
626
|
-
background: #
|
|
477
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
478
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
627
479
|
}
|
|
628
480
|
|
|
629
|
-
.nhsuk-
|
|
630
|
-
background:
|
|
481
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
482
|
+
background: #ffb81c;
|
|
631
483
|
}
|
|
632
484
|
|
|
633
|
-
.nhsuk-
|
|
634
|
-
background:
|
|
485
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
486
|
+
background: #330072;
|
|
635
487
|
}
|
|
636
488
|
|
|
637
|
-
.nhsuk-
|
|
489
|
+
.nhsuk-cbmi-legend-key-classification-overweight {
|
|
638
490
|
border-bottom: none;
|
|
639
491
|
box-shadow: none;
|
|
640
492
|
}
|
|
641
493
|
|
|
642
|
-
.nhsuk-
|
|
494
|
+
.nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
643
495
|
border-bottom: 2px solid white;
|
|
644
496
|
margin-bottom: 2px;
|
|
645
497
|
}
|
|
646
498
|
|
|
647
|
-
.nhsuk-
|
|
499
|
+
.nhsuk-cbmi-legend-marker {
|
|
648
500
|
margin-bottom: 2px;
|
|
649
501
|
}
|
|
650
502
|
|
|
651
|
-
.nhsuk-
|
|
652
|
-
border-left: 8px solid #
|
|
503
|
+
.nhsuk-cbmi-classification-underweight-heading {
|
|
504
|
+
border-left: 8px solid #330072;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.nhsuk-cbmi-classification-healthy-heading {
|
|
508
|
+
border-left: 8px solid #30b4ab;
|
|
653
509
|
}
|
|
654
510
|
|
|
655
|
-
.nhsuk-
|
|
511
|
+
.nhsuk-cbmi-classification-overweight-heading {
|
|
656
512
|
border-left: 8px solid #ffb81c;
|
|
657
513
|
}
|
|
658
514
|
|
|
659
|
-
.nhsuk-
|
|
660
|
-
|
|
515
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
516
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
661
517
|
}
|
|
662
518
|
|
|
663
|
-
.nhsuk-
|
|
519
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
664
520
|
background: #ffb81c;
|
|
665
521
|
}
|
|
666
522
|
|
|
667
|
-
.nhsuk-
|
|
668
|
-
background:
|
|
523
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
524
|
+
background: #330072;
|
|
669
525
|
}
|
|
670
526
|
|
|
671
|
-
.nhsuk-
|
|
672
|
-
|
|
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
|
+
}
|
|
673
540
|
}
|
|
674
541
|
|
|
675
|
-
.nhsuk-
|
|
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
|
+
|
|
562
|
+
.nhsuk-cbmi-chart-arrow-marker {
|
|
676
563
|
position: absolute;
|
|
677
564
|
z-index: 4;
|
|
678
565
|
height: 16px;
|
|
@@ -680,29 +567,29 @@
|
|
|
680
567
|
margin: -9px 0 -8px -8px;
|
|
681
568
|
}
|
|
682
569
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
683
|
-
.nhsuk-
|
|
570
|
+
.nhsuk-cbmi-chart-arrow-marker {
|
|
684
571
|
height: 12px;
|
|
685
572
|
width: 12px;
|
|
686
573
|
margin: -9px 0 -6px -6px;
|
|
687
574
|
}
|
|
688
575
|
}
|
|
689
576
|
|
|
690
|
-
.nhsuk-
|
|
577
|
+
.nhsuk-cbmi-chart-label-align-left {
|
|
691
578
|
display: flex;
|
|
692
579
|
justify-content: left;
|
|
693
580
|
}
|
|
694
581
|
|
|
695
|
-
.nhsuk-
|
|
582
|
+
.nhsuk-cbmi-chart-label-align-center {
|
|
696
583
|
display: flex;
|
|
697
584
|
justify-content: center;
|
|
698
585
|
}
|
|
699
586
|
|
|
700
|
-
.nhsuk-
|
|
587
|
+
.nhsuk-cbmi-chart-label-align-right {
|
|
701
588
|
display: flex;
|
|
702
589
|
justify-content: right;
|
|
703
590
|
}
|
|
704
591
|
|
|
705
|
-
.nhsuk-
|
|
592
|
+
.nhsuk-cbmi-chart-label-marker {
|
|
706
593
|
position: relative;
|
|
707
594
|
height: 25px;
|
|
708
595
|
width: auto;
|
|
@@ -711,14 +598,13 @@
|
|
|
711
598
|
z-index: 4;
|
|
712
599
|
}
|
|
713
600
|
|
|
714
|
-
.nhsuk-
|
|
601
|
+
.nhsuk-cbmi-chart-centile-marker {
|
|
715
602
|
position: relative;
|
|
716
603
|
font-weight: bold;
|
|
717
604
|
margin-left: 5px;
|
|
718
|
-
margin-right: 2px;
|
|
719
605
|
}
|
|
720
606
|
|
|
721
|
-
.nhsuk-
|
|
607
|
+
.nhsuk-cbmi-chart-axis-marker {
|
|
722
608
|
position: absolute;
|
|
723
609
|
margin-left: -1px;
|
|
724
610
|
border: 1.5px solid black;
|
|
@@ -727,96 +613,43 @@
|
|
|
727
613
|
height: 28px;
|
|
728
614
|
}
|
|
729
615
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
730
|
-
.nhsuk-
|
|
616
|
+
.nhsuk-cbmi-chart-axis-marker {
|
|
731
617
|
height: 24px;
|
|
732
618
|
}
|
|
733
619
|
}
|
|
734
620
|
|
|
735
|
-
.nhsuk-
|
|
736
|
-
background: #
|
|
621
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
622
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
737
623
|
}
|
|
738
624
|
|
|
739
|
-
.nhsuk-
|
|
740
|
-
background:
|
|
625
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
626
|
+
background: #ffb81c;
|
|
741
627
|
}
|
|
742
628
|
|
|
743
|
-
.nhsuk-
|
|
744
|
-
background:
|
|
629
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
630
|
+
background: #330072;
|
|
745
631
|
}
|
|
746
632
|
|
|
747
|
-
.nhsuk-
|
|
633
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
748
634
|
position: absolute;
|
|
749
635
|
bottom: 0%;
|
|
750
636
|
outline: 1px solid black;
|
|
751
637
|
height: 28px;
|
|
752
638
|
}
|
|
753
639
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
754
|
-
.nhsuk-
|
|
640
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
755
641
|
height: 24px;
|
|
756
642
|
}
|
|
757
643
|
}
|
|
758
644
|
|
|
759
|
-
.nhsuk-
|
|
645
|
+
.nhsuk-cbmi-classification-underweight {
|
|
760
646
|
z-index: 3;
|
|
761
647
|
}
|
|
762
648
|
|
|
763
|
-
.nhsuk-
|
|
649
|
+
.nhsuk-cbmi-classification-healthy {
|
|
764
650
|
z-index: 2;
|
|
765
651
|
}
|
|
766
652
|
|
|
767
|
-
.nhsuk-
|
|
653
|
+
.nhsuk-cbmi-classification-overweight {
|
|
768
654
|
z-index: 1;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.nhsuk-whtr-legend-key-classification-increased, .nhsuk-whtr-classification-increased {
|
|
772
|
-
background: #ffb81c;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.nhsuk-whtr-legend-key-classification-high, .nhsuk-whtr-classification-high {
|
|
776
|
-
background: repeating-linear-gradient(-45deg, #db3832, #db3832 4.5px, #d76662 4.5px, #d76662 9px);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.nhsuk-whtr-legend-key-classification-low, .nhsuk-whtr-classification-low {
|
|
780
|
-
background: repeating-linear-gradient(45deg, #00a499, #00a499 4.5px, #02beb1 4.5px, #02beb1 9px);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.nhsuk-whtr-axis-start-marker {
|
|
784
|
-
position: absolute;
|
|
785
|
-
bottom: -5px;
|
|
786
|
-
margin-left: -0.5px;
|
|
787
|
-
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
788
|
-
z-index: 4;
|
|
789
|
-
height: 33px;
|
|
790
|
-
}
|
|
791
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
792
|
-
.nhsuk-whtr-axis-start-marker {
|
|
793
|
-
height: 29px;
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
.nhsuk-whtr-axis-marker {
|
|
798
|
-
border: 1px solid black;
|
|
799
|
-
position: absolute;
|
|
800
|
-
bottom: -5px;
|
|
801
|
-
margin-left: -0.5px;
|
|
802
|
-
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
803
|
-
z-index: 4;
|
|
804
|
-
height: 33px;
|
|
805
|
-
}
|
|
806
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
807
|
-
.nhsuk-whtr-axis-marker {
|
|
808
|
-
height: 29px;
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
.nhsuk-whtr-axis-start-marker-label {
|
|
813
|
-
position: absolute;
|
|
814
|
-
bottom: -25px;
|
|
815
|
-
left: -2px;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.nhsuk-whtr-axis-marker-label {
|
|
819
|
-
position: absolute;
|
|
820
|
-
bottom: -25px;
|
|
821
|
-
left: -10px;
|
|
822
655
|
}
|