@ilo-org/styles 1.1.0 → 1.2.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.
Files changed (86) hide show
  1. package/README.md +3 -0
  2. package/css/components/accordion.css +1 -1
  3. package/css/components/breadcrumb.css +1 -1
  4. package/css/components/button.css +1 -1
  5. package/css/components/callout.css +1 -1
  6. package/css/components/card.css +1 -1
  7. package/css/components/checkbox.css +1 -1
  8. package/css/components/contextmenu.css +1 -1
  9. package/css/components/datacard.css +1 -1
  10. package/css/components/dropdown.css +1 -1
  11. package/css/components/featurecard.css +1 -1
  12. package/css/components/fieldset.css +1 -1
  13. package/css/components/file-upload.css +1 -1
  14. package/css/components/footer.css +1 -1
  15. package/css/components/formcontrol.css +1 -1
  16. package/css/components/heading.css +1 -1
  17. package/css/components/herocard.css +1 -1
  18. package/css/components/input.css +1 -1
  19. package/css/components/linklist.css +1 -1
  20. package/css/components/list.css +1 -1
  21. package/css/components/loading.css +1 -1
  22. package/css/components/logo.css +1 -1
  23. package/css/components/navigation.css +1 -1
  24. package/css/components/pagination.css +1 -1
  25. package/css/components/profile.css +1 -1
  26. package/css/components/readmore.css +1 -1
  27. package/css/components/richtext.css +1 -1
  28. package/css/components/searchfield.css +1 -1
  29. package/css/components/socialmedia.css +1 -1
  30. package/css/components/statcard.css +1 -1
  31. package/css/components/table.css +1 -1
  32. package/css/components/tableofcontents.css +1 -1
  33. package/css/components/tabs.css +1 -1
  34. package/css/components/tag.css +1 -1
  35. package/css/components/textarea.css +1 -1
  36. package/css/components/textinput.css +1 -1
  37. package/css/components/tooltip.css +1 -1
  38. package/css/global.css +1 -1
  39. package/css/global.css.map +1 -1
  40. package/css/index.css +2 -2
  41. package/css/index.css.map +1 -1
  42. package/css/monorepo.css +2 -2
  43. package/css/monorepo.css.map +1 -1
  44. package/package.json +2 -2
  45. package/scss/_mixins.scss +1 -1
  46. package/scss/_typography.scss +19 -22
  47. package/scss/_typographymonorepo.scss +19 -22
  48. package/scss/components/_accordion.scss +1 -1
  49. package/scss/components/_breadcrumb.scss +1 -1
  50. package/scss/components/_button.scss +145 -198
  51. package/scss/components/_callout.scss +50 -50
  52. package/scss/components/_card.scss +1 -1
  53. package/scss/components/_contextmenu.scss +1 -1
  54. package/scss/components/_datacard.scss +1 -1
  55. package/scss/components/_dropdown.scss +1 -1
  56. package/scss/components/_featurecard.scss +1 -1
  57. package/scss/components/_fieldset.scss +2 -2
  58. package/scss/components/_file-upload.scss +2 -2
  59. package/scss/components/_footer.scss +4 -4
  60. package/scss/components/_formcontrol.scss +4 -4
  61. package/scss/components/_heading.scss +1 -1
  62. package/scss/components/_herocard.scss +1 -1
  63. package/scss/components/_input.scss +1 -1
  64. package/scss/components/_linklist.scss +3 -3
  65. package/scss/components/_list.scss +1 -1
  66. package/scss/components/_loading.scss +1 -1
  67. package/scss/components/_logo.scss +1 -1
  68. package/scss/components/_navigation.scss +10 -10
  69. package/scss/components/_pagination.scss +2 -2
  70. package/scss/components/_profile.scss +4 -4
  71. package/scss/components/_readmore.scss +1 -1
  72. package/scss/components/_richtext.scss +3 -3
  73. package/scss/components/_socialmedia.scss +1 -1
  74. package/scss/components/_statcard.scss +1 -1
  75. package/scss/components/_table.scss +4 -4
  76. package/scss/components/_tableofcontents.scss +2 -2
  77. package/scss/components/_tabs.scss +1 -1
  78. package/scss/components/_tag.scss +1 -1
  79. package/scss/components/_textarea.scss +1 -1
  80. package/scss/components/_textinput.scss +1 -1
  81. package/scss/components/_tooltip.scss +1 -1
  82. package/scss/components/index.scss +0 -1
  83. package/scss/index.scss +3 -0
  84. package/scss/theme/_foundation.scss +33 -7
  85. package/css/components/icon.css +0 -1
  86. package/scss/components/_icon.scss +0 -6
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.1.0",
4
+ "version": "1.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@ilo-org/fonts": "0.2.2",
42
42
  "@ilo-org/icons": "0.4.0",
