@carbon/styles 0.12.0 → 0.14.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/package.json +8 -8
- package/scss/_config.scss +6 -0
- package/scss/_grid.scss +3 -1
- package/scss/_type.scss +1 -0
- package/scss/components/_index.scss +2 -0
- package/scss/components/accordion/_accordion.scss +7 -3
- package/scss/components/aspect-ratio/_aspect-ratio.scss +72 -0
- package/scss/components/aspect-ratio/_index.scss +11 -0
- package/scss/components/button/_button.scss +4 -3
- package/scss/components/button/_mixins.scss +7 -3
- package/scss/components/button/_tokens.scss +16 -16
- package/scss/components/checkbox/_checkbox.scss +7 -0
- package/scss/components/code-snippet/_code-snippet.scss +2 -2
- package/scss/components/content-switcher/_content-switcher.scss +28 -1
- package/scss/components/data-table/action/_data-table-action.scss +99 -25
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +1 -0
- package/scss/components/dropdown/_dropdown.scss +0 -16
- package/scss/components/link/_link.scss +15 -2
- package/scss/components/list-box/_list-box.scss +11 -27
- package/scss/components/modal/_modal.scss +91 -102
- package/scss/components/notification/_inline-notification.scss +3 -0
- package/scss/components/notification/_toast-notification.scss +3 -0
- package/scss/components/number-input/_number-input.scss +1 -1
- package/scss/components/pagination/_pagination.scss +56 -7
- package/scss/components/radio-button/_radio-button.scss +3 -2
- package/scss/components/select/_select.scss +7 -2
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/tag/_tag.scss +1 -1
- package/scss/components/text-area/_text-area.scss +7 -1
- package/scss/components/text-input/_text-input.scss +1 -1
- package/scss/components/tile/_tile.scss +1 -1
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/components/toggletip/_index.scss +11 -0
- package/scss/components/toggletip/_toggletip.scss +81 -0
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +30 -0
- package/scss/components/ui-shell/header/_header.scss +2 -0
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
@include focus-outline('reset');
|
|
217
217
|
|
|
218
218
|
border-bottom: 1px solid transparent;
|
|
219
|
-
background-color: $field
|
|
219
|
+
background-color: $field;
|
|
220
220
|
color: $text-disabled;
|
|
221
221
|
cursor: not-allowed;
|
|
222
222
|
// Needed to fix disabled text in Safari #6673
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
+ .#{$prefix}--toggle__label
|
|
303
303
|
.#{$prefix}--toggle__appearance {
|
|
304
304
|
&::before {
|
|
305
|
-
background-color: $layer
|
|
305
|
+
background-color: $layer;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
&::after {
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
.#{$prefix}--toggle-input--small:disabled:checked
|
|
582
582
|
+ .#{$prefix}--toggle-input__label
|
|
583
583
|
.#{$prefix}--toggle__check {
|
|
584
|
-
fill: $layer
|
|
584
|
+
fill: $layer;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
//----------------------------------------------
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'toggletip';
|
|
9
|
+
@use 'toggletip';
|
|
10
|
+
|
|
11
|
+
@include toggletip.toggletip;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '../../config' as *;
|
|
9
|
+
@use '../../spacing';
|
|
10
|
+
@use '../../theme';
|
|
11
|
+
@use '../../type';
|
|
12
|
+
@use '../../utilities/button-reset';
|
|
13
|
+
@use '../../utilities/convert';
|
|
14
|
+
@use '../../utilities/custom-property';
|
|
15
|
+
@use '../../utilities/focus-outline';
|
|
16
|
+
|
|
17
|
+
@mixin toggletip() {
|
|
18
|
+
.#{$prefix}--toggletip-label {
|
|
19
|
+
@include type.type-style('label-01');
|
|
20
|
+
|
|
21
|
+
margin-right: spacing.$spacing-03;
|
|
22
|
+
|
|
23
|
+
color: theme.$text-secondary;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$prefix}--toggletip-button {
|
|
27
|
+
@include button-reset.reset();
|
|
28
|
+
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.#{$prefix}--toggletip-button svg {
|
|
34
|
+
fill: theme.$icon-secondary;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$prefix}--toggletip-button:hover svg,
|
|
38
|
+
.#{$prefix}--toggletip--open .#{$prefix}--toggletip-button svg {
|
|
39
|
+
fill: theme.$icon-primary;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$prefix}--toggletip-button:focus {
|
|
43
|
+
@include focus-outline.focus-outline;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$prefix}--toggletip {
|
|
47
|
+
@include custom-property.declaration('popover-offset', convert.rem(13px));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$prefix}--toggletip-content {
|
|
51
|
+
@include custom-property.declaration(
|
|
52
|
+
'button-focus-color',
|
|
53
|
+
theme.$focus-inverse
|
|
54
|
+
);
|
|
55
|
+
@include custom-property.declaration(
|
|
56
|
+
'link-text-color',
|
|
57
|
+
theme.$link-inverse
|
|
58
|
+
);
|
|
59
|
+
@include custom-property.declaration(
|
|
60
|
+
'link-hover-text-color',
|
|
61
|
+
theme.$link-inverse
|
|
62
|
+
);
|
|
63
|
+
@include custom-property.declaration(
|
|
64
|
+
'link-focus-text-color',
|
|
65
|
+
theme.$focus-inverse
|
|
66
|
+
);
|
|
67
|
+
@include type.type-style('body-short-01');
|
|
68
|
+
|
|
69
|
+
display: grid;
|
|
70
|
+
max-width: 18rem;
|
|
71
|
+
padding: spacing.$spacing-05;
|
|
72
|
+
row-gap: spacing.$spacing-05;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$prefix}--toggletip-actions {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
column-gap: spacing.$spacing-05;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
@use '../../type';
|
|
12
12
|
@use '../../utilities/custom-property';
|
|
13
13
|
@use '../../utilities/convert';
|
|
14
|
+
@use '../../utilities/button-reset';
|
|
15
|
+
@use '../../utilities/focus-outline';
|
|
14
16
|
|
|
15
17
|
$tooltip-padding-block: custom-property.get-var(
|
|
16
18
|
'tooltip-padding-block',
|
|
@@ -37,6 +39,34 @@ $tooltip-padding-inline: custom-property.get-var(
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
@mixin definition-tooltip {
|
|
43
|
+
.#{$prefix}--definition-term {
|
|
44
|
+
@include button-reset.reset;
|
|
45
|
+
|
|
46
|
+
border-bottom: 1px dotted theme.$border-strong;
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
|
|
49
|
+
color: theme.$text-primary;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$prefix}--definition-term:focus {
|
|
53
|
+
@include focus-outline.focus-outline;
|
|
54
|
+
|
|
55
|
+
border-bottom-color: theme.$border-interactive;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$prefix}--definition-term:hover {
|
|
59
|
+
border-bottom-color: theme.$border-interactive;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$prefix}--definition-tooltip {
|
|
63
|
+
@include type.type-style('body-long-01');
|
|
64
|
+
|
|
65
|
+
max-width: convert.rem(176px);
|
|
66
|
+
padding: convert.rem(8px) convert.rem(16px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
40
70
|
@mixin icon-tooltip {
|
|
41
71
|
.#{$prefix}--icon-tooltip {
|
|
42
72
|
@include custom-property.declaration(
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
.#{$prefix}--header__action {
|
|
37
37
|
@include button-reset.reset();
|
|
38
38
|
|
|
39
|
+
display: inline-flex;
|
|
39
40
|
width: mini-units(6);
|
|
40
41
|
height: mini-units(6);
|
|
41
42
|
border: rem(2px) solid transparent;
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.#{$prefix}--header__action.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger {
|
|
84
|
+
align-items: center;
|
|
83
85
|
justify-content: center;
|
|
84
86
|
}
|
|
85
87
|
|