@carbon/styles 0.12.0 → 0.13.0-rc.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 +2 -2
- package/scss/_type.scss +1 -0
- package/scss/components/_index.scss +1 -0
- package/scss/components/button/_mixins.scss +5 -2
- package/scss/components/date-picker/_flatpickr.scss +1 -0
- package/scss/components/link/_link.scss +15 -2
- package/scss/components/notification/_inline-notification.scss +3 -0
- package/scss/components/notification/_toast-notification.scss +3 -0
- package/scss/components/select/_select.scss +5 -0
- package/scss/components/toggletip/_index.scss +11 -0
- package/scss/components/toggletip/_toggletip.scss +81 -0
- package/scss/components/ui-shell/header/_header.scss +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@carbon/test-utils": "^10.21.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "885c987334058efa5ba30582d615c04de2e631a4"
|
|
37
37
|
}
|
package/scss/_type.scss
CHANGED
|
@@ -13,8 +13,11 @@
|
|
|
13
13
|
@use '../../type' as *;
|
|
14
14
|
@use '../../utilities/component-reset';
|
|
15
15
|
@use '../../utilities/convert' as *;
|
|
16
|
+
@use '../../utilities/custom-property';
|
|
16
17
|
@use 'tokens' as *;
|
|
17
18
|
|
|
19
|
+
$button-focus-color: custom-property.get-var('button-focus-color', $focus);
|
|
20
|
+
|
|
18
21
|
@mixin button-base {
|
|
19
22
|
@include component-reset.reset;
|
|
20
23
|
@include type-style('body-short-01');
|
|
@@ -84,8 +87,8 @@
|
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
&:focus {
|
|
87
|
-
border-color: $focus;
|
|
88
|
-
box-shadow: inset 0 0 0 $button-outline-width $focus,
|
|
90
|
+
border-color: $button-focus-color;
|
|
91
|
+
box-shadow: inset 0 0 0 $button-outline-width $button-focus-color,
|
|
89
92
|
inset 0 0 0 $button-border-width $background;
|
|
90
93
|
}
|
|
91
94
|
|
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
text-decoration: none;
|
|
220
220
|
transform: scale(1, 1) #{'/*rtl: scale(-1,1)*/'};
|
|
221
221
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
222
|
+
user-select: none;
|
|
222
223
|
// Windows HCM fix
|
|
223
224
|
@include high-contrast-mode('icon-fill');
|
|
224
225
|
|
|
@@ -11,8 +11,19 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
|
+
@use '../../utilities/custom-property';
|
|
14
15
|
@use '../../utilities/focus-outline' as *;
|
|
15
16
|
|
|
17
|
+
$link-text-color: custom-property.get-var('link-text-color', $link-primary);
|
|
18
|
+
$link-hover-text-color: custom-property.get-var(
|
|
19
|
+
'link-hover-text-color',
|
|
20
|
+
$link-primary-hover
|
|
21
|
+
);
|
|
22
|
+
$link-focus-text-color: custom-property.get-var(
|
|
23
|
+
'link-focus-text-color',
|
|
24
|
+
$focus
|
|
25
|
+
);
|
|
26
|
+
|
|
16
27
|
/// Link styles
|
|
17
28
|
/// @access public
|
|
18
29
|
/// @group link
|
|
@@ -22,13 +33,13 @@
|
|
|
22
33
|
@include type.type-style('body-short-01');
|
|
23
34
|
|
|
24
35
|
display: inline-flex;
|
|
25
|
-
color: $link-
|
|
36
|
+
color: $link-text-color;
|
|
26
37
|
outline: none;
|
|
27
38
|
text-decoration: none;
|
|
28
39
|
transition: color $duration-fast-01 motion(standard, productive);
|
|
29
40
|
|
|
30
41
|
&:hover {
|
|
31
|
-
color: $link-
|
|
42
|
+
color: $link-hover-text-color;
|
|
32
43
|
text-decoration: underline;
|
|
33
44
|
}
|
|
34
45
|
|
|
@@ -41,6 +52,8 @@
|
|
|
41
52
|
|
|
42
53
|
&:focus {
|
|
43
54
|
@include focus-outline;
|
|
55
|
+
|
|
56
|
+
outline-color: $link-focus-text-color;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
&:visited {
|
|
@@ -255,6 +255,9 @@
|
|
|
255
255
|
.#{$prefix}--toast-notification__close-button:focus {
|
|
256
256
|
@include high-contrast-mode('focus');
|
|
257
257
|
}
|
|
258
|
+
.#{$prefix}--toast-notification__close-icon {
|
|
259
|
+
@include high-contrast-mode('icon-fill');
|
|
260
|
+
}
|
|
258
261
|
.#{$prefix}--toast-notification__icon {
|
|
259
262
|
@include high-contrast-mode('icon-fill');
|
|
260
263
|
}
|
|
@@ -214,6 +214,11 @@
|
|
|
214
214
|
color: $text-primary;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
.#{$prefix}--select--inline .#{$prefix}--select-input:focus option,
|
|
218
|
+
.#{$prefix}--select--inline .#{$prefix}--select-input:focus optgroup {
|
|
219
|
+
background-color: $background;
|
|
220
|
+
}
|
|
221
|
+
|
|
217
222
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled],
|
|
218
223
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled]:hover {
|
|
219
224
|
background-color: $field-disabled;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
|