@carbon/styles 1.17.0 → 1.18.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 +438 -41
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/components/_index.scss +1 -0
- package/scss/components/checkbox/_checkbox.scss +31 -0
- package/scss/components/code-snippet/_code-snippet.scss +4 -3
- package/scss/components/contained-list/_contained-list.scss +31 -2
- package/scss/components/date-picker/_date-picker.scss +10 -0
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +14 -11
- package/scss/components/fluid-list-box/_fluid-list-box.scss +4 -4
- package/scss/components/fluid-select/_fluid-select.scss +31 -9
- package/scss/components/fluid-text-input/_fluid-text-input.scss +12 -8
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +235 -0
- package/scss/components/fluid-time-picker/_index.scss +11 -0
- package/scss/components/number-input/_number-input.scss +29 -5
- package/scss/components/overflow-menu/_overflow-menu.scss +1 -1
- package/scss/components/pagination/_pagination.scss +11 -3
- package/scss/components/radio-button/_radio-button.scss +18 -0
- package/scss/components/select/_select.scss +10 -0
- package/scss/components/slider/_slider.scss +14 -0
- package/scss/components/tabs/_tabs.scss +4 -0
- package/scss/components/text-input/_text-input.scss +11 -0
- package/scss/components/time-picker/_time-picker.scss +16 -0
- package/scss/components/toggle/_toggle.scss +33 -0
|
@@ -134,9 +134,7 @@
|
|
|
134
134
|
border-right: 1px solid $border-subtle;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.#{$prefix}--
|
|
138
|
-
.#{$prefix}--select__page-number
|
|
139
|
-
.#{$prefix}--select-input {
|
|
137
|
+
.#{$prefix}--pagination__right {
|
|
140
138
|
border-left: 1px solid $border-subtle;
|
|
141
139
|
}
|
|
142
140
|
|
|
@@ -166,6 +164,16 @@
|
|
|
166
164
|
margin-left: rem(1px);
|
|
167
165
|
}
|
|
168
166
|
|
|
167
|
+
.#{$prefix}--pagination__right
|
|
168
|
+
.#{$prefix}--pagination__text.#{$prefix}--pagination__page-text {
|
|
169
|
+
margin-right: rem(1px);
|
|
170
|
+
margin-left: 1rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$prefix}--pagination__right .#{$prefix}--pagination__text:empty {
|
|
174
|
+
margin: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
169
177
|
.#{$prefix}--pagination__left {
|
|
170
178
|
padding: 0 $spacing-05 0 0;
|
|
171
179
|
|
|
@@ -135,6 +135,24 @@ $radio-border-width: 1px !default;
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
// readonly
|
|
139
|
+
.#{$prefix}--radio-button-group--readonly
|
|
140
|
+
.#{$prefix}--radio-button
|
|
141
|
+
+ .#{$prefix}--radio-button__label
|
|
142
|
+
.#{$prefix}--radio-button__appearance {
|
|
143
|
+
border-color: $icon-disabled;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.#{$prefix}--radio-button-group--readonly .#{$prefix}--radio-button__label {
|
|
147
|
+
cursor: default;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.#{$prefix}--radio-button-group--readonly
|
|
151
|
+
.#{$prefix}--radio-button__label-text {
|
|
152
|
+
cursor: text;
|
|
153
|
+
user-select: text;
|
|
154
|
+
}
|
|
155
|
+
|
|
138
156
|
// Focus
|
|
139
157
|
|
|
140
158
|
.#{$prefix}--radio-button:focus
|
|
@@ -252,6 +252,16 @@
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
// readonly
|
|
256
|
+
.#{$prefix}--select--readonly .#{$prefix}--select-input {
|
|
257
|
+
background-color: transparent;
|
|
258
|
+
cursor: default;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.#{$prefix}--select--readonly .#{$prefix}--select__arrow {
|
|
262
|
+
fill: $icon-disabled;
|
|
263
|
+
}
|
|
264
|
+
|
|
255
265
|
//Skeleton State
|
|
256
266
|
.#{$prefix}--select.#{$prefix}--skeleton {
|
|
257
267
|
@include skeleton;
|
|
@@ -200,6 +200,20 @@
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
// readonly state
|
|
204
|
+
.#{$prefix}--slider--readonly {
|
|
205
|
+
cursor: default;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.#{$prefix}--slider--readonly .#{$prefix}--slider__thumb {
|
|
209
|
+
width: 0;
|
|
210
|
+
height: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.#{$prefix}--slider--readonly ~ .#{$prefix}--slider-text-input {
|
|
214
|
+
background-color: transparent;
|
|
215
|
+
}
|
|
216
|
+
|
|
203
217
|
// Skeleton state
|
|
204
218
|
.#{$prefix}--slider-container.#{$prefix}--skeleton
|
|
205
219
|
.#{$prefix}--slider__range-label {
|
|
@@ -307,6 +307,10 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
307
307
|
//-----------------------------
|
|
308
308
|
// Icon Item
|
|
309
309
|
//-----------------------------
|
|
310
|
+
&.#{$prefix}--tabs__icon--default .#{$prefix}--tab--list,
|
|
311
|
+
&.#{$prefix}--tabs__icon--lg .#{$prefix}--tab--list {
|
|
312
|
+
overflow-x: visible;
|
|
313
|
+
}
|
|
310
314
|
|
|
311
315
|
.#{$prefix}--tabs__nav-item--icon,
|
|
312
316
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--icon {
|
|
@@ -203,6 +203,17 @@
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
.#{$prefix}--text-input__counter-alert {
|
|
207
|
+
position: absolute;
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
width: 1px;
|
|
210
|
+
height: 1px;
|
|
211
|
+
padding: 0;
|
|
212
|
+
border: 0;
|
|
213
|
+
margin: -1px;
|
|
214
|
+
clip: rect(0, 0, 0, 0);
|
|
215
|
+
}
|
|
216
|
+
|
|
206
217
|
//-----------------------------
|
|
207
218
|
// Disabled
|
|
208
219
|
//-----------------------------
|
|
@@ -88,4 +88,20 @@
|
|
|
88
88
|
height: rem(48px);
|
|
89
89
|
max-height: rem(48px);
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
// readonly
|
|
93
|
+
.#{$prefix}--time-picker--readonly .#{$prefix}--time-picker__input-field {
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$prefix}--time-picker--readonly .#{$prefix}--select-input {
|
|
98
|
+
background-color: transparent;
|
|
99
|
+
cursor: default;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$prefix}--time-picker--readonly
|
|
103
|
+
.#{$prefix}--select-input
|
|
104
|
+
+ .#{$prefix}--select__arrow {
|
|
105
|
+
fill: $icon-disabled;
|
|
106
|
+
}
|
|
91
107
|
}
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
visibility: visible;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
// ----------------------------------------
|
|
130
|
+
// disabled
|
|
131
|
+
// ----------------------------------------
|
|
132
|
+
|
|
129
133
|
.#{$prefix}--toggle--disabled .#{$prefix}--toggle__appearance {
|
|
130
134
|
cursor: not-allowed;
|
|
131
135
|
}
|
|
@@ -147,6 +151,35 @@
|
|
|
147
151
|
fill: button.$button-disabled;
|
|
148
152
|
}
|
|
149
153
|
|
|
154
|
+
// ----------------------------------------
|
|
155
|
+
// readonly
|
|
156
|
+
// ----------------------------------------
|
|
157
|
+
.#{$prefix}--toggle--readonly .#{$prefix}--toggle__appearance {
|
|
158
|
+
cursor: default;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.#{$prefix}--toggle--readonly .#{$prefix}--toggle__switch {
|
|
162
|
+
border: 1px solid $icon-disabled;
|
|
163
|
+
background-color: transparent;
|
|
164
|
+
|
|
165
|
+
&::before {
|
|
166
|
+
top: rem(2px);
|
|
167
|
+
left: rem(2px);
|
|
168
|
+
background-color: $text-primary;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.#{$prefix}--toggle--readonly .#{$prefix}--toggle__check {
|
|
173
|
+
top: rem(5px);
|
|
174
|
+
right: rem(4px);
|
|
175
|
+
fill: $background;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.#{$prefix}--toggle--readonly .#{$prefix}--toggle__text {
|
|
179
|
+
cursor: text;
|
|
180
|
+
user-select: text;
|
|
181
|
+
}
|
|
182
|
+
|
|
150
183
|
// HCM
|
|
151
184
|
|
|
152
185
|
.#{$prefix}--toggle__switch,
|