@ilo-org/styles 0.14.2 → 0.16.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 (85) hide show
  1. package/.turbo/turbo-build:lib.log +25 -0
  2. package/CHANGELOG.md +727 -0
  3. package/css/components/accordion.css +1 -1
  4. package/css/components/breadcrumb.css +1 -1
  5. package/css/components/button.css +1 -1
  6. package/css/components/callout.css +1 -1
  7. package/css/components/card.css +1 -1
  8. package/css/components/cardgroup.css +1 -1
  9. package/css/components/checkbox.css +1 -1
  10. package/css/components/container.css +1 -1
  11. package/css/components/contextmenu.css +1 -1
  12. package/css/components/credit.css +1 -1
  13. package/css/components/datacard.css +1 -1
  14. package/css/components/detailcard.css +1 -1
  15. package/css/components/dropdown.css +1 -1
  16. package/css/components/empty.css +1 -1
  17. package/css/components/factlistcard.css +1 -1
  18. package/css/components/featurecard.css +1 -1
  19. package/css/components/fieldset.css +1 -1
  20. package/css/components/file-upload.css +1 -1
  21. package/css/components/footer.css +1 -1
  22. package/css/components/form.css +1 -1
  23. package/css/components/formcontrol.css +1 -1
  24. package/css/components/hero.css +1 -1
  25. package/css/components/herocard.css +1 -1
  26. package/css/components/image.css +1 -1
  27. package/css/components/input.css +1 -1
  28. package/css/components/link.css +1 -1
  29. package/css/components/linklist.css +1 -1
  30. package/css/components/list.css +1 -1
  31. package/css/components/loading.css +1 -1
  32. package/css/components/logo.css +1 -1
  33. package/css/components/logogrid.css +1 -1
  34. package/css/components/modal.css +1 -1
  35. package/css/components/multilinkcard.css +1 -1
  36. package/css/components/navigation.css +1 -1
  37. package/css/components/notification.css +1 -1
  38. package/css/components/pagination.css +1 -1
  39. package/css/components/profile.css +1 -1
  40. package/css/components/promocard.css +1 -1
  41. package/css/components/radio.css +1 -1
  42. package/css/components/readmore.css +1 -1
  43. package/css/components/richtext.css +1 -1
  44. package/css/components/searchfield.css +1 -1
  45. package/css/components/socialmedia.css +1 -1
  46. package/css/components/statcard.css +1 -1
  47. package/css/components/table.css +1 -1
  48. package/css/components/tableofcontents.css +1 -1
  49. package/css/components/tabs.css +1 -1
  50. package/css/components/tag.css +1 -1
  51. package/css/components/textarea.css +1 -1
  52. package/css/components/textcard.css +1 -1
  53. package/css/components/textinput.css +1 -1
  54. package/css/components/toggle.css +1 -1
  55. package/css/components/tooltip.css +1 -1
  56. package/css/components/video.css +1 -1
  57. package/css/global.css +1 -1
  58. package/css/global.css.map +1 -1
  59. package/css/index.css +2 -2
  60. package/css/index.css.map +1 -1
  61. package/css/monorepo.css +2 -2
  62. package/css/monorepo.css.map +1 -1
  63. package/gulpfile.mjs +99 -0
  64. package/package.json +26 -17
  65. package/postcss.config.js +1 -0
  66. package/scss/_mixins.scss +74 -0
  67. package/scss/_normalize.scss +329 -0
  68. package/scss/_reset.scss +62 -113
  69. package/scss/components/_list.scss +28 -69
  70. package/scss/components/_pagination.scss +7 -1
  71. package/scss/components/_richtext.scss +24 -63
  72. package/scss/components/_textcard.scss +3 -3
  73. package/scss/index.scss +3 -0
  74. package/build/css/components/index.css +0 -8494
  75. package/build/css/components/index.css.map +0 -1
  76. package/build/css/global.css +0 -175
  77. package/build/css/global.css.map +0 -1
  78. package/build/css/index.css +0 -8657
  79. package/build/css/index.css.map +0 -1
  80. package/build/css/monorepo.css +0 -8735
  81. package/build/css/monorepo.css.map +0 -1
  82. package/build/minified/index.css +0 -2
  83. package/build/minified/index.css.map +0 -1
  84. package/build/minified/monorepo.css +0 -2
  85. package/build/minified/monorepo.css.map +0 -1
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
@@ -3,63 +3,9 @@
3
3
  @import "../mixins";
4
4
 
