@carbon/styles 0.16.2 → 1.0.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 +15 -10
- package/scss/__tests__/__snapshots__/config-test.js.snap +30 -1
- package/scss/__tests__/type-test.js +0 -1
- package/scss/_breakpoint.scss +2 -1
- package/scss/_config.scss +9 -2
- package/scss/_spacing.scss +1 -1
- package/scss/_theme.scss +4 -4
- package/scss/_themes.scss +2 -1
- package/scss/components/accordion/_accordion.scss +1 -1
- package/scss/components/aspect-ratio/_aspect-ratio.scss +2 -2
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +1 -5
- package/scss/components/button/_tokens.scss +1 -0
- package/scss/components/code-snippet/_code-snippet.scss +32 -47
- package/scss/components/content-switcher/_content-switcher.scss +0 -2
- package/scss/components/copy-button/_copy-button.scss +0 -59
- package/scss/components/data-table/_data-table.scss +2 -164
- package/scss/components/data-table/action/_data-table-action.scss +2 -19
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -2
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -28
- package/scss/components/dropdown/_dropdown.scss +0 -1
- package/scss/components/file-uploader/_file-uploader.scss +3 -3
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/notification/_actionable-notification.scss +58 -19
- package/scss/components/notification/_inline-notification.scss +9 -21
- package/scss/components/notification/_toast-notification.scss +29 -58
- package/scss/components/notification/_tokens.scss +2 -1
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -5
- package/scss/components/pagination/_unstable_pagination.scss +1 -1
- package/scss/components/popover/_popover.scss +0 -8
- package/scss/components/progress-bar/_progress-bar.scss +21 -0
- package/scss/components/progress-indicator/_progress-indicator.scss +5 -5
- package/scss/components/radio-button/_radio-button.scss +2 -10
- package/scss/components/search/_search.scss +6 -0
- package/scss/components/tabs/_tabs.scss +1 -1
- package/scss/components/tag/_tokens.scss +1 -0
- package/scss/components/text-input/_text-input.scss +7 -22
- package/scss/components/tile/_tile.scss +60 -29
- package/scss/components/time-picker/_time-picker.scss +0 -3
- package/scss/components/toggletip/_toggletip.scss +1 -2
- package/scss/components/treeview/_treeview.scss +1 -1
- package/scss/components/ui-shell/content/_content.scss +0 -1
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +269 -0
- package/scss/fonts/__tests__/fonts-test.js +55 -0
- package/scss/fonts/_src.scss +42 -31
- package/scss/grid/_css-grid.scss +11 -0
- package/scss/grid/_flexbox.scss +1 -1
- package/scss/grid/_index.scss +7 -2
- package/scss/grid/_mixins.scss +9 -0
- package/scss/type/_reset.scss +1 -1
- package/scss/utilities/_component-tokens.scss +2 -1
- package/scss/utilities/_convert.scss +2 -4
- package/scss/utilities/_high-contrast-mode.scss +2 -4
- package/scss/grid/_config.scss +0 -18
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
height: auto;
|
|
35
35
|
min-height: rem(48px);
|
|
36
36
|
flex-wrap: wrap;
|
|
37
|
-
@if not enabled('enable-v11-release') {
|
|
38
|
-
margin-top: $spacing-05;
|
|
39
|
-
margin-bottom: $spacing-05;
|
|
40
|
-
}
|
|
41
37
|
|
|
42
38
|
color: $text-inverse;
|
|
43
39
|
|
|
@@ -181,10 +177,10 @@
|
|
|
181
177
|
.#{$prefix}--inline-notification__details {
|
|
182
178
|
display: flex;
|
|
183
179
|
flex-grow: 1;
|
|
184
|
-
margin: 0 $spacing-09 0
|
|
180
|
+
margin: 0 $spacing-09 0 rem(13px);
|
|
185
181
|
|
|
186
182
|
@include breakpoint(md) {
|
|
187
|
-
margin: 0
|
|
183
|
+
margin: 0 rem(13px);
|
|
188
184
|
}
|
|
189
185
|
}
|
|
190
186
|
|
|
@@ -200,24 +196,16 @@
|
|
|
200
196
|
padding: rem(15px) 0;
|
|
201
197
|
}
|
|
202
198
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
@include type-style('body-compact-01');
|
|
206
|
-
|
|
207
|
-
word-break: break-word;
|
|
208
|
-
}
|
|
209
|
-
} @else {
|
|
210
|
-
.#{$prefix}--inline-notification__title {
|
|
211
|
-
@include type-style('heading-compact-01');
|
|
199
|
+
.#{$prefix}--inline-notification__title {
|
|
200
|
+
@include type-style('heading-compact-01');
|
|
212
201
|
|
|
213
|
-
|
|
214
|
-
|
|
202
|
+
margin: 0 $spacing-02 0 0;
|
|
203
|
+
}
|
|
215
204
|
|
|
216
|
-
|
|
217
|
-
|
|
205
|
+
.#{$prefix}--inline-notification__subtitle {
|
|
206
|
+
@include type-style('body-compact-01');
|
|
218
207
|
|
|
219
|
-
|
|
220
|
-
}
|
|
208
|
+
word-break: break-word;
|
|
221
209
|
}
|
|
222
210
|
|
|
223
211
|
.#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost {
|
|
@@ -31,22 +31,11 @@
|
|
|
31
31
|
display: flex;
|
|
32
32
|
width: rem(288px);
|
|
33
33
|
height: auto;
|
|
34
|
-
padding-left:
|
|
35
|
-
@if not enabled('enable-v11-release') {
|
|
36
|
-
margin-top: $spacing-03;
|
|
37
|
-
margin-right: $spacing-05;
|
|
38
|
-
margin-bottom: $spacing-03;
|
|
39
|
-
}
|
|
34
|
+
padding-left: rem(13px);
|
|
40
35
|
|
|
41
36
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
|
|
42
37
|
color: $text-inverse;
|
|
43
38
|
|
|
44
|
-
@if not enabled('enable-v11-release') {
|
|
45
|
-
&:first-child {
|
|
46
|
-
margin-top: $spacing-05;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
39
|
@include breakpoint(max) {
|
|
51
40
|
width: rem(352px);
|
|
52
41
|
}
|
|
@@ -151,24 +140,8 @@
|
|
|
151
140
|
margin-right: $spacing-05;
|
|
152
141
|
}
|
|
153
142
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
@include type-style('body-compact-01');
|
|
157
|
-
|
|
158
|
-
margin-top: $spacing-05;
|
|
159
|
-
margin-right: $spacing-05;
|
|
160
|
-
margin-bottom: $spacing-05;
|
|
161
|
-
word-break: break-word;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.#{$prefix}--toast-notification--low-contrast
|
|
165
|
-
.#{$prefix}--toast-notification__content {
|
|
166
|
-
color: $text-primary;
|
|
167
|
-
}
|
|
168
|
-
} @else {
|
|
169
|
-
.#{$prefix}--toast-notification__details {
|
|
170
|
-
margin-right: $spacing-05;
|
|
171
|
-
}
|
|
143
|
+
.#{$prefix}--toast-notification__details {
|
|
144
|
+
margin-right: $spacing-05;
|
|
172
145
|
}
|
|
173
146
|
|
|
174
147
|
.#{$prefix}--toast-notification__close-button {
|
|
@@ -210,41 +183,39 @@
|
|
|
210
183
|
fill: $icon-primary;
|
|
211
184
|
}
|
|
212
185
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
@include type-style('heading-compact-01');
|
|
186
|
+
.#{$prefix}--toast-notification__title {
|
|
187
|
+
@include type-style('heading-compact-01');
|
|
216
188
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
189
|
+
margin-top: $spacing-05;
|
|
190
|
+
font-weight: 600;
|
|
191
|
+
word-break: break-word;
|
|
192
|
+
}
|
|
221
193
|
|
|
222
|
-
|
|
223
|
-
|
|
194
|
+
.#{$prefix}--toast-notification__subtitle {
|
|
195
|
+
@include type-style('body-compact-01');
|
|
224
196
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
197
|
+
margin-top: 0;
|
|
198
|
+
margin-bottom: $spacing-05;
|
|
199
|
+
color: $text-inverse;
|
|
200
|
+
word-break: break-word;
|
|
201
|
+
}
|
|
230
202
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
203
|
+
.#{$prefix}--toast-notification--low-contrast
|
|
204
|
+
.#{$prefix}--toast-notification__subtitle {
|
|
205
|
+
color: $text-primary;
|
|
206
|
+
}
|
|
235
207
|
|
|
236
|
-
|
|
237
|
-
|
|
208
|
+
.#{$prefix}--toast-notification__caption {
|
|
209
|
+
@include type-style('body-compact-01');
|
|
238
210
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
211
|
+
padding-top: $spacing-03;
|
|
212
|
+
margin-bottom: $spacing-05;
|
|
213
|
+
color: $text-inverse;
|
|
214
|
+
}
|
|
243
215
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
216
|
+
.#{$prefix}--toast-notification--low-contrast
|
|
217
|
+
.#{$prefix}--toast-notification__caption {
|
|
218
|
+
color: $text-primary;
|
|
248
219
|
}
|
|
249
220
|
|
|
250
221
|
// Windows HCM fix
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open,
|
|
79
79
|
.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open
|
|
80
80
|
.#{$prefix}--overflow-menu__trigger {
|
|
81
|
-
background-color: $
|
|
81
|
+
background-color: $layer;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.#{$prefix}--overflow-menu__icon {
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.#{$prefix}--overflow-menu-options--light {
|
|
124
|
-
background-color: $
|
|
124
|
+
background-color: $layer;
|
|
125
125
|
|
|
126
126
|
&::after {
|
|
127
|
-
background-color: $
|
|
127
|
+
background-color: $layer;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.#{$prefix}--overflow-menu.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open:hover {
|
|
132
|
-
background-color: $
|
|
132
|
+
background-color: $layer;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(.#{$prefix}--breadcrumb-menu-options)::after {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider {
|
|
234
|
-
border-top: 1px solid $border-subtle
|
|
234
|
+
border-top: 1px solid $border-subtle;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
a.#{$prefix}--overflow-menu-options__btn::before {
|
|
@@ -79,14 +79,6 @@ $popover-caret-height: custom-property.get-var(
|
|
|
79
79
|
|
|
80
80
|
/// Modifiers
|
|
81
81
|
|
|
82
|
-
// Light modifier
|
|
83
|
-
.#{$prefix}--popover--light .#{$prefix}--popover-content {
|
|
84
|
-
@include custom-property.declaration(
|
|
85
|
-
'popover-background-color',
|
|
86
|
-
theme.$layer-02
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
82
|
// High contrast modifier
|
|
91
83
|
.#{$prefix}--popover--high-contrast .#{$prefix}--popover {
|
|
92
84
|
@include custom-property.declaration(
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type' as *;
|
|
13
13
|
@use '../../utilities/convert' as *;
|
|
14
|
+
@use '../../utilities/visually-hidden' as *;
|
|
14
15
|
|
|
15
16
|
/// Progress Bar styles
|
|
16
17
|
/// @access public
|
|
@@ -87,4 +88,24 @@
|
|
|
87
88
|
background-position-x: -105%;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
|
|
92
|
+
.#{$prefix}--progress-bar--inline {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$prefix}--progress-bar--inline .#{$prefix}--progress-bar__label {
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
margin-inline-end: $spacing-05;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--progress-bar--inline .#{$prefix}--progress-bar__helper-text {
|
|
104
|
+
@include visually-hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.#{$prefix}--progress-bar--indented .#{$prefix}--progress-bar__label,
|
|
108
|
+
.#{$prefix}--progress-bar--indented .#{$prefix}--progress-bar__helper-text {
|
|
109
|
+
padding-inline: $spacing-05;
|
|
110
|
+
}
|
|
90
111
|
}
|
|
@@ -57,7 +57,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
57
57
|
position: absolute;
|
|
58
58
|
left: 0;
|
|
59
59
|
width: rem(128px);
|
|
60
|
-
height:
|
|
60
|
+
height: 2px;
|
|
61
61
|
border: $progress-indicator-bar-width;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -97,8 +97,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.#{$prefix}--progress-label:hover {
|
|
100
|
-
box-shadow: 0 rem(1px) $link-primary;
|
|
101
|
-
color: $link-primary;
|
|
100
|
+
box-shadow: 0 rem(1px) $link-primary-hover;
|
|
101
|
+
color: $link-primary-hover;
|
|
102
102
|
cursor: pointer;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -115,8 +115,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
115
115
|
|
|
116
116
|
.#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
|
|
117
117
|
.#{$prefix}--progress-label:active {
|
|
118
|
-
box-shadow: 0 rem(3px) 0 0 $
|
|
119
|
-
color: $
|
|
118
|
+
box-shadow: 0 rem(3px) 0 0 $text-primary;
|
|
119
|
+
color: $text-primary;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
//OVERFLOW STYLING
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/focus-outline' as *;
|
|
16
16
|
@use '../../utilities/component-reset' as *;
|
|
17
17
|
@use '../../utilities/visually-hidden' as *;
|
|
18
|
+
@use '../../utilities/high-contrast-mode' as *;
|
|
18
19
|
@use '../../utilities/skeleton' as *;
|
|
19
20
|
@use '../../utilities/convert' as *;
|
|
20
21
|
@use '../../config' as *;
|
|
@@ -109,16 +110,7 @@ $radio-border-width: 1px !default;
|
|
|
109
110
|
transform: scale(0.5);
|
|
110
111
|
|
|
111
112
|
// Allow the selected button to be seen in Windows HCM for IE/Edge
|
|
112
|
-
@
|
|
113
|
-
// Utilize a system color variable to accommodate any user HCM theme
|
|
114
|
-
background-color: WindowText;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Firefox only HCM solution
|
|
118
|
-
@media screen and (prefers-contrast) {
|
|
119
|
-
// Utilize a system color variable to accommodate any user HCM theme
|
|
120
|
-
border: 2px solid WindowText;
|
|
121
|
-
}
|
|
113
|
+
@include high-contrast-mode('icon-fill');
|
|
122
114
|
}
|
|
123
115
|
}
|
|
124
116
|
|
|
@@ -107,10 +107,16 @@
|
|
|
107
107
|
// 12px padding on either side of icon + 16px icon (40px)
|
|
108
108
|
padding: 0 $spacing-08;
|
|
109
109
|
}
|
|
110
|
+
|
|
110
111
|
.#{$prefix}--search--md .#{$prefix}--search-magnifier-icon {
|
|
111
112
|
left: rem(12px);
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
.#{$prefix}--search--md:not(.#{$prefix}--toolbar-search-container-active)
|
|
116
|
+
.#{$prefix}--search-magnifier-icon {
|
|
117
|
+
left: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
114
120
|
// Large styles
|
|
115
121
|
.#{$prefix}--search--lg .#{$prefix}--search-input,
|
|
116
122
|
.#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
@@ -283,6 +283,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
283
283
|
padding: $spacing-04 $spacing-05 $spacing-03;
|
|
284
284
|
border-bottom: $tab-underline-color;
|
|
285
285
|
color: $text-secondary;
|
|
286
|
+
text-align: left;
|
|
286
287
|
text-decoration: none;
|
|
287
288
|
text-overflow: ellipsis;
|
|
288
289
|
transition: border $duration-fast-01 motion(standard, productive),
|
|
@@ -301,7 +302,6 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
301
302
|
border-bottom: 0;
|
|
302
303
|
// height - vertical padding
|
|
303
304
|
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
304
|
-
text-align: left;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
//-----------------------------
|
|
@@ -56,8 +56,6 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// TODO V11: Remove xl selector
|
|
60
|
-
.#{$prefix}--text-input--xl,
|
|
61
59
|
.#{$prefix}--text-input--lg {
|
|
62
60
|
height: rem(48px);
|
|
63
61
|
}
|
|
@@ -124,8 +122,6 @@
|
|
|
124
122
|
@include tooltip--placement('icon', 'bottom', 'center');
|
|
125
123
|
}
|
|
126
124
|
|
|
127
|
-
.#{$prefix}--text-input--password__visibility,
|
|
128
|
-
// TODO: remove selector above
|
|
129
125
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
|
|
130
126
|
@include focus-outline('reset');
|
|
131
127
|
|
|
@@ -188,11 +184,8 @@
|
|
|
188
184
|
padding-right: rem(64px);
|
|
189
185
|
}
|
|
190
186
|
|
|
191
|
-
.#{$prefix}--text-input--invalid
|
|
192
|
-
.#{$prefix}--text-input--
|
|
193
|
-
// TODO: remove selector above
|
|
194
|
-
.#{$prefix}--text-input--invalid +
|
|
195
|
-
.#{$prefix}--text-input--password__visibility__toggle {
|
|
187
|
+
.#{$prefix}--text-input--invalid
|
|
188
|
+
+ .#{$prefix}--text-input--password__visibility__toggle {
|
|
196
189
|
right: $spacing-05;
|
|
197
190
|
}
|
|
198
191
|
|
|
@@ -201,11 +194,8 @@
|
|
|
201
194
|
}
|
|
202
195
|
|
|
203
196
|
.#{$prefix}--text-input:disabled
|
|
204
|
-
+ .#{$prefix}--text-input--
|
|
205
|
-
svg
|
|
206
|
-
// TODO: remove selector above
|
|
207
|
-
.#{$prefix}--text-input:disabled
|
|
208
|
-
+ .#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger svg {
|
|
197
|
+
+ .#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
198
|
+
svg {
|
|
209
199
|
cursor: not-allowed;
|
|
210
200
|
fill: $icon-disabled;
|
|
211
201
|
|
|
@@ -246,8 +236,6 @@
|
|
|
246
236
|
|
|
247
237
|
box-shadow: none;
|
|
248
238
|
|
|
249
|
-
.#{$prefix}--text-input--password__visibility,
|
|
250
|
-
// TODO: remove selector above
|
|
251
239
|
.#{$prefix}--text-input--password__visibility__toggle {
|
|
252
240
|
right: $spacing-08;
|
|
253
241
|
}
|
|
@@ -355,8 +343,6 @@
|
|
|
355
343
|
margin-top: rem(9px);
|
|
356
344
|
}
|
|
357
345
|
|
|
358
|
-
// TODO V11: Remove xl selector
|
|
359
|
-
.#{$prefix}--text-input-wrapper .#{$prefix}--label--inline--xl,
|
|
360
346
|
.#{$prefix}--text-input-wrapper .#{$prefix}--label--inline--lg {
|
|
361
347
|
margin-top: rem(17px);
|
|
362
348
|
}
|
|
@@ -396,10 +382,9 @@
|
|
|
396
382
|
}
|
|
397
383
|
|
|
398
384
|
// Windows HCM fix
|
|
399
|
-
.#{$prefix}--text-input--
|
|
400
|
-
|
|
401
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
402
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:hover
|
|
385
|
+
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
386
|
+
svg,
|
|
387
|
+
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:hover
|
|
403
388
|
svg {
|
|
404
389
|
@include high-contrast-mode('icon-fill');
|
|
405
390
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type' as *;
|
|
13
13
|
@use '../button/tokens' as button;
|
|
14
|
+
@use '../../utilities/button-reset';
|
|
14
15
|
@use '../../utilities/focus-outline' as *;
|
|
15
16
|
@use '../../utilities/high-contrast-mode' as *;
|
|
16
17
|
@use '../../utilities/visually-hidden' as *;
|
|
@@ -44,8 +45,7 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.#{$prefix}--tile--clickable,
|
|
47
|
-
.#{$prefix}--tile--selectable
|
|
48
|
-
.#{$prefix}--tile--expandable {
|
|
48
|
+
.#{$prefix}--tile--selectable {
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
transition: $duration-moderate-01 motion(standard, productive);
|
|
51
51
|
|
|
@@ -54,8 +54,13 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.#{$prefix}--tile--clickable
|
|
58
|
-
|
|
57
|
+
.#{$prefix}--tile--clickable {
|
|
58
|
+
@include reset;
|
|
59
|
+
@include type-style('body-compact-01');
|
|
60
|
+
|
|
61
|
+
color: $text-primary;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
|
|
59
64
|
&:focus {
|
|
60
65
|
@include focus-outline('outline');
|
|
61
66
|
}
|
|
@@ -73,14 +78,6 @@
|
|
|
73
78
|
border: 0;
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
.#{$prefix}--tile--clickable {
|
|
77
|
-
@include reset;
|
|
78
|
-
@include type-style('body-compact-01');
|
|
79
|
-
|
|
80
|
-
color: $text-primary;
|
|
81
|
-
text-decoration: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
81
|
.#{$prefix}--tile--clickable:hover,
|
|
85
82
|
.#{$prefix}--tile--clickable:active,
|
|
86
83
|
.#{$prefix}--tile--clickable:visited,
|
|
@@ -102,19 +99,15 @@
|
|
|
102
99
|
border: 1px solid transparent;
|
|
103
100
|
}
|
|
104
101
|
|
|
105
|
-
.#{$prefix}--tile__checkmark,
|
|
106
|
-
.#{$prefix}--tile__chevron {
|
|
107
|
-
position: absolute;
|
|
108
|
-
border: none;
|
|
109
|
-
background: transparent;
|
|
110
|
-
transition: $duration-fast-02 motion(standard, productive);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
102
|
.#{$prefix}--tile__checkmark {
|
|
103
|
+
position: absolute;
|
|
114
104
|
top: 1rem;
|
|
115
105
|
right: 1rem;
|
|
116
106
|
height: 1rem;
|
|
107
|
+
border: none;
|
|
108
|
+
background: transparent;
|
|
117
109
|
opacity: 0;
|
|
110
|
+
transition: $duration-fast-02 motion(standard, productive);
|
|
118
111
|
|
|
119
112
|
svg {
|
|
120
113
|
border-radius: 50%;
|
|
@@ -132,14 +125,15 @@
|
|
|
132
125
|
|
|
133
126
|
.#{$prefix}--tile__chevron {
|
|
134
127
|
position: absolute;
|
|
135
|
-
right:
|
|
136
|
-
bottom:
|
|
128
|
+
right: 0;
|
|
129
|
+
bottom: 0;
|
|
137
130
|
display: flex;
|
|
138
|
-
|
|
139
|
-
|
|
131
|
+
width: $spacing-09;
|
|
132
|
+
height: $spacing-09;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: center;
|
|
140
135
|
|
|
141
136
|
svg {
|
|
142
|
-
margin-left: $spacing-03;
|
|
143
137
|
fill: $icon-primary;
|
|
144
138
|
transform-origin: center;
|
|
145
139
|
transition: $duration-fast-02 motion(standard, productive);
|
|
@@ -155,13 +149,28 @@
|
|
|
155
149
|
fill: ButtonText;
|
|
156
150
|
}
|
|
157
151
|
}
|
|
152
|
+
}
|
|
158
153
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
.#{$prefix}--tile__chevron--interactive {
|
|
155
|
+
@include button-reset.reset;
|
|
156
|
+
|
|
157
|
+
position: absolute;
|
|
158
|
+
right: 0;
|
|
159
|
+
bottom: 0;
|
|
160
|
+
display: flex;
|
|
161
|
+
width: $spacing-09;
|
|
162
|
+
height: $spacing-09;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
162
165
|
|
|
163
166
|
&:focus {
|
|
164
|
-
outline:
|
|
167
|
+
outline: 2px solid $focus;
|
|
168
|
+
outline-offset: -2px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:hover {
|
|
172
|
+
background-color: $layer-hover;
|
|
173
|
+
cursor: pointer;
|
|
165
174
|
}
|
|
166
175
|
}
|
|
167
176
|
|
|
@@ -171,10 +180,32 @@
|
|
|
171
180
|
width: 100%;
|
|
172
181
|
border: 0;
|
|
173
182
|
color: inherit;
|
|
183
|
+
cursor: pointer;
|
|
174
184
|
font-family: inherit;
|
|
175
185
|
font-size: inherit;
|
|
176
186
|
text-align: left;
|
|
177
187
|
transition: max-height $duration-moderate-01 motion(standard, productive);
|
|
188
|
+
|
|
189
|
+
&:hover {
|
|
190
|
+
background: $layer-hover;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.#{$prefix}--tile--expandable.#{$prefix}--tile--expandable--interactive {
|
|
195
|
+
cursor: default;
|
|
196
|
+
transition: max-height $duration-moderate-01 motion(standard, productive);
|
|
197
|
+
|
|
198
|
+
&:hover {
|
|
199
|
+
background-color: $layer;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:focus {
|
|
203
|
+
outline: none;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{$prefix}--tile--expandable--interactive:focus {
|
|
208
|
+
@include focus-outline('outline');
|
|
178
209
|
}
|
|
179
210
|
|
|
180
211
|
.#{$prefix}--tile-content__above-the-fold {
|
|
@@ -83,9 +83,6 @@
|
|
|
83
83
|
max-height: rem(32px);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// TODO V11: Remove xl selector
|
|
87
|
-
.#{$prefix}--time-picker--xl .#{$prefix}--select-input,
|
|
88
|
-
.#{$prefix}--time-picker--xl .#{$prefix}--time-picker__input-field,
|
|
89
86
|
.#{$prefix}--time-picker--lg .#{$prefix}--select-input,
|
|
90
87
|
.#{$prefix}--time-picker--lg .#{$prefix}--time-picker__input-field {
|
|
91
88
|
height: rem(48px);
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
@include type.type-style('label-01');
|
|
20
20
|
|
|
21
21
|
margin-right: spacing.$spacing-03;
|
|
22
|
-
|
|
23
22
|
color: theme.$text-secondary;
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
'link-focus-text-color',
|
|
65
64
|
theme.$focus-inverse
|
|
66
65
|
);
|
|
67
|
-
@include type.type-style('body-
|
|
66
|
+
@include type.type-style('body-01');
|
|
68
67
|
|
|
69
68
|
display: grid;
|
|
70
69
|
max-width: 18rem;
|