@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/build/css/components/index.css +118 -92
- package/build/css/components/index.css.map +1 -1
- package/build/css/global.css +1 -1
- package/build/css/global.css.map +1 -1
- package/build/css/index.css +118 -92
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +118 -92
- package/build/css/monorepo.css.map +1 -1
- package/build/minified/index.css +1 -1
- package/build/minified/index.css.map +1 -1
- package/build/minified/monorepo.css +1 -1
- package/build/minified/monorepo.css.map +1 -1
- package/css/components/accordion.css +1 -1
- package/css/components/breadcrumb.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -1
- package/css/components/linklist.css +1 -1
- package/css/components/tabs.css +1 -1
- package/css/components/tag.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +12 -3
- package/css/index.css.map +1 -1
- package/css/monorepo.css +12 -3
- package/css/monorepo.css.map +1 -1
- package/package.json +2 -2
- package/scss/components/_accordion.scss +1 -1
- package/scss/components/_breadcrumb.scss +4 -1
- package/scss/components/_hero.scss +22 -3
- package/scss/components/_linklist.scss +2 -0
- package/scss/components/_tabs.scss +1 -0
- package/scss/components/_tag.scss +4 -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.11.
|
|
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.
|
|
23
|
+
"@ilo-org/themes": "0.7.0-next.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"cssnano": "^5.1.13",
|
|
@@ -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
|
-
|
|
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(
|
|
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(
|
|
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",
|
|
@@ -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");
|