@ghs-hazard-pictograms/css 1.0.0

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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * CSS sprite utilities for the @ghs-hazard-pictograms/css package.
3
+ *
4
+ * Import `@ghs-hazard-pictograms/css/sprite.css` in your application and then
5
+ * use the class names returned by {@link getCssClassName} or from
6
+ * {@link pictogramCssClasses} on any block element sized with `width`/`height`.
7
+ *
8
+ * @module @ghs-hazard-pictograms/css
9
+ */
10
+ /**
11
+ * Map of pictogram slug ID → CSS sprite class name.
12
+ *
13
+ * Import `@ghs-hazard-pictograms/css/sprite.css` and apply the class to a
14
+ * block element to show the pictogram as a background image.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { pictogramCssClasses } from '@ghs-hazard-pictograms/css';
19
+ * element.className = pictogramCssClasses['ghs01-explosive'];
20
+ * ```
21
+ */
22
+ export declare const pictogramCssClasses: Readonly<Record<string, string>>;
23
+ /**
24
+ * Returns the CSS sprite class name for a pictogram by its slug ID.
25
+ *
26
+ * Use together with `import '@ghs-hazard-pictograms/css/sprite.css'`.
27
+ *
28
+ * @param id - Pictogram slug ID, e.g. `"ghs01-explosive"`.
29
+ * @returns The CSS class name string, or `undefined` if the ID is not found.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * import { getCssClassName } from '@ghs-hazard-pictograms/css';
34
+ * const cls = getCssClassName('ghs01-explosive');
35
+ * // 'ghs-physical_hazards_pictograms_ghs01_explosive_ghs-pictogram-explos'
36
+ * ```
37
+ */
38
+ export declare const getCssClassName: (id: string) => string | undefined;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8BH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEhE,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,KAAG,MAAM,GAAG,SAAoC,CAAC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /**
3
+ * CSS sprite utilities for the @ghs-hazard-pictograms/css package.
4
+ *
5
+ * Import `@ghs-hazard-pictograms/css/sprite.css` in your application and then
6
+ * use the class names returned by {@link getCssClassName} or from
7
+ * {@link pictogramCssClasses} on any block element sized with `width`/`height`.
8
+ *
9
+ * @module @ghs-hazard-pictograms/css
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getCssClassName = exports.pictogramCssClasses = void 0;
13
+ const core_1 = require("@ghs-hazard-pictograms/core");
14
+ // ---------------------------------------------------------------------------
15
+ // Helpers
16
+ // ---------------------------------------------------------------------------
17
+ /**
18
+ * Derives the CSS class name for a given asset path by applying the same
19
+ * sanitisation logic used in the sprite generator.
20
+ *
21
+ * @param assetPath - Relative asset path, e.g. `"physical_hazards/ghs01/foo.svg"`.
22
+ * @returns CSS class name string (prefixed with `ghs-`).
23
+ */
24
+ function cssClassForPath(assetPath) {
25
+ return ('ghs-' +
26
+ assetPath
27
+ .replace(/[/\\?%*:|"<>]/g, '_')
28
+ .replace(/\s/g, '')
29
+ .toLowerCase()
30
+ .replace(/\.svg$/, ''));
31
+ }
32
+ // ---------------------------------------------------------------------------
33
+ // Exports
34
+ // ---------------------------------------------------------------------------
35
+ /**
36
+ * Map of pictogram slug ID → CSS sprite class name.
37
+ *
38
+ * Import `@ghs-hazard-pictograms/css/sprite.css` and apply the class to a
39
+ * block element to show the pictogram as a background image.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * import { pictogramCssClasses } from '@ghs-hazard-pictograms/css';
44
+ * element.className = pictogramCssClasses['ghs01-explosive'];
45
+ * ```
46
+ */
47
+ exports.pictogramCssClasses = Object.fromEntries(core_1.pictograms.map((p) => [p.id, cssClassForPath(p.assets.svg)]));
48
+ /**
49
+ * Returns the CSS sprite class name for a pictogram by its slug ID.
50
+ *
51
+ * Use together with `import '@ghs-hazard-pictograms/css/sprite.css'`.
52
+ *
53
+ * @param id - Pictogram slug ID, e.g. `"ghs01-explosive"`.
54
+ * @returns The CSS class name string, or `undefined` if the ID is not found.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * import { getCssClassName } from '@ghs-hazard-pictograms/css';
59
+ * const cls = getCssClassName('ghs01-explosive');
60
+ * // 'ghs-physical_hazards_pictograms_ghs01_explosive_ghs-pictogram-explos'
61
+ * ```
62
+ */
63
+ const getCssClassName = (id) => exports.pictogramCssClasses[id];
64
+ exports.getCssClassName = getCssClassName;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,8CAAiD;AAEjD,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,SAAiB;IACxC,OAAO,CACL,MAAM;QACN,SAAS;aACN,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC;aAC9B,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;aAClB,WAAW,EAAE;aACb,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CACzB,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;;;;;;GAWG;AACU,QAAA,mBAAmB,GAAqC,MAAM,CAAC,WAAW,CACrF,iBAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAC7D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACI,MAAM,eAAe,GAAG,CAAC,EAAU,EAAsB,EAAE,CAAC,2BAAmB,CAAC,EAAE,CAAC,CAAC;AAA9E,QAAA,eAAe,mBAA+D"}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * CSS sprite utilities for the @ghs-hazard-pictograms/css package.
3
+ *
4
+ * Import `@ghs-hazard-pictograms/css/sprite.css` in your application and then
5
+ * use the class names returned by {@link getCssClassName} or from
6
+ * {@link pictogramCssClasses} on any block element sized with `width`/`height`.
7
+ *
8
+ * @module @ghs-hazard-pictograms/css
9
+ */
10
+ /**
11
+ * Map of pictogram slug ID → CSS sprite class name.
12
+ *
13
+ * Import `@ghs-hazard-pictograms/css/sprite.css` and apply the class to a
14
+ * block element to show the pictogram as a background image.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { pictogramCssClasses } from '@ghs-hazard-pictograms/css';
19
+ * element.className = pictogramCssClasses['ghs01-explosive'];
20
+ * ```
21
+ */
22
+ export declare const pictogramCssClasses: Readonly<Record<string, string>>;
23
+ /**
24
+ * Returns the CSS sprite class name for a pictogram by its slug ID.
25
+ *
26
+ * Use together with `import '@ghs-hazard-pictograms/css/sprite.css'`.
27
+ *
28
+ * @param id - Pictogram slug ID, e.g. `"ghs01-explosive"`.
29
+ * @returns The CSS class name string, or `undefined` if the ID is not found.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * import { getCssClassName } from '@ghs-hazard-pictograms/css';
34
+ * const cls = getCssClassName('ghs01-explosive');
35
+ * // 'ghs-physical_hazards_pictograms_ghs01_explosive_ghs-pictogram-explos'
36
+ * ```
37
+ */
38
+ export declare const getCssClassName: (id: string) => string | undefined;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8BH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEhE,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,KAAG,MAAM,GAAG,SAAoC,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * CSS sprite utilities for the @ghs-hazard-pictograms/css package.
3
+ *
4
+ * Import `@ghs-hazard-pictograms/css/sprite.css` in your application and then
5
+ * use the class names returned by {@link getCssClassName} or from
6
+ * {@link pictogramCssClasses} on any block element sized with `width`/`height`.
7
+ *
8
+ * @module @ghs-hazard-pictograms/css
9
+ */
10
+ import { pictograms } from '@ghs-hazard-pictograms/core';
11
+ // ---------------------------------------------------------------------------
12
+ // Helpers
13
+ // ---------------------------------------------------------------------------
14
+ /**
15
+ * Derives the CSS class name for a given asset path by applying the same
16
+ * sanitisation logic used in the sprite generator.
17
+ *
18
+ * @param assetPath - Relative asset path, e.g. `"physical_hazards/ghs01/foo.svg"`.
19
+ * @returns CSS class name string (prefixed with `ghs-`).
20
+ */
21
+ function cssClassForPath(assetPath) {
22
+ return ('ghs-' +
23
+ assetPath
24
+ .replace(/[/\\?%*:|"<>]/g, '_')
25
+ .replace(/\s/g, '')
26
+ .toLowerCase()
27
+ .replace(/\.svg$/, ''));
28
+ }
29
+ // ---------------------------------------------------------------------------
30
+ // Exports
31
+ // ---------------------------------------------------------------------------
32
+ /**
33
+ * Map of pictogram slug ID → CSS sprite class name.
34
+ *
35
+ * Import `@ghs-hazard-pictograms/css/sprite.css` and apply the class to a
36
+ * block element to show the pictogram as a background image.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * import { pictogramCssClasses } from '@ghs-hazard-pictograms/css';
41
+ * element.className = pictogramCssClasses['ghs01-explosive'];
42
+ * ```
43
+ */
44
+ export const pictogramCssClasses = Object.fromEntries(pictograms.map((p) => [p.id, cssClassForPath(p.assets.svg)]));
45
+ /**
46
+ * Returns the CSS sprite class name for a pictogram by its slug ID.
47
+ *
48
+ * Use together with `import '@ghs-hazard-pictograms/css/sprite.css'`.
49
+ *
50
+ * @param id - Pictogram slug ID, e.g. `"ghs01-explosive"`.
51
+ * @returns The CSS class name string, or `undefined` if the ID is not found.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * import { getCssClassName } from '@ghs-hazard-pictograms/css';
56
+ * const cls = getCssClassName('ghs01-explosive');
57
+ * // 'ghs-physical_hazards_pictograms_ghs01_explosive_ghs-pictogram-explos'
58
+ * ```
59
+ */
60
+ export const getCssClassName = (id) => pictogramCssClasses[id];
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,SAAiB;IACxC,OAAO,CACL,MAAM;QACN,SAAS;aACN,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC;aAC9B,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;aAClB,WAAW,EAAE;aACb,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CACzB,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAqC,MAAM,CAAC,WAAW,CACrF,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAC7D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAsB,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@ghs-hazard-pictograms/css",
3
+ "version": "1.0.0",
4
+ "description": "GHS hazard pictogram CSS sprite utilities",
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.js",
7
+ "types": "./dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js",
12
+ "types": "./dist/esm/index.d.ts"
13
+ },
14
+ "./sprite.css": "./sprite.css"
15
+ },
16
+ "files": [
17
+ "dist/",
18
+ "sprite.css"
19
+ ],
20
+ "scripts": {
21
+ "compile": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({type:'commonjs'})); require('fs').writeFileSync('dist/esm/package.json', JSON.stringify({type:'module'}))\"",
22
+ "test": "jest",
23
+ "type-check": "tsc --noEmit -p tsconfig.cjs.json"
24
+ },
25
+ "dependencies": {
26
+ "@ghs-hazard-pictograms/core": "workspace:*"
27
+ },
28
+ "devDependencies": {
29
+ "@types/jest": "^30.0.0",
30
+ "jest": "^30.3.0",
31
+ "ts-jest": "^29.4.0",
32
+ "typescript": "^5.8.3"
33
+ }
34
+ }
package/sprite.css ADDED
@@ -0,0 +1,208 @@
1
+ /* GHS Hazard Pictograms — CSS Sprite
2
+ Generated by 'yarn update'. Do not edit manually.
3
+ Import this file and apply the class to a sized block element to display the pictogram. */
4
+
5
+ /* Physical hazards */
6
+
7
+ .ghs-ghs01 {
8
+ background-image: url('../assets/assets/physical_hazards_pictograms/ghs01_explosive/GHS-pictogram-explos.svg');
9
+ background-position: center;
10
+ background-repeat: no-repeat;
11
+ background-size: contain;
12
+ }
13
+
14
+ .ghs-ghs02 {
15
+ background-image: url('../assets/assets/physical_hazards_pictograms/ghs02_flammable/GHS-pictogram-flamme.svg');
16
+ background-position: center;
17
+ background-repeat: no-repeat;
18
+ background-size: contain;
19
+ }
20
+
21
+ .ghs-ghs03 {
22
+ background-image: url('../assets/assets/physical_hazards_pictograms/ghs03_oxidizing/GHS-pictogram-rondflam.svg');
23
+ background-position: center;
24
+ background-repeat: no-repeat;
25
+ background-size: contain;
26
+ }
27
+
28
+ .ghs-ghs04 {
29
+ background-image: url('../assets/assets/physical_hazards_pictograms/ghs04_compressedgas/GHS-pictogram-bottle.svg');
30
+ background-position: center;
31
+ background-repeat: no-repeat;
32
+ background-size: contain;
33
+ }
34
+
35
+ .ghs-ghs05 {
36
+ background-image: url('../assets/assets/physical_hazards_pictograms/ghs05_corrosive/GHS-pictogram-acid.svg');
37
+ background-position: center;
38
+ background-repeat: no-repeat;
39
+ background-size: contain;
40
+ }
41
+
42
+ /* Health hazards */
43
+
44
+ .ghs-ghs06 {
45
+ background-image: url('../assets/assets/health_hazards_pictograms/ghs06_toxic/GHS-pictogram-skull.svg');
46
+ background-position: center;
47
+ background-repeat: no-repeat;
48
+ background-size: contain;
49
+ }
50
+
51
+ .ghs-ghs07 {
52
+ background-image: url('../assets/assets/health_hazards_pictograms/ghs07_healthhazard_hazardoustoozonelayer/GHS-pictogram-exclam.svg');
53
+ background-position: center;
54
+ background-repeat: no-repeat;
55
+ background-size: contain;
56
+ }
57
+
58
+ .ghs-ghs08 {
59
+ background-image: url('../assets/assets/health_hazards_pictograms/ghs08_serioushealthhazard/GHS-pictogram-silhouette.svg');
60
+ background-position: center;
61
+ background-repeat: no-repeat;
62
+ background-size: contain;
63
+ }
64
+
65
+ /* Environmental hazards */
66
+
67
+ .ghs-ghs09 {
68
+ background-image: url('../assets/assets/environmental_hazards_pictograms/ghs09_hazardoustotheenvironment/GHS-pictogram-pollu.svg');
69
+ background-position: center;
70
+ background-repeat: no-repeat;
71
+ background-size: contain;
72
+ }
73
+
74
+ /* Transport: Class 1 — Explosives */
75
+
76
+ .ghs-adr-1 {
77
+ background-image: url('../assets/assets/transport_pictograms/class_1__explosives/ADR_1.svg');
78
+ background-position: center;
79
+ background-repeat: no-repeat;
80
+ background-size: contain;
81
+ }
82
+
83
+ .ghs-adr-1-4 {
84
+ background-image: url('../assets/assets/transport_pictograms/class_1__explosives/ADR_1.4.svg');
85
+ background-position: center;
86
+ background-repeat: no-repeat;
87
+ background-size: contain;
88
+ }
89
+
90
+ .ghs-adr-1-5 {
91
+ background-image: url('../assets/assets/transport_pictograms/class_1__explosives/ADR_1.5.svg');
92
+ background-position: center;
93
+ background-repeat: no-repeat;
94
+ background-size: contain;
95
+ }
96
+
97
+ .ghs-adr-1-6 {
98
+ background-image: url('../assets/assets/transport_pictograms/class_1__explosives/ADR_1.6.svg');
99
+ background-position: center;
100
+ background-repeat: no-repeat;
101
+ background-size: contain;
102
+ }
103
+
104
+ /* Transport: Class 2 — Gases */
105
+
106
+ .ghs-adr-2-1 {
107
+ background-image: url('../assets/assets/transport_pictograms/class_2__gases/ADR_2.1.svg');
108
+ background-position: center;
109
+ background-repeat: no-repeat;
110
+ background-size: contain;
111
+ }
112
+
113
+ .ghs-adr-2-2 {
114
+ background-image: url('../assets/assets/transport_pictograms/class_2__gases/ADR_2.2.svg');
115
+ background-position: center;
116
+ background-repeat: no-repeat;
117
+ background-size: contain;
118
+ }
119
+
120
+ .ghs-adr-2-3 {
121
+ background-image: url('../assets/assets/transport_pictograms/class_2__gases/ADR_2.3.svg');
122
+ background-position: center;
123
+ background-repeat: no-repeat;
124
+ background-size: contain;
125
+ }
126
+
127
+ /* Transport: Classes 3 & 4 — Flammable */
128
+
129
+ .ghs-adr-3 {
130
+ background-image: url('../assets/assets/transport_pictograms/classes_3_and_4__flammable_liquids_and_solids/ADR_3.svg');
131
+ background-position: center;
132
+ background-repeat: no-repeat;
133
+ background-size: contain;
134
+ }
135
+
136
+ /* Transport: Other GHS classes */
137
+
138
+ .ghs-adr-5-1 {
139
+ background-image: url('../assets/assets/transport_pictograms/other_ghs_transport_classes/ADR_5.1.svg');
140
+ background-position: center;
141
+ background-repeat: no-repeat;
142
+ background-size: contain;
143
+ }
144
+
145
+ .ghs-un-5-2-black {
146
+ background-image: url('../assets/assets/transport_pictograms/other_ghs_transport_classes/UN_transport_pictogram_-_5.2_(black).svg');
147
+ background-position: center;
148
+ background-repeat: no-repeat;
149
+ background-size: contain;
150
+ }
151
+
152
+ .ghs-un-6 {
153
+ background-image: url('../assets/assets/transport_pictograms/other_ghs_transport_classes/UN_transport_pictogram_-_6.svg');
154
+ background-position: center;
155
+ background-repeat: no-repeat;
156
+ background-size: contain;
157
+ }
158
+
159
+ .ghs-un-8 {
160
+ background-image: url('../assets/assets/transport_pictograms/other_ghs_transport_classes/UN_transport_pictogram_-_8.svg');
161
+ background-position: center;
162
+ background-repeat: no-repeat;
163
+ background-size: contain;
164
+ }
165
+
166
+ /* Transport: Non-GHS pictograms */
167
+
168
+ .ghs-adr-6-2 {
169
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_6.2.svg');
170
+ background-position: center;
171
+ background-repeat: no-repeat;
172
+ background-size: contain;
173
+ }
174
+
175
+ .ghs-adr-7a {
176
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_7A.svg');
177
+ background-position: center;
178
+ background-repeat: no-repeat;
179
+ background-size: contain;
180
+ }
181
+
182
+ .ghs-adr-7b {
183
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_7B.svg');
184
+ background-position: center;
185
+ background-repeat: no-repeat;
186
+ background-size: contain;
187
+ }
188
+
189
+ .ghs-adr-7c {
190
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_7C.svg');
191
+ background-position: center;
192
+ background-repeat: no-repeat;
193
+ background-size: contain;
194
+ }
195
+
196
+ .ghs-adr-7e {
197
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_7E.svg');
198
+ background-position: center;
199
+ background-repeat: no-repeat;
200
+ background-size: contain;
201
+ }
202
+
203
+ .ghs-adr-9 {
204
+ background-image: url('../assets/assets/transport_pictograms/non-ghs_transport_pictograms/ADR_9.svg');
205
+ background-position: center;
206
+ background-repeat: no-repeat;
207
+ background-size: contain;
208
+ }