@ilo-org/styles 0.14.2 → 0.15.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.
Files changed (77) hide show
  1. package/css/components/accordion.css +1 -1
  2. package/css/components/breadcrumb.css +1 -1
  3. package/css/components/button.css +1 -1
  4. package/css/components/callout.css +1 -1
  5. package/css/components/card.css +1 -1
  6. package/css/components/cardgroup.css +1 -1
  7. package/css/components/checkbox.css +1 -1
  8. package/css/components/container.css +1 -1
  9. package/css/components/contextmenu.css +1 -1
  10. package/css/components/credit.css +1 -1
  11. package/css/components/datacard.css +1 -1
  12. package/css/components/detailcard.css +1 -1
  13. package/css/components/dropdown.css +1 -1
  14. package/css/components/empty.css +1 -1
  15. package/css/components/factlistcard.css +1 -1
  16. package/css/components/featurecard.css +1 -1
  17. package/css/components/fieldset.css +1 -1
  18. package/css/components/file-upload.css +1 -1
  19. package/css/components/footer.css +1 -1
  20. package/css/components/form.css +1 -1
  21. package/css/components/formcontrol.css +1 -1
  22. package/css/components/hero.css +1 -1
  23. package/css/components/herocard.css +1 -1
  24. package/css/components/image.css +1 -1
  25. package/css/components/input.css +1 -1
  26. package/css/components/link.css +1 -1
  27. package/css/components/linklist.css +1 -1
  28. package/css/components/list.css +1 -1
  29. package/css/components/loading.css +1 -1
  30. package/css/components/logo.css +1 -1
  31. package/css/components/logogrid.css +1 -1
  32. package/css/components/modal.css +1 -1
  33. package/css/components/multilinkcard.css +1 -1
  34. package/css/components/navigation.css +1 -1
  35. package/css/components/notification.css +1 -1
  36. package/css/components/pagination.css +1 -1
  37. package/css/components/profile.css +1 -1
  38. package/css/components/promocard.css +1 -1
  39. package/css/components/radio.css +1 -1
  40. package/css/components/readmore.css +1 -1
  41. package/css/components/richtext.css +1 -1
  42. package/css/components/searchfield.css +1 -1
  43. package/css/components/socialmedia.css +1 -1
  44. package/css/components/statcard.css +1 -1
  45. package/css/components/table.css +1 -1
  46. package/css/components/tableofcontents.css +1 -1
  47. package/css/components/tabs.css +1 -1
  48. package/css/components/tag.css +1 -1
  49. package/css/components/textarea.css +1 -1
  50. package/css/components/textcard.css +1 -1
  51. package/css/components/textinput.css +1 -1
  52. package/css/components/toggle.css +1 -1
  53. package/css/components/tooltip.css +1 -1
  54. package/css/components/video.css +1 -1
  55. package/css/global.css +1 -1
  56. package/css/global.css.map +1 -1
  57. package/css/index.css +2 -2
  58. package/css/index.css.map +1 -1
  59. package/css/monorepo.css +2 -2
  60. package/css/monorepo.css.map +1 -1
  61. package/package.json +2 -10
  62. package/scss/_normalize.scss +329 -0
  63. package/scss/_reset.scss +62 -113
  64. package/scss/components/_pagination.scss +7 -1
  65. package/scss/index.scss +3 -0
  66. package/build/css/components/index.css +0 -8494
  67. package/build/css/components/index.css.map +0 -1
  68. package/build/css/global.css +0 -175
  69. package/build/css/global.css.map +0 -1
  70. package/build/css/index.css +0 -8657
  71. package/build/css/index.css.map +0 -1
  72. package/build/css/monorepo.css +0 -8735
  73. package/build/css/monorepo.css.map +0 -1
  74. package/build/minified/index.css +0 -2
  75. package/build/minified/index.css.map +0 -1
  76. package/build/minified/monorepo.css +0 -2
  77. package/build/minified/monorepo.css.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ilo-org/styles",
3
3
  "description": "Styles for products using ILO's Design System",
4
- "version": "0.14.2",
4
+ "version": "0.15.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -13,7 +13,6 @@
13
13
  "author": "@justintemps, @johnpauldavis, @avrilpearl, @ghlost",
