@ilo-org/styles 0.7.2 → 0.8.1

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": "0.7.2",
4
+ "version": "0.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -8,45 +8,99 @@
8
8
 
9
9
  &__type {
10
10
  &__data {
11
- --max-width: #{px-to-rem(301px)};
11
+ --max-width: #{px-to-rem(600px)};
12
12
 
13
13
  background: $brand-ilo-light-blue;
14
- border-bottom: px-to-rem(3px) solid #82afdc;
15
- margin-top: px-to-rem(40px);
16
- padding: px-to-rem(24px) px-to-rem(56px);
14
+ border-bottom: px-to-rem(3px) solid $brand-ilo-ramp-blue;
15
+ padding: px-to-rem(48px) px-to-rem(52px);
17
16
  position: relative;
18
17
  width: 100%;
19
18
 
20
- &:hover,
21
- &:focus,
22
- &:focus-within {
23
- background: $brand-ilo-light-blue;
19
+ #{$self}--content {
20
+ display: grid;
21
+ grid-template-columns: 1fr;
22
+ grid-template-rows: auto;
23
+ }
24
+
25
+ @include breakpoint("medium") {
26
+ padding: px-to-rem(48px) px-to-rem(48px) px-to-rem(48px)
27
+ px-to-rem(110px);
28
+
29
+ // 629
30
+ &__columns {
31
+ &__two {
32
+ #{$self}--content {
33
+ grid-template-columns: minmax(px-to-rem(200px), 32%) minmax(
34
+ 53%,
35
+ 1fr
36
+ );
37
+ column-gap: 14%;
38
+
39
+ &__with-image {
40
+ #{$self}--area {
41
+ &--image {
42
+ grid-column: 1 / 2;
43
+ grid-row: 1 / span 4;
44
+ }
45
+
46
+ &--content {
47
+ grid-column: 2 / 3;
48
+ }
49
+ &--files {
50
+ grid-column: 2 / 3;
51
+ }
52
+ &--links {
53
+ grid-column: 2 / 3;
54
+ }
55
+ }
56
+ }
57
+
58
+ &__no-image-with-links {
59
+ #{$self}--area {
60
+ &--content {
61
+ grid-column: 1 / 2;
62
+ }
63
+ &--files {
64
+ grid-column: 1 / 2;
65
+ }
66
+ &--links {
67
+ grid-area: 1 / 2 / 3 / 3;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
24
74
  }
25
75
 
26
76
  &#{$self}__size {
27
77
  &__narrow {
28
- --max-width: #{px-to-rem(301px)};
78
+ --max-width: #{px-to-rem(600px)};
79
+
80
+ @include cornercut(72px, 48px);
81
+ }
29
82
 
30
- @include cornercut(72px, 40px);
83
+ &__wide {
84
+ --max-width: #{px-to-rem(778px)};
31
85
  }
32
86
 
33
87
  &__wide,
34
88
  &__fluid {
35
- --max-width: #{px-to-rem(600px)};
36
-
37
- @include cornercut(87px, 48px);
89
+ @include cornercut(86px, 48px);
38
90
  }
39
91
  }
40
92
 
41
- #{$self}--image--wrapper {
42
- width: max(px-to-rem(205px), 50%);
93
+ #{$self}--image {
94
+ width: 100%;
95
+ max-width: 200px;
96
+ margin: 0 0 #{px-to-rem(31px)};
43
97
  }
44
98
 
45
99
  &--content-label {
46
100
  @include font-styles("body-xs");
47
101
  @include textmargin(
48
102
  "margin-bottom",
49
- 16px,
103
+ 13px,
50
104
  "body-xs",
51
105
  "copy",
52
106
  "headline-5",
@@ -55,11 +109,15 @@
55
109
  color: $brand-ilo-grey-accessible;
56
110
  }
57
111
 
112
+ #{$self}--eyebrow {
113
+ margin: 0 0 #{px-to-rem(16px)};
114
+ }
115
+
58
116
  &--content-copy {
59
117
  @include font-styles("headline-5");
60
118
  @include textmargin(
61
119
  "margin-bottom",
62
- 40px,
120
+ 37px,
63
121
  "headline-5",
64
122
  "display",
65
123
  "body-xs",
@@ -71,14 +129,17 @@
71
129
  }
72
130
 
73
131
  &--content-files {
74
- margin-bottom: px-to-rem(40px);
132
+ margin-bottom: px-to-rem(35px);
75
133
  }
76
134
 
77
- .ilo--link {
135
+ [class*="ilo--link"] {
78
136
  @include font-styles("headline-6");
137
+ line-height: 1.8;
138
+ margin-inline-end: px-to-rem(12px);
139
+ margin-bottom: px-to-rem(12px);
79
140
  }
80
141
 
81
- &--file {
142
+ [class*="button"] {
82
143
  margin: px-to-rem(4px) px-to-rem(8px) px-to-rem(4px) 0;
83
144
 
84
145
  &:last-of-type {
@@ -168,6 +168,10 @@
168
168
  width: 100%;
169
169
  z-index: -1;
170
170
  }
171
+
172
+ img {
173
+ object-fit: cover;
174
+ }
171
175
  }
172
176
 
173
177
  #{$self}--content {