@ilo-org/styles 0.8.1 → 0.8.3

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.8.1",
4
+ "version": "0.8.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -9,6 +9,7 @@
9
9
 
10
10
  box-sizing: border-box;
11
11
  position: relative;
12
+ background-color: map-get($color, "base", "neutrals", "white");
12
13
 
13
14
  // Max width is set in the invididual card types unless fluid
14
15
  max-width: var(--max-width);
@@ -85,6 +86,8 @@
85
86
  }
86
87
 
87
88
  &--wrapper {
89
+ max-width: var(--max-width);
90
+
88
91
  &:hover,
89
92
  &:focus,
90
93
  &:focus-within {
@@ -87,6 +87,11 @@
87
87
  }
88
88
  }
89
89
 
90
+ .ilo--card,
91
+ .ilo--card--wrapper {
92
+ height: 100%;
93
+ }
94
+
90
95
  &--button-wrap {
91
96
  display: flex;
92
97
  justify-content: center;
@@ -199,6 +199,7 @@
199
199
  );
200
200
  font-family: $fonts-display;
201
201
  font-weight: 700;
202
+ flex: 1;
202
203
  }
203
204
 
204
205
  #{$self}--eyebrow {
@@ -6,9 +6,31 @@
6
6
  .ilo--card {
7
7
  $self: &;
8
8
 
9
+ &--wrapper__type__promo {
10
+ --max-width: #{px-to-rem(634px)};
11
+
12
+ &__size {
13
+ &__narrow {
14
+ --max-width: #{px-to-rem(343px)};
15
+ }
16
+
17
+ &__standard {
18
+ --max-width: #{px-to-rem(634px)};
19
+ }
20
+
21
+ &__wide {
22
+ --max-width: #{px-to-rem(920px)};
23
+ }
24
+
25
+ &__fluid {
26
+ --max-width: 100%;
27
+ }
28
+ }
29
+ }
30
+
9
31
  &__type {
10
32
  &__promo {
11
- --max-width: #{px-to-rem(343px)};
33
+ // --max-width: #{px-to-rem(343px)};
12
34
 
13
35
  padding: px-to-rem(40px) px-to-rem(24px);
14
36
  width: 100%;
@@ -23,8 +45,6 @@
23
45
 
24
46
  &#{$self}__size {
25
47
  &__standard {
26
- --max-width: #{px-to-rem(634px)};
27
-
28
48
  padding: px-to-rem(48px);
29
49
 
30
50
  @include breakpoint("medium") {
@@ -42,8 +62,6 @@
42
62
 
43
63
  &__wide,
44
64
  &__fluid {
45
- --max-width: #{px-to-rem(920px)};
46
-
47
65
  padding: px-to-rem(64px) px-to-rem(72px);
48
66
 
49
67
  @include breakpoint("medium") {
@@ -60,8 +78,6 @@
60
78
  }
61
79
 
62
80
  &__narrow {
63
- --max-width: #{px-to-rem(343px)};
64
-
65
81
  padding: px-to-rem(40px) px-to-rem(24px);
66
82
 
67
83
  @include breakpoint("medium") {