43
- "@ilo-org/themes": "0.9.0"
43
+ "@ilo-org/themes": "0.9.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "del": "^7.0.0",
package/scss/_mixins.scss CHANGED
@@ -427,7 +427,7 @@
427
427
 
428
428
  li {
429
429
  @include font-styles("body-small");
430
- font-family: $fonts-copy;
430
+ font-family: var(--ilo-fonts-copy);
431
431
  margin-bottom: spacing(4);
432
432
 
433
433
  b,
@@ -10,35 +10,32 @@
10
10
  html,
11
11
  body {
12
12
  color: $color-font-base;
13
- font: #{$type-base-size}/#{$type-base-line-height} $fonts-copy;
13
+ font-family: var(--ilo-fonts-copy);
14
+ font-size: #{$type-base-size};
15
+ line-height: #{$type-base-line-height};
14
16
  letter-spacing: $type-base-letter-spacing;
15
17
  -webkit-font-smoothing: antialiased;
16
18
  }
17
19
 
18
- /// Font family fallbacks for: Overpass, Noto Sans
19
- /// @type Map
20
- /// @access public
21
- /// @group @carbon/type
22
- $font-families: (
23
- "display": unquote("#{$fonts-display}, sans-serif"),
24
- "copy": unquote("#{$fonts-copy}, sans-serif"),
25
- ) !default;
20
+ h1,
21
+ h2,
22
+ h3,
23
+ h4,
24
+ h5,
25
+ h5 {
26
+ font-family: var(--ilo-fonts-display);
27
+ }
26
28
 
27
- /// Get the font-family for a font
28
- /// @param {String} $name
29
- /// @return {String}
30
- /// @access public
31
- /// @group @carbon/type
32
- @function font-family($name) {
33
- @return map-get($font-families, $name);
29
+ // Set Chinese system fonts
30
+ html[lang*="zh"] {
31
+ --ilo-fonts-display: var(--ilo-fonts-display-zh);
32
+ --ilo-fonts-copy: var(--ilo-fonts-copy-zh);
34
33
  }
35
34
 
36
- /// Include the `font-family` definition for the given name in your selector
37
- /// @param {String} $name
38
- /// @access public
39
- /// @group @carbon/type
40
- @mixin font-family($name) {
41
- font-family: font-family($name);
35
+ // Set Japanese system fonts
36
+ html[lang*="ja"] {
37
+ --ilo-fonts-display: var(--ilo-fonts-display-jp);
38
+ --ilo-fonts-copy: var(--ilo-fonts-copy-jp);
42
39
  }
43
40
 
44
41
  /// Suggested font weights to be used in product
@@ -11,35 +11,32 @@
11
11
  html,
12
12
  body {
13
13
  color: $color-font-base;
14
- font: #{$type-base-size}/#{$type-base-line-height} $fonts-copy;
14
+ font-family: var(--ilo-fonts-copy);
15
+ font-size: #{$type-base-size};
16
+ line-height: #{$type-base-line-height};
15
17
  letter-spacing: $type-base-letter-spacing;
16
18
  -webkit-font-smoothing: antialiased;
17
19
  }
18
20
 
19
- /// Font family fallbacks for: Overpass, Noto Sans
20
- /// @type Map
21
- /// @access public
22
- /// @group @carbon/type
23
- $font-families: (
24
- "display": unquote("#{$fonts-display}, sans-serif"),
25
- "copy": unquote("#{$fonts-copy}, sans-serif"),
26
- ) !default;
21
+ h1,
22
+ h2,
23
+ h3,
24
+ h4,
25
+ h5,
26
+ h5 {
27
+ font-family: var(--ilo-fonts-display);
28
+ }
27
29
 
28
- /// Get the font-family for a font
29
- /// @param {String} $name
30
- /// @return {String}
31
- /// @access public
32
- /// @group @carbon/type
33
- @function font-family($name) {
34
- @return map-get($font-families, $name);
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);
35
34
  }
36
35
 
37
- /// Include the `font-family` definition for the given name in your selector
38
- /// @param {String} $name
39
- /// @access public
40
- /// @group @carbon/type
41
- @mixin font-family($name) {
42
- font-family: font-family($name);
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);
43
40
  }
44
41
 
45
42
  /// Suggested font weights to be used in product
@@ -29,7 +29,7 @@
29
29
  border: none;
30
30
  border-top: 2px solid $color-base-neutrals-lighter;
31
31
  fill: $color-ux-labels-actionable;
32
- font-family: $fonts-display;
32
+ font-family: var(--ilo-fonts-display);
33
33
  color: $color-ux-labels-actionable;
34
34
  font-weight: $type-weights-section;
35
35
  transition: all $transition-timing ease-in-out;
@@ -150,7 +150,7 @@
150
150
  overflow-x: clip;
151
151
  text-overflow: ellipsis;
152
152
  max-width: 30ch;
153
- font-family: $fonts-copy;
153
+ font-family: var(--ilo-fonts-copy);
154
154
  font-weight: 400;
155
155
  @include font-styles("body-xxs");
156
156
 
@@ -2,23 +2,35 @@
2
2
  @use "../functions" as *;
3
3
  @import "../animations";
4
4
  @import "../mixins";
5
+ @import "../config";
5
6
 
6
- .ilo--button {
7
+ .#{$prefix}--button {
8
+ --ilo-button-label-weight: 700;
9
+ --ilo-button-labels-actionable-color: var(--ilo-color-blue-dark);
10
+ --ilo-button-labels-active-color: var(--ilo-color-blue-light);
11
+ --ilo-button-labels-alert-color: var(--ilo-color-white);
12
+ --ilo-button-labels-hover-color: var(--ilo-color-blue);
13
+
14
+ // This provides a reference to the outerclass within nested declarations
15
+ $button: &;
7
16
  display: inline-block;
8
- font-family: $fonts-display;
9
- font-weight: map-get($type, "weights", "label");
17
+ font-family: var(--ilo-fonts-display);
18
+ font-weight: var(--ilo-button-label-weight);
10
19
  padding: 0;
11
- @include borderradius("button");
20
+ border-radius: var(--ilo-border-md);
21
+ @include globaltransition("color, background-color, border-color");
12
22
 
13
23
  .link__label,
14
24
  .button__label {
15
25
  display: inline-block;
26
+ position: relative;
27
+ top: px-to-rem(2px);
16
28
  }
17
29
 
18
- &.icon {
30
+ &--icon {
19
31
  position: relative;
20
32
 
21
- .ilo--icon {
33
+ .#{$prefix}--icon {
22
34
  height: 100%;
23
35
  max-height: px-to-rem(32px);
24
36
  max-width: px-to-rem(32px);
@@ -26,25 +38,25 @@
26
38
  width: 100%;
27
39
  }
28
40
 
29
- &.icon__position--left {
41
+ &--position__left {
30
42
  .link__label,
31
43
  .button__label {
32
- padding-left: spacing(12);
44
+ padding-inline-start: spacing(6);
33
45
  }
34
46
 
35
- .ilo--icon {
47
+ .#{$prefix}--icon {
36
48
  left: px-to-rem(13px);
37
49
  top: px-to-rem(7px);
38
50
  }
39
51
  }
40
52
 
41
- &.icon__position--right {
53
+ &--position__right {
42
54
  .link__label,
43
55
  .button__label {
44
- padding-right: spacing(12);
56
+ padding-inline-end: spacing(6);
45
57
  }
46
58
 
47
- .ilo--icon {
59
+ .#{$prefix}--icon {
48
60
  right: px-to-rem(13px);
49
61
  top: px-to-rem(7px);
50
62
  }
@@ -57,269 +69,204 @@
57
69
  }
58
70
  }
59
71
 
60
- &--large {
61
- .link__label,
62
- .button__label {
63
- padding: spacing(3) spacing(6);
64
- @include font-styles("button-large");
65
- }
72
+ &__large {
73
+ padding: spacing(3) spacing(6);
74
+ @include font-styles("button-large");
66
75
 
67
- &.icon--only {
76
+ &.#{$prefix}--button--icon--only {
68
77
  height: px-to-rem(45px);
69
78
  width: px-to-rem(45px);
79
+ padding: unset;
70
80
 
71
- .ilo--icon {
81
+ .#{$prefix}--icon {
72
82
  left: px-to-rem(4.5px);
73
83
  top: px-to-rem(4.5px);
74
84
  }
75
85
  }
76
86
  }
77
87
 
78
- &--medium {
79
- .link__label,
80
- .button__label {
81
- padding: spacing(2) spacing(5);
82
- @include font-styles("button-medium");
88
+ &__medium {
89
+ padding: spacing(2) spacing(5);
90
+ @include font-styles("button-medium");
91
+
92
+ .#{$prefix}--icon {
93
+ max-height: px-to-rem(30px);
94
+ max-width: px-to-rem(30px);
95
+ position: absolute;
83
96
  }
84
97
 
85
- &.icon {
86
- .ilo--icon {
87
- max-height: px-to-rem(30px);
88
- max-width: px-to-rem(30px);
89
- position: absolute;
98
+ &.#{$prefix}--button--icon--position__left {
99
+ .link__label,
100
+ .button__label {
101
+ padding-inline-start: spacing(6);
90
102
  }
91
103
 
92
- &.icon__position--left {
93
- .link__label,
94
- .button__label {
95
- padding-left: spacing(11);
96
- }
97
-
98
- .ilo--icon {
99
- left: px-to-rem(10px);
100
- top: px-to-rem(3px);
101
- }
104
+ .#{$prefix}--icon {
105
+ left: px-to-rem(10px);
106
+ top: px-to-rem(3px);
102
107
  }
108
+ }
103
109
 
104
- &.icon__position--right {
105
- .link__label,
106
- .button__label {
107
- padding-right: spacing(11);
108
- }
110
+ &.#{$prefix}--button--icon--position__right {
111
+ .link__label,
112
+ .button__label {
113
+ padding-inline-end: spacing(6);
114
+ }
109
115
 
110
- .ilo--icon {
111
- right: px-to-rem(10px);
112
- top: px-to-rem(3px);
113
- }
116
+ .#{$prefix}--icon {
117
+ right: px-to-rem(10px);
118
+ top: px-to-rem(3px);
114
119
  }
115
120
  }
116
121
 
117
- &.icon--only {
122
+ &.#{$prefix}--button--icon--only {
118
123
  height: px-to-rem(36px);
119
124
  width: px-to-rem(36px);
125
+ padding: unset;
120
126
 
121
- .ilo--icon {
127
+ .#{$prefix}--icon {
122
128
  left: px-to-rem(2px);
123
129
  top: px-to-rem(2px);
124
130
  }
125
131
  }
126
132
  }
127
133
 
128
- &--small {
129
- .link__label,
130
- .button__label {
131
- padding: spacing(1) spacing(4);
132
- @include font-styles("button-small");
134
+ &__small {
135
+ padding: spacing(1) spacing(4);
136
+ @include font-styles("button-small");
137
+
138
+ .#{$prefix}--icon {
139
+ max-height: px-to-rem(28px);
140
+ max-width: px-to-rem(28px);
141
+ position: absolute;
133
142
  }
134
143
 
135
- &.icon {
136
- .ilo--icon {
137
- max-height: px-to-rem(28px);
138
- max-width: px-to-rem(28px);
139
- position: absolute;
144
+ &.#{$prefix}--button--icon--position__left {
145
+ .link__label,
146
+ .button__label {
147
+ padding-inline-start: spacing(5);
140
148
  }
141
149
 
142
- &.icon__position--left {
143
- .link__label,
144
- .button__label {
145
- padding-left: spacing(9);
146
- }
147
-
148
- .ilo--icon {
149
- left: px-to-rem(6px);
150
- top: px-to-rem(1px);
151
- }
150
+ .#{$prefix}--icon {
151
+ left: px-to-rem(6px);
152
+ top: 0;
152
153
  }
154
+ }
153
155
 
154
- &.icon__position--right {
155
- .link__label,
156
- .button__label {
157
- padding-right: spacing(9);
158
- }
156
+ &.#{$prefix}--button--icon--position__right {
157
+ .link__label,
158
+ .button__label {
159
+ padding-inline-end: spacing(9);
160
+ }
159
161
 
160
- .ilo--icon {
161
- right: px-to-rem(6px);
162
- top: px-to-rem(1px);
163
- }
162
+ .#{$prefix}--icon {
163
+ right: 6;
164
+ top: 0;
164
165
  }
165
166
  }
166
167
 
167
- &.icon--only {
168
+ &.#{$prefix}--button--icon--only {
168
169
  height: px-to-rem(26px);
169
170
  width: px-to-rem(26px);
171
+ padding: unset;
170
172
 
171
- .ilo--icon {
173
+ .#{$prefix}--icon {
172
174
  left: px-to-rem(0.5px);
173
175
  top: px-to-rem(0.5px);
174
176
  }
175
177
  }
176
178
  }
177
179
 
178
- &--primary {
179
- background-color: map-get($color, "ux", "background", "attention");
180
- border: map-get($borders, "base")
181
- map-get($color, "ux", "borders", "attention") solid;
182
- color: map-get($color, "ux", "labels", "actionable");
180
+ &__primary {
181
+ background-color: var(--ilo-color-yellow);
182
+ border: var(--ilo-border-md) var(--ilo-color-yellow) solid;
183
+ color: var(--ilo-button-labels-actionable-color);
183
184
  }
184
185
 
185
- &:focus {
186
- background-color: map-get($color, "ux", "background", "focus");
187
- border: map-get($borders, "base") map-get($color, "ux", "borders", "focus")
188
- solid;
189
- box-shadow: 4px 4px 0 1px map-get($color, "ux", "borders", "focus") inset,
190
- -4px -4px 0 1px map-get($color, "ux", "borders", "focus") inset;
191
- color: map-get($color, "ux", "labels", "focus");
192
- outline: none;
193
- @include globaltransition("color, background-color, border-color");
194
-
195
- &.ilo--button--small {
196
- box-shadow: 3px 3px 0 1px map-get($color, "ux", "borders", "focus") inset,
197
- -3px -3px 0 1px map-get($color, "ux", "borders", "focus") inset;
198
- }
199
- }
200
-
201
- &:hover {
202
- background-color: map-get($color, "ux", "background", "hover");
203
- border: map-get($borders, "base") map-get($color, "ux", "borders", "hover")
204
- solid;
205
- box-shadow: none;
206
- color: map-get($color, "ux", "labels", "hover");
207
- cursor: pointer;
208
- @include globaltransition("color, background-color, border-color");
209
-
210
- &.ilo--button--small {
211
- box-shadow: none;
212
- }
213
- }
214
-
215
- &:active {
216
- background-color: map-get($color, "ux", "background", "active");
217
- border: map-get($borders, "base") map-get($color, "ux", "borders", "active")
218
- solid;
219
- box-shadow: none;
220
- color: map-get($color, "ux", "labels", "active");
221
- @include globaltransition("color, background-color, border-color");
222
-
223
- &.ilo--button--small {
224
- box-shadow: none;
225
- }
226
- }
227
-
228
- &:disabled {
229
- opacity: map-get($opacity, "disabled");
230
- pointer-events: none;
231
- }
232
-
233
- &--secondary {
234
- background-color: map-get($color, "ux", "background", "default");
235
- border: map-get($borders, "small")
236
- map-get($color, "ux", "borders", "default") solid;
237
- color: map-get($color, "ux", "labels", "actionable");
238
- @include globaltransition("color, background-color, border-color");
186
+ &__secondary {
187
+ background-color: var(--ilo-color-background-default);
188
+ border: var(--ilo-border-md) var(--ilo-color-borders-default) solid;
189
+ color: var(--ilo-button-labels-actionable-color);
239
190
 
240
191
  &:hover {
241
- background-color: map-get($color, "ux", "background", "hover");
242
- border: map-get($borders, "small")
243
- map-get($color, "ux", "borders", "hover") solid;
244
- @include globaltransition("color, background-color, border-color");
192
+ background-color: var(--ilo-color-background-hover);
193
+ border: var(--ilo-border-md) var(--ilo-color-borders-hover) solid;
245
194
  }
246
195
 
247
196
  &:active {
248
- background-color: map-get($color, "ux", "background", "active");
249
- border: map-get($borders, "base")
250
- map-get($color, "ux", "borders", "active") solid;
197
+ background-color: var(--ilo-color-background-active);
198
+ border: var(--ilo-border-md) var(--ilo-color-borders-active) solid;
251
199
  box-shadow: none;
252
- color: map-get($color, "ux", "labels", "active");
253
- @include globaltransition("color, background-color, border-color");
254
-
255
- &.ilo--button--small {
256
- box-shadow: none;
257
- }
200
+ color: var(--ilo-button-labels-active-color);
258
201
  }
259
202
  }
260
203
 
261
- &--tertiary {
262
- background-color: map-get($color, "ux", "background", "highlight");
263
- border: map-get($borders, "base")
264
- map-get($color, "ux", "background", "highlight") solid;
265
- color: map-get($color, "ux", "labels", "actionable");
266
- @include globaltransition("color, background-color, border-color");
204
+ &__tertiary {
205
+ background-color: var(--ilo-color-background-highlight);
206
+ border: var(--ilo-border-md) var(--ilo-color-background-highlight) solid;
207
+ color: var(--ilo-button-labels-actionable-color);
267
208
  }
268
209
 
269
- &--alert {
270
- background-color: map-get($color, "ux", "background", "alert");
271
- border: map-get($borders, "small") map-get($color, "ux", "borders", "alert")
272
- solid;
273
- color: map-get($color, "ux", "labels", "alert");
274
- @include globaltransition("color, background-color, border-color");
210
+ &__alert {
211
+ background-color: var(--ilo-color-red-dark);
212
+ border: var(--ilo-border-md) var(--ilo-color-red-dark) solid;
213
+ color: var(--ilo-button-labels-alert-color);
275
214
 
276
215
  &:hover {
277
- background-color: map-get($color, "ux", "background", "hover");
278
- border: map-get($borders, "small")
279
- map-get($color, "ux", "borders", "hover") solid;
280
- color: map-get($color, "ux", "labels", "hover");
281
- @include globaltransition("color, background-color, border-color");
216
+ background-color: var(--ilo-color-background-hover);
217
+ border: var(--ilo-border-md) var(--ilo-color-borders-hover) solid;
218
+ color: var(--ilo-button-labels-hover-color);
282
219
  }
283
220
 
284
221
  &:focus {
285
- background-color: map-get($color, "ux", "background", "focus");
286
- border: map-get($borders, "base")
287
- map-get($color, "ux", "borders", "focus") solid;
288
- color: map-get($color, "ux", "labels", "focus");
222
+ background-color: var(--ilo-color-background-focus);
223
+ border: var(--ilo-border-md) var(--ilo-color-borders-focus) solid;
224
+ color: var(--ilo-button-labels-focus-color);
289
225
  outline: none;
290
- @include globaltransition("color, background-color, border-color");
291
226
  }
292
227
 
293
228
  &:active {
294
- background-color: map-get($color, "ux", "background", "active");
295
- border: map-get($borders, "base")
296
- map-get($color, "ux", "borders", "active") solid;
229
+ background-color: var(--ilo-color-background-active);
230
+ border: var(--ilo-border-md) var(--ilo-color-borders-active) solid;
297
231
  box-shadow: none;
298
- color: map-get($color, "ux", "labels", "active");
299
- @include globaltransition("color, background-color, border-color");
300
-
301
- &.ilo--button--small {
302
- box-shadow: none;
303
- }
232
+ color: var(--ilo-button-labels-active-color);
304
233
  }
305
234
  }
306
- }
307
235
 
308
- [id*="story--components-button"] div {
309
- .ilo--button {
310
- margin-right: 10px;
311
- margin-bottom: 10px;
236
+ &:focus {
237
+ background-color: var(--ilo-color-background-focus);
238
+ border: var(--ilo-border-md) var(--ilo-color-borders-focus) solid;
239
+ box-shadow: 4px 4px 0 1px var(--ilo-color-borders-focus) inset,
240
+ -4px -4px 0 1px var(--ilo-color-borders-focus) inset;
241
+ color: var(--ilo-button-labels-focus-color);
242
+ outline: none;
243
+ @include globaltransition("color, background-color, border-color");
312
244
 
313
- &--large.icon--only {
314
- transform: translateY(-6px);
245
+ &.#{$prefix}--small {
246
+ box-shadow: 3px 3px 0 1px var(--ilo-color-borders-focus) inset,
247
+ -3px -3px 0 1px var(--ilo-color-borders-focus) inset;
315
248
  }
249
+ }
316
250
 
317
- &--medium.icon--only {
318
- transform: translateY(-5px);
319
- }
251
+ &:hover {
252
+ background-color: var(--ilo-color-background-hover);
253
+ border: var(--ilo-border-md) var(--ilo-color-borders-hover) solid;
254
+ box-shadow: none;
255
+ color: var(--ilo-button-labels-hover-color);
256
+ cursor: pointer;
257
+ @include globaltransition("color, background-color, border-color");
258
+ }
320
259
 
321
- &--small.icon--only {
322
- transform: translateY(-5px);
323
- }
260
+ &:active {
261
+ background-color: var(--ilo-color-background-active);
262
+ border: var(--ilo-border-md) var(--ilo-color-borders-active) solid;
263
+ box-shadow: none;
264
+ color: var(--ilo-button-labels-active-color);
265
+ @include globaltransition("color, background-color, border-color");
266
+ }
267
+
268
+ &:disabled {
269
+ opacity: $opacity-disabled;
270
+ pointer-events: none;
324
271
  }
325
272
  }