@ilo-org/styles 1.7.0 → 1.7.2

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/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": "1.7.0",
4
+ "version": "1.7.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -38,9 +38,9 @@
38
38
  "author": "@justintemps, @johnpauldavis, @avrilpearl, @ghlost",
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
+ "@ilo-org/themes": "0.9.1",
41
42
  "@ilo-org/fonts": "1.0.0",
42
- "@ilo-org/icons": "2.1.0",
43
- "@ilo-org/themes": "0.9.1"
43
+ "@ilo-org/icons": "2.1.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "cssnano": "^7.0.6",
@@ -100,14 +100,14 @@ $link-hover-selectors: ".ilo--card--link:hover, .ilo--card--link:focus, .ilo--ca
100
100
  }
101
101
 
102
102
  &--title {
103
- color: var(--ilo-color-dark-blue);
103
+ color: var(--ilo-color-blue-dark);
104
104
  @include typography("heading-4");
105
105
  margin-bottom: spacing(6);
106
106
  }
107
107
 
108
108
  &--intro {
109
109
  color: var(--ilo-color-gray-charcoal);
110
- @include typography("body-large");
110
+ @include typography("body-medium");
111
111
  }
112
112
 
113
113
  &--date {
@@ -8,7 +8,9 @@
8
8
 
9
9
  &__type {
10
10
  &__detail {
11
- --max-width: #{px-to-rem(343px)};
11
+ // Card will take up 100% of the width of the container
12
+ // in mobile view for all sizes
13
+ --max-width: 100%;
12
14
 
13
15
  border-bottom: px-to-rem(3px) solid var(--ilo-color-gray-light);
14
16
  padding: spacing(8) spacing(4);
@@ -39,13 +41,7 @@
39
41
  }
40
42
 
41
43
  #{$self}--title {
42
- padding: 0 0 spacing(2) 0;
43
- @include font-styles("headline-6");
44
- @include breakpoint("lg") {
45
- #{$self}__size__wide & {
46
- @include font-styles("headline-6");
47
- }
48
- }
44
+ margin-bottom: spacing(2);
49
45
  }
50
46
 
51
47
  #{$self}--intro {
@@ -53,16 +49,12 @@
53
49
  }
54
50
 
55
51
  #{$self}--date {
56
- font-size: var(--ilo-font-size-sm);
57
- line-height: var(--ilo-line-height-xlg);
58
- letter-spacing: var(--ilo-letter-spacing-md);
52
+ @include typography("body-small");
59
53
  color: var(--ilo-color-gray-accessible);
60
54
  }
61
55
 
62
56
  #{$self}--date-extra {
63
- font-size: var(--ilo-font-size-md);
64
- line-height: var(--ilo-line-height-2xlg);
65
- letter-spacing: var(--ilo-letter-spacing-md);
57
+ @include typography("body-medium");
66
58
  color: var(--ilo-color-gray-charcoal);
67
59
  gap: spacing(2);
68
60
 
@@ -82,17 +74,24 @@
82
74
 
83
75
  &#{$self}__size {
84
76
  &__narrow {
85
- --max-width: #{px-to-rem(343px)};
77
+ @include breakpoint("md") {
78
+ --max-width: #{px-to-rem(343px)};
79
+ }
80
+ }
81
+
82
+ &__wide {
83
+ @include breakpoint("md") {
84
+ --max-width: #{px-to-rem(745px)};
85
+ }
86
86
  }
87
87
 
88
88
  &__wide,
89
89
  &__fluid {
90
90
  @include breakpoint("md") {
91
- --max-width: #{px-to-rem(745px)};
92
91
  padding: spacing(8) spacing(4) spacing(8) spacing(0);
93
92
 
94
93
  #{$self}--image--wrapper {
95
- flex: 1 0 18%;
94
+ flex: 0 0 px-to-rem(100px);
96
95
  height: 100%;
97
96
  margin: 0;
98
97
  }
@@ -115,13 +114,11 @@
115
114
  }
116
115
 
117
116
  #{$self}--image--wrapper {
118
- flex: 1 0 27%;
117
+ flex: 0 0 px-to-rem(196px);
119
118
  }
120
- }
121
119
 
122
- #{$self}--title {
123
- @include breakpoint("lg") {
124
- @include font-styles("headline-5");
120
+ #{$self}--title {
121
+ @include typography("heading-3");
125
122
  }
126
123
  }
127
124
  }
@@ -72,7 +72,7 @@
72
72
  $icon: "[class*='icon']";
73
73
 
74
74
  @include typography("highlight-medium");
75
- color: var(--ilo-color-dark-blue);
75
+ color: var(--ilo-color-blue-dark);
76
76
  grid-column: 1 / -1;
77
77
 
