@ilo-org/styles 1.15.1 → 1.17.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/audioplayer.css +1 -1
- package/css/components/blockquote.css +1 -1
- package/css/components/breadcrumb.css +5 -1
- package/css/components/button.css +1 -1
- package/css/components/callout.css +1 -1
- package/css/components/card.css +3 -1
- package/css/components/cardgroup.css +1 -1
- package/css/components/checkbox.css +1 -1
- package/css/components/contextmenu.css +1 -1
- package/css/components/datacard.css +3 -1
- package/css/components/datepicker.css +1 -1
- package/css/components/detailcard.css +1 -1
- package/css/components/dropdown.css +7 -1
- package/css/components/factlistcard.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/form.css +1 -1
- package/css/components/formcontrol.css +5 -1
- package/css/components/hero.css +9 -1
- package/css/components/herocard.css +1 -1
- package/css/components/image.css +7 -1
- package/css/components/input.css +1 -1
- package/css/components/languagetoggle.css +3 -1
- package/css/components/link.css +1 -1
- package/css/components/linklist.css +1 -1
- package/css/components/list.css +1 -1
- package/css/components/loading.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/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/profile.css +1 -1
- package/css/components/promocard.css +1 -1
- package/css/components/radio.css +1 -1
- package/css/components/readmore.css +1 -1
- package/css/components/richtext.css +7 -1
- package/css/components/scorecard.css +1 -1
- package/css/components/searchfield.css +1 -1
- package/css/components/socialmedia.css +1 -1
- package/css/components/statcard.css +1 -1
- package/css/components/status.css +1 -1
- package/css/components/table.css +1 -1
- package/css/components/tableofcontents.css +1 -1
- package/css/components/tabs.css +3 -1
- package/css/components/tag.css +1 -1
- package/css/components/textarea.css +1 -1
- package/css/components/textcard.css +1 -1
- package/css/components/toggle.css +1 -1
- package/css/components/tooltip.css +1 -1
- package/css/components/video.css +7 -1
- package/css/global.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +69 -3
- package/css/index.css.map +1 -1
- package/css/monorepo.css +69 -3
- package/css/monorepo.css.map +1 -1
- package/package.json +6 -4
- package/scss/_animation-mixins.scss +21 -0
- package/scss/_animations.scss +3 -19
- package/scss/_functions.scss +2 -0
- package/scss/_helpers.scss +12 -0
- package/scss/_mixins.scss +18 -5
- package/scss/_typography.scss +1 -1
- package/scss/_typographymonorepo.scss +1 -1
- package/scss/components/_accordion.scss +10 -10
- package/scss/components/_audioplayer.scss +23 -23
- package/scss/components/_blockquote.scss +6 -6
- package/scss/components/_breadcrumb.scss +10 -6
- package/scss/components/_button.scss +32 -30
- package/scss/components/_callout.scss +24 -15
- package/scss/components/_card.scss +25 -21
- package/scss/components/_checkbox.scss +11 -11
- package/scss/components/_contextmenu.scss +9 -8
- package/scss/components/_datacard.scss +8 -6
- package/scss/components/_detailcard.scss +2 -2
- package/scss/components/_dropdown.scss +16 -10
- package/scss/components/_factlistcard.scss +6 -5
- package/scss/components/_featurecard.scss +2 -2
- package/scss/components/_fieldset.scss +9 -9
- package/scss/components/_file-upload.scss +20 -19
- package/scss/components/_footer.scss +21 -20
- package/scss/components/_form.scss +4 -4
- package/scss/components/_formcontrol.scss +14 -10
- package/scss/components/_hero.scss +8 -8
- package/scss/components/_herocard.scss +14 -14
- package/scss/components/_image.scss +9 -7
- package/scss/components/_input.scss +14 -12
- package/scss/components/_languagetoggle.scss +10 -8
- package/scss/components/_linklist.scss +13 -12
- package/scss/components/_list.scss +3 -3
- package/scss/components/_loading.scss +12 -12
- package/scss/components/_logo.scss +2 -2
- package/scss/components/_logogrid.scss +3 -3
- package/scss/components/_modal.scss +1 -1
- package/scss/components/_multilinkcard.scss +8 -8
- package/scss/components/_navigation.scss +278 -155
- package/scss/components/_notification.scss +12 -9
- package/scss/components/_pagination.scss +39 -24
- package/scss/components/_profile.scss +8 -8
- package/scss/components/_promocard.scss +1 -1
- package/scss/components/_radio.scss +8 -8
- package/scss/components/_readmore.scss +7 -7
- package/scss/components/_richtext.scss +12 -12
- package/scss/components/_scorecard.scss +2 -2
- package/scss/components/_searchfield.scss +11 -9
- package/scss/components/_socialmedia.scss +7 -7
- package/scss/components/_statcard.scss +8 -8
- package/scss/components/_status.scss +7 -7
- package/scss/components/_table.scss +51 -34
- package/scss/components/_tableofcontents.scss +13 -13
- package/scss/components/_tabs.scss +19 -17
- package/scss/components/_tag.scss +15 -15
- package/scss/components/_textarea.scss +15 -12
- package/scss/components/_textcard.scss +2 -2
- package/scss/components/_toggle.scss +6 -6
- package/scss/components/_tooltip.scss +13 -10
- package/scss/components/_video.scss +59 -43
- package/scss/components/navigation/_nav-compact.scss +17 -13
- package/scss/components/navigation/_nav-complex.scss +20 -12
- package/scss/components/navigation/_nav-main.scss +20 -14
- package/scss/components/navigation/internal/_nav-dropdown.scss +2 -2
- package/scss/components/navigation/internal/_nav-grid.scss +3 -3
- package/scss/components/navigation/internal/_nav-menu.scss +13 -13
- package/scss/components/navigation/internal/_nav-shared.scss +1 -1
- package/scss/components/navigation/internal/mobile/_nav-mobile-drawer.scss +5 -5
- package/scss/components/navigation/internal/mobile/_nav-mobile-menu.scss +5 -5
- package/scss/components/navigation/internal/mobile/_nav-mobile.scss +17 -17
- package/scss/components/photogallery/_expandable-caption.scss +4 -4
- package/scss/components/photogallery/_lightbox.scss +7 -7
- package/scss/components/photogallery/_lightboxgallery.scss +8 -8
- package/scss/components/photogallery/_photogallery-controls.scss +25 -13
- package/scss/components/photogallery/_photogallery-thumbnails.scss +8 -8
- package/scss/components/photogallery/_photogallery.scss +9 -9
- package/scss/theme/_breakpoints.scss +4 -3
- package/scss/theme/_foundation.scss +20 -1
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.17.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/international-labour-organization/designsystem.git",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ilo-org/
|
|
41
|
-
"@ilo-org/
|
|
40
|
+
"@ilo-org/icons": "2.4.2",
|
|
41
|
+
"@ilo-org/fonts": "2.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"cssnano": "^7.0.6",
|
|
@@ -49,13 +49,15 @@
|
|
|
49
49
|
"gulp-rename": "^2.0.0",
|
|
50
50
|
"gulp-sass": "^5.1.0",
|
|
51
51
|
"gulp-sourcemaps": "^3.0.0",
|
|
52
|
-
"sass": "^1.62.1"
|
|
52
|
+
"sass": "^1.62.1",
|
|
53
|
+
"vitest": "^2.0.5"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"build:lib": "gulp",
|
|
56
57
|
"format": "prettier --check . --ignore-path ../../.prettierignore",
|
|
57
58
|
"format:fix": "prettier --write . --ignore-path ../../.prettierignore",
|
|
58
59
|
"lint": "eslint",
|
|
60
|
+
"test": "vitest",
|
|
59
61
|
"lint:fix": "eslint --fix"
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//*------------------------------------*\
|
|
2
|
+
// $ANIMATION MIXINS
|
|
3
|
+
//*------------------------------------*/
|
|
4
|
+
|
|
5
|
+
/// Applies the global transition to any transitionable property
|
|
6
|
+
/// @param {String} $properties - the name of the property on which to transition
|
|
7
|
+
/// @return {CSS} transition for the given properties
|
|
8
|
+
@mixin globaltransition($properties) {
|
|
9
|
+
transition-property: unquote($properties);
|
|
10
|
+
transition-duration: 150ms;
|
|
11
|
+
transition-timing-function: ease-out;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/// Animation for loading skeletons
|
|
15
|
+
@mixin pulse-animation() {
|
|
16
|
+
animation-name: pulse;
|
|
17
|
+
animation-delay: 0.5s;
|
|
18
|
+
animation-duration: 2s;
|
|
19
|
+
animation-timing-function: ease-in-out;
|
|
20
|
+
animation-iteration-count: infinite;
|
|
21
|
+
}
|
package/scss/_animations.scss
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
/// Applies the global transition to any transitionable property
|
|
5
|
-
/// @param {String} $properties - the name of the property on which to transition
|
|
6
|
-
/// @return {CSS} transition for the given properties
|
|
7
|
-
@mixin globaltransition($properties) {
|
|
8
|
-
transition-property: unquote($properties);
|
|
9
|
-
transition-duration: 150ms;
|
|
10
|
-
transition-timing-function: ease-out;
|
|
11
|
-
}
|
|
1
|
+
// Animation mixins live in their own module so that consumers can use them
|
|
2
|
+
// without pulling in the keyframes below. Re-forwarded here for back-compat.
|
|
3
|
+
@forward "animation-mixins";
|
|
12
4
|
|
|
13
5
|
// ======================================
|
|
14
6
|
// Animation of empty gradient
|
|
@@ -37,14 +29,6 @@
|
|
|
37
29
|
// ======================================
|
|
38
30
|
// Animation for loading skeletons
|
|
39
31
|
// ======================================
|
|
40
|
-
@mixin pulse-animation() {
|
|
41
|
-
animation-name: pulse;
|
|
42
|
-
animation-delay: 0.5s;
|
|
43
|
-
animation-duration: 2s;
|
|
44
|
-
animation-timing-function: ease-in-out;
|
|
45
|
-
animation-iteration-count: infinite;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
32
|
@keyframes pulse {
|
|
49
33
|
0% {
|
|
50
34
|
opacity: 1;
|
package/scss/_functions.scss
CHANGED
|
@@ -72,8 +72,10 @@
|
|
|
72
72
|
// Encode color strings
|
|
73
73
|
//
|
|
74
74
|
// Useful for using color variables with inline CSS SVGs
|
|
75
|
+
// @deprecated - will be removed in future versions
|
|
75
76
|
// =========================================
|
|
76
77
|
@function colortodataurlicon($name, $color) {
|
|
78
|
+
@warn "The function colortodataurlicon is deprecated and will be removed in future versions.";
|
|
77
79
|
$icon: map-get($icons, $name);
|
|
78
80
|
$fill: "currentColor";
|
|
79
81
|
$output: str-replace($icon, $fill, $color);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//*------------------------------------*\
|
|
2
|
+
// $HELPERS — public Sass API
|
|
3
|
+
// Functions and mixins only.
|
|
4
|
+
// Guaranteed to emit no CSS.
|
|
5
|
+
// Consumers reach this file as `@use "@ilo-org/styles/scss/helpers"` or,
|
|
6
|
+
// because @ilo-org/react & @ilo-org/twig republishes scss/ under styles/scss/, as
|
|
7
|
+
// `@use "@ilo-org/<package>/styles/scss/helpers"`.
|
|
8
|
+
//*------------------------------------*/
|
|
9
|
+
|
|
10
|
+
@forward "functions";
|
|
11
|
+
|
|
12
|
+
@forward "mixins" hide dataurlicon;
|
package/scss/_mixins.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//*------------------------------------*/
|
|
4
4
|
@use "icons" as *;
|
|
5
5
|
@use "functions" as *;
|
|
6
|
-
@use "
|
|
6
|
+
@use "animation-mixins" as *;
|
|
7
7
|
@use "theme/breakpoints" as *;
|
|
8
8
|
|
|
9
9
|
// ======================================
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
|
|
48
48
|
// ======================================
|
|
49
49
|
// Data URL Icon
|
|
50
|
-
// @
|
|
50
|
+
// @deprecated - will be removed in future versions
|
|
51
51
|
// ======================================
|
|
52
52
|
|
|
53
53
|
@mixin dataurlicon($name, $color: $color-base-neutrals-black) {
|
|
54
|
+
@warn "ILO Design System: the dataurlicon mixin is deprecated and will be removed in future versions. Use the icon mixin instead";
|
|
54
55
|
background-image: url("#{colortodataurlicon($name, $color)}");
|
|
55
56
|
background-repeat: no-repeat;
|
|
56
57
|
}
|
|
@@ -59,13 +60,23 @@
|
|
|
59
60
|
// Icon
|
|
60
61
|
// ======================================
|
|
61
62
|
|
|
62
|
-
@mixin icon($name, $color: black) {
|
|
63
|
+
@mixin icon($name, $color: black, $size: null, $position: null) {
|
|
63
64
|
$icon: map-get($icons, $name);
|
|
64
65
|
mask-image: url("#{$icon}");
|
|
65
66
|
mask-repeat: no-repeat;
|
|
66
67
|
-webkit-mask-image: url("#{$icon}");
|
|
67
68
|
-webkit-mask-repeat: no-repeat;
|
|
68
69
|
background-color: $color;
|
|
70
|
+
|
|
71
|
+
@if $size {
|
|
72
|
+
mask-size: $size;
|
|
73
|
+
-webkit-mask-size: $size;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if $position {
|
|
77
|
+
mask-position: $position;
|
|
78
|
+
-webkit-mask-position: $position;
|
|
79
|
+
}
|
|
69
80
|
}
|
|
70
81
|
|
|
71
82
|
// ======================================
|
|
@@ -168,7 +179,9 @@
|
|
|
168
179
|
// ======================================
|
|
169
180
|
|
|
170
181
|
@mixin caption-icon-wrapper($dir: "right", $width, $height) {
|
|
171
|
-
--ilo-caption-icon-wrapper-bg-color: var(
|
|
182
|
+
--ilo-caption-icon-wrapper-bg-color: var(
|
|
183
|
+
--ilo-color-light-container-bg-inverse
|
|
184
|
+
);
|
|
172
185
|
background: var(--ilo-caption-icon-wrapper-bg-color);
|
|
173
186
|
height: $height;
|
|
174
187
|
width: $width;
|
|
@@ -219,7 +232,7 @@
|
|
|
219
232
|
// and also lists in RichText.
|
|
220
233
|
// ======================================
|
|
221
234
|
|
|
222
|
-
@mixin invincible-list($bullet-color: var(--ilo-color-
|
|
235
|
+
@mixin invincible-list($bullet-color: var(--ilo-color-light-icon-subtle)) {
|
|
223
236
|
li {
|
|
224
237
|
position: relative;
|
|
225
238
|
margin-bottom: spacing(3);
|
package/scss/_typography.scss
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.#{$prefix}--accordion {
|
|
10
10
|
// CSS Custom Properties
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
|
-
--ilo-accordion-color-icon: var(--ilo-color-
|
|
12
|
+
--ilo-accordion-color-icon: var(--ilo-color-light-action-default);
|
|
13
13
|
--ilo-accordion-transition-timing: 500ms; // Slower timing for smooth height transitions
|
|
14
14
|
--ilo-accordion-scroll-max-height: 300px;
|
|
15
15
|
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
padding-inline-end: spacing(1);
|
|
45
45
|
|
|
46
46
|
// Visual
|
|
47
|
-
background-color: var(--ilo-color-
|
|
47
|
+
background-color: var(--ilo-color-light-container-bg-default);
|
|
48
48
|
border: none;
|
|
49
|
-
border-top: 2px solid var(--ilo-color-
|
|
50
|
-
color: var(--ilo-color-
|
|
49
|
+
border-top: 2px solid var(--ilo-color-light-border-subtle);
|
|
50
|
+
color: var(--ilo-color-light-text-brand);
|
|
51
51
|
|
|
52
52
|
// Animation
|
|
53
53
|
transition: all var(--ilo-accordion-transition-timing) ease-in-out;
|
|
@@ -63,26 +63,26 @@
|
|
|
63
63
|
|
|
64
64
|
// Expanded state
|
|
65
65
|
&[aria-expanded="true"] {
|
|
66
|
-
background-color: var(--ilo-color-
|
|
66
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
67
67
|
|
|
68
68
|
#{$accordion}--icon {
|
|
69
|
-
@include icon("minus", var(--ilo-color-
|
|
69
|
+
@include icon("minus", var(--ilo-color-light-action-hover));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// Collapsed state
|
|
74
74
|
&[aria-expanded="false"] {
|
|
75
75
|
#{$accordion}--icon {
|
|
76
|
-
@include icon("plus", var(--ilo-color-
|
|
76
|
+
@include icon("plus", var(--ilo-color-light-action-default));
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// Interactive states
|
|
81
81
|
&:hover,
|
|
82
82
|
&:focus {
|
|
83
|
-
--ilo-accordion-color-icon: var(--ilo-color-
|
|
84
|
-
border-top-color: var(--ilo-color-
|
|
85
|
-
color: var(--ilo-color-
|
|
83
|
+
--ilo-accordion-color-icon: var(--ilo-color-light-action-hover);
|
|
84
|
+
border-top-color: var(--ilo-color-light-border-brand);
|
|
85
|
+
color: var(--ilo-color-light-action-hover);
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.ilo--audio-player {
|
|
5
5
|
&--progress-bar {
|
|
6
6
|
height: px-to-rem(8px);
|
|
7
|
-
background-color: var(--ilo-color-
|
|
7
|
+
background-color: var(--ilo-color-light-container-bg-inverse-subtle);
|
|
8
8
|
position: relative;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--progress: 0%;
|
|
13
13
|
width: var(--progress);
|
|
14
14
|
height: 100%;
|
|
15
|
-
background-color: var(--ilo-color-
|
|
15
|
+
background-color: var(--ilo-color-light-container-bg-accent);
|
|
16
16
|
position: absolute;
|
|
17
17
|
top: 0;
|
|
18
18
|
left: 0;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"left left"
|
|
27
27
|
"center right";
|
|
28
28
|
align-items: center;
|
|
29
|
-
color: var(--ilo-color-
|
|
30
|
-
background-color: var(--ilo-color-
|
|
29
|
+
color: var(--ilo-color-light-text-inverse);
|
|
30
|
+
background-color: var(--ilo-color-light-container-bg-inverse);
|
|
31
31
|
padding: spacing(3) 0;
|
|
32
32
|
row-gap: spacing(3);
|
|
33
33
|
}
|
|
34
34
|
&--left {
|
|
35
35
|
grid-area: left;
|
|
36
|
-
border-bottom: 1px solid var(--ilo-color-
|
|
36
|
+
border-bottom: 1px solid var(--ilo-color-dark-border-subtle);
|
|
37
37
|
padding-inline: spacing(3);
|
|
38
38
|
padding-block-end: spacing(3);
|
|
39
39
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
white-space: nowrap;
|
|
62
62
|
font-size: var(--ilo-font-size-xsm);
|
|
63
63
|
line-height: var(--ilo-line-height-xlg);
|
|
64
|
-
color: var(--ilo-color-
|
|
64
|
+
color: var(--ilo-color-dark-text-subtle);
|
|
65
65
|
}
|
|
66
66
|
&--track-creator::before {
|
|
67
67
|
content: "•";
|
|
@@ -88,21 +88,21 @@
|
|
|
88
88
|
padding: spacing(2);
|
|
89
89
|
}
|
|
90
90
|
&--skip-button:hover {
|
|
91
|
-
background-color: var(--ilo-color-
|
|
92
|
-
color: var(--ilo-color-
|
|
91
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
92
|
+
color: var(--ilo-color-light-action-hover);
|
|
93
93
|
}
|
|
94
94
|
&--play-button {
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: center;
|
|
97
|
-
background-color: var(--ilo-color-
|
|
98
|
-
color: var(--ilo-color-brand
|
|
97
|
+
background-color: var(--ilo-color-light-container-bg-accent);
|
|
98
|
+
color: var(--ilo-color-light-text-brand);
|
|
99
99
|
border-radius: 50%;
|
|
100
100
|
cursor: pointer;
|
|
101
101
|
padding: spacing(1);
|
|
102
102
|
border: none;
|
|
103
103
|
}
|
|
104
104
|
&--play-button:hover {
|
|
105
|
-
background-color: var(--ilo-color-
|
|
105
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
106
106
|
}
|
|
107
107
|
[aria-label="Play"] &--play-icon {
|
|
108
108
|
display: block;
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
line-height: var(--ilo-line-height-lg);
|
|
135
135
|
}
|
|
136
136
|
&--duration-total {
|
|
137
|
-
color: var(--ilo-color-
|
|
137
|
+
color: var(--ilo-color-dark-text-subtle);
|
|
138
138
|
font-size: var(--ilo-font-size-2xsm);
|
|
139
139
|
line-height: var(--ilo-line-height-2xlg);
|
|
140
140
|
}
|
|
141
141
|
&--separator {
|
|
142
142
|
height: 32px;
|
|
143
|
-
border-left: 1px solid var(--ilo-color-
|
|
143
|
+
border-left: 1px solid var(--ilo-color-dark-border-subtle);
|
|
144
144
|
margin: spacing(1) spacing(3);
|
|
145
145
|
}
|
|
146
146
|
&--volume-icon {
|
|
@@ -165,24 +165,24 @@
|
|
|
165
165
|
&--volume-slider {
|
|
166
166
|
--progress: 100%;
|
|
167
167
|
margin-left: spacing(1);
|
|
168
|
-
background: var(--ilo-color-
|
|
168
|
+
background: var(--ilo-color-light-container-bg-accent);
|
|
169
169
|
border-radius: 4px;
|
|
170
170
|
height: 4px;
|
|
171
171
|
width: 50%;
|
|
172
172
|
background: linear-gradient(
|
|
173
173
|
to right,
|
|
174
|
-
var(--ilo-color-
|
|
175
|
-
var(--ilo-color-
|
|
176
|
-
var(--ilo-color-
|
|
177
|
-
var(--ilo-color-
|
|
174
|
+
var(--ilo-color-light-container-bg-accent) 0%,
|
|
175
|
+
var(--ilo-color-light-container-bg-accent) var(--progress, 50%),
|
|
176
|
+
var(--ilo-color-light-container-bg-inverse-subtle) var(--progress, 50%),
|
|
177
|
+
var(--ilo-color-light-container-bg-inverse-subtle) 100%
|
|
178
178
|
);
|
|
179
179
|
[dir="rtl"] & {
|
|
180
180
|
background: linear-gradient(
|
|
181
181
|
to left,
|
|
182
|
-
var(--ilo-color-
|
|
183
|
-
var(--ilo-color-
|
|
184
|
-
var(--ilo-color-
|
|
185
|
-
var(--ilo-color-
|
|
182
|
+
var(--ilo-color-light-container-bg-accent) 0%,
|
|
183
|
+
var(--ilo-color-light-container-bg-accent) var(--progress, 50%),
|
|
184
|
+
var(--ilo-color-light-container-bg-inverse-subtle) var(--progress, 50%),
|
|
185
|
+
var(--ilo-color-light-container-bg-inverse-subtle) 100%
|
|
186
186
|
);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
|
|
194
194
|
width: 16px;
|
|
195
195
|
height: 16px;
|
|
196
|
-
background: var(--ilo-color-
|
|
196
|
+
background: var(--ilo-color-light-container-bg-disabled);
|
|
197
197
|
border-radius: 50%;
|
|
198
198
|
cursor: pointer;
|
|
199
199
|
margin-top: -2px; // Center thumb on track
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
@mixin blockquote {
|
|
9
9
|
// Layout & background
|
|
10
|
-
background-color: var(--ilo-color-
|
|
10
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
11
11
|
background-position: right top;
|
|
12
12
|
background-repeat: no-repeat;
|
|
13
13
|
background-size: px-to-rem(72px) px-to-rem(40px);
|
|
14
14
|
display: block;
|
|
15
15
|
width: fit-content;
|
|
16
16
|
position: relative;
|
|
17
|
-
border-bottom: px-to-rem(3px) solid var(--ilo-color-
|
|
17
|
+
border-bottom: px-to-rem(3px) solid var(--ilo-color-light-border-default);
|
|
18
18
|
@include cornercut(72px, 40px);
|
|
19
19
|
|
|
20
20
|
// Typography & spacing
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
p {
|
|
25
25
|
@include typography("blockquote", true);
|
|
26
|
-
color: var(--ilo-color-
|
|
26
|
+
color: var(--ilo-color-light-text-accent);
|
|
27
27
|
padding: 0 spacing(12) 0 0;
|
|
28
28
|
margin-bottom: spacing(6);
|
|
29
29
|
position: relative;
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
width: px-to-rem(26.5px);
|
|
38
38
|
height: px-to-rem(20px);
|
|
39
39
|
transform: scaleX(-1);
|
|
40
|
-
@include icon("quote", var(--ilo-color-
|
|
40
|
+
@include icon("quote", var(--ilo-color-light-icon-accent));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
cite {
|
|
45
|
-
color: var(--ilo-color-
|
|
45
|
+
color: var(--ilo-color-light-text-subtle);
|
|
46
46
|
font-weight: 400;
|
|
47
47
|
font-size: var(--ilo-font-size-sm);
|
|
48
48
|
line-height: 135%;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
left: 0;
|
|
59
59
|
width: px-to-rem(53px);
|
|
60
60
|
height: px-to-rem(40px);
|
|
61
|
-
@include icon("quote", var(--ilo-color-
|
|
61
|
+
@include icon("quote", var(--ilo-color-light-icon-accent));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@include breakpoint("md") {
|
|
@@ -6,18 +6,22 @@
|
|
|
6
6
|
.#{$prefix}--breadcrumb {
|
|
7
7
|
$breadcrumb: &;
|
|
8
8
|
|
|
9
|
-
--ilo-breadcrumb-background-color: var(
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
--ilo-breadcrumb-background-color: var(
|
|
10
|
+
--ilo-color-light-container-bg-default
|
|
11
|
+
);
|
|
12
|
+
--ilo-breadcrumb-link-color: var(--ilo-color-light-text-brand);
|
|
13
|
+
--ilo-breadcrumb-link-hover-color: var(--ilo-color-light-action-hover);
|
|
12
14
|
|
|
13
15
|
position: relative;
|
|
14
16
|
z-index: 10;
|
|
15
17
|
|
|
16
18
|
&__theme {
|
|
17
19
|
&__dark {
|
|
18
|
-
--ilo-breadcrumb-background-color: var(
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
--ilo-breadcrumb-background-color: var(
|
|
21
|
+
--ilo-color-light-container-bg-brand
|
|
22
|
+
);
|
|
23
|
+
--ilo-breadcrumb-link-color: var(--ilo-color-light-text-inverse);
|
|
24
|
+
--ilo-breadcrumb-link-hover-color: var(--ilo-color-light-text-inverse);
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
.#{$prefix}--button {
|
|
7
7
|
--ilo-button-label-weight: 700;
|
|
8
|
-
--ilo-button-labels-actionable-color: var(--ilo-color-
|
|
9
|
-
--ilo-button-labels-active-color: var(--ilo-color-
|
|
10
|
-
--ilo-button-labels-alert-color: var(--ilo-color-
|
|
11
|
-
--ilo-button-labels-hover-color: var(--ilo-color-
|
|
8
|
+
--ilo-button-labels-actionable-color: var(--ilo-color-light-text-brand);
|
|
9
|
+
--ilo-button-labels-active-color: var(--ilo-color-dark-text-brand);
|
|
10
|
+
--ilo-button-labels-alert-color: var(--ilo-color-light-text-inverse);
|
|
11
|
+
--ilo-button-labels-hover-color: var(--ilo-color-light-action-hover);
|
|
12
12
|
|
|
13
13
|
// This provides a reference to the outerclass within nested declarations
|
|
14
14
|
$button: &;
|
|
@@ -85,49 +85,51 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&__primary {
|
|
88
|
-
background-color: var(--ilo-color-
|
|
89
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
88
|
+
background-color: var(--ilo-color-light-feedback-warning-default);
|
|
89
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-focus) solid;
|
|
90
90
|
color: var(--ilo-button-labels-actionable-color);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&__secondary {
|
|
94
|
-
background-color: var(--ilo-color-
|
|
95
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
94
|
+
background-color: var(--ilo-color-light-container-bg-default);
|
|
95
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-default) solid;
|
|
96
96
|
color: var(--ilo-button-labels-actionable-color);
|
|
97
97
|
|
|
98
98
|
&:hover {
|
|
99
|
-
background-color: var(--ilo-color-
|
|
100
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
99
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
100
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&:active {
|
|
104
|
-
background-color: var(--ilo-color-
|
|
105
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
104
|
+
background-color: var(--ilo-color-light-action-selected);
|
|
105
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
106
106
|
box-shadow: none;
|
|
107
107
|
color: var(--ilo-button-labels-active-color);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&__tertiary {
|
|
112
|
-
background-color: var(--ilo-color-
|
|
113
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
112
|
+
background-color: var(--ilo-color-light-container-bg-disabled);
|
|
113
|
+
border: var(--ilo-border-md) var(--ilo-color-light-container-bg-disabled)
|
|
114
|
+
solid;
|
|
114
115
|
color: var(--ilo-button-labels-actionable-color);
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
&__alert {
|
|
118
|
-
background-color: var(--ilo-color-
|
|
119
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
119
|
+
background-color: var(--ilo-color-light-feedback-error-dark);
|
|
120
|
+
border: var(--ilo-border-md) var(--ilo-color-light-feedback-error-dark)
|
|
121
|
+
solid;
|
|
120
122
|
color: var(--ilo-button-labels-alert-color);
|
|
121
123
|
|
|
122
124
|
&:hover {
|
|
123
|
-
background-color: var(--ilo-color-
|
|
124
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
125
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
126
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
125
127
|
color: var(--ilo-button-labels-hover-color);
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
&:active {
|
|
129
|
-
background-color: var(--ilo-color-
|
|
130
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
131
|
+
background-color: var(--ilo-color-light-action-selected);
|
|
132
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
131
133
|
box-shadow: none;
|
|
132
134
|
color: var(--ilo-button-labels-active-color);
|
|
133
135
|
}
|
|
@@ -138,23 +140,23 @@
|
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
&:focus-visible {
|
|
141
|
-
background-color: var(--ilo-color-
|
|
142
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
143
|
+
background-color: var(--ilo-color-light-container-bg-default);
|
|
144
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-focus) solid;
|
|
143
145
|
box-shadow:
|
|
144
|
-
4px 4px 0 1px var(--ilo-color-
|
|
145
|
-
-4px -4px 0 1px var(--ilo-color-
|
|
146
|
+
4px 4px 0 1px var(--ilo-color-light-border-focus) inset,
|
|
147
|
+
-4px -4px 0 1px var(--ilo-color-light-border-focus) inset;
|
|
146
148
|
@include globaltransition("color, background-color, border-color");
|
|
147
149
|
|
|
148
150
|
&.#{$prefix}--small {
|
|
149
151
|
box-shadow:
|
|
150
|
-
3px 3px 0 1px var(--ilo-color-
|
|
151
|
-
-3px -3px 0 1px var(--ilo-color-
|
|
152
|
+
3px 3px 0 1px var(--ilo-color-light-border-focus) inset,
|
|
153
|
+
-3px -3px 0 1px var(--ilo-color-light-border-focus) inset;
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
&:hover {
|
|
156
|
-
background-color: var(--ilo-color-
|
|
157
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
158
|
+
background-color: var(--ilo-color-light-container-bg-subtle);
|
|
159
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
158
160
|
box-shadow: none;
|
|
159
161
|
color: var(--ilo-button-labels-hover-color);
|
|
160
162
|
cursor: pointer;
|
|
@@ -162,8 +164,8 @@
|
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
&:active {
|
|
165
|
-
background-color: var(--ilo-color-
|
|
166
|
-
border: var(--ilo-border-md) var(--ilo-color-
|
|
167
|
+
background-color: var(--ilo-color-light-action-selected);
|
|
168
|
+
border: var(--ilo-border-md) var(--ilo-color-light-border-brand) solid;
|
|
167
169
|
box-shadow: none;
|
|
168
170
|
color: var(--ilo-button-labels-active-color);
|
|
169
171
|
@include globaltransition("color, background-color, border-color");
|