@ilo-org/styles 1.8.5 → 1.9.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/css/components/accordion.css +1 -1
- package/css/components/blockquote.css +1 -1
- package/css/components/breadcrumb.css +1 -1
- package/css/components/button.css +1 -1
- package/css/components/checkbox.css +1 -1
- package/css/components/contextmenu.css +1 -1
- package/css/components/detailcard.css +1 -1
- package/css/components/dropdown.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/fieldset.css +1 -1
- package/css/components/file-upload.css +1 -1
- package/css/components/footer.css +1 -1
- package/css/components/formcontrol.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -1
- package/css/components/image.css +1 -1
- package/css/components/input.css +1 -1
- package/css/components/languagetoggle.css +1 -1
- package/css/components/linklist.css +1 -1
- package/css/components/multilinkcard.css +1 -1
- package/css/components/navigation.css +1 -1
- package/css/components/notification.css +1 -1
- package/css/components/pagination.css +1 -1
- package/css/components/readmore.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/socialmedia.css +1 -1
- package/css/components/statcard.css +1 -1
- package/css/components/table.css +1 -1
- package/css/components/tableofcontents.css +1 -1
- package/css/components/textarea.css +1 -1
- package/css/components/textinput.css +1 -1
- package/css/components/tooltip.css +1 -1
- package/css/components/video.css +1 -1
- package/css/global.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +4 -2
- package/css/index.css.map +1 -1
- package/css/monorepo.css +4 -2
- package/css/monorepo.css.map +1 -1
- package/package.json +3 -3
- package/scss/_mixins.scss +7 -18
- package/scss/_typography.scss +28 -12
- package/scss/components/_accordion.scss +57 -25
- package/scss/components/_blockquote.scss +20 -20
- package/scss/components/_breadcrumb.scss +1 -1
- package/scss/components/_button.scss +3 -3
- package/scss/components/_checkbox.scss +63 -25
- package/scss/components/_contextmenu.scss +1 -4
- package/scss/components/_detailcard.scss +18 -1
- package/scss/components/_dropdown.scss +66 -138
- package/scss/components/_featurecard.scss +1 -1
- package/scss/components/_fieldset.scss +2 -2
- package/scss/components/_file-upload.scss +2 -2
- package/scss/components/_footer.scss +5 -5
- package/scss/components/_formcontrol.scss +4 -23
- package/scss/components/_hero.scss +0 -4
- package/scss/components/_herocard.scss +9 -19
- package/scss/components/_image.scss +72 -27
- package/scss/components/_input.scss +1 -1
- package/scss/components/_languagetoggle.scss +1 -1
- package/scss/components/_linklist.scss +3 -3
- package/scss/components/_multilinkcard.scss +6 -6
- package/scss/components/_navigation.scss +12 -27
- package/scss/components/_notification.scss +3 -3
- package/scss/components/_pagination.scss +1 -1
- package/scss/components/_readmore.scss +1 -1
- package/scss/components/_richtext.scss +15 -63
- package/scss/components/_socialmedia.scss +1 -1
- package/scss/components/_statcard.scss +3 -3
- package/scss/components/_table.scss +4 -5
- package/scss/components/_tableofcontents.scss +5 -47
- package/scss/components/_textarea.scss +1 -1
- package/scss/components/_textinput.scss +1 -1
- package/scss/components/_tooltip.scss +1 -1
- package/scss/components/_video.scss +4 -19
- package/scss/components/index.scss +0 -2
- package/scss/theme/_typography.scss +2 -4
- package/css/components/credit.css +0 -1
- package/css/components/heading.css +0 -1
- package/scss/components/_credit.scss +0 -112
- package/scss/components/_heading.scss +0 -74
|
@@ -1,154 +1,82 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@import "../mixins";
|
|
3
|
+
@import "../animations";
|
|
4
4
|
|
|
5
5
|
.ilo--dropdown {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
&--wrapper {
|
|
7
|
+
--ilo-dropdown-background-color: var(--ilo-color-white);
|
|
8
|
+
--ilo-dropdown-background-color-active: var(--ilo-color-blue-lighter);
|
|
9
|
+
--ilo-dropdown-color: var(--ilo-color-gray-accessible);
|
|
10
|
+
--ilo-dropdown-height: #{px-to-rem(48px)};
|
|
11
|
+
--ilo-dropdown-border-color: var(--ilo-color-gray-base);
|
|
12
|
+
--ilo-dropdown-button-background-color: var(--ilo-color-gray-light);
|
|
13
|
+
--ilo-dropdown-button-icon-color: var(--ilo-color-blue-dark);
|
|
14
|
+
--ilo-dropdown-button-icon-size: calc(var(--ilo-dropdown-height) / 2);
|
|
15
|
+
--ilo-dropdown-button-icon-offset: calc(
|
|
16
|
+
var(--ilo-dropdown-button-icon-size) / 2
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
display: inline-block;
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
&:before {
|
|
23
|
+
content: "";
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
position: absolute;
|
|
26
|
+
border: 2px solid var(--ilo-dropdown-border-color);
|
|
27
|
+
background-color: var(--ilo-dropdown-button-background-color);
|
|
28
|
+
height: var(--ilo-dropdown-height);
|
|
29
|
+
width: var(--ilo-dropdown-height);
|
|
30
|
+
right: 0;
|
|
31
|
+
@include globaltransition("background-color");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:has(select:hover):before {
|
|
35
|
+
background-color: var(--ilo-dropdown-background-color-active);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:after {
|
|
39
|
+
content: "";
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
position: absolute;
|
|
42
|
+
height: var(--ilo-dropdown-button-icon-size);
|
|
43
|
+
width: var(--ilo-dropdown-button-icon-size);
|
|
44
|
+
right: var(--ilo-dropdown-button-icon-offset);
|
|
45
|
+
top: var(--ilo-dropdown-button-icon-offset);
|
|
46
|
+
@include icon("chevron_down", var(--ilo-dropdown-button-icon-color));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
8
50
|
appearance: none;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"background"
|
|
15
|
-
);
|
|
16
|
-
@include bordervalues("input", "formelements");
|
|
17
|
-
border-radius: 0;
|
|
18
|
-
box-sizing: content-box;
|
|
19
|
-
font-family: var(--ilo-fonts-copy);
|
|
20
|
-
font-weight: map-get($type, "weights", "section");
|
|
21
|
-
@include font-styles("label-medium");
|
|
22
|
-
height: px-to-rem(45px);
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
background-color: var(--ilo-dropdown-background-color);
|
|
53
|
+
height: var(--ilo-dropdown-height);
|
|
54
|
+
color: var(--ilo-dropdown-color);
|
|
55
|
+
width: 100%;
|
|
23
56
|
margin: spacing(0);
|
|
24
|
-
outline: none;
|
|
25
|
-
overflow: hidden;
|
|
26
57
|
padding: 0 spacing(14) 0 spacing(4);
|
|
27
58
|
text-overflow: ellipsis;
|
|
28
59
|
white-space: nowrap;
|
|
29
|
-
|
|
60
|
+
outline: none;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
border: 2px solid var(--ilo-dropdown-border-color);
|
|
64
|
+
@include typography("body-medium");
|
|
65
|
+
@include globaltransition("background-color, border-color, color");
|
|
30
66
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
to right,
|
|
41
|
-
transparent 0%,
|
|
42
|
-
transparent calc(50% - 0.81px),
|
|
43
|
-
$color-formelements-input-default-border-left calc(50% - 0.8px),
|
|
44
|
-
$color-formelements-input-default-border-left calc(50% + 0.8px),
|
|
45
|
-
rgba(237, 240, 242, 1) calc(50% + 0.81px),
|
|
46
|
-
rgba(237, 240, 242, 1) 100%
|
|
47
|
-
);
|
|
67
|
+
&:hover,
|
|
68
|
+
&:focus,
|
|
69
|
+
&:active {
|
|
70
|
+
border-left-color: var(--ilo-color-blue);
|
|
71
|
+
border-left-width: px-to-rem(3px);
|
|
72
|
+
padding-left: calc(#{spacing(4)} - #{px-to-rem(1px)});
|
|
73
|
+
background-color: var(--ilo-dropdown-background-color-active);
|
|
74
|
+
--ilo-dropdown-color: var(--ilo-color-gray-charcoal);
|
|
75
|
+
}
|
|
48
76
|
|
|
49
77
|
option {
|
|
50
|
-
width:
|
|
78
|
+
width: 100%;
|
|
51
79
|
text-overflow: ellipsis;
|
|
52
80
|
overflow: hidden;
|
|
53
81
|
}
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
background-color: map-get(
|
|
57
|
-
$color,
|
|
58
|
-
"formelements",
|
|
59
|
-
"input",
|
|
60
|
-
"hover",
|
|
61
|
-
"background"
|
|
62
|
-
);
|
|
63
|
-
@include bordervalues("input", "formelements", "hover");
|
|
64
|
-
border-left-width: 2px;
|
|
65
|
-
background-image: url("#{colortodataurlicon('chevron_down', $color-ux-labels-hover)}"),
|
|
66
|
-
linear-gradient(
|
|
67
|
-
to right,
|
|
68
|
-
transparent 0%,
|
|
69
|
-
transparent calc(50% - 0.81px),
|
|
70
|
-
$color-formelements-input-default-border-left calc(50% - 0.8px),
|
|
71
|
-
$color-formelements-input-default-border-left calc(50% + 0.8px),
|
|
72
|
-
transparent calc(50% + 0.81px),
|
|
73
|
-
transparent 100%
|
|
74
|
-
);
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:focus {
|
|
79
|
-
background-color: map-get(
|
|
80
|
-
$color,
|
|
81
|
-
"formelements",
|
|
82
|
-
"input",
|
|
83
|
-
"focus",
|
|
84
|
-
"background"
|
|
85
|
-
);
|
|
86
|
-
@include bordervalues("input", "formelements", "focus");
|
|
87
|
-
border-left-width: 2px;
|
|
88
|
-
background-image: url("#{colortodataurlicon('chevron_down', $color-ux-labels-hover)}"),
|
|
89
|
-
linear-gradient(
|
|
90
|
-
to right,
|
|
91
|
-
transparent 0%,
|
|
92
|
-
transparent calc(50% - 0.81px),
|
|
93
|
-
$color-formelements-input-default-border-left calc(50% - 0.8px),
|
|
94
|
-
$color-formelements-input-default-border-left calc(50% + 0.8px),
|
|
95
|
-
transparent calc(50% + 0.81px),
|
|
96
|
-
transparent 100%
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:active {
|
|
101
|
-
background-position:
|
|
102
|
-
calc(100% - 14px) center,
|
|
103
|
-
100% center;
|
|
104
|
-
background-repeat: no-repeat;
|
|
105
|
-
background-size:
|
|
106
|
-
24px 24px,
|
|
107
|
-
102px 100%;
|
|
108
|
-
background-image: url("#{colortodataurlicon('chevron_down', $color-ux-labels-actionable)}"),
|
|
109
|
-
linear-gradient(
|
|
110
|
-
to right,
|
|
111
|
-
transparent 0%,
|
|
112
|
-
transparent calc(50% - 0.81px),
|
|
113
|
-
$color-formelements-input-default-border-left calc(50% - 0.8px),
|
|
114
|
-
$color-formelements-input-default-border-left calc(50% + 0.8px),
|
|
115
|
-
rgba(237, 240, 242, 1) calc(50% + 0.81px),
|
|
116
|
-
rgba(237, 240, 242, 1) 100%
|
|
117
|
-
);
|
|
118
|
-
@include bordervalues("input", "formelements");
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&:disabled {
|
|
122
|
-
opacity: 0.45;
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&:invalid,
|
|
127
|
-
&.error,
|
|
128
|
-
.error & {
|
|
129
|
-
background-color: map-get(
|
|
130
|
-
$color,
|
|
131
|
-
"formelements",
|
|
132
|
-
"input",
|
|
133
|
-
"error",
|
|
134
|
-
"background"
|
|
135
|
-
);
|
|
136
|
-
@include bordervalues("input", "formelements", "error");
|
|
137
|
-
}
|
|
138
|
-
[dir="rtl"] & {
|
|
139
|
-
padding: 0 spacing(4) 0 spacing(14);
|
|
140
|
-
background-position:
|
|
141
|
-
calc(0% + 14px) center,
|
|
142
|
-
0% center;
|
|
143
|
-
background-image: url("#{colortodataurlicon('chevron_down', $color-ux-labels-actionable)}"),
|
|
144
|
-
linear-gradient(
|
|
145
|
-
to left,
|
|
146
|
-
transparent 0%,
|
|
147
|
-
transparent calc(50% - 0.81px),
|
|
148
|
-
$color-formelements-input-default-border-right calc(50% - 0.8px),
|
|
149
|
-
$color-formelements-input-default-border-right calc(50% + 0.8px),
|
|
150
|
-
rgba(237, 240, 242, 1) calc(50% + 0.81px),
|
|
151
|
-
rgba(237, 240, 242, 1) 100%
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
82
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-flow: row nowrap;
|
|
50
50
|
align-items: center;
|
|
51
|
-
@include
|
|
51
|
+
@include typography("highlight-medium");
|
|
52
52
|
color: var(--ilo-fieldset-legend-color);
|
|
53
53
|
line-height: px-to-rem(20px);
|
|
54
54
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
&--helper,
|
|
105
105
|
&__error {
|
|
106
106
|
font-family: var(--ilo-fonts-copy);
|
|
107
|
-
@include
|
|
107
|
+
@include typography("body-xsmall");
|
|
108
108
|
@include textmargin(
|
|
109
109
|
"margin-top",
|
|
110
110
|
map-get($spacing, "padding-1-5"),
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
font-weight: map-get($type, "weights", "label");
|
|
23
23
|
@include borderradius("button");
|
|
24
24
|
@include boxpadding("button", "medium");
|
|
25
|
-
@include
|
|
25
|
+
@include typography("highlight-medium");
|
|
26
26
|
|
|
27
27
|
.ilo--form__theme__dark & {
|
|
28
28
|
color: map-get($color, "ux", "labels", "actionable");
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
box-sizing: border-box;
|
|
91
91
|
font-family: var(--ilo-fonts-display);
|
|
92
92
|
font-weight: map-get($type, "weights", "section");
|
|
93
|
-
@include
|
|
93
|
+
@include typography("highlight-medium");
|
|
94
94
|
height: px-to-rem(48px);
|
|
95
95
|
outline: none;
|
|
96
96
|
padding: spacing(3) spacing(3) spacing(4);
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
color: $color-base-neutrals-white;
|
|
51
51
|
font-family: var(--ilo-fonts-display);
|
|
52
52
|
font-weight: map-get($type, "weights", "label");
|
|
53
|
-
@include
|
|
53
|
+
@include typography("highlight-medium-bold");
|
|
54
54
|
line-height: px-to-rem(21.6px);
|
|
55
55
|
@include textmargin(
|
|
56
56
|
"margin-bottom",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
font-family: var(--ilo-fonts-display);
|
|
69
69
|
font-weight: map-get($type, "weights", "section");
|
|
70
70
|
margin-top: spacing(1);
|
|
71
|
-
@include
|
|
71
|
+
@include typography("body-xsmall");
|
|
72
72
|
line-height: px-to-rem(18.56px);
|
|
73
73
|
margin-bottom: spacing(12);
|
|
74
74
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
.address--line {
|
|
81
81
|
color: $color-base-neutrals-white;
|
|
82
|
-
@include
|
|
82
|
+
@include typography("body-xsmall");
|
|
83
83
|
@include textmargin(
|
|
84
84
|
"margin-bottom",
|
|
85
85
|
8px,
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
color: $color-base-neutrals-medium;
|
|
104
104
|
display: inline;
|
|
105
105
|
font-family: var(--ilo-fonts-copy);
|
|
106
|
-
@include
|
|
106
|
+
@include typography("body-xsmall");
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.secondarylinks--list,
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
flex-flow: row nowrap;
|
|
153
153
|
color: $color-ux-labels-actionable;
|
|
154
154
|
font-family: var(--ilo-fonts-display);
|
|
155
|
-
@include
|
|
155
|
+
@include typography("highlight-medium");
|
|
156
156
|
position: relative;
|
|
157
157
|
text-decoration: none;
|
|
158
158
|
width: max-content;
|
|
@@ -147,40 +147,21 @@
|
|
|
147
147
|
|
|
148
148
|
&__size {
|
|
149
149
|
&__small {
|
|
150
|
-
|
|
151
|
-
font-size: px-to-rem(map-get($type, "label-small", "size"));
|
|
152
|
-
letter-spacing: px-to-rem(
|
|
153
|
-
map-get($type, "label-small", "letter-spacing")
|
|
154
|
-
);
|
|
155
|
-
line-height: px-to-rem(map-get($type, "label-small", "line-height"));
|
|
156
|
-
font-weight: 400;
|
|
150
|
+
@include typography("highlight-small-bold");
|
|
157
151
|
}
|
|
158
152
|
|
|
159
153
|
&__medium {
|
|
160
|
-
|
|
161
|
-
font-size: px-to-rem(map-get($type, "label-medium", "size"));
|
|
162
|
-
letter-spacing: px-to-rem(
|
|
163
|
-
map-get($type, "label-medium", "letter-spacing")
|
|
164
|
-
);
|
|
165
|
-
line-height: px-to-rem(map-get($type, "label-medium", "line-height"));
|
|
166
|
-
font-weight: 700;
|
|
154
|
+
@include typography("highlight-medium-bold");
|
|
167
155
|
}
|
|
168
156
|
|
|
169
157
|
&__large {
|
|
170
|
-
|
|
171
|
-
font-size: px-to-rem(map-get($type, "label-large", "size"));
|
|
172
|
-
letter-spacing: px-to-rem(
|
|
173
|
-
map-get($type, "label-large", "letter-spacing")
|
|
174
|
-
);
|
|
175
|
-
line-height: px-to-rem(map-get($type, "label-large", "line-height"));
|
|
176
|
-
font-weight: 700;
|
|
158
|
+
@include typography("highlight-large");
|
|
177
159
|
}
|
|
178
160
|
}
|
|
179
161
|
|
|
180
162
|
label {
|
|
181
163
|
font-family: inherit;
|
|
182
164
|
font-size: inherit;
|
|
183
|
-
letter-spacing: inherit;
|
|
184
165
|
line-height: inherit;
|
|
185
166
|
font-weight: inherit;
|
|
186
167
|
}
|
|
@@ -198,7 +179,7 @@
|
|
|
198
179
|
grid-area: helper;
|
|
199
180
|
color: var(--ilo-form-control-helper-color);
|
|
200
181
|
font-family: var(--ilo-fonts-copy);
|
|
201
|
-
@include
|
|
182
|
+
@include typography("body-xsmall");
|
|
202
183
|
}
|
|
203
184
|
|
|
204
185
|
.ilo--tooltip--wrapper {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&--datecopy {
|
|
102
|
-
@include
|
|
102
|
+
@include typography("body-medium");
|
|
103
103
|
margin-bottom: px-to-rem(28px);
|
|
104
104
|
color: map-get($color, "hero", "card", "light", "datecopy", "color");
|
|
105
105
|
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&--eyebrow {
|
|
121
|
-
@include
|
|
122
|
-
margin-bottom:
|
|
121
|
+
@include typography("body-medium");
|
|
122
|
+
margin-bottom: spacing(4);
|
|
123
123
|
color: map-get($color, "hero", "card", "light", "eyebrow", "color");
|
|
124
124
|
|
|
125
125
|
#{$c}__theme__dark & {
|
|
@@ -136,30 +136,20 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&--intro {
|
|
139
|
-
@include
|
|
140
|
-
margin-bottom: px-to-rem(28px);
|
|
139
|
+
@include typography("body-large", true);
|
|
141
140
|
|
|
142
141
|
@include breakpoint("lg") {
|
|
143
|
-
@include
|
|
142
|
+
@include typography("body-large");
|
|
144
143
|
}
|
|
144
|
+
margin-bottom: spacing(7);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&--title {
|
|
148
|
-
@include
|
|
149
|
-
|
|
150
|
-
"margin-bottom",
|
|
151
|
-
40px,
|
|
152
|
-
"headline-2",
|
|
153
|
-
"display",
|
|
154
|
-
"base",
|
|
155
|
-
"copy"
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
font-family: var(--ilo-fonts-display);
|
|
159
|
-
font-weight: 700;
|
|
148
|
+
@include typography("heading-1", true);
|
|
149
|
+
margin-bottom: spacing(4);
|
|
160
150
|
|
|
161
151
|
@include breakpoint("lg") {
|
|
162
|
-
@include
|
|
152
|
+
@include typography("heading-1");
|
|
163
153
|
}
|
|
164
154
|
}
|
|
165
155
|
}
|
|
@@ -2,7 +2,40 @@
|
|
|
2
2
|
@use "../functions" as *;
|
|
3
3
|
@import "../mixins";
|
|
4
4
|
|
|
5
|
+
@mixin image-caption-styles {
|
|
6
|
+
figcaption {
|
|
7
|
+
border-inline-start: var(--ilo-border-lg) solid
|
|
8
|
+
var(--ilo-color-borders-default);
|
|
9
|
+
color: var(--ilo-color-gray-accessible);
|
|
10
|
+
font-size: var(--ilo-font-size-sm);
|
|
11
|
+
line-height: var(--ilo-line-height-xlg);
|
|
12
|
+
font-weight: var(--ilo-font-weight-regular);
|
|
13
|
+
letter-spacing: var(--ilo-letter-spacing-md);
|
|
14
|
+
margin-top: spacing(4);
|
|
15
|
+
padding-inline-start: spacing(2);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin image-caption-dark-styles {
|
|
20
|
+
figcaption {
|
|
21
|
+
color: var(--ilo-color-white);
|
|
22
|
+
border-inline-color: var(--ilo-color-gray-light-semi-transparent);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin image-styles {
|
|
27
|
+
figure {
|
|
28
|
+
width: 100%;
|
|
29
|
+
line-height: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
img {
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
5
37
|
.ilo--image {
|
|
38
|
+
$self: &;
|
|
6
39
|
position: relative;
|
|
7
40
|
|
|
8
41
|
&--wrapper {
|
|
@@ -11,45 +44,57 @@
|
|
|
11
44
|
width: 100%;
|
|
12
45
|
}
|
|
13
46
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
47
|
+
@include image-styles;
|
|
48
|
+
@include image-caption-styles;
|
|
17
49
|
|
|
18
|
-
&--
|
|
19
|
-
|
|
20
|
-
|
|
50
|
+
&--credit {
|
|
51
|
+
@include caption-icon-wrapper("right", auto, 24px);
|
|
52
|
+
position: absolute;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
left: 0;
|
|
21
55
|
}
|
|
22
56
|
|
|
23
|
-
&--
|
|
24
|
-
border-left: var(--ilo-border-lg) solid var(--ilo-color-borders-default);
|
|
25
|
-
color: var(--ilo-color-gray-accessible);
|
|
26
|
-
font-weight: var(--ilo-font-weight-regular);
|
|
27
|
-
margin-top: spacing(4);
|
|
57
|
+
&--tooltip {
|
|
28
58
|
padding-left: spacing(2);
|
|
29
|
-
|
|
59
|
+
padding-right: spacing(1);
|
|
30
60
|
}
|
|
31
61
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
62
|
+
&--label {
|
|
63
|
+
display: none;
|
|
64
|
+
font-size: var(--ilo-font-size-xsm);
|
|
65
|
+
line-height: var(--ilo-line-height-xsm);
|
|
66
|
+
color: var(--ilo-color-gray-light);
|
|
67
|
+
padding-left: spacing(3);
|
|
68
|
+
padding-right: spacing(2);
|
|
69
|
+
}
|
|
36
70
|
|
|
37
|
-
|
|
38
|
-
|
|
71
|
+
[dir="rtl"] & {
|
|
72
|
+
&--credit {
|
|
73
|
+
@include caption-icon-wrapper("left", auto, 24px);
|
|
74
|
+
position: absolute;
|
|
75
|
+
left: auto;
|
|
76
|
+
right: 0;
|
|
39
77
|
}
|
|
40
78
|
}
|
|
41
79
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
80
|
+
@include breakpoint("lg") {
|
|
81
|
+
&--label {
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
84
|
+
&--tooltip {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__theme__dark {
|
|
90
|
+
@include image-caption-dark-styles;
|
|
91
|
+
|
|
92
|
+
#{$self}--credit {
|
|
93
|
+
--ilo-caption-icon-wrapper-bg-color: var(--ilo-color-white);
|
|
48
94
|
}
|
|
49
95
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
right: 0;
|
|
96
|
+
#{$self}--label {
|
|
97
|
+
color: var(--ilo-color-gray-charcoal);
|
|
53
98
|
}
|
|
54
99
|
}
|
|
55
100
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
font-family: var(--ilo-fonts-copy);
|
|
19
19
|
font-weight: map-get($type, "weights", "section");
|
|
20
|
-
@include
|
|
20
|
+
@include typography("highlight-medium");
|
|
21
21
|
height: px-to-rem(48px);
|
|
22
22
|
margin: spacing(0);
|
|
23
23
|
outline: none;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
&--headline {
|
|
11
11
|
font-family: var(--ilo-fonts-display);
|
|
12
12
|
font-weight: map-get($type, "weights", "label");
|
|
13
|
-
@include
|
|
13
|
+
@include typography("heading-3");
|
|
14
14
|
@include textmargin("margin-bottom", 30px, "headline-5", "display", 0, 0);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
&--headline {
|
|
19
19
|
font-family: var(--ilo-fonts-display);
|
|
20
20
|
font-weight: map-get($type, "weights", "label");
|
|
21
|
-
@include
|
|
21
|
+
@include typography("highlight-large");
|
|
22
22
|
@include textmargin("margin-bottom", 27px, "headline-6", "display", 0, 0);
|
|
23
23
|
@include textmargin(
|
|
24
24
|
"margin-top",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
color: map-get($color, "link", "text", "default");
|
|
91
91
|
font-family: var(--ilo-fonts-display);
|
|
92
92
|
font-weight: map-get($type, "weights", "section");
|
|
93
|
-
@include
|
|
93
|
+
@include typography("highlight-medium-bold");
|
|
94
94
|
padding-top: spacing(4);
|
|
95
95
|
padding-bottom: spacing(4);
|
|
96
96
|
text-decoration: none;
|
|
@@ -55,22 +55,22 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
#{$self}--title {
|
|
58
|
-
@include
|
|
58
|
+
@include typography("heading-2", true);
|
|
59
59
|
margin-bottom: var(--standard-spacing);
|
|
60
60
|
color: var(--ilo-color-gray-charcoal);
|
|
61
61
|
|
|
62
62
|
@include breakpoint("md") {
|
|
63
|
-
@include
|
|
63
|
+
@include typography("heading-2");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
#{$self}--intro {
|
|
68
|
-
@include
|
|
68
|
+
@include typography("body-large", true);
|
|
69
69
|
margin-bottom: var(--standard-spacing);
|
|
70
70
|
color: var(--ilo-color-gray-charcoal);
|
|
71
71
|
|
|
72
72
|
@include breakpoint("md") {
|
|
73
|
-
@include
|
|
73
|
+
@include typography("body-large");
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
|
|
98
98
|
#{$self}--title {
|
|
99
99
|
@include breakpoint("md") {
|
|
100
|
-
@include
|
|
100
|
+
@include typography("heading-3", true);
|
|
101
101
|
margin-bottom: var(--narrow-spacing);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
#{$self}--intro {
|
|
106
106
|
@include breakpoint("md") {
|
|
107
|
-
@include
|
|
107
|
+
@include typography("body-medium", true);
|
|
108
108
|
margin-bottom: var(--narrow-spacing);
|
|
109
109
|
}
|
|
110
110
|
}
|