@ilo-org/styles 1.3.2 → 1.3.3
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/link.css +1 -1
- package/css/components/promocard.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/table.css +1 -1
- package/css/components/tabs.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +2 -2
- package/css/index.css.map +1 -1
- package/css/monorepo.css +2 -2
- package/css/monorepo.css.map +1 -1
- package/package.json +4 -6
- package/scss/_mixins.scss +10 -0
- package/scss/components/_promocard.scss +1 -5
- package/scss/components/_richtext.scss +2 -2
- package/scss/components/_tabs.scss +39 -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.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/international-labour-organization/designsystem.git",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"author": "@justintemps, @johnpauldavis, @avrilpearl, @ghlost",
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@ilo-org/themes": "0.9.1",
|
|
41
42
|
"@ilo-org/fonts": "1.0.0",
|
|
42
|
-
"@ilo-org/icons": "2.0.0"
|
|
43
|
-
"@ilo-org/themes": "0.9.1"
|
|
43
|
+
"@ilo-org/icons": "2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"cssnano": "^7.0.6",
|
|
@@ -54,9 +54,7 @@
|
|
|
54
54
|
"sass": "^1.62.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
|
-
"build": "gulp",
|
|
58
|
-
"build:lib": "pnpm build",
|
|
59
|
-
"build:docs": "pnpm build",
|
|
57
|
+
"build:lib": "gulp",
|
|
60
58
|
"format": "prettier --check . --ignore-path ../../.prettierignore",
|
|
61
59
|
"format:fix": "prettier --write . --ignore-path ../../.prettierignore",
|
|
62
60
|
"lint": "eslint",
|
package/scss/_mixins.scss
CHANGED
|
@@ -198,56 +198,66 @@
|
|
|
198
198
|
text-decoration: underline;
|
|
199
199
|
text-underline-offset: px-to-rem(6px);
|
|
200
200
|
text-decoration-thickness: px-to-rem(1.5px);
|
|
201
|
+
text-decoration-color: var(--ilo-color-blue);
|
|
201
202
|
padding-bottom: spacing(1);
|
|
202
203
|
|
|
203
204
|
&:visited {
|
|
204
205
|
background: map-get($color, "link", "background", "visited");
|
|
205
206
|
color: map-get($color, "link", "text", "visited");
|
|
207
|
+
text-decoration-color: var(--ilo-color-purple);
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
&:hover {
|
|
209
211
|
background: map-get($color, "link", "background", "hover");
|
|
210
212
|
color: map-get($color, "link", "text", "hover");
|
|
211
213
|
text-decoration-thickness: 3px;
|
|
214
|
+
text-decoration-color: var(--ilo-color-blue);
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
&:active {
|
|
215
218
|
background: map-get($color, "link", "background", "active");
|
|
216
219
|
color: map-get($color, "link", "text", "active");
|
|
217
220
|
text-decoration-thickness: 3px;
|
|
221
|
+
text-decoration-color: var(--ilo-color-blue-dark);
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
&:focus {
|
|
221
225
|
background: map-get($color, "link", "background", "focus");
|
|
222
226
|
color: map-get($color, "link", "text", "focus");
|
|
223
227
|
text-decoration-thickness: 3px;
|
|
228
|
+
text-decoration-color: var(--ilo-color-blue-dark);
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
&--dark {
|
|
227
232
|
background: map-get($color, "link", "background-dark", "default");
|
|
228
233
|
color: map-get($color, "link", "text-dark", "default");
|
|
234
|
+
text-decoration-color: var(--ilo-color-gray-light);
|
|
229
235
|
|
|
230
236
|
&:visited {
|
|
231
237
|
background: map-get($color, "link", "background-dark", "visited");
|
|
232
238
|
color: map-get($color, "link", "text-dark", "visited");
|
|
239
|
+
text-decoration-color: var(--ilo-color-gray-base);
|
|
233
240
|
}
|
|
234
241
|
|
|
235
242
|
&:hover {
|
|
236
243
|
background: map-get($color, "link", "background-dark", "hover");
|
|
237
244
|
color: map-get($color, "link", "text-dark", "hover");
|
|
238
245
|
text-decoration-thickness: 3px;
|
|
246
|
+
text-decoration-color: var(--ilo-color-blue);
|
|
239
247
|
}
|
|
240
248
|
|
|
241
249
|
&:active {
|
|
242
250
|
background: map-get($color, "link", "background-dark", "active");
|
|
243
251
|
color: map-get($color, "link", "text-dark", "active");
|
|
244
252
|
text-decoration-thickness: 3px;
|
|
253
|
+
text-decoration-color: var(--ilo-color-blue-dark);
|
|
245
254
|
}
|
|
246
255
|
|
|
247
256
|
&:focus {
|
|
248
257
|
background: map-get($color, "link", "background-dark", "focus");
|
|
249
258
|
color: map-get($color, "link", "text-dark", "focus");
|
|
250
259
|
text-decoration-thickness: 3px;
|
|
260
|
+
text-decoration-color: var(--ilo-color-blue-dark);
|
|
251
261
|
}
|
|
252
262
|
}
|
|
253
263
|
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
|
|
110
110
|
// Horizontal rule (hr) styles
|
|
111
111
|
hr {
|
|
112
|
-
background-color: var(--ilo-color-
|
|
112
|
+
background-color: var(--ilo-color-gray-light);
|
|
113
113
|
border: none;
|
|
114
|
-
height: px-to-rem(
|
|
114
|
+
height: px-to-rem(3px);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.responsive-video-embed {
|
|
@@ -83,9 +83,14 @@
|
|
|
83
83
|
&[aria-selected="true"] {
|
|
84
84
|
background-color: $color-base-neutrals-white;
|
|
85
85
|
border-top: px-to-rem(3px) solid $color-ux-labels-actionable;
|
|
86
|
+
pointer-events: none;
|
|
86
87
|
@include globaltransition("color, background-color, border-color");
|
|
87
88
|
}
|
|
88
89
|
|
|
90
|
+
&[aria-selected="false"]:not(:hover) {
|
|
91
|
+
border-top: px-to-rem(3px) solid transparent;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
&.icon {
|
|
90
95
|
.ilo--icon {
|
|
91
96
|
height: px-to-rem(16px);
|
|
@@ -174,3 +179,37 @@
|
|
|
174
179
|
}
|
|
175
180
|
}
|
|
176
181
|
}
|
|
182
|
+
|
|
183
|
+
// This was proposed by base theme but isn't implemented in the design system yet
|
|
184
|
+
.ilo--tabs--secondary {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-wrap: wrap;
|
|
187
|
+
margin-block: 2rem;
|
|
188
|
+
gap: 10px;
|
|
189
|
+
|
|
190
|
+
.ilo--tabs--selection--button {
|
|
191
|
+
display: block;
|
|
192
|
+
padding: 0.2em 1em;
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
color: #230050;
|
|
196
|
+
text-decoration: none;
|
|
197
|
+
|
|
198
|
+
&[aria-selected="false"] {
|
|
199
|
+
border-bottom: 2px solid transparent;
|
|
200
|
+
background-color: var(--ilo-color-background-highlight);
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
color: var(--ilo-color-blue);
|
|
204
|
+
border-bottom-color: var(--ilo-color-blue);
|
|
205
|
+
background-color: var(--ilo-color-background-hover);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&[aria-selected="true"] {
|
|
210
|
+
color: var(--ilo-color-blue-dark);
|
|
211
|
+
border-bottom: 2px solid var(--ilo-color-blue-dark);
|
|
212
|
+
pointer-events: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|