5
5
  .ilo--list {
6
- &--ordered {
7
- list-style: decimal;
8
- }
9
-
10
- &--unordered {
11
- list-style: initial;
12
- list-style-type: none;
13
-
14
- li {
15
- &::before {
16
- content: "";
17
- display: inline-block;
18
- height: px-to-rem(14px);
19
- left: px-to-rem(-12px);
20
- position: absolute;
21
- top: 6px;
22
- width: px-to-rem(12px);
23
- @include dataurlicon("listarrow", $color-base-neutrals-light);
24
- }
25
- margin-left: spacing(3);
26
- padding-left: spacing(2);
27
- position: relative;
28
- }
29
- }
6
+ @include invincible-list;
30
7
 
31
- &--unstyled {
32
- list-style: none;
33
-
34
- .ilo--list__item {
35
- margin-left: 0;
36
- padding-left: 0;
37
- }
38
- }
39
-
40
- &--horizontal {
41
- li {
42
- &::before {
43
- content: none;
44
- }
45
- }
46
- display: flex;
47
- list-style: none;
48
-
49
- .ilo--list__title {
50
- margin-bottom: spacing(2);
51
- margin-right: spacing(9);
52
- }
53
-
54
- .ilo--list__item {
55
- margin-bottom: spacing(2);
56
- margin-left: 0;
57
- margin-right: spacing(10);
58
- padding-left: 0;
59
- }
60
- }
61
-
62
- &__title {
8
+ &--title {
63
9
  @include font-styles("headline-6");
64
10
  margin-bottom: spacing(6);
65
11
  font-family: $fonts-display;
@@ -70,22 +16,35 @@
70
16
  }
71
17
  }
72
18
 
73
- &__item {
74
- @include font-styles("body-small");
19
+ &__unstyled {
20
+ ol,
21
+ ul {
22
+ list-style: none;
75
23
 
76
- font-family: $fonts-copy;
77
- margin-bottom: spacing(4);
78
- margin-left: spacing(5);
79
- padding-left: spacing(1);
80
-
81
- b,
82
- strong {
83
- font-weight: 700;
84
- letter-spacing: $type-label-small-letter-spacing;
24
+ li {
25
+ padding-inline-start: 0;
26
+ &::before {
27
+ content: none;
28
+ }
29
+ }
85
30
  }
31
+ }
86
32
 
87
- @include breakpoint("medium") {
88
- @include font-styles("base");
33
+ &__horizontal {
34
+ &,
35
+ ul,
36
+ ol {
37
+ display: flex;
38
+ flex-flow: row;
39
+ list-style: none;
40
+ gap: spacing(10);
41
+
42
+ li {
43
+ padding: 0;
44
+ &::before {
45
+ content: none;
46
+ }
47
+ }
89
48
  }
90
49
  }
91
50
  }
@@ -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,
@@ -41,6 +41,10 @@
41
41
  );
42
42
  }
43
43
 
44
+ article {
45
+ margin-bottom: spacing(14);
46
+ }
47
+
44
48
  iframe {
45
49
  margin-bottom: spacing(14);
46
50
  }
@@ -95,7 +99,7 @@
95
99
  "body-small",
96
100
  "copy"
97
101
  );
98
- @include font-styles("rich-text-heading-1");
102
+ @include font-styles("rich-text-heading-1-md");
99
103
  }
100
104
 
101
105
  h2 {
@@ -107,7 +111,7 @@
107
111
  "body-small",
108
112
  "copy"
109
113
  );
110
- @include font-styles("rich-text-heading-2");
114
+ @include font-styles("rich-text-heading-2-md");
111
115
  }
112
116
 
113
117
  h3 {
@@ -119,7 +123,7 @@
119
123
  "body-small",
120
124
  "copy"
121
125
  );
122
- @include font-styles("rich-text-heading-3");
126
+ @include font-styles("rich-text-heading-3-md");
123
127
  }
124
128
 
125
129
  h4 {
@@ -131,7 +135,7 @@
131
135
  "body-small",
132
136
  "copy"
133
137
  );
134
- @include font-styles("rich-text-heading-4");
138
+ @include font-styles("rich-text-heading-4-md");
135
139
  }
136
140
 
137
141
  h5 {
@@ -143,36 +147,7 @@
143
147
  "body-small",
144
148
  "copy"
145
149
  );
146
- @include font-styles("rich-text-heading-5");
147
- }
148
-
149
- ul,
150
- ol {
151
- li {
152
- margin-bottom: spacing(8);
153
- margin-left: spacing(5);
154
- padding-left: spacing(3);
155
- position: relative;
156
- }
157
-
158
- margin-bottom: spacing(8);
159
- }
160
-
161
- ul {
162
- li {
163
- margin-left: spacing(3);
164
-
165
- &::before {
166
- content: "";
167
- display: inline-block;
168
- height: px-to-rem(14px);
169
- left: px-to-rem(-12px);
170
- position: absolute;
171
- top: 6px;
172
- width: px-to-rem(12px);
173
- @include dataurlicon("listarrow", $color-base-neutrals-light);
174
- }
175
- }
150
+ @include font-styles("rich-text-heading-5-md");
176
151
  }
