@ilo-org/styles 1.10.1 → 1.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/README.md +87 -20
- package/css/components/container.css +1 -1
- package/css/components/contextmenu.css +1 -1
- package/css/components/factlistcard.css +1 -1
- package/css/components/fieldset.css +1 -1
- package/css/components/file-upload.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -1
- package/css/components/input.css +1 -1
- package/css/components/linklist.css +1 -1
- package/css/components/logo.css +1 -1
- package/css/components/logogrid.css +1 -1
- package/css/components/modal.css +1 -1
- package/css/components/navigation.css +1 -1
- package/css/components/notification.css +1 -1
- package/css/components/radio.css +1 -1
- package/css/components/readmore.css +1 -1
- package/css/components/searchfield.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/toggle.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 +7 -9
- package/css/index.css.map +1 -1
- package/css/monorepo.css +7 -9
- package/css/monorepo.css.map +1 -1
- package/package.json +2 -4
- package/scss/_animations.scss +0 -5
- package/scss/_config.scss +6 -0
- package/scss/_functions.scss +4 -35
- package/scss/{_tokens.scss → _icons.scss} +1 -1
- package/scss/_mixins.scss +13 -115
- package/scss/_typography.scss +4 -13
- package/scss/_typographymonorepo.scss +33 -24
- package/scss/components/_accordion.scss +0 -1
- package/scss/components/_blockquote.scss +0 -1
- package/scss/components/_breadcrumb.scss +0 -1
- package/scss/components/_button.scss +1 -2
- package/scss/components/_callout.scss +0 -1
- package/scss/components/_card.scss +0 -1
- package/scss/components/_cardgroup.scss +0 -1
- package/scss/components/_container.scss +2 -3
- package/scss/components/_contextmenu.scss +2 -3
- package/scss/components/_datacard.scss +0 -1
- package/scss/components/_datepicker.scss +0 -1
- package/scss/components/_detailcard.scss +0 -1
- package/scss/components/_empty.scss +0 -1
- package/scss/components/_factlistcard.scss +1 -2
- package/scss/components/_featurecard.scss +0 -1
- package/scss/components/_fieldset.scss +4 -12
- package/scss/components/_file-upload.scss +24 -32
- package/scss/components/_form.scss +0 -1
- package/scss/components/_formcontrol.scss +0 -1
- package/scss/components/_hero.scss +47 -53
- package/scss/components/_herocard.scss +35 -36
- package/scss/components/_image.scss +0 -1
- package/scss/components/_input.scss +8 -28
- package/scss/components/_languagetoggle.scss +0 -1
- package/scss/components/_link.scss +0 -1
- package/scss/components/_linklist.scss +18 -31
- package/scss/components/_list.scss +0 -1
- package/scss/components/_loading.scss +0 -1
- package/scss/components/_logo.scss +2 -4
- package/scss/components/_logogrid.scss +3 -4
- package/scss/components/_modal.scss +1 -2
- package/scss/components/_multilinkcard.scss +0 -1
- package/scss/components/_navigation.scss +102 -103
- package/scss/components/_notification.scss +77 -98
- package/scss/components/_pagination.scss +0 -1
- package/scss/components/_profile.scss +0 -1
- package/scss/components/_promocard.scss +0 -1
- package/scss/components/_radio.scss +8 -9
- package/scss/components/_readmore.scss +8 -9
- package/scss/components/_richtext.scss +0 -1
- package/scss/components/_scorecard.scss +0 -1
- package/scss/components/_searchfield.scss +27 -44
- package/scss/components/_statcard.scss +9 -17
- package/scss/components/_status.scss +0 -1
- package/scss/components/_table.scss +31 -32
- package/scss/components/_tableofcontents.scss +31 -21
- package/scss/components/_tabs.scss +0 -1
- package/scss/components/_tag.scss +0 -1
- package/scss/components/_textarea.scss +10 -28
- package/scss/components/_textcard.scss +0 -1
- package/scss/components/_textinput.scss +9 -28
- package/scss/components/_toggle.scss +6 -45
- package/scss/components/_tooltip.scss +23 -17
- package/scss/components/_video.scss +43 -20
- package/scss/components/navigation/_nav-compact.scss +1 -1
- package/scss/components/navigation/_nav-complex.scss +1 -1
- package/scss/components/navigation/_nav-main.scss +1 -1
- package/scss/components/navigation/internal/_nav-dropdown.scss +1 -1
- package/scss/components/navigation/internal/_nav-grid.scss +1 -1
- package/scss/components/navigation/internal/_nav-menu.scss +1 -1
- package/scss/components/navigation/internal/_nav-shared.scss +1 -1
- package/scss/components/navigation/internal/mobile/_nav-mobile-drawer.scss +1 -1
- package/scss/components/navigation/internal/mobile/_nav-mobile-menu.scss +1 -1
- package/scss/components/navigation/internal/mobile/_nav-mobile.scss +1 -1
- package/scss/components/photogallery/_expandable-caption.scss +1 -1
- package/scss/components/photogallery/_lightbox.scss +1 -1
- package/scss/components/photogallery/_lightboxgallery.scss +1 -1
- package/scss/components/photogallery/_photogallery-controls.scss +1 -1
- package/scss/components/photogallery/_photogallery-thumbnails.scss +1 -1
- package/scss/components/photogallery/_photogallery.scss +1 -1
- package/scss/theme/_foundation.scss +6 -0
- package/scss/theme/_typography.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": "1.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/international-labour-organization/designsystem.git",
|
|
@@ -35,12 +35,10 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"author": "@justintemps, @johnpauldavis, @avrilpearl, @ghlost",
|
|
39
38
|
"license": "Apache-2.0",
|
|
40
39
|
"dependencies": {
|
|
41
40
|
"@ilo-org/fonts": "2.0.0",
|
|
42
|
-
"@ilo-org/icons": "2.4.0"
|
|
43
|
-
"@ilo-org/themes": "0.9.1"
|
|
41
|
+
"@ilo-org/icons": "2.4.0"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
44
|
"cssnano": "^7.0.6",
|
package/scss/_animations.scss
CHANGED
package/scss/_config.scss
CHANGED
package/scss/_functions.scss
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use "./config" as *;
|
|
2
|
+
|
|
1
3
|
//*------------------------------------*\
|
|
2
4
|
// $FUNCTIONS
|
|
3
5
|
//*------------------------------------*/
|
|
4
|
-
@use "
|
|
6
|
+
@use "icons" as *;
|
|
5
7
|
// ======================================
|
|
6
8
|
// String Replace
|
|
7
9
|
// ======================================
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
@if index($px, "%") {
|
|
45
47
|
@return $px;
|
|
46
48
|
} @else {
|
|
47
|
-
@return math.div(strip-units($px), strip-units($
|
|
49
|
+
@return math.div(strip-units($px), strip-units($base-font-size)) * 1rem;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -77,36 +79,3 @@
|
|
|
77
79
|
$output: str-replace($icon, $fill, $color);
|
|
78
80
|
@return $output;
|
|
79
81
|
}
|
|
80
|
-
|
|
81
|
-
// =========================================
|
|
82
|
-
// Adjust a margin to account for line-height
|
|
83
|
-
// and font descenders
|
|
84
|
-
//
|
|
85
|
-
// $descender is the height of the descender
|
|
86
|
-
// in pixels when the font is $typesize
|
|
87
|
-
// $lineheight is the line-height when
|
|
88
|
-
// the font is $typesize
|
|
89
|
-
//
|
|
90
|
-
// include the second set of values
|
|
91
|
-
// if your margin is between two sets
|
|
92
|
-
// of text
|
|
93
|
-
// =========================================
|
|
94
|
-
@function margin-adjust(
|
|
95
|
-
$margin,
|
|
96
|
-
$descender1,
|
|
97
|
-
$lineheight1,
|
|
98
|
-
$typesize1,
|
|
99
|
-
$descender2: 0,
|
|
100
|
-
$lineheight2: 0,
|
|
101
|
-
$typesize2: 0
|
|
102
|
-
) {
|
|
103
|
-
$lineHeightScale: math.div($lineheight1, $typesize1);
|
|
104
|
-
$finalval: ($lineHeightScale - 1) + ($descender1 * $typesize1);
|
|
105
|
-
@if $descender2 > 0 and $lineheight2 > 0 and $typesize2 > 0 {
|
|
106
|
-
$lineHeightScale2: math.div($lineheight2, $typesize2);
|
|
107
|
-
$val2: ($lineHeightScale2 - 1) + ($descender2 * $typesize2);
|
|
108
|
-
$finalval: $finalval + $val2;
|
|
109
|
-
}
|
|
110
|
-
$adjusted: $margin - $finalval;
|
|
111
|
-
@return $adjusted;
|
|
112
|
-
}
|
package/scss/_mixins.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//*------------------------------------*\
|
|
2
2
|
// $MIXINS
|
|
3
3
|
//*------------------------------------*/
|
|
4
|
-
@use "
|
|
4
|
+
@use "icons" as *;
|
|
5
5
|
@use "functions" as *;
|
|
6
6
|
@use "animations" as *;
|
|
7
7
|
@use "theme/breakpoints" as *;
|
|
@@ -45,92 +45,9 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// ======================================
|
|
49
|
-
// Text Margin
|
|
50
|
-
//
|
|
51
|
-
// calculates reduced margin to account
|
|
52
|
-
// for line-height and descenders
|
|
53
|
-
// ======================================
|
|
54
|
-
|
|
55
|
-
@mixin textmargin(
|
|
56
|
-
$margin,
|
|
57
|
-
$marginval,
|
|
58
|
-
$stylename,
|
|
59
|
-
$descender,
|
|
60
|
-
$stylename2: false,
|
|
61
|
-
$descender2: false
|
|
62
|
-
) {
|
|
63
|
-
@if $stylename2 != false {
|
|
64
|
-
#{$margin}: px-to-rem(
|
|
65
|
-
margin-adjust(
|
|
66
|
-
$marginval,
|
|
67
|
-
map-get($type, "descenders", $descender),
|
|
68
|
-
map-get($type, $stylename, "size"),
|
|
69
|
-
map-get($type, $stylename, "line-height")
|
|
70
|
-
)
|
|
71
|
-
);
|
|
72
|
-
} @else {
|
|
73
|
-
#{$margin}: px-to-rem(
|
|
74
|
-
margin-adjust(
|
|
75
|
-
$marginval,
|
|
76
|
-
map-get($type, "descenders", $descender),
|
|
77
|
-
map-get($type, $stylename, "size"),
|
|
78
|
-
map-get($type, $stylename, "line-height"),
|
|
79
|
-
map-get($type, "descenders", $descender2),
|
|
80
|
-
map-get($type, $stylename2, "size"),
|
|
81
|
-
map-get($type, $stylename2, "line-height")
|
|
82
|
-
)
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// ======================================
|
|
88
|
-
// Border Values
|
|
89
|
-
// ======================================
|
|
90
|
-
|
|
91
|
-
@mixin bordervalues($mappath, $location, $state: "default") {
|
|
92
|
-
border-bottom: px-to-rem(
|
|
93
|
-
map-get($spacing, $location, $mappath, $state, "border", "bottom")
|
|
94
|
-
)
|
|
95
|
-
solid map-get($color, $location, $mappath, $state, "border", "bottom");
|
|
96
|
-
border-left: px-to-rem(
|
|
97
|
-
map-get($spacing, $location, $mappath, $state, "border", "left")
|
|
98
|
-
)
|
|
99
|
-
solid map-get($color, $location, $mappath, $state, "border", "left");
|
|
100
|
-
border-right: px-to-rem(
|
|
101
|
-
map-get($spacing, $location, $mappath, $state, "border", "right")
|
|
102
|
-
)
|
|
103
|
-
solid map-get($color, $location, $mappath, $state, "border", "right");
|
|
104
|
-
border-top: px-to-rem(
|
|
105
|
-
map-get($spacing, $location, $mappath, $state, "border", "top")
|
|
106
|
-
)
|
|
107
|
-
solid map-get($color, $location, $mappath, $state, "border", "top");
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// ======================================
|
|
111
|
-
// Border Radius Values
|
|
112
|
-
// ======================================
|
|
113
|
-
|
|
114
|
-
@mixin borderradius($mappath) {
|
|
115
|
-
border-bottom-left-radius: map-get($radius, $mappath, "bottom-left");
|
|
116
|
-
border-bottom-right-radius: map-get($radius, $mappath, "bottom-right");
|
|
117
|
-
border-top-left-radius: map-get($radius, $mappath, "top-left");
|
|
118
|
-
border-top-right-radius: map-get($radius, $mappath, "top-right");
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// ======================================
|
|
122
|
-
// Box Padding Values
|
|
123
|
-
// ======================================
|
|
124
|
-
|
|
125
|
-
@mixin boxpadding($mappath, $size) {
|
|
126
|
-
padding-bottom: map-get($spacing, "boxpadding", $mappath, $size, "bottom");
|
|
127
|
-
padding-left: map-get($spacing, "boxpadding", $mappath, $size, "left");
|
|
128
|
-
padding-right: map-get($spacing, "boxpadding", $mappath, $size, "right");
|
|
129
|
-
padding-top: map-get($spacing, "boxpadding", $mappath, $size, "top");
|
|
130
|
-
}
|
|
131
|
-
|
|
132
48
|
// ======================================
|
|
133
49
|
// Data URL Icon
|
|
50
|
+
// @TODO: Deprecate all usage of dataurlicon and replace with icon mixin
|
|
134
51
|
// ======================================
|
|
135
52
|
|
|
136
53
|
@mixin dataurlicon($name, $color: $color-base-neutrals-black) {
|
|
@@ -138,6 +55,10 @@
|
|
|
138
55
|
background-repeat: no-repeat;
|
|
139
56
|
}
|
|
140
57
|
|
|
58
|
+
// ======================================
|
|
59
|
+
// Icon
|
|
60
|
+
// ======================================
|
|
61
|
+
|
|
141
62
|
@mixin icon($name, $color: black) {
|
|
142
63
|
$icon: map-get($icons, $name);
|
|
143
64
|
mask-image: url("#{$icon}");
|
|
@@ -147,33 +68,6 @@
|
|
|
147
68
|
background-color: $color;
|
|
148
69
|
}
|
|
149
70
|
|
|
150
|
-
// ======================================
|
|
151
|
-
// Video Button
|
|
152
|
-
// ======================================
|
|
153
|
-
@mixin videobutton($name, $size: "standard") {
|
|
154
|
-
$height: if($size == "big", 72px, 32px);
|
|
155
|
-
$box: if($size == "big", 80px, 40px);
|
|
156
|
-
$width: $height;
|
|
157
|
-
$color: $color-ux-video-controls-default-icon;
|
|
158
|
-
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
border: none;
|
|
161
|
-
background-color: $color-ux-video-controls-default-background;
|
|
162
|
-
width: $box;
|
|
163
|
-
height: $box;
|
|
164
|
-
background-position: center center;
|
|
165
|
-
background-repeat: no-repeat;
|
|
166
|
-
background-size: $width $height;
|
|
167
|
-
@include dataurlicon($name, $color);
|
|
168
|
-
|
|
169
|
-
&:hover,
|
|
170
|
-
&:focus {
|
|
171
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
172
|
-
$color: $color-ux-video-controls-hover-icon;
|
|
173
|
-
@include dataurlicon($name, $color);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
71
|
// ======================================
|
|
178
72
|
// Link styles
|
|
179
73
|
// ======================================
|
|
@@ -310,11 +204,11 @@
|
|
|
310
204
|
}
|
|
311
205
|
}
|
|
312
206
|
|
|
313
|
-
@mixin hero-grid-rows($min-height:
|
|
207
|
+
@mixin hero-grid-rows($min-height: var(--hero-image-min-height)) {
|
|
314
208
|
grid-template-rows:
|
|
315
209
|
minmax($min-height, 1fr)
|
|
316
|
-
|
|
317
|
-
|
|
210
|
+
var(--hero-tooltip-height)
|
|
211
|
+
var(--hero-card-corner-cut-height-sm)
|
|
318
212
|
auto;
|
|
319
213
|
}
|
|
320
214
|
|
|
@@ -379,6 +273,10 @@
|
|
|
379
273
|
}
|
|
380
274
|
}
|
|
381
275
|
|
|
276
|
+
// ======================================
|
|
277
|
+
// Typography
|
|
278
|
+
// ======================================
|
|
279
|
+
|
|
382
280
|
@mixin typography($variant, $mobile: false) {
|
|
383
281
|
@if $variant ==
|
|
384
282
|
"heading-1" or
|
package/scss/_typography.scss
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
// Adapted from Carbon Library
|
|
2
|
-
//
|
|
3
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
4
|
-
// LICENSE file in the root directory of this source tree.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
// Load the theme vars and fonts
|
|
8
|
-
@use "@ilo-org/themes/build/scss/tokens" as *;
|
|
9
|
-
|
|
10
1
|
// Set Arabic fonts
|
|
11
2
|
:root[lang*="ar"],
|
|
12
3
|
[lang*="ar"] {
|
|
@@ -37,11 +28,11 @@
|
|
|
37
28
|
|
|
38
29
|
html,
|
|
39
30
|
body {
|
|
40
|
-
color:
|
|
31
|
+
color: var(--ilo-color-gray-charcoal);
|
|
41
32
|
font-family: var(--ilo-fonts-copy);
|
|
42
|
-
font-size:
|
|
43
|
-
line-height:
|
|
44
|
-
letter-spacing:
|
|
33
|
+
font-size: var(--ilo-font-size-base);
|
|
34
|
+
line-height: var(--ilo-line-height-base);
|
|
35
|
+
letter-spacing: normal;
|
|
45
36
|
-webkit-font-smoothing: antialiased;
|
|
46
37
|
}
|
|
47
38
|
|
|
@@ -1,20 +1,41 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
4
|
-
// LICENSE file in the root directory of this source tree.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
// Load the theme vars and fonts
|
|
8
|
-
@use "@ilo-org/themes/build/scss/tokens" as *;
|
|
1
|
+
// Load the fonts
|
|
9
2
|
@forward "@ilo-org/fonts/font-css/fonts";
|
|
10
3
|
|
|
4
|
+
// Set Arabic fonts
|
|
5
|
+
:root[lang*="ar"],
|
|
6
|
+
[lang*="ar"] {
|
|
7
|
+
--ilo-fonts-display: var(--ilo-fonts-display-ar);
|
|
8
|
+
--ilo-fonts-copy: var(--ilo-fonts-copy-ar);
|
|
9
|
+
|
|
10
|
+
// Letter spacing overrides for Arabic. Different letter spacing values cause incorrect
|
|
11
|
+
// glpyhs to be rendered. See https://github.com/international-labour-organization/designsystem/issues/1547
|
|
12
|
+
--ilo-letter-spacing-xsm: 0;
|
|
13
|
+
--ilo-letter-spacing-sm: 0;
|
|
14
|
+
--ilo-letter-spacing-md: 0;
|
|
15
|
+
--ilo-letter-spacing-lg: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Set Chinese system fonts
|
|
19
|
+
:root[lang*="zh"],
|
|
20
|
+
[lang*="zh"] {
|
|
21
|
+
--ilo-fonts-display: var(--ilo-fonts-display-zh);
|
|
22
|
+
--ilo-fonts-copy: var(--ilo-fonts-copy-zh);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Set Japanese system fonts
|
|
26
|
+
:root[lang*="ja"],
|
|
27
|
+
[lang*="ja"] {
|
|
28
|
+
--ilo-fonts-display: var(--ilo-fonts-display-jp);
|
|
29
|
+
--ilo-fonts-copy: var(--ilo-fonts-copy-jp);
|
|
30
|
+
}
|
|
31
|
+
|
|
11
32
|
html,
|
|
12
33
|
body {
|
|
13
|
-
color:
|
|
34
|
+
color: var(--ilo-color-gray-charcoal);
|
|
14
35
|
font-family: var(--ilo-fonts-copy);
|
|
15
|
-
font-size:
|
|
16
|
-
line-height:
|
|
17
|
-
letter-spacing:
|
|
36
|
+
font-size: var(--ilo-font-size-base);
|
|
37
|
+
line-height: var(--ilo-line-height-base);
|
|
38
|
+
letter-spacing: normal;
|
|
18
39
|
-webkit-font-smoothing: antialiased;
|
|
19
40
|
}
|
|
20
41
|
|
|
@@ -26,15 +47,3 @@ h5,
|
|
|
26
47
|
h5 {
|
|
27
48
|
font-family: var(--ilo-fonts-display);
|
|
28
49
|
}
|
|
29
|
-
|
|
30
|
-
// Set Chinese system fonts
|
|
31
|
-
html[lang*="zh"] {
|
|
32
|
-
--ilo-fonts-display: var(--ilo-fonts-display-zh);
|
|
33
|
-
--ilo-fonts-copy: var(--ilo-fonts-copy-zh);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Set Japanese system fonts
|
|
37
|
-
html[lang*="ja"] {
|
|
38
|
-
--ilo-fonts-display: var(--ilo-fonts-display-jp);
|
|
39
|
-
--ilo-fonts-copy: var(--ilo-fonts-copy-jp);
|
|
40
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@import "../animations";
|
|
4
3
|
@import "../mixins";
|
|
@@ -6,7 +5,7 @@
|
|
|
6
5
|
.ilo--container {
|
|
7
6
|
margin-right: auto;
|
|
8
7
|
margin-left: auto;
|
|
9
|
-
max-width:
|
|
10
|
-
padding: 0
|
|
8
|
+
max-width: var(--ilo-layout-max-width);
|
|
9
|
+
padding: 0 var(--ilo-layout-padding);
|
|
11
10
|
width: 100%;
|
|
12
11
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@import "../mixins";
|
|
4
3
|
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
&--link {
|
|
57
|
-
border-bottom:
|
|
56
|
+
border-bottom: var(--ilo-border-md) solid var(--ilo-color-white);
|
|
58
57
|
color: var(--ilo-color-blue-dark);
|
|
59
58
|
display: inline-block;
|
|
60
59
|
padding: spacing(4) spacing(2);
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
color: var(--ilo-color-blue);
|
|
73
72
|
outline: none;
|
|
74
73
|
text-decoration: underline;
|
|
75
|
-
text-decoration-thickness:
|
|
74
|
+
text-decoration-thickness: var(--ilo-border-md);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@use "../animations" as *;
|
|
4
3
|
@import "../mixins";
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
#{$self}--title {
|
|
70
|
-
color:
|
|
69
|
+
color: var(--ilo-color-gray-charcoal);
|
|
71
70
|
font-size: var(--ilo-font-size-xlg);
|
|
72
71
|
line-height: var(--ilo-line-height-md);
|
|
73
72
|
letter-spacing: var(--ilo-letter-spacing-xsm);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@use "sass:math";
|
|
4
3
|
@import "../mixins";
|
|
@@ -31,11 +30,11 @@
|
|
|
31
30
|
justify-content: flex-start;
|
|
32
31
|
align-items: flex-start;
|
|
33
32
|
flex-direction: $value;
|
|
34
|
-
|
|
33
|
+
gap: px-to-rem($gap);
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
&--legend-wrapper {
|
|
38
|
-
|
|
37
|
+
margin-bottom: px-to-rem($gap);
|
|
39
38
|
|
|
40
39
|
.ilo--tooltip--wrapper {
|
|
41
40
|
top: px-to-rem(-1px);
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
|
|
45
44
|
&--legend {
|
|
46
45
|
font-family: var(--ilo-fonts-display);
|
|
47
|
-
font-weight:
|
|
46
|
+
font-weight: var(--ilo-font-weight-bold);
|
|
48
47
|
display: flex;
|
|
49
48
|
flex-flow: row nowrap;
|
|
50
49
|
align-items: center;
|
|
@@ -105,14 +104,7 @@
|
|
|
105
104
|
&__error {
|
|
106
105
|
font-family: var(--ilo-fonts-copy);
|
|
107
106
|
@include typography("body-xsmall");
|
|
108
|
-
|
|
109
|
-
"margin-top",
|
|
110
|
-
map-get($spacing, "padding-1-5"),
|
|
111
|
-
"body-xxs",
|
|
112
|
-
"copy",
|
|
113
|
-
0,
|
|
114
|
-
0
|
|
115
|
-
);
|
|
107
|
+
margin-top: px-to-rem(6px);
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
&--helper {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "../tokens" as *;
|
|
2
1
|
@use "../functions" as *;
|
|
3
2
|
@import "../mixins";
|
|
4
3
|
|
|
@@ -12,36 +11,34 @@
|
|
|
12
11
|
width: 0;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
background-color:
|
|
16
|
-
border:
|
|
17
|
-
|
|
18
|
-
color: map-get($color, "ux", "labels", "actionable");
|
|
14
|
+
background-color: var(--ilo-color-white);
|
|
15
|
+
border: var(--ilo-border-sm) solid var(--ilo-color-gray-base);
|
|
16
|
+
color: var(--ilo-color-blue-dark);
|
|
19
17
|
content: attr(data-label);
|
|
20
18
|
display: inline-block;
|
|
21
19
|
font-family: var(--ilo-fonts-display);
|
|
22
|
-
font-weight:
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
font-weight: var(--ilo-font-weight-bold);
|
|
21
|
+
border-radius: px-to-rem(2px);
|
|
22
|
+
padding-inline: px-to-rem(18px);
|
|
23
|
+
padding-block: px-to-rem(7px);
|
|
25
24
|
@include typography("highlight-medium");
|
|
26
25
|
|
|
27
26
|
.ilo--form__theme__dark & {
|
|
28
|
-
color:
|
|
27
|
+
color: var(--ilo-color-blue-dark);
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
&:hover {
|
|
32
|
-
background-color:
|
|
33
|
-
border:
|
|
34
|
-
map-get($color, "ux", "borders", "hover") solid;
|
|
31
|
+
background-color: var(--ilo-color-blue-lighter);
|
|
32
|
+
border: var(--ilo-border-sm) solid var(--ilo-color-blue);
|
|
35
33
|
cursor: pointer;
|
|
36
|
-
color:
|
|
34
|
+
color: var(--ilo-color-blue);
|
|
37
35
|
outline: none;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
&:focus {
|
|
41
|
-
background-color:
|
|
42
|
-
border:
|
|
43
|
-
|
|
44
|
-
color: map-get($color, "ux", "labels", "focus");
|
|
39
|
+
background-color: var(--ilo-color-white);
|
|
40
|
+
border: var(--ilo-border-sm) solid var(--ilo-color-blue);
|
|
41
|
+
color: var(--ilo-color-blue);
|
|
45
42
|
outline: none;
|
|
46
43
|
}
|
|
47
44
|
|
|
@@ -50,10 +47,9 @@
|
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
&:active {
|
|
53
|
-
background-color:
|
|
54
|
-
border:
|
|
55
|
-
|
|
56
|
-
color: map-get($color, "ux", "labels", "active");
|
|
50
|
+
background-color: var(--ilo-color-blue);
|
|
51
|
+
border: var(--ilo-border-md) solid var(--ilo-color-blue-dark);
|
|
52
|
+
color: var(--ilo-color-white);
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
&:disabled {
|
|
@@ -64,14 +60,9 @@
|
|
|
64
60
|
&:invalid,
|
|
65
61
|
&.error,
|
|
66
62
|
.error & {
|
|
67
|
-
background-color:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"input",
|
|
71
|
-
"error",
|
|
72
|
-
"background"
|
|
73
|
-
);
|
|
74
|
-
@include bordervalues("input", "formelements", "error");
|
|
63
|
+
background-color: var(--ilo-color-white);
|
|
64
|
+
border: var(--ilo-border-md) solid var(--ilo-color-gray-base);
|
|
65
|
+
border-left: px-to-rem(3px) solid var(--ilo-color-red-dark);
|
|
75
66
|
}
|
|
76
67
|
}
|
|
77
68
|
|
|
@@ -85,11 +76,12 @@
|
|
|
85
76
|
|
|
86
77
|
&--list-item {
|
|
87
78
|
display: block;
|
|
88
|
-
background-color:
|
|
89
|
-
|
|
79
|
+
background-color: var(--ilo-color-gray-light);
|
|
80
|
+
border: var(--ilo-border-md) solid var(--ilo-color-gray-light);
|
|
81
|
+
border-left: px-to-rem(3px) solid var(--ilo-color-blue-dark);
|
|
90
82
|
box-sizing: border-box;
|
|
91
83
|
font-family: var(--ilo-fonts-display);
|
|
92
|
-
font-weight:
|
|
84
|
+
font-weight: var(--ilo-font-weight-medium);
|
|
93
85
|
@include typography("highlight-medium");
|
|
94
86
|
height: px-to-rem(48px);
|
|
95
87
|
outline: none;
|