@ilo-org/styles 0.13.2 → 0.14.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 (54) hide show
  1. package/build/css/components/index.css +1181 -794
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/global.css +1 -1
  4. package/build/css/global.css.map +1 -1
  5. package/build/css/index.css +1181 -794
  6. package/build/css/index.css.map +1 -1
  7. package/build/css/monorepo.css +1181 -794
  8. package/build/css/monorepo.css.map +1 -1
  9. package/build/minified/index.css +1 -1
  10. package/build/minified/index.css.map +1 -1
  11. package/build/minified/monorepo.css +1 -1
  12. package/build/minified/monorepo.css.map +1 -1
  13. package/css/components/accordion.css +1 -1
  14. package/css/components/breadcrumb.css +1 -1
  15. package/css/components/featurecard.css +1 -1
  16. package/css/components/hero.css +1 -1
  17. package/css/components/icon.css +1 -0
  18. package/css/components/list.css +1 -1
  19. package/css/components/navigation.css +1 -1
  20. package/css/components/pagination.css +1 -1
  21. package/css/components/richtext.css +1 -1
  22. package/css/components/searchfield.css +1 -1
  23. package/css/components/tag.css +1 -1
  24. package/css/components/video-legacy.css +1 -0
  25. package/css/components/video.css +1 -1
  26. package/css/global.css.map +1 -1
  27. package/css/index.css +8 -8
  28. package/css/index.css.map +1 -1
  29. package/css/monorepo.css +8 -8
  30. package/css/monorepo.css.map +1 -1
  31. package/package.json +2 -2
  32. package/scss/_mixins.scss +27 -1
  33. package/scss/components/_accordion.scss +7 -5
  34. package/scss/components/_breadcrumb.scss +5 -1
  35. package/scss/components/_card.scss +2 -2
  36. package/scss/components/_cardgroup.scss +1 -1
  37. package/scss/components/_datacard.scss +1 -1
  38. package/scss/components/_detailcard.scss +1 -1
  39. package/scss/components/_factlistcard.scss +1 -1
  40. package/scss/components/_featurecard.scss +3 -11
  41. package/scss/components/_hero.scss +206 -214
  42. package/scss/components/_icon.scss +6 -0
  43. package/scss/components/_list.scss +0 -2
  44. package/scss/components/_multilinkcard.scss +2 -2
  45. package/scss/components/_navigation.scss +11 -9
  46. package/scss/components/_pagination.scss +1 -3
  47. package/scss/components/_profile.scss +1 -1
  48. package/scss/components/_promocard.scss +1 -1
  49. package/scss/components/_richtext.scss +14 -40
  50. package/scss/components/_searchfield.scss +36 -4
  51. package/scss/components/_tag.scss +1 -1
  52. package/scss/components/_video-legacy.scss +795 -0
  53. package/scss/components/_video.scss +191 -636
  54. package/scss/components/index.scss +2 -0
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.13.2",
4
+ "version": "0.14.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@ilo-org/fonts": "0.1.2",
22
22
  "@ilo-org/icons": "0.2.1",
23
- "@ilo-org/themes": "0.7.0"
23
+ "@ilo-org/themes": "0.7.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "cssnano": "^5.1.13",
package/scss/_mixins.scss CHANGED
@@ -208,6 +208,33 @@
208
208
  @include dataurlicon($name, $color);
209
209
  }
210
210
 
211
+ // ======================================
212
+ // Video Button
213
+ // ======================================
214
+ @mixin videobutton($name, $size: "standard") {
215
+ $height: if($size == "big", 48px, 24px);
216
+ $box: if($size == "big", 80px, 40px);
217
+ $width: $height;
218
+ $color: $color-ux-video-controls-default-icon;
219
+
220
+ cursor: pointer;
221
+ border: none;
222
+ background-color: $color-ux-video-controls-default-background;
223
+ width: $box;
224
+ height: $box;
225
+ background-position: center center;
226
+ background-repeat: no-repeat;
227
+ background-size: $width $height;
228
+ @include dataurlicon($name, $color);
229
+
230
+ &:hover,
231
+ &:focus {
232
+ background-color: $color-ux-video-controls-hover-background;
233
+ $color: $color-ux-video-controls-hover-icon;
234
+ @include dataurlicon($name, $color);
235
+ }
236
+ }
237
+
211
238
  // ======================================
212
239
  // Link styles
213
240
  // ======================================
@@ -350,7 +377,6 @@
350
377
  display: flex;
351
378
  justify-content: center;
352
379
  align-items: center;
353
- position: relative;
354
380
 