177
152
 
178
153
  blockquote {
@@ -186,7 +161,7 @@
186
161
  padding: spacing(19) 0 spacing(9) spacing(8); // check
187
162
  position: relative;
188
163
  width: fit-content;
189
- @include dataurlicon("triangle", $color-ux-background-default);
164
+ @include cornercut(72px, 40px);
190
165
 
191
166
  p {
192
167
  color: $color-font-blockquote;
@@ -229,6 +204,9 @@
229
204
  }
230
205
  }
231
206
 
207
+ // Repeat list styles from the list component
208
+ @include invincible-list;
209
+
232
210
  @include breakpoint("medium") {
233
211
  @include font-styles("base");
234
212
 
@@ -249,7 +227,7 @@
249
227
  "body-large",
250
228
  "copy"
251
229
  );
252
- @include font-styles("rich-text-heading-1-md");
230
+ @include font-styles("rich-text-heading-1");
253
231
  }
254
232
 
255
233
  h2 {
@@ -261,7 +239,7 @@
261
239
  "body-large",
262
240
  "copy"
263
241
  );
264
- @include font-styles("rich-text-heading-2-md");
242
+ @include font-styles("rich-text-heading-2");
265
243
  }
266
244
 
267
245
  h3 {
@@ -273,7 +251,7 @@
273
251
  "body-large",
274
252
  "copy"
275
253
  );
276
- @include font-styles("rich-text-heading-3-md");
254
+ @include font-styles("rich-text-heading-3");
277
255
  }
278
256
 
279
257
  h4 {
@@ -285,7 +263,7 @@
285
263
  "body-large",
286
264
  "copy"
287
265
  );
288
- @include font-styles("rich-text-heading-4-md");
266
+ @include font-styles("rich-text-heading-4");
289
267
  }
290
268
 
291
269
  h5 {
@@ -297,7 +275,7 @@
297
275
  "body-large",
298
276
  "copy"
299
277
  );
300
- @include font-styles("rich-text-heading-5-md");
278
+ @include font-styles("rich-text-heading-5");
301
279
  }
302
280
 
303
281
  p {
@@ -353,6 +331,7 @@
353
331
  background-size: px-to-rem(86px) px-to-rem(48px);
354
332
  margin: spacing(8) 0 spacing(19) 0;
355
333
  padding: spacing(16) 0 spacing(12) spacing(12);
334
+ @include cornercut(86px, 48px);
356
335
 
357
336
  p {
358
337
  margin-bottom: spacing(6);
@@ -381,32 +360,10 @@
381
360
  padding-right: spacing(2);
382
361
  }
383
362
 
384
- ul,
385
- ol {
386
- li {
387
- margin-left: 0;
388
- margin-right: spacing(5);
389
- padding-left: 0;
390
- padding-right: spacing(3);
391
- }
392
- }
393
-
394
- ul {
395
- li {
396
- margin-right: spacing(3);
397
-
398
- &::before {
399
- left: auto;
400
- right: px-to-rem(-12px);
401
- @include dataurlicon("listarrowreverse");
402
- }
403
- }
404
- }
405
-
406
363
  blockquote {
407
364
  background-position: -1px -1px;
408
365
  padding: spacing(14) spacing(8) spacing(9) 0;
409
- @include dataurlicon("trianglereverse", $color-ux-background-default);
366
+ @include cornercut(72px, 40px, "left");
410
367
 
411
368
  p {
412
369
  padding: 0 0 0 spacing(12);
@@ -426,6 +383,10 @@
426
383
 
427
384
  @include breakpoint("medium") {
428
385
  padding: spacing(15) spacing(12) spacing(12) 0;
386
+
387
+ blockquote {
388
+ @include cornercut(86px, 48px, "left");
389
+ }
429
390
  }
430
391
  }
431
392
  }
@@ -19,11 +19,11 @@
19
19
  @include cornercut(72px, 40px, left);
20
20
  }
21
21
 
22
- [class$="profile--contents--light"] * {
22
+ [class$="profile__theme__light"] * {
23
23
  color: $color-base-neutrals-dark;
24
24
  }
25
25
 
26
- [class$="profile--contents--dark"] * {
26
+ [class$="profile__theme__dark"] * {
27
27
  color: $color-base-neutrals-white;
28
28
  }
29
29
 
@@ -35,7 +35,7 @@
35
35
 
36
36
  border-color: $brand-ilo-blue;
37
37
 
38
- [class*="profile--contents"] * {
38
+ [class*="profile__theme"] * {
39
39
  color: $color-base-blue-medium;
40
40
  }
41
41
  }
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