78
78
  a {
@@ -7,14 +7,12 @@
7
7
  $self: &;
8
8
 
9
9
  &--wrapper__type__promo {
10
- --max-width: #{px-to-rem(634px)};
10
+ --max-width: 100%;
11
11
 
12
12
  &__size {
13
13
  &__narrow {
14
- --max-width: #{px-to-rem(343px)};
15
-
16
- @include breakpoint("md", true) {
17
- --max-width: 100%;
14
+ @include breakpoint("md") {
15
+ --max-width: #{px-to-rem(343px)};
18
16
  }
19
17
  }
20
18
 
@@ -34,92 +32,72 @@
34
32
 
35
33
  &__type {
36
34
  &__promo {
37
- // --max-width: #{px-to-rem(343px)};
38
-
39
35
  padding: spacing(10) spacing(6);
40
36
  width: 100%;
41
37
 
42
- @include breakpoint("md") {
43
- padding: spacing(12);
38
+ #{$self}--title {
39
+ @include typography("heading-3");
40
+ margin-bottom: spacing(2);
44
41
  }
45
42
 
46
- @include breakpoint("lg") {
47
- padding: spacing(16) spacing(18);
43
+ #{$self}--intro {
44
+ @include typography("body-medium");
45
+ margin-bottom: spacing(8);
48
46
  }
49
47
 
50
- #{$self}--title {
51
- margin-bottom: spacing(3);
48
+ &#{$self}__cornercut {
49
+ @include cornercut(72px, 40px);
50
+
51
+ [dir="rtl"] & {
52
+ @include cornercut(72px, 40px left);
53
+ }
52
54
  }
53
55
 
54
56
  &#{$self}__size {
55
- &__standard {
56
- padding: spacing(12);
57
-
58
- &#{$self}__cornercut {
59
- @include cornercut(87px, 48px);
60
-
61
- [dir="rtl"] & {
62
- @include cornercut(87px, 48px, left);
57
+ @include breakpoint("md") {
58
+ &__standard,
59
+ &__wide,
60
+ &__fluid {
61
+ padding: spacing(12);
62
+
63
+ #{$self}--title {
64
+ @include typography("heading-2");
65
+ margin-bottom: spacing(3);
63
66
  }
64
- }
65
- }
66
67
 
67
- &__wide,
68
- &__fluid {
69
- padding: spacing(16) spacing(18);
68
+ #{$self}--intro {
69
+ @include typography("body-large");
70
+ }
70
71
 
71
- &#{$self}__cornercut {
72
- @include cornercut(116px, 64px);
72
+ &#{$self}__cornercut {
73
+ @include cornercut(87px, 48px);
73
74
 
74
- [dir="rtl"] & {
75
- @include cornercut(116px, 64px, left);
75
+ [dir="rtl"] & {
76
+ @include cornercut(87px, 48px, left);
77
+ }
76
78
  }
77
79
  }
78
80
  }
79
81
 
80
- &__narrow {
81
- padding: spacing(10) spacing(6);
82
+ @include breakpoint("lg") {
83
+ &__wide,
84
+ &__fluid {
85
+ padding: spacing(16) spacing(18);
86
+ &#{$self}__cornercut {
87
+ @include cornercut(116px, 64px);
82
88
 
83
- &#{$self}__cornercut {
84
- @include cornercut(72px, 40px);
85
-
86
- [dir="rtl"] & {
87
- @include cornercut(72px, 40px left);
89
+ [dir="rtl"] & {
90
+ @include cornercut(116px, 64px, left);
91
+ }
88
92
  }
89
93
  }
90
-
91
- #{$self}--title {
92
- @include font-styles("headline-5");
93
- margin-bottom: spacing(2);
94
- }
95
-
96
- #{$self}--intro {
97
- @include font-styles("body-small");
98
- }
99
94
  }
100
95
  }
101
96
 
102
97
  &#{$self}__theme__light:not(:hover) #{$self}--title {
103
- color: $brand-ilo-black;
98
+ color: var(--ilo-color-gray-charcoal);
104
99
  @include globaltransition("color");
105
100
  }
106
-
107
- #{$self}--title {
108
- @include font-styles("headline-4");
109
-
110
- @include breakpoint("md") {
111
- @include font-styles("headline-2");
112
- }
113
- }
114
-
115
- #{$self}--intro {
116
- @include font-styles("body-small");
117
- margin-bottom: spacing(8);
118
-
119
- @include breakpoint("md") {
120
- @include font-styles("base");
121
- }
122
- }
123
101
  }
124
102
  }
125
103
  }
@@ -54,10 +54,9 @@
54
54
  }
55
55
 
56
56
  #{$self}--title {
57
- @include font-styles("headline-5");
58
- font-family: var(--ilo-fonts-display);
59
- font-weight: 700;
57
+ @include typography("heading-3");
60
58
  margin-bottom: spacing(6);
59
+ color: var(--ilo-color-blue-dark);
61
60
  }
62
61
 
63
62
  #{$self}--area {
@@ -152,9 +151,7 @@
152
151
 
153
152
  #{$self}--title {
154
153
  grid-area: title;
155
- font-size: var(--ilo-font-size-lg);
156
- line-height: var(--ilo-line-height-lg);
157
- letter-spacing: var(--ilo-letter-spacing-sm);
154
+ @include typography("heading-4");
158
155
  }
159
156
 
160
157
  #{$self}--area--content {
@@ -20,12 +20,7 @@
20
20
  padding: spacing(2) spacing(3);
21
21
  width: fit-content;
22
22
 
23
- // Font styles
24
- font-family: var(--ilo-fonts-display);
25
- font-size: var(--ilo-font-size-sm);
26
- font-weight: var(--ilo-font-weight-medium);
27
- line-height: var(--ilo-line-height-xlg);
28
- letter-spacing: var(--ilo-letter-spacing-sm);
23
+ @include typography("highlight-small");
29
24
 
30
25
  // Colors and border
31
26
  color: var(--ilo-color-blue-dark);
@@ -62,6 +57,7 @@
62
57
  }
63
58
 
64
59
  &__button,
60
+ &__reset,
65
61
  &__anchor {
66
62
  &:hover,
67
63
  &:focus {
@@ -85,7 +81,7 @@
85
81
  }
86
82
 
87
83
  .ilo--icon {
88
- bottom: px-to-rem(2px);
84
+ bottom: px-to-rem(1px);
89
85
  fill: inherit;
90
86
  position: relative;
91
87
  margin-inline-start: px-to-rem(2px);