@carbon/styles 1.25.0 → 1.26.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/css/styles.css +123 -23
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/checkbox/_checkbox.scss +4 -4
- package/scss/components/fluid-number-input/_fluid-number-input.scss +4 -1
- package/scss/components/fluid-select/_fluid-select.scss +1 -1
- package/scss/components/fluid-text-area/_fluid-text-area.scss +10 -5
- package/scss/components/modal/_modal.scss +43 -1
- package/scss/components/radio-button/_radio-button.scss +57 -0
- package/scss/components/tabs/_tabs.scss +27 -2
- package/scss/components/treeview/_treeview.scss +11 -6
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": "1.
|
|
4
|
+
"version": "1.26.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"scss/**/*.css",
|
|
60
60
|
"css/**/*.css"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "14c6f7442f8915d508a0bada49bb05e0cac8464c"
|
|
63
63
|
}
|
|
@@ -94,19 +94,19 @@
|
|
|
94
94
|
|
|
95
95
|
// Checkboxes with a background color look visually off against a parent container.
|
|
96
96
|
background-color: transparent;
|
|
97
|
-
border-radius:
|
|
97
|
+
border-radius: 2px;
|
|
98
98
|
content: '';
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// Create the appearance of the check in the `after` pseudo-element
|
|
102
102
|
.#{$prefix}--checkbox-label::after {
|
|
103
103
|
position: absolute;
|
|
104
|
-
top: rem(
|
|
104
|
+
top: rem(7.5px);
|
|
105
105
|
left: rem(7px);
|
|
106
106
|
width: rem(9px);
|
|
107
107
|
height: rem(5px);
|
|
108
|
-
border-bottom:
|
|
109
|
-
border-left:
|
|
108
|
+
border-bottom: 1.5px solid $icon-inverse;
|
|
109
|
+
border-left: 1.5px solid $icon-inverse;
|
|
110
110
|
margin-top: rem(-3px) #{'/*rtl:0rem*/'};
|
|
111
111
|
background: none;
|
|
112
112
|
content: '';
|
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
white-space: nowrap;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
.#{$prefix}--number-input--fluid .#{$prefix}--number__input-wrapper {
|
|
57
|
+
position: initial;
|
|
58
|
+
}
|
|
59
|
+
|
|
56
60
|
.#{$prefix}--number-input--fluid input[type='number'] {
|
|
57
61
|
min-height: rem(64px);
|
|
58
62
|
padding: rem(32px) rem(80px) rem(13px) $spacing-05;
|
|
@@ -74,7 +78,6 @@
|
|
|
74
78
|
border-bottom: 1px solid transparent;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
|
-
// Focus Overrides
|
|
78
81
|
.#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--focus
|
|
79
82
|
.#{$prefix}--number {
|
|
80
83
|
@include focus-outline('outline');
|
|
@@ -96,6 +96,12 @@
|
|
|
96
96
|
resize: none;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
// accounts for 2px of border when invalid
|
|
100
|
+
.#{$prefix}--text-area--fluid .#{$prefix}--text-area--invalid {
|
|
101
|
+
padding: 0 rem(14px) rem(13px);
|
|
102
|
+
margin-top: rem(30px);
|
|
103
|
+
}
|
|
104
|
+
|
|
99
105
|
.#{$prefix}--text-area--fluid
|
|
100
106
|
.#{$prefix}--text-area__wrapper[data-invalid]
|
|
101
107
|
.#{$prefix}--text-area__divider,
|
|
@@ -156,11 +162,10 @@
|
|
|
156
162
|
}
|
|
157
163
|
|
|
158
164
|
//invalid outline
|
|
165
|
+
// needs to be a border for some weirdness when in a modal
|
|
159
166
|
.#{$prefix}--text-area--fluid
|
|
160
167
|
.#{$prefix}--text-area__wrapper[data-invalid]:not(:focus) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
outline-offset: 0;
|
|
168
|
+
border: 2px solid $support-error;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
// focus
|
|
@@ -168,10 +173,10 @@
|
|
|
168
173
|
.#{$prefix}--text-area__wrapper[data-invalid]:focus-within,
|
|
169
174
|
.#{$prefix}--text-area--fluid .#{$prefix}--text-area__wrapper:focus-within {
|
|
170
175
|
@include focus-outline('outline');
|
|
171
|
-
|
|
172
|
-
outline-offset: 0;
|
|
173
176
|
}
|
|
174
177
|
|
|
178
|
+
// end weirdness
|
|
179
|
+
|
|
175
180
|
.#{$prefix}--text-area--fluid
|
|
176
181
|
.#{$prefix}--text-area__wrapper[data-invalid]
|
|
177
182
|
> .#{$prefix}--text-area--invalid:focus,
|
|
@@ -71,6 +71,41 @@
|
|
|
71
71
|
.#{$prefix}--number__rule-divider {
|
|
72
72
|
background-color: $border-subtle-02;
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
// Fluid inputs
|
|
76
|
+
.#{$prefix}--text-input--fluid .#{$prefix}--text-input,
|
|
77
|
+
.#{$prefix}--text-area--fluid .#{$prefix}--text-area__wrapper,
|
|
78
|
+
.#{$prefix}--text-area--fluid .#{$prefix}--text-area,
|
|
79
|
+
.#{$prefix}--search--fluid .#{$prefix}--search-input,
|
|
80
|
+
.#{$prefix}--select--fluid .#{$prefix}--select-input,
|
|
81
|
+
.#{$prefix}--text-area--fluid
|
|
82
|
+
.#{$prefix}--text-area__wrapper[data-invalid]
|
|
83
|
+
.#{$prefix}--text-area__divider
|
|
84
|
+
+ .#{$prefix}--form-requirement,
|
|
85
|
+
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box,
|
|
86
|
+
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper,
|
|
87
|
+
.#{$prefix}--number-input--fluid input[type='number'],
|
|
88
|
+
.#{$prefix}--number-input--fluid .#{$prefix}--number__control-btn::before,
|
|
89
|
+
.#{$prefix}--number-input--fluid .#{$prefix}--number__control-btn::after,
|
|
90
|
+
.#{$prefix}--date-picker--fluid
|
|
91
|
+
.c#{$prefix}ds--date-picker-input__wrapper
|
|
92
|
+
.#{$prefix}--date-picker__input {
|
|
93
|
+
background-color: $field-01;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.#{$prefix}--number-input--fluid
|
|
97
|
+
.#{$prefix}--number__control-btn:hover::before,
|
|
98
|
+
.#{$prefix}--number-input--fluid
|
|
99
|
+
.#{$prefix}--number__control-btn:hover::after {
|
|
100
|
+
background-color: $field-hover;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--number-input--fluid
|
|
104
|
+
.#{$prefix}--number__control-btn:focus::before,
|
|
105
|
+
.#{$prefix}--number-input--fluid
|
|
106
|
+
.#{$prefix}--number__control-btn:focus::after {
|
|
107
|
+
border-left: 2px solid $focus;
|
|
108
|
+
}
|
|
74
109
|
}
|
|
75
110
|
|
|
76
111
|
.#{$prefix}--modal.is-visible .#{$prefix}--modal-container {
|
|
@@ -144,6 +179,12 @@
|
|
|
144
179
|
}
|
|
145
180
|
}
|
|
146
181
|
|
|
182
|
+
// fluid form in modal
|
|
183
|
+
.#{$prefix}--modal-content .#{$prefix}--form--fluid {
|
|
184
|
+
margin-right: -$spacing-05;
|
|
185
|
+
margin-left: -$spacing-05;
|
|
186
|
+
}
|
|
187
|
+
|
|
147
188
|
//TO-DO: remove .#{$prefix}--modal-content__regular-content in v11 since hasForm has been deprecated
|
|
148
189
|
// text/p gets 20% right padding
|
|
149
190
|
.#{$prefix}--modal-content > p,
|
|
@@ -327,7 +368,8 @@
|
|
|
327
368
|
max-width: none;
|
|
328
369
|
height: rem(64px);
|
|
329
370
|
flex: 0 1 50%;
|
|
330
|
-
|
|
371
|
+
align-items: baseline;
|
|
372
|
+
padding-top: calc($spacing-05 - rem(2px));
|
|
331
373
|
padding-bottom: $spacing-07;
|
|
332
374
|
margin: 0;
|
|
333
375
|
}
|
|
@@ -153,6 +153,63 @@ $radio-border-width: 1px !default;
|
|
|
153
153
|
user-select: text;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
// invalid + warn
|
|
157
|
+
.#{$prefix}--radio-button-group--invalid
|
|
158
|
+
.#{$prefix}--radio-button
|
|
159
|
+
+ .#{$prefix}--radio-button__label
|
|
160
|
+
.#{$prefix}--radio-button__appearance {
|
|
161
|
+
border-color: $support-error;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.#{$prefix}--radio-button__validation-msg {
|
|
165
|
+
display: none;
|
|
166
|
+
align-items: flex-end;
|
|
167
|
+
margin-top: $spacing-03;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.#{$prefix}--radio-button__invalid-icon {
|
|
171
|
+
margin: 0 rem(1px) 0 rem(3px);
|
|
172
|
+
fill: $support-error;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.#{$prefix}--radio-button__invalid-icon--warning {
|
|
176
|
+
fill: $support-warning;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.#{$prefix}--radio-button__invalid-icon--warning path:first-of-type {
|
|
180
|
+
fill: #000000;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.#{$prefix}--radio-button__validation-msg .#{$prefix}--form__helper-text {
|
|
184
|
+
margin-top: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.#{$prefix}--radio-button-group--invalid
|
|
188
|
+
+ .#{$prefix}--radio-button__validation-msg,
|
|
189
|
+
.#{$prefix}--radio-button-group--warning
|
|
190
|
+
+ .#{$prefix}--radio-button__validation-msg {
|
|
191
|
+
display: flex;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.#{$prefix}--radio-button-group--invalid
|
|
195
|
+
+ .#{$prefix}--radio-button__validation-msg
|
|
196
|
+
.#{$prefix}--form-requirement,
|
|
197
|
+
.#{$prefix}--radio-button-group--warning
|
|
198
|
+
+ .#{$prefix}--radio-button__validation-msg
|
|
199
|
+
.#{$prefix}--form-requirement {
|
|
200
|
+
display: block;
|
|
201
|
+
overflow: visible;
|
|
202
|
+
max-height: 100%;
|
|
203
|
+
margin-top: 0;
|
|
204
|
+
margin-left: $spacing-03;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{$prefix}--radio-button-group--invalid
|
|
208
|
+
+ .#{$prefix}--radio-button__validation-msg
|
|
209
|
+
.#{$prefix}--form-requirement {
|
|
210
|
+
color: $text-error;
|
|
211
|
+
}
|
|
212
|
+
|
|
156
213
|
// Focus
|
|
157
214
|
|
|
158
215
|
.#{$prefix}--radio-button:focus
|
|
@@ -299,10 +299,25 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
299
299
|
height: rem(48px);
|
|
300
300
|
padding: $spacing-03 $spacing-05;
|
|
301
301
|
border-bottom: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
&.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
|
|
305
|
+
.#{$prefix}--tabs__nav-item-label {
|
|
302
306
|
// height - vertical padding
|
|
303
307
|
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
304
308
|
}
|
|
305
309
|
|
|
310
|
+
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item-secondary-label {
|
|
311
|
+
@include type-style('label-01');
|
|
312
|
+
|
|
313
|
+
min-height: rem(16px);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.#{$prefix}--tabs--contained.#{$prefix}--tabs--tall
|
|
317
|
+
.#{$prefix}--tabs__nav-link {
|
|
318
|
+
height: rem(64px);
|
|
319
|
+
}
|
|
320
|
+
|
|
306
321
|
//-----------------------------
|
|
307
322
|
// Icon Item
|
|
308
323
|
//-----------------------------
|
|
@@ -319,6 +334,10 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
319
334
|
align-items: center;
|
|
320
335
|
justify-content: center;
|
|
321
336
|
padding: 0;
|
|
337
|
+
|
|
338
|
+
.#{$prefix}--tabs__nav-item-label {
|
|
339
|
+
line-height: 0;
|
|
340
|
+
}
|
|
322
341
|
}
|
|
323
342
|
|
|
324
343
|
&.#{$prefix}--tabs__icon--lg {
|
|
@@ -363,11 +382,17 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
363
382
|
color: $text-primary;
|
|
364
383
|
}
|
|
365
384
|
|
|
385
|
+
&.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
|
|
386
|
+
.#{$prefix}--tabs__nav-item--selected,
|
|
387
|
+
&.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
|
|
388
|
+
.#{$prefix}--tabs__nav-item--selected:hover {
|
|
389
|
+
// height - vertical padding
|
|
390
|
+
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
391
|
+
}
|
|
392
|
+
|
|
366
393
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--selected,
|
|
367
394
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--selected:hover {
|
|
368
395
|
background-color: $layer;
|
|
369
|
-
// height - vertical padding
|
|
370
|
-
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
371
396
|
|
|
372
397
|
.#{$prefix}--tabs__nav-link:focus,
|
|
373
398
|
.#{$prefix}--tabs__nav-link:active {
|
|
@@ -73,9 +73,6 @@
|
|
|
73
73
|
min-height: rem(32px);
|
|
74
74
|
flex: 1;
|
|
75
75
|
align-items: center;
|
|
76
|
-
// (min-height 32px - single line text height 18px) / 2 = 7px
|
|
77
|
-
padding-top: rem(7px);
|
|
78
|
-
padding-bottom: rem(7px);
|
|
79
76
|
|
|
80
77
|
&:hover {
|
|
81
78
|
background-color: $layer-hover-01;
|
|
@@ -83,6 +80,12 @@
|
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
82
|
|
|
83
|
+
.cds--tree-node:not(.cds--tree-parent-node) .#{$prefix}--tree-node__label {
|
|
84
|
+
// (min-height 32px - single line text height 18px) / 2 = 7px
|
|
85
|
+
padding-top: rem(7px);
|
|
86
|
+
padding-bottom: rem(7px);
|
|
87
|
+
}
|
|
88
|
+
|
|
86
89
|
.#{$prefix}--tree-node__label:hover .#{$prefix}--tree-node__label__details {
|
|
87
90
|
color: $text-primary;
|
|
88
91
|
}
|
|
@@ -113,12 +116,14 @@
|
|
|
113
116
|
|
|
114
117
|
.#{$prefix}--tree-parent-node__toggle {
|
|
115
118
|
display: flex;
|
|
119
|
+
width: rem(24px);
|
|
120
|
+
height: rem(24px);
|
|
116
121
|
align-items: center;
|
|
117
122
|
align-self: flex-start;
|
|
118
|
-
|
|
119
|
-
padding: rem(1px) 0;
|
|
123
|
+
padding-left: $spacing-02;
|
|
120
124
|
border: 0;
|
|
121
|
-
margin-
|
|
125
|
+
margin-top: $spacing-02;
|
|
126
|
+
margin-right: $spacing-02;
|
|
122
127
|
|
|
123
128
|
&:hover {
|
|
124
129
|
cursor: pointer;
|