14
14
  "license": "Apache-2.0",
15
15
  "files": [
16
- "build",
17
16
  "scss",
18
17
  "css"
19
18
  ],
@@ -23,7 +22,6 @@
23
22
  "@ilo-org/themes": "0.7.2"
24
23
  },
25
24
  "devDependencies": {
26
- "cssnano": "^5.1.13",
27
25
  "del": "^7.0.0",
28
26
  "gulp": "^4.0.2",
29
27
  "gulp-clean-css": "^4.3.0",
@@ -32,18 +30,12 @@
32
30
  "gulp-rename": "^2.0.0",
33
31
  "gulp-sass": "^5.1.0",
34
32
  "gulp-sourcemaps": "^3.0.0",
35
- "postcss": "^8.4.31",
36
- "postcss-cli": "^10.0.0",
37
33
  "sass": "^1.62.1"
38
34
  },
39
35
  "scripts": {
40
- "build:legacy": "sass scss:build/css --load-path=./node_modules && postcss build/css/index.css --base/css build/css --dir build/minified && postcss build/css/monorepo.css --base/css build/css --dir build/minified",
41
- "build:next": "gulp",
42
- "build": "pnpm build:legacy && pnpm build:next",
36
+ "build": "gulp",
43
37
  "build:lib": "pnpm build",
44
38
  "build:docs": "pnpm build",
45
- "gulp": "gulp",
46
- "minify": "postcss build/css/index.css --base/css build/css --dir build/minified && postcss build/css/monorepo.css --base/css build/css --dir build/minified",
47
39
  "format": "prettier --check . --ignore-path ../../.prettierignore",
48
40
  "format:fix": "prettier --write . --ignore-path ../../.prettierignore",
49
41
  "lint": "eslint --ext .js,.ts,.tsx",
@@ -0,0 +1,329 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Sections
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * Render the `main` element consistently in IE.
8
+ */
9
+ main {
10
+ display: block;
11
+ }
12
+
13
+ /**
14
+ * Correct the font size and margin on `h1` elements within `section` and
15
+ * `article` contexts in Chrome, Firefox, and Safari.
16
+ */
17
+
18
+ h1 {
19
+ font-size: 2em;
20
+ margin: 0.67em 0;
21
+ }
22
+
23
+ /* Grouping content
24
+ ========================================================================== */
25
+
26
+ /**
27
+ * 1. Add the correct box sizing in Firefox.
28
+ * 2. Show the overflow in Edge and IE.
29
+ */
30
+
31
+ hr {
32
+ box-sizing: content-box; /* 1 */
33
+ height: 0; /* 1 */
34
+ overflow: visible; /* 2 */
35
+ }
36
+
37
+ /**
38
+ * 1. Correct the inheritance and scaling of font size in all browsers.
39
+ * 2. Correct the odd `em` font sizing in all browsers.
40
+ */
41
+
42
+ pre {
43
+ font-family: monospace, monospace; /* 1 */
44
+ font-size: 1em; /* 2 */
45
+ }
46
+
47
+ /* Text-level semantics
48
+ ========================================================================== */
49
+
50
+ /**
51
+ * Remove the gray background on active links in IE 10.
52
+ */
53
+
54
+ a {
55
+ background-color: transparent;
56
+ }
57
+
58
+ /**
59
+ * 1. Remove the bottom border in Chrome 57-
60
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
61
+ */
62
+
63
+ abbr[title] {
64
+ border-bottom: none; /* 1 */
65
+ text-decoration: underline; /* 2 */
66
+ text-decoration: underline dotted; /* 2 */
67
+ }
68
+
69
+ /**
70
+ * Add the correct font weight in Chrome, Edge, and Safari.
71
+ */
72
+
73
+ b,
74
+ strong {
75
+ font-weight: bolder;
76
+ }
77
+
78
+ /**
79
+ * 1. Correct the inheritance and scaling of font size in all browsers.
80
+ * 2. Correct the odd `em` font sizing in all browsers.
81
+ */
82
+
83
+ code,
84
+ kbd,
85
+ samp {
86
+ font-family: monospace, monospace; /* 1 */
87
+ font-size: 1em; /* 2 */
88
+ }
89
+
90
+ /**
91
+ * Add the correct font size in all browsers.
92
+ */
93
+
94
+ small {
95
+ font-size: 80%;
96
+ }
97
+
98
+ /**
99
+ * Prevent `sub` and `sup` elements from affecting the line height in
100
+ * all browsers.
101
+ */
102
+
103
+ sub,
104
+ sup {
105
+ font-size: 75%;
106
+ line-height: 0;
107
+ position: relative;
108
+ vertical-align: baseline;
109
+ }
110
+
111
+ sub {
112
+ bottom: -0.25em;
113
+ }
114
+
115
+ sup {
116
+ top: -0.5em;
117
+ }
118
+
119
+ /* Embedded content
120
+ ========================================================================== */
121
+
122
+ /**
123
+ * Remove the border on images inside links in IE 10.
124
+ */
125
+
126
+ img {
127
+ border-style: none;
128
+ }
129
+
130
+ /* Forms
131
+ ========================================================================== */
132
+
133
+ /**
134
+ * 1. Change the font styles in all browsers.
135
+ * 2. Remove the margin in Firefox and Safari.
136
+ */
137
+
138
+ button,
139
+ input,
140
+ optgroup,
141
+ select,
142
+ textarea {
143
+ font-family: inherit; /* 1 */
144
+ font-size: 100%; /* 1 */
145
+ line-height: 1; /* 1 */
146
+ margin: 0; /* 2 */
147
+ }
148
+
149
+ /**
150
+ * Show the overflow in IE.
151
+ * 1. Show the overflow in Edge.
152
+ */
153
+
154
+ button,
155
+ input {
156
+ /* 1 */
157
+ overflow: visible;
158
+ }
159
+
160
+ /**
161
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
162
+ * 1. Remove the inheritance of text transform in Firefox.
163
+ */
164
+
165
+ button,
166
+ select {
167
+ /* 1 */
168
+ text-transform: none;
169
+ }
170
+
171
+ /**
172
+ * Correct the inability to style clickable types in iOS and Safari.
173
+ */
174
+
175
+ button,
176
+ [type="button"],
177
+ [type="reset"],
178
+ [type="submit"] {
179
+ -webkit-appearance: button;
180
+ }
181
+
182
+ /**
183
+ * Remove the inner border and padding in Firefox.
184
+ */
185
+
186
+ button::-moz-focus-inner,
187
+ [type="button"]::-moz-focus-inner,
188
+ [type="reset"]::-moz-focus-inner,
189
+ [type="submit"]::-moz-focus-inner {
190
+ border-style: none;
191
+ padding: 0;
192
+ }
193
+
194
+ /**
195
+ * Restore the focus styles unset by the previous rule.
196
+ */
197
+
198
+ button:-moz-focusring,
199
+ [type="button"]:-moz-focusring,
200
+ [type="reset"]:-moz-focusring,
201
+ [type="submit"]:-moz-focusring {
202
+ outline: 1px dotted ButtonText;
203
+ }
204
+
205
+ /**
206
+ * Correct the padding in Firefox.
207
+ */
208
+
209
+ fieldset {
210
+ padding: 0.35em 0.75em 0.625em;
211
+ }
212
+
213
+ /**
214
+ * 1. Correct the text wrapping in Edge and IE.
215
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
216
+ * 3. Remove the padding so developers are not caught out when they zero out
217
+ * `fieldset` elements in all browsers.
218
+ */
219
+
220
+ legend {
221
+ box-sizing: border-box; /* 1 */
222
+ color: inherit; /* 2 */
223
+ display: table; /* 1 */
224
+ max-width: 100%; /* 1 */
225
+ padding: 0; /* 3 */
226
+ white-space: normal; /* 1 */
227
+ }
228
+
229
+ /**
230
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
231
+ */
232
+
233
+ progress {
234
+ vertical-align: baseline;
235
+ }
236
+
237
+ /**
238
+ * Remove the default vertical scrollbar in IE 10+.
239
+ */
240
+
241
+ textarea {
242
+ overflow: auto;
243
+ }
244
+
245
+ /**
246
+ * 1. Add the correct box sizing in IE 10.
247
+ * 2. Remove the padding in IE 10.
248
+ */
249
+
250
+ [type="checkbox"],
251
+ [type="radio"] {
252
+ box-sizing: border-box; /* 1 */
253
+ padding: 0; /* 2 */
254
+ }
255
+
256
+ /**
257
+ * Correct the cursor style of increment and decrement buttons in Chrome.
258
+ */
259
+
260
+ [type="number"]::-webkit-inner-spin-button,
261
+ [type="number"]::-webkit-outer-spin-button {
262
+ height: auto;
263
+ }
264
+
265
+ /**
266
+ * 1. Correct the odd appearance in Chrome and Safari.
267
+ * 2. Correct the outline style in Safari.
268
+ */
269
+
270
+ [type="search"] {
271
+ -webkit-appearance: textfield; /* 1 */
272
+ outline-offset: -2px; /* 2 */
273
+ }
274
+
275
+ /**
276
+ * Remove the inner padding in Chrome and Safari on macOS.
277
+ */
278
+
279
+ [type="search"]::-webkit-search-decoration {
280
+ -webkit-appearance: none;
281
+ }
282
+
283
+ /**
284
+ * 1. Correct the inability to style clickable types in iOS and Safari.
285
+ * 2. Change font properties to `inherit` in Safari.
286
+ */
287
+
288
+ ::-webkit-file-upload-button {
289
+ -webkit-appearance: button; /* 1 */
290
+ font: inherit; /* 2 */
291
+ }
292
+
293
+ /* Interactive
294
+ ========================================================================== */
295
+
296
+ /*
297
+ * Add the correct display in Edge, IE 10+, and Firefox.
298
+ */
299
+
300
+ details {
301
+ display: block;
302
+ }
303
+
304
+ /*
305
+ * Add the correct display in all browsers.
306
+ */
307
+
308
+ summary {
309
+ display: list-item;
310
+ }
311
+
312
+ /* Misc
313
+ ========================================================================== */
314
+
315
+ /**
316
+ * Add the correct display in IE 10+.
317
+ */
318
+
319
+ template {
320
+ display: none;
321
+ }
322
+
323
+ /**
324
+ * Add the correct display in IE 10.
325
+ */
326
+
327
+ [hidden] {
328
+ display: none;
329
+ }
package/scss/_reset.scss CHANGED
@@ -1,104 +1,40 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
1
+ *,
2
+ ::before,
3
+ ::after {
4
+ box-sizing: border-box;
5
+ }
7
6
 
8
- /// http://meyerweb.com/eric/tools/css/reset/
9
- /// v2.0 | 20110126
10
- /// License: none (public domain)
11
- /// Start vendor reset
12
- html,
13
7
  body,
14
- div,
15
- span,
16
- applet,
17
- object,
18
- iframe,
19
- h1,
20
- h2,
21
- h3,
22
- h4,
23
- h5,
24
- h6,
25
8
  p,
9
+ table,
26
10
  blockquote,
27
- pre,
28
- a,
29
- abbr,
30
- acronym,
31
11
  address,
32
- big,
33
- cite,
34
- code,
35
- del,
36
- dfn,
37
- em,
38
- img,
39
- ins,
40
- kbd,
41
- q,
42
- s,
43
- samp,
44
- small,
45
- strike,
46
- strong,
47
- sub,
48
- sup,
49
- tt,
50
- var,
51
- b,
52
- u,
53
- i,
54
- center,
12
+ pre,
13
+ iframe,
14
+ form,
15
+ figure,
55
16
  dl,
56
- dt,
57
- dd,
58
- ol,
59
17
  ul,
60
- li,
18
+ ol,
61
19
  fieldset,
62
- form,
63
- label,
64
- legend,
65
- table,
66
- caption,
67
- tbody,
68
- tfoot,
69
- thead,
70
- tr,
71
- th,
72
- td,
73
- article,
74
- aside,
75
- canvas,
76
- details,
77
- embed,
78
- figure,
79
- figcaption,
80
- footer,
81
- header,
82
- hgroup,
83
- menu,
84
- nav,
85
- output,
86
- ruby,
87
- section,
88
- summary,
89
- time,
90
- mark,
91
- audio,
92
- video {
20
+ option,
21
+ legend {
22
+ margin: 0;
93
23
  padding: 0;
94
24
  border: 0;
25
+ }
26
+
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6 {
95
33
  margin: 0;
96
- font: inherit;
97
- font-size: 100%;
98
- vertical-align: baseline;
34
+ font-size: inherit;
35
+ font-weight: inherit;
99
36
  }
100
37
 
101
- /* HTML5 display-role reset for older browsers */
102
38
  article,
103
39
  aside,
104
40
  details,
@@ -121,45 +57,58 @@ ul {
121
57
  list-style: none;
122
58
  }
123
59
 
124
- blockquote,
125
- q {
126
- quotes: none;
127
- }
128
-
129
- blockquote::before,
130
- blockquote::after,
131
- q::before,
132
- q::after {
133
- content: "";
134
- // stylelint-disable-next-line declaration-block-no-duplicate-properties
135
- content: none;
136
- }
137
-
138
60
  table {
61
+ border-color: inherit;
139
62
  border-collapse: collapse;
140
63
  border-spacing: 0;
141
64
  }
142
- /// End vendor reset
143
65
 
144
- html {
145
- box-sizing: border-box;
66
+ td,
67
+ th {
68
+ vertical-align: top;
69
+ padding: 0;
146
70
  }
147
71
 
148
- select {
149
- -webkit-appearance: none;
150
- -moz-appearance: none;
72
+ th {
73
+ text-align: left;
74
+ font-weight: bold;
151
75
  }
152
76
 
153
- // Reset border-radius on iOS Safari
77
+ button,
154
78
  input,
79
+ optgroup,
80
+ select,
155
81
  textarea {
82
+ -webkit-appearance: none;
83
+ appearance: none;
84
+ vertical-align: middle;
85
+ color: inherit;
86
+ font: inherit;
87
+ background: transparent;
88
+ padding: 0;
89
+ margin: 0;
156
90
  border-radius: 0;
91
+ text-align: inherit;
92
+ text-transform: inherit;
157
93
  }
158
94
 
159
- *,
160
- *::before,
161
- *::after {
162
- box-sizing: inherit;
95
+ hr {
96
+ box-sizing: content-box;
97
+ height: 0;
98
+ overflow: visible;
99
+ border-top-width: 1px;
100
+ margin: 0;
101
+ clear: both;
102
+ color: inherit;
103
+ }
104
+
105
+ textarea {
106
+ overflow: auto;
107
+ }
108
+
109
+ select {
110
+ -webkit-appearance: none;
111
+ -moz-appearance: none;
163
112
  }
164
113
 
165
114
  /// Makes SVGs accessible in high contrast mode
@@ -19,7 +19,6 @@
19
19
  height: px-to-rem(40px);
20
20
  overflow: hidden;
21
21
  position: relative;
22
- text-align: left;
23
22
  text-indent: -999%;
24
23
  width: px-to-rem(40px);
25
24
  @include font-styles("label-medium");
@@ -224,11 +223,18 @@
224
223
  }
225
224
 
226
225
  &--page {
226
+ display: flex;
227
+ gap: spacing(1);
227
228
  @include font-styles("nav-md-sm");
228
229
  margin-inline-end: spacing(2);
229
230
  font-family: $fonts-copy;
230
231
  font-weight: 400;
231
232
  line-height: 45px;
233
+
234
+ [dir="rtl"] & {
235
+ margin-inline-end: 0;
236
+ margin-inline-start: spacing(2);
237
+ }
232
238
  }
233
239
 
234
240
  &--previous-set,
package/scss/index.scss CHANGED
@@ -1,6 +1,9 @@
1
1
  // Set prefix on default styles
2
2
  @use "config";
3
3
 
4
+ // Import our normalize styles
5
+ @use "normalize";
6
+
4
7
  // Load the css resets
5
8
  @use "reset";
6
9