@ilo-org/styles 0.11.2 → 0.11.3-next.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.11.2",
4
+ "version": "0.11.3-next.1",
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.6.1"
23
+ "@ilo-org/themes": "0.7.0-next.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "cssnano": "^5.1.13",
@@ -86,7 +86,7 @@
86
86
  overflow: hidden;
87
87
 
88
88
  .ilo--accordion--innerpanel {
89
- padding-bottom: px-to-rem($spacing-ui-padding-xxl);
89
+ padding-bottom: px-to-rem($spacing-ui-padding-sm);
90
90
  padding-top: px-to-rem(8px);
91
91
  }
92
92
 
@@ -16,7 +16,6 @@
16
16
  padding-inline-end: 0;
17
17
  padding-inline-start: var(--card-padding-start);
18
18
  position: relative;
19
-
20
19
  &.context--menu {
21
20
  padding: 0;
22
21
  }
@@ -41,6 +40,10 @@
41
40
  }
42
41
 
43
42
  &--label {
43
+ white-space: nowrap;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ max-width: 40ch;
44
47
  font-family: $fonts-copy;
45
48
  font-weight: 400;
46
49
  @include font-styles("body-xxs");
@@ -5,8 +5,11 @@
5
5
  .hero {
6
6
  $c: &;
7
7
 
8
+ // Additional offset to add for justify: offset
9
+ --added-offset: 0;
10
+
8
11
  // Total offset from the edge of the window
9
- $base-offset: calc((100vw - #{$layout-max-width}) / 2);
12
+ --base-offset: calc(((100vw - #{$layout-max-width}) / 2));
10
13
 
11
14
  // Card padding defaults to a fixed value. But it's a CSS variable
12
15
  // so that we can make it squeezy when the card is justified `start`
@@ -18,11 +21,16 @@
18
21
  // depending on how far the card is from the edge of the screen
19
22
  $squeezy-padding-start: max(
20
23
  16px,
21
- min(#{$base-offset}, #{$spacing-hero-card-padding-x-lg})
24
+ min(
25
+ var(--base-offset) + var(--added-offset),
26
+ #{$spacing-hero-card-padding-x-lg}
27
+ )
22
28
  );
23
29
 
24
30
  // Card offset from the edge of the window minus the card's fixed padding
25
- $card-offset: calc(#{$base-offset} - #{$spacing-hero-card-padding-x-lg});
31
+ $card-offset: calc(
32
+ var(--base-offset) - #{$spacing-hero-card-padding-x-lg} + var(--added-offset)
33
+ );
26
34
 
27
35
  // The height of the corner cut
28
36
  --corner-cut-height: #{$spacing-hero-card-corner-cut-height-sm};
@@ -148,6 +156,10 @@
148
156
  --col-1-lg: #{$card-offset};
149
157
  }
150
158
 
159
+ &__offset {
160
+ --added-offset: 109px;
161
+ }
162
+
151
163
  &__center {
152
164
  --col-1-lg: calc((100% - var(--card-width)) / 2);
153
165
  --col-4-lg: calc(
@@ -305,7 +317,14 @@
305
317
 
306
318
  #{$c}__card-align__bottom#{$c}__card-justify__start & {
307
319
  grid-area: 1 / 1 / 3 / 3;
320
+ }
321
+
322
+ #{$c}__card-align__bottom#{$c}__card-justify__offset & {
323
+ grid-area: 1 / 2 / 3 / 3;
324
+ }
308
325
 
326
+ #{$c}__card-align__bottom#{$c}__card-justify__start &,
327
+ #{$c}__card-align__bottom#{$c}__card-justify__offset & {
309
328
  #{$c}--caption--wrapper {
310
329
  @include caption-icon-wrapper(
311
330
  "right",
@@ -57,6 +57,8 @@
57
57
  }
58
58
  }
59
59
 
60
+ & .ilo--link-list--link:hover,
61
+ & .ilo--link-list--link:focus,
60
62
  &:hover,
61
63
  &:focus {
62
64
  .ilo--link-list--label:before {
@@ -103,6 +103,7 @@
103
103
  background-color: $color-base-blue-light;
104
104
  color: $color-base-blue-medium;
105
105
  outline: none;
106
+ border-top: px-to-rem(3px) solid $color-base-blue-medium;
106
107
  @include globaltransition("color, background-color, border-color");
107
108
 
108
109
  &.has--tooltip {
@@ -30,6 +30,10 @@
30
30
  text-decoration: none;
31
31
  $self: &;
32
32
  @include globaltransition("color, background-color, border-color");
33
+ max-width: $widths-tags-max-width;
34
+ white-space: nowrap;
35
+ overflow: hidden;
36
+ text-overflow: ellipsis;
33
37
 
34
38
  &--active {
35
39
  background: map-get($color, "tag", "background", "active");