355
381
  &::after {
356
382
  content: "";
@@ -12,10 +12,11 @@
12
12
  align-items: center;
13
13
  flex-direction: row;
14
14
  justify-content: space-between;
15
-
15
+ text-align: start;
16
16
  width: 100%;
17
17
  margin: 0;
18
- padding: spacing(4) spacing(4) spacing(4) 0;
18
+ padding: spacing(4) 0;
19
+ padding-inline-end: spacing(4);
19
20
 
20
21
  background-color: $color-ux-background-default;
21
22
  background-position: calc(100% - px-to-rem(6px)) center;
@@ -36,7 +37,8 @@
36
37
 
37
38
  &--large {
38
39
  @include font-styles("headline-6");
39
- padding: spacing(5) spacing(4) spacing(5) 0;
40
+ padding: spacing(5) 0;
41
+ padding-inline-end: spacing(4);
40
42
  }
41
43
 
42
44
  &:hover,
@@ -58,11 +60,11 @@
58
60
 
59
61
  @include breakpoint("medium") {
60
62
  @include font-styles("label-medium");
61
- padding: spacing(4) spacing(4) spacing(4) 0;
62
63
 
63
64
  &--large {
64
65
  @include font-styles("headline-6");
65
- padding: spacing(5) spacing(4) spacing(5) 0;
66
+ padding: spacing(5) 0;
67
+ padding-inline-end: spacing(4);
66
68
  }
67
69
  }
68
70
 
@@ -48,6 +48,10 @@
48
48
  font-family: $fonts-copy;
49
49
  font-weight: 400;
50
50
  @include font-styles("body-xxs");
51
+
52
+ &--dropdown {
53
+ font-family: $fonts-copy;
54
+ }
51
55
  }
52
56
 
53
57
  &:hover,
@@ -186,7 +190,7 @@
186
190
  content: "";
187
191
  height: px-to-rem(12px);
188
192
  position: absolute;
189
- // left: 50%;
193
+ left: 50%;
190
194
  top: -#{px-to-rem(6px)};
191
195
  transform: translateX(-50%) rotate(135deg);
192
196
  width: px-to-rem(12px);
@@ -64,7 +64,7 @@
64
64
 
65
65
  &::before {
66
66
  @include dataurlicon("play", $brand-ilo-grey-light);
67
- background-color: $brand-ilo-grey-charcoal;
67
+ background-color: $brand-ilo-black;
68
68
  background-position: center;
69
69
  background-size: 18px 20px;
70
70
  background-repeat: no-repeat;
@@ -181,7 +181,7 @@
181
181
  }
182
182
 
183
183
  &--intro {
184
- color: $brand-ilo-grey-charcoal;
184
+ color: $brand-ilo-black;
185
185
  @include font-styles("body-small");
186
186
  @include globaltransition("color");
187
187
  margin-bottom: spacing(8);
@@ -60,7 +60,7 @@
60
60
  &--button-wrap {
61
61
  display: flex;
62
62
  justify-content: center;
63
- margin-top: px-to-rem(64px);
63
+ margin-top: spacing(16);
64
64
  width: 100%;
65
65
  }
66
66
  }
@@ -139,7 +139,7 @@
139
139
 
140
140
  &--content-copy {
141
141
  @include font-styles("headline-5");
142
- color: $brand-ilo-grey-charcoal;
142
+ color: $brand-ilo-black;
143
143
  font-family: $fonts-display;
144
144
  font-weight: 500;
145
145
  }
@@ -149,7 +149,7 @@
149
149
  top: 50%;
150
150
  transform: rotate(-90deg) translateX(50%);
151
151
  width: px-to-rem(12px);
152
- @include dataurlicon("equilateraltriangle", $brand-ilo-grey-charcoal);
152
+ @include dataurlicon("equilateraltriangle", $brand-ilo-black);
153
153
  }
154
154
  }
155
155
 
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  #{$self}--title {
72
- color: $brand-ilo-grey-charcoal;
72
+ color: $brand-ilo-black;
73
73
  @include font-styles("headline-5");
74
74
  @include textmargin(
75
75
  "margin-bottom",
@@ -73,7 +73,6 @@
73
73
  border-top: px-to-rem(2px) solid $brand-ilo-grey-light;
74
74
  margin-left: px-to-rem(-24px);
75
75
  margin-right: px-to-rem(-24px);
76
- margin-top: px-to-rem(34px);
77
76
  position: relative;
78
77
  z-index: 2;
79
78
 
@@ -181,7 +180,7 @@
181
180
  display: flex;
182
181
  flex: 1 1 auto;
183
182
  flex-direction: column;
184
- padding: spacing(6) spacing(6) spacing(10);
183
+ padding: spacing(6) spacing(6) spacing(2) spacing(6);
185
184
  }
186
185
 
187
186
  &#{$self}__linklist {
@@ -192,14 +191,7 @@
192
191
 
193
192
  #{$self}--title {
194
193
  @include font-styles("headline-5");
195
- @include textmargin(
196
- "margin-bottom",
197
- 40px,
198
- "headline-5",
199
- "display",
200
- "body-eyebrow",
201
- "copy"
202
- );
194
+ margin-bottom: spacing(6);
203
195
  font-family: $fonts-display;
204
196
  font-weight: 700;
205
197
  flex: 1;
@@ -218,7 +210,7 @@
218
210
  }
219
211
 
220
212
  #{$self}--date {
221
- margin-bottom: 0;
213
+ margin-bottom: spacing(8);
222
214
  margin-top: auto;
223
215
  }
224
216
  }