@ilo-org/styles 0.10.5 → 0.11.0
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 +137 -108
- package/build/css/components/index.css.map +1 -1
- package/build/css/global.css +1 -1
- package/build/css/index.css +137 -108
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +137 -108
- 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/breadcrumb.css +1 -1
- package/css/components/datacard.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +3 -3
- package/css/index.css.map +1 -1
- package/css/monorepo.css +3 -3
- package/css/monorepo.css.map +1 -1
- package/package.json +1 -1
- package/scss/components/_breadcrumb.scss +4 -2
- package/scss/components/_datacard.scss +27 -19
- package/scss/components/_hero.scss +52 -23
- package/scss/components/_herocard.scss +3 -1
package/package.json
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
background-color: $color-base-neutrals-white;
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
justify-content: flex-start;
|
|
15
|
-
padding: px-to-rem(16px)
|
|
15
|
+
padding-block: px-to-rem(16px);
|
|
16
|
+
padding-inline-end: 0;
|
|
17
|
+
padding-inline-start: var(--card-padding-start);
|
|
16
18
|
position: relative;
|
|
17
19
|
|
|
18
20
|
&.context--menu {
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
align-items: center;
|
|
67
69
|
display: flex;
|
|
68
70
|
position: relative;
|
|
69
|
-
width:
|
|
71
|
+
width: 17px;
|
|
70
72
|
|
|
71
73
|
.ilo--breadcrumb--link {
|
|
72
74
|
padding-left: 0;
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
&__type {
|
|
10
10
|
&__data {
|
|
11
|
+
$c: &;
|
|
12
|
+
|
|
11
13
|
--max-width: #{px-to-rem(600px)};
|
|
12
14
|
|
|
13
15
|
background: $brand-ilo-light-blue;
|
|
@@ -20,13 +22,12 @@
|
|
|
20
22
|
display: grid;
|
|
21
23
|
grid-template-columns: 1fr;
|
|
22
24
|
grid-template-rows: auto;
|
|
25
|
+
row-gap: px-to-rem(26px);
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
@include breakpoint("medium") {
|
|
26
|
-
padding: px-to-rem(48px)
|
|
27
|
-
px-to-rem(110px);
|
|
29
|
+
padding: px-to-rem(48px);
|
|
28
30
|
|
|
29
|
-
// 629
|
|
30
31
|
&__columns {
|
|
31
32
|
&__two {
|
|
32
33
|
#{$self}--content {
|
|
@@ -46,9 +47,15 @@
|
|
|
46
47
|
&--content {
|
|
47
48
|
grid-column: 2 / 3;
|
|
48
49
|
}
|
|
50
|
+
|
|
49
51
|
&--files {
|
|
50
52
|
grid-column: 2 / 3;
|
|
51
53
|
}
|
|
54
|
+
|
|
55
|
+
&--cta {
|
|
56
|
+
grid-column: 2 / 3;
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
&--links {
|
|
53
60
|
grid-column: 2 / 3;
|
|
54
61
|
}
|
|
@@ -60,9 +67,15 @@
|
|
|
60
67
|
&--content {
|
|
61
68
|
grid-column: 1 / 2;
|
|
62
69
|
}
|
|
70
|
+
|
|
63
71
|
&--files {
|
|
64
72
|
grid-column: 1 / 2;
|
|
65
73
|
}
|
|
74
|
+
|
|
75
|
+
&--cta {
|
|
76
|
+
grid-column: 1 / 2 / 3 / 3;
|
|
77
|
+
}
|
|
78
|
+
|
|
66
79
|
&--links {
|
|
67
80
|
grid-area: 1 / 2 / 3 / 3;
|
|
68
81
|
}
|
|
@@ -75,13 +88,21 @@
|
|
|
75
88
|
|
|
76
89
|
&#{$self}__size {
|
|
77
90
|
&__narrow {
|
|
78
|
-
--max-width: #{px-to-rem(
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
--max-width: #{px-to-rem(301px)};
|
|
92
|
+
@include cornercut(72px, 40px);
|
|
93
|
+
padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(53px);
|
|
81
94
|
}
|
|
82
95
|
|
|
83
96
|
&__wide {
|
|
84
97
|
--max-width: #{px-to-rem(778px)};
|
|
98
|
+
|
|
99
|
+
&#{$c}__columns__one {
|
|
100
|
+
padding: px-to-rem(48px) px-to-rem(52px);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&#{$c}__columns__two {
|
|
104
|
+
padding: px-to-rem(48px) max(px-to-rem(52px), px-to-rem(109px));
|
|
105
|
+
}
|
|
85
106
|
}
|
|
86
107
|
|
|
87
108
|
&__wide,
|
|
@@ -93,7 +114,6 @@
|
|
|
93
114
|
#{$self}--image {
|
|
94
115
|
width: 100%;
|
|
95
116
|
max-width: 200px;
|
|
96
|
-
margin: 0 0 #{px-to-rem(31px)};
|
|
97
117
|
}
|
|
98
118
|
|
|
99
119
|
&--content-label {
|
|
@@ -115,23 +135,11 @@
|
|
|
115
135
|
|
|
116
136
|
&--content-copy {
|
|
117
137
|
@include font-styles("headline-5");
|
|
118
|
-
@include textmargin(
|
|
119
|
-
"margin-bottom",
|
|
120
|
-
37px,
|
|
121
|
-
"headline-5",
|
|
122
|
-
"display",
|
|
123
|
-
"body-xs",
|
|
124
|
-
"copy"
|
|
125
|
-
);
|
|
126
138
|
color: $brand-ilo-grey-charcoal;
|
|
127
139
|
font-family: $fonts-display;
|
|
128
140
|
font-weight: 500;
|
|
129
141
|
}
|
|
130
142
|
|
|
131
|
-
&--content-files {
|
|
132
|
-
margin-bottom: px-to-rem(35px);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
143
|
[class*="ilo--link"] {
|
|
136
144
|
@include font-styles("headline-6");
|
|
137
145
|
line-height: 1.8;
|
|
@@ -5,14 +5,24 @@
|
|
|
5
5
|
.hero {
|
|
6
6
|
$c: &;
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// Total offset from the edge of the window
|
|
9
9
|
$base-offset: calc((100vw - #{$layout-max-width}) / 2);
|
|
10
10
|
|
|
11
|
-
// Card
|
|
12
|
-
|
|
11
|
+
// Card padding defaults to a fixed value. But it's a CSS variable
|
|
12
|
+
// so that we can make it squeezy when the card is justified `start`
|
|
13
|
+
// or `offset`
|
|
14
|
+
--card-padding-start: #{$spacing-hero-card-padding-x-lg};
|
|
15
|
+
|
|
16
|
+
// Squishy padding makes it so we can have a flexible padding value
|
|
17
|
+
// that will be somewhere between 16px and the card's fixed padding
|
|
18
|
+
// depending on how far the card is from the edge of the screen
|
|
19
|
+
$squeezy-padding-start: max(
|
|
20
|
+
16px,
|
|
21
|
+
min(#{$base-offset}, #{$spacing-hero-card-padding-x-lg})
|
|
22
|
+
);
|
|
13
23
|
|
|
14
|
-
//
|
|
15
|
-
$card-offset
|
|
24
|
+
// 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});
|
|
16
26
|
|
|
17
27
|
// The height of the corner cut
|
|
18
28
|
--corner-cut-height: #{$spacing-hero-card-corner-cut-height-sm};
|
|
@@ -26,6 +36,7 @@
|
|
|
26
36
|
$spacing-hero-card-corner-cut-height-sm
|
|
27
37
|
auto;
|
|
28
38
|
grid-template-columns: 1fr;
|
|
39
|
+
overflow: hidden;
|
|
29
40
|
|
|
30
41
|
&--breadcrumbs {
|
|
31
42
|
display: none;
|
|
@@ -82,8 +93,7 @@
|
|
|
82
93
|
var(--row-1-lg)
|
|
83
94
|
var(--row-2-lg)
|
|
84
95
|
var(--row-3-lg)
|
|
85
|
-
var(--row-4-lg)
|
|
86
|
-
var(--row-5-lg);
|
|
96
|
+
var(--row-4-lg);
|
|
87
97
|
|
|
88
98
|
grid-template-columns:
|
|
89
99
|
var(--col-1-lg)
|
|
@@ -132,12 +142,10 @@
|
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
&__card-justify {
|
|
135
|
-
&__start
|
|
136
|
-
--col-1-lg: #{$card-offset};
|
|
137
|
-
}
|
|
138
|
-
|
|
145
|
+
&__start,
|
|
139
146
|
&__offset {
|
|
140
|
-
--
|
|
147
|
+
--card-padding-start: #{$squeezy-padding-start};
|
|
148
|
+
--col-1-lg: #{$card-offset};
|
|
141
149
|
}
|
|
142
150
|
|
|
143
151
|
&__center {
|
|
@@ -173,6 +181,7 @@
|
|
|
173
181
|
&__dark {
|
|
174
182
|
#{$c}--card-offset {
|
|
175
183
|
background-color: map-get($color, "base", "blue", "dark");
|
|
184
|
+
position: relative;
|
|
176
185
|
}
|
|
177
186
|
|
|
178
187
|
&[class*="semi-transparent"] {
|
|
@@ -201,8 +210,14 @@
|
|
|
201
210
|
}
|
|
202
211
|
}
|
|
203
212
|
|
|
213
|
+
&--breadcrumbs-offset {
|
|
214
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
215
|
+
background-color: $color-base-neutrals-white;
|
|
216
|
+
z-index: 1;
|
|
217
|
+
}
|
|
218
|
+
|
|
204
219
|
&--breadcrumbs {
|
|
205
|
-
grid-area: 1 /
|
|
220
|
+
grid-area: 1 / 2 / 2 / 5;
|
|
206
221
|
z-index: 1;
|
|
207
222
|
display: flex;
|
|
208
223
|
flex-flow: row nowrap;
|
|
@@ -210,14 +225,6 @@
|
|
|
210
225
|
&--wrapper {
|
|
211
226
|
width: 100%;
|
|
212
227
|
}
|
|
213
|
-
|
|
214
|
-
&:before {
|
|
215
|
-
content: "";
|
|
216
|
-
background-color: $color-base-neutrals-white;
|
|
217
|
-
position: relative;
|
|
218
|
-
height: 100%;
|
|
219
|
-
width: max($spacing-hero-card-padding-x-lg, $base-offset);
|
|
220
|
-
}
|
|
221
228
|
}
|
|
222
229
|
|
|
223
230
|
&--figure {
|
|
@@ -235,7 +242,19 @@
|
|
|
235
242
|
&--card-offset {
|
|
236
243
|
grid-area: 3 / 1 / 6 / 2;
|
|
237
244
|
z-index: 0;
|
|
238
|
-
|
|
245
|
+
position: relative;
|
|
246
|
+
|
|
247
|
+
// A band-aid that prevents artifacts from appearing
|
|
248
|
+
// between the card and the card offset in Chrome
|
|
249
|
+
&::after {
|
|
250
|
+
content: "";
|
|
251
|
+
position: absolute;
|
|
252
|
+
height: 100%;
|
|
253
|
+
width: 3px;
|
|
254
|
+
right: -1px;
|
|
255
|
+
background-color: inherit;
|
|
256
|
+
z-index: 1;
|
|
257
|
+
}
|
|
239
258
|
|
|
240
259
|
#{$c}__card-justify__offset &,
|
|
241
260
|
#{$c}__card-justify__center & {
|
|
@@ -334,7 +353,7 @@
|
|
|
334
353
|
--col-1-lg: 1fr;
|
|
335
354
|
--col-2-lg: #{$spacing-hero-tooltip-width};
|
|
336
355
|
--col-3-lg: var(--card-width);
|
|
337
|
-
--col-4-lg: #{$card-offset
|
|
356
|
+
--col-4-lg: #{$card-offset};
|
|
338
357
|
}
|
|
339
358
|
|
|
340
359
|
&__center {
|
|
@@ -398,13 +417,23 @@
|
|
|
398
417
|
|
|
399
418
|
&--card-offset {
|
|
400
419
|
grid-area: 3 / 4 / 6 / 5;
|
|
420
|
+
|
|
421
|
+
&:after {
|
|
422
|
+
right: initial;
|
|
423
|
+
left: -1px;
|
|
424
|
+
}
|
|
401
425
|
}
|
|
402
426
|
|
|
403
427
|
&--card {
|
|
404
428
|
grid-area: 3 / 3 / 6 / 4;
|
|
405
429
|
}
|
|
406
430
|
|
|
431
|
+
&--breadcrumbs-offset {
|
|
432
|
+
grid-area: 1 / 4 / 2 / 5;
|
|
433
|
+
}
|
|
434
|
+
|
|
407
435
|
&--breadcrumbs {
|
|
436
|
+
grid-area: 1 / 4 / 2 / 1;
|
|
408
437
|
flex-direction: row-reverse;
|
|
409
438
|
}
|
|
410
439
|
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
padding: $spacing-hero-card-padding-y-sm $spacing-hero-card-padding-x-sm;
|
|
11
11
|
|
|
12
12
|
@include breakpoint("large") {
|
|
13
|
-
padding: $spacing-hero-card-padding-y-lg
|
|
13
|
+
padding-block: $spacing-hero-card-padding-y-lg;
|
|
14
|
+
padding-inline-end: $spacing-hero-card-padding-x-lg;
|
|
15
|
+
padding-inline-start: var(--card-padding-start);
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
.right-to-left & {
|