@carbon/styles 0.13.0 → 0.14.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 +8 -8
- package/scss/components/button/_button.scss +4 -3
- package/scss/components/button/_mixins.scss +2 -1
- package/scss/components/checkbox/_checkbox.scss +7 -0
- package/scss/components/content-switcher/_content-switcher.scss +28 -1
- package/scss/components/data-table/action/_data-table-action.scss +96 -26
- package/scss/components/dropdown/_dropdown.scss +0 -16
- package/scss/components/list-box/_list-box.scss +0 -14
- package/scss/components/modal/_modal.scss +90 -98
- package/scss/components/pagination/_pagination.scss +12 -6
- package/scss/components/radio-button/_radio-button.scss +3 -2
- package/scss/components/text-area/_text-area.scss +6 -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.14.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@carbon/colors": "^10.
|
|
23
|
+
"@carbon/colors": "^10.36.0-rc.0",
|
|
24
24
|
"@carbon/feature-flags": "^0.7.0",
|
|
25
|
-
"@carbon/grid": "^10.
|
|
26
|
-
"@carbon/layout": "^10.
|
|
27
|
-
"@carbon/motion": "^10.
|
|
28
|
-
"@carbon/themes": "^10.
|
|
29
|
-
"@carbon/type": "^10.
|
|
25
|
+
"@carbon/grid": "^10.41.0-rc.0",
|
|
26
|
+
"@carbon/layout": "^10.36.0-rc.0",
|
|
27
|
+
"@carbon/motion": "^10.28.0-rc.0",
|
|
28
|
+
"@carbon/themes": "^10.51.0-rc.0",
|
|
29
|
+
"@carbon/type": "^10.41.0-rc.0",
|
|
30
30
|
"@ibm/plex": "6.0.0-next.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@carbon/test-utils": "^10.21.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "6f5bca3be0e19dc7590617c704a2834514b3176b"
|
|
37
37
|
}
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
transparent,
|
|
103
103
|
transparent,
|
|
104
104
|
$link-primary,
|
|
105
|
-
$
|
|
105
|
+
$layer-hover,
|
|
106
106
|
currentColor,
|
|
107
|
-
$
|
|
107
|
+
$layer-active
|
|
108
108
|
);
|
|
109
109
|
|
|
110
110
|
padding: $button-padding-ghost;
|
|
@@ -243,6 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
&:active {
|
|
245
245
|
border-color: $button-danger-active;
|
|
246
|
+
background-color: $button-danger-active;
|
|
246
247
|
color: $text-on-color;
|
|
247
248
|
}
|
|
248
249
|
|
|
@@ -334,7 +335,7 @@
|
|
|
334
335
|
|
|
335
336
|
//expressive styles
|
|
336
337
|
.#{$prefix}--btn--expressive {
|
|
337
|
-
@include type-style('body-
|
|
338
|
+
@include type-style('body-compact-02');
|
|
338
339
|
|
|
339
340
|
min-height: 3rem;
|
|
340
341
|
}
|
|
@@ -20,10 +20,11 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
|
|
|
20
20
|
|
|
21
21
|
@mixin button-base {
|
|
22
22
|
@include component-reset.reset;
|
|
23
|
-
@include type-style('body-
|
|
23
|
+
@include type-style('body-compact-01');
|
|
24
24
|
|
|
25
25
|
position: relative;
|
|
26
26
|
display: inline-flex;
|
|
27
|
+
width: max-content;
|
|
27
28
|
max-width: rem(320px);
|
|
28
29
|
min-height: $button-height;
|
|
29
30
|
flex-shrink: 0;
|
|
@@ -197,4 +197,11 @@
|
|
|
197
197
|
// Add extra spacing when label is present
|
|
198
198
|
margin: rem(1px) 0 0 rem(6px);
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
//-----------------------------------------------
|
|
202
|
+
// InlineCheckbox
|
|
203
|
+
//-----------------------------------------------
|
|
204
|
+
.#{$prefix}--checkbox--inline {
|
|
205
|
+
position: relative;
|
|
206
|
+
}
|
|
200
207
|
}
|
|
@@ -52,15 +52,37 @@
|
|
|
52
52
|
color: $text-secondary;
|
|
53
53
|
text-align: left;
|
|
54
54
|
text-decoration: none;
|
|
55
|
-
transition: all $duration-
|
|
55
|
+
transition: all $duration-moderate-01 motion(standard, productive);
|
|
56
56
|
white-space: nowrap;
|
|
57
57
|
|
|
58
|
+
&::after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
background-color: $layer-selected-inverse;
|
|
66
|
+
content: '';
|
|
67
|
+
transform: scaleY(0);
|
|
68
|
+
transform-origin: bottom;
|
|
69
|
+
transition: all $duration-moderate-01 motion(standard, productive);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:disabled::after {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
58
76
|
&:focus {
|
|
59
77
|
z-index: 3;
|
|
60
78
|
border-color: $focus;
|
|
61
79
|
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $focus-inset;
|
|
62
80
|
}
|
|
63
81
|
|
|
82
|
+
&:focus::after {
|
|
83
|
+
clip-path: inset(3px 3px 3px 3px);
|
|
84
|
+
}
|
|
85
|
+
|
|
64
86
|
&:hover {
|
|
65
87
|
color: $text-primary;
|
|
66
88
|
cursor: pointer;
|
|
@@ -157,6 +179,7 @@
|
|
|
157
179
|
}
|
|
158
180
|
|
|
159
181
|
.#{$prefix}--content-switcher__label {
|
|
182
|
+
z-index: 1;
|
|
160
183
|
overflow: hidden;
|
|
161
184
|
max-width: 100%;
|
|
162
185
|
text-overflow: ellipsis;
|
|
@@ -177,6 +200,10 @@
|
|
|
177
200
|
background-color: $layer-selected-disabled;
|
|
178
201
|
color: $text-disabled;
|
|
179
202
|
}
|
|
203
|
+
|
|
204
|
+
&::after {
|
|
205
|
+
transform: scaleY(1);
|
|
206
|
+
}
|
|
180
207
|
}
|
|
181
208
|
|
|
182
209
|
.#{$prefix}--content-switcher-btn.#{$prefix}--content-switcher--selected
|
|
@@ -47,10 +47,17 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.#{$prefix}--toolbar-content .#{$prefix}--search .#{$prefix}--search-input {
|
|
50
|
+
height: 3rem;
|
|
51
|
+
padding: 0 3rem;
|
|
50
52
|
// For toolbar animation with (esp.) persistent search box
|
|
51
53
|
background-color: transparent;
|
|
52
54
|
}
|
|
53
55
|
|
|
56
|
+
.#{$prefix}--toolbar-content .#{$prefix}--overflow-menu {
|
|
57
|
+
width: 3rem;
|
|
58
|
+
height: 3rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
//-------------------------------------------------
|
|
55
62
|
//DEPRECATED v10/v9 search behavior
|
|
56
63
|
//-------------------------------------------------
|
|
@@ -78,6 +85,10 @@
|
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
|
|
88
|
+
.#{$prefix}--search.#{$prefix}--toolbar-search-container-expandable {
|
|
89
|
+
width: 3rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
81
92
|
.#{$prefix}--toolbar-search-container-expandable .#{$prefix}--search-input {
|
|
82
93
|
height: 100%;
|
|
83
94
|
cursor: pointer;
|
|
@@ -89,21 +100,6 @@
|
|
|
89
100
|
padding: 0;
|
|
90
101
|
}
|
|
91
102
|
|
|
92
|
-
.#{$prefix}--toolbar-search-container-expandable
|
|
93
|
-
.#{$prefix}--search-magnifier-icon {
|
|
94
|
-
left: 0;
|
|
95
|
-
width: $spacing-09;
|
|
96
|
-
height: $spacing-09;
|
|
97
|
-
padding: $spacing-05;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
|
|
101
|
-
.#{$prefix}--search-magnifier-icon {
|
|
102
|
-
background-color: $layer;
|
|
103
|
-
cursor: not-allowed;
|
|
104
|
-
transition: background-color none;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
103
|
.#{$prefix}--toolbar-search-container-disabled .#{$prefix}--search-input {
|
|
108
104
|
cursor: not-allowed;
|
|
109
105
|
}
|
|
@@ -130,6 +126,68 @@
|
|
|
130
126
|
background-color: $focus;
|
|
131
127
|
}
|
|
132
128
|
|
|
129
|
+
//-------------------------------------------------
|
|
130
|
+
// Seach icon
|
|
131
|
+
//-------------------------------------------------v
|
|
132
|
+
// lg expandable icon spacing
|
|
133
|
+
.#{$prefix}--table-toolbar
|
|
134
|
+
.#{$prefix}--search--lg
|
|
135
|
+
.#{$prefix}--search-magnifier-icon {
|
|
136
|
+
left: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// lg persistent icon spacing
|
|
140
|
+
.#{$prefix}--table-toolbar:not(.#{$prefix}--table-toolbar--sm)
|
|
141
|
+
.#{$prefix}--toolbar-search-container-persistent.#{$prefix}--search--lg
|
|
142
|
+
.#{$prefix}--search-magnifier-icon {
|
|
143
|
+
left: 1rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// sm expandable icon spacing
|
|
147
|
+
.#{$prefix}--table-toolbar.#{$prefix}--table-toolbar--sm
|
|
148
|
+
.#{$prefix}--search--sm:not(.#{$prefix}--toolbar-search-container-active):not(.#{$prefix}--toolbar-search-container-persistent)
|
|
149
|
+
.#{$prefix}--search-magnifier-icon {
|
|
150
|
+
left: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{$prefix}--table-toolbar.#{$prefix}--table-toolbar--sm
|
|
154
|
+
.#{$prefix}--search--sm.#{$prefix}--toolbar-search-container-active
|
|
155
|
+
.#{$prefix}--search-magnifier-icon {
|
|
156
|
+
left: 0.5rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// sm persistent icon spacing
|
|
160
|
+
.#{$prefix}--table-toolbar
|
|
161
|
+
.#{$prefix}--toolbar-search-container-persistent.#{$prefix}--search--sm
|
|
162
|
+
.#{$prefix}--search-magnifier-icon {
|
|
163
|
+
left: 0.5rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$prefix}--toolbar-search-container-expandable
|
|
167
|
+
.#{$prefix}--search-magnifier-icon {
|
|
168
|
+
width: $spacing-09;
|
|
169
|
+
height: $spacing-09;
|
|
170
|
+
padding: $spacing-05;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
|
|
174
|
+
.#{$prefix}--search-magnifier-icon {
|
|
175
|
+
background-color: $layer;
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
transition: background-color none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.#{$prefix}--toolbar-search-container-active
|
|
181
|
+
.#{$prefix}--search-magnifier-icon:focus,
|
|
182
|
+
.#{$prefix}--toolbar-search-container-active
|
|
183
|
+
.#{$prefix}--search-magnifier-icon:active,
|
|
184
|
+
.#{$prefix}--toolbar-search-container-active
|
|
185
|
+
.#{$prefix}--search-magnifier-icon:hover {
|
|
186
|
+
border: none;
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
outline: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
133
191
|
//-------------------------------------------------
|
|
134
192
|
//ACTIVE SEARCH - DEFAULT TOOLBAR
|
|
135
193
|
//-------------------------------------------------
|
|
@@ -162,17 +220,6 @@
|
|
|
162
220
|
background-color: $field-hover;
|
|
163
221
|
}
|
|
164
222
|
|
|
165
|
-
.#{$prefix}--toolbar-search-container-active
|
|
166
|
-
.#{$prefix}--search-magnifier-icon:focus,
|
|
167
|
-
.#{$prefix}--toolbar-search-container-active
|
|
168
|
-
.#{$prefix}--search-magnifier-icon:active,
|
|
169
|
-
.#{$prefix}--toolbar-search-container-active
|
|
170
|
-
.#{$prefix}--search-magnifier-icon:hover {
|
|
171
|
-
border: none;
|
|
172
|
-
background-color: transparent;
|
|
173
|
-
outline: none;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
223
|
//-------------------------------------------------
|
|
177
224
|
//SEARCH CLOSE BUTTON
|
|
178
225
|
//-------------------------------------------------
|
|
@@ -459,6 +506,7 @@
|
|
|
459
506
|
.#{$prefix}--table-toolbar--small,
|
|
460
507
|
.#{$prefix}--table-toolbar--sm {
|
|
461
508
|
height: rem(32px);
|
|
509
|
+
min-height: rem(32px);
|
|
462
510
|
|
|
463
511
|
.#{$prefix}--toolbar-search-container-expandable,
|
|
464
512
|
.#{$prefix}--toolbar-search-container-persistent {
|
|
@@ -534,6 +582,22 @@
|
|
|
534
582
|
|
|
535
583
|
background-color: transparent;
|
|
536
584
|
}
|
|
585
|
+
|
|
586
|
+
.#{$prefix}--overflow-menu.#{$prefix}--toolbar-action {
|
|
587
|
+
width: rem(32px);
|
|
588
|
+
//:after element is 2rem but w/o this trigger button is for some reason 28px
|
|
589
|
+
min-width: rem(32px);
|
|
590
|
+
height: rem(32px);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.#{$prefix}--toolbar-content {
|
|
594
|
+
height: rem(32px);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.#{$prefix}--toolbar-content .#{$prefix}--overflow-menu {
|
|
598
|
+
width: 2rem;
|
|
599
|
+
height: 2rem;
|
|
600
|
+
}
|
|
537
601
|
}
|
|
538
602
|
|
|
539
603
|
.#{$prefix}--search--disabled .#{$prefix}--search-magnifier-icon:hover {
|
|
@@ -588,4 +652,10 @@
|
|
|
588
652
|
overflow: hidden;
|
|
589
653
|
height: rem(32px);
|
|
590
654
|
}
|
|
655
|
+
|
|
656
|
+
// V11: remove --small selector block
|
|
657
|
+
.#{$prefix}--table-toolbar--small .#{$prefix}--batch-summary,
|
|
658
|
+
.#{$prefix}--table-toolbar--sm .#{$prefix}--batch-summary {
|
|
659
|
+
min-height: 2rem;
|
|
660
|
+
}
|
|
591
661
|
}
|
|
@@ -70,15 +70,11 @@
|
|
|
70
70
|
text-align: left;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// TODO V11: Remove xl selector
|
|
74
|
-
.#{$prefix}--dropdown--xl,
|
|
75
73
|
.#{$prefix}--dropdown--lg {
|
|
76
74
|
height: rem(48px);
|
|
77
75
|
max-height: rem(48px);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
// TODO V11: Remove xl selector
|
|
81
|
-
.#{$prefix}--dropdown--xl .#{$prefix}--dropdown__arrow,
|
|
82
78
|
.#{$prefix}--dropdown--lg .#{$prefix}--dropdown__arrow {
|
|
83
79
|
top: rem(16px);
|
|
84
80
|
}
|
|
@@ -277,12 +273,6 @@
|
|
|
277
273
|
padding-bottom: rem(7px);
|
|
278
274
|
}
|
|
279
275
|
|
|
280
|
-
.#{$prefix}--dropdown--xl .#{$prefix}--dropdown-link {
|
|
281
|
-
height: rem(48px);
|
|
282
|
-
padding-top: rem(15px);
|
|
283
|
-
padding-bottom: rem(15px);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
276
|
.#{$prefix}--dropdown--focused,
|
|
287
277
|
.#{$prefix}--dropdown-link:focus {
|
|
288
278
|
@include focus-outline('outline');
|
|
@@ -329,12 +319,6 @@
|
|
|
329
319
|
transform: rotate(-180deg);
|
|
330
320
|
}
|
|
331
321
|
|
|
332
|
-
.#{$prefix}--dropdown--open.#{$prefix}--dropdown--xl
|
|
333
|
-
.#{$prefix}--dropdown-list {
|
|
334
|
-
// 48px item height * 5.5 items shown
|
|
335
|
-
max-height: rem(264px);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
322
|
.#{$prefix}--dropdown--open.#{$prefix}--dropdown--sm
|
|
339
323
|
.#{$prefix}--dropdown-list {
|
|
340
324
|
// 32px item height * 5.5 items shown
|
|
@@ -92,8 +92,6 @@ $list-box-menu-width: rem(300px);
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// TODO V11: Remove xl selector
|
|
96
|
-
.#{$prefix}--list-box--xl,
|
|
97
95
|
.#{$prefix}--list-box--lg {
|
|
98
96
|
height: rem(48px);
|
|
99
97
|
max-height: rem(48px);
|
|
@@ -524,9 +522,6 @@ $list-box-menu-width: rem(300px);
|
|
|
524
522
|
max-height: rem(220px);
|
|
525
523
|
}
|
|
526
524
|
|
|
527
|
-
// TODO V11: Remove xl selector
|
|
528
|
-
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--xl
|
|
529
|
-
.#{$prefix}--list-box__menu,
|
|
530
525
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
531
526
|
.#{$prefix}--list-box__menu {
|
|
532
527
|
// 48px item height * 5.5 items shown
|
|
@@ -568,8 +563,6 @@ $list-box-menu-width: rem(300px);
|
|
|
568
563
|
height: rem(32px);
|
|
569
564
|
}
|
|
570
565
|
|
|
571
|
-
// TODO V11: Remove xl selector
|
|
572
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item,
|
|
573
566
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
574
567
|
height: rem(48px);
|
|
575
568
|
}
|
|
@@ -653,8 +646,6 @@ $list-box-menu-width: rem(300px);
|
|
|
653
646
|
padding-bottom: rem(7px);
|
|
654
647
|
}
|
|
655
648
|
|
|
656
|
-
// TODO V11: Remove xl selector
|
|
657
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option,
|
|
658
649
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
659
650
|
height: rem(48px);
|
|
660
651
|
padding-top: rem(15px);
|
|
@@ -803,11 +794,6 @@ $list-box-menu-width: rem(300px);
|
|
|
803
794
|
bottom: 2rem;
|
|
804
795
|
}
|
|
805
796
|
|
|
806
|
-
// TODO V11: Remove xl selector
|
|
807
|
-
.#{$prefix}--list-box--up.#{$prefix}--dropdown--xl
|
|
808
|
-
.#{$prefix}--list-box__menu,
|
|
809
|
-
.#{$prefix}--list-box--up.#{$prefix}--list-box--xl
|
|
810
|
-
.#{$prefix}--list-box__menu,
|
|
811
797
|
.#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
|
|
812
798
|
.#{$prefix}--list-box__menu,
|
|
813
799
|
.#{$prefix}--list-box--up.#{$prefix}--list-box--lg
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
.#{$prefix}--dropdown,
|
|
58
58
|
.#{$prefix}--dropdown-list,
|
|
59
59
|
.#{$prefix}--number input[type='number'],
|
|
60
|
-
.#{$prefix}--date-picker__input
|
|
60
|
+
.#{$prefix}--date-picker__input,
|
|
61
|
+
.#{$prefix}--multi-select {
|
|
61
62
|
background-color: $field-02;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -67,6 +68,9 @@
|
|
|
67
68
|
transition: transform $duration-moderate-02 motion(entrance, expressive);
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
// -----------------------------
|
|
72
|
+
// Modal container
|
|
73
|
+
// -----------------------------
|
|
70
74
|
.#{$prefix}--modal-container {
|
|
71
75
|
position: fixed;
|
|
72
76
|
top: 0;
|
|
@@ -90,16 +94,6 @@
|
|
|
90
94
|
width: 84%;
|
|
91
95
|
height: auto;
|
|
92
96
|
max-height: 90%;
|
|
93
|
-
|
|
94
|
-
.#{$prefix}--modal-content p,
|
|
95
|
-
.#{$prefix}--modal-content__regular-content {
|
|
96
|
-
padding-right: 20%;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.#{$prefix}--modal-content--with-form {
|
|
100
|
-
// Override for `.#{$prefix}--modal-content`
|
|
101
|
-
padding-right: $spacing-05;
|
|
102
|
-
}
|
|
103
97
|
}
|
|
104
98
|
|
|
105
99
|
@include breakpoint(lg) {
|
|
@@ -112,30 +106,81 @@
|
|
|
112
106
|
}
|
|
113
107
|
}
|
|
114
108
|
|
|
115
|
-
|
|
109
|
+
// -----------------------------
|
|
110
|
+
// Modal content
|
|
111
|
+
// -----------------------------
|
|
116
112
|
.#{$prefix}--modal-content {
|
|
113
|
+
@include type-style('body-long-01');
|
|
114
|
+
|
|
115
|
+
position: relative;
|
|
116
|
+
// Required to accommodate focus outline's negative offset:
|
|
117
|
+
padding-top: $spacing-03;
|
|
118
|
+
// anything besides text/p spans full width, with just 16px padding
|
|
119
|
+
padding-right: $spacing-05;
|
|
117
120
|
padding-left: $spacing-05;
|
|
121
|
+
margin-bottom: $spacing-09;
|
|
122
|
+
color: $text-primary;
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
grid-column: 1/-1;
|
|
125
|
+
grid-row: 2/-2;
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
|
|
128
|
+
&:focus {
|
|
129
|
+
@include focus-outline('outline');
|
|
130
|
+
}
|
|
118
131
|
}
|
|
119
132
|
|
|
120
|
-
.#{$prefix}--modal-
|
|
121
|
-
|
|
133
|
+
//TO-DO: remove .#{$prefix}--modal-content__regular-content in v11 since hasForm has been deprecated
|
|
134
|
+
// text/p gets 20% right padding
|
|
135
|
+
.#{$prefix}--modal-content p,
|
|
122
136
|
.#{$prefix}--modal-content__regular-content {
|
|
123
|
-
padding-right:
|
|
137
|
+
padding-right: 20%;
|
|
138
|
+
@include type-style('body-long-01');
|
|
124
139
|
}
|
|
125
140
|
|
|
141
|
+
//TO-DO: remove .#{$prefix}--modal-content--with-form in v11 since hasForm has been deprecated\
|
|
142
|
+
// anything besides text/p spans full width, with just 16px padding
|
|
126
143
|
.#{$prefix}--modal-content--with-form {
|
|
127
144
|
padding-right: $spacing-05;
|
|
128
145
|
}
|
|
129
146
|
|
|
147
|
+
// -----------------------------
|
|
148
|
+
// Modal header
|
|
149
|
+
// -----------------------------
|
|
150
|
+
.#{$prefix}--modal-header {
|
|
151
|
+
padding-top: $spacing-05;
|
|
152
|
+
padding-right: $spacing-09;
|
|
153
|
+
padding-left: $spacing-05;
|
|
154
|
+
margin-bottom: $spacing-03;
|
|
155
|
+
grid-column: 1/-1;
|
|
156
|
+
grid-row: 1/1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.#{$prefix}--modal-header__label {
|
|
160
|
+
@include type-style('label-01');
|
|
161
|
+
|
|
162
|
+
margin-bottom: $spacing-02;
|
|
163
|
+
color: $text-secondary;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$prefix}--modal-header__heading {
|
|
167
|
+
@include type-style('productive-heading-03');
|
|
168
|
+
|
|
169
|
+
color: $text-primary;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// -----------------------------
|
|
173
|
+
// XS Modal
|
|
174
|
+
// -----------------------------
|
|
130
175
|
.#{$prefix}--modal-container--xs {
|
|
131
|
-
|
|
132
|
-
|
|
176
|
+
//text always spans full width in xs modals
|
|
177
|
+
.#{$prefix}--modal-content__regular-content {
|
|
178
|
+
padding-right: $spacing-05;
|
|
133
179
|
}
|
|
134
180
|
|
|
135
|
-
.#{$prefix}--modal-content
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
padding-right: $spacing-05;
|
|
181
|
+
.#{$prefix}--modal-content p {
|
|
182
|
+
//.#{$prefix}--modal-content already has 16px padding so this doesn't need any
|
|
183
|
+
padding-right: 0;
|
|
139
184
|
}
|
|
140
185
|
|
|
141
186
|
@include breakpoint(md) {
|
|
@@ -152,15 +197,18 @@
|
|
|
152
197
|
}
|
|
153
198
|
}
|
|
154
199
|
|
|
200
|
+
// -----------------------------
|
|
201
|
+
// SM Modal
|
|
202
|
+
// -----------------------------
|
|
155
203
|
.#{$prefix}--modal-container--sm {
|
|
156
|
-
|
|
157
|
-
|
|
204
|
+
//text spans full width in sm modals below 1056
|
|
205
|
+
.#{$prefix}--modal-content__regular-content {
|
|
206
|
+
padding-right: $spacing-05;
|
|
158
207
|
}
|
|
159
208
|
|
|
160
|
-
.#{$prefix}--modal-content
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
padding-right: $spacing-05;
|
|
209
|
+
.#{$prefix}--modal-content p {
|
|
210
|
+
//.#{$prefix}--modal-content already has 16px padding so this doesn't need any
|
|
211
|
+
padding-right: 0;
|
|
164
212
|
}
|
|
165
213
|
|
|
166
214
|
@include breakpoint(md) {
|
|
@@ -170,46 +218,24 @@
|
|
|
170
218
|
@include breakpoint(lg) {
|
|
171
219
|
width: 42%;
|
|
172
220
|
max-height: 72%;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@include breakpoint(xlg) {
|
|
176
|
-
width: 36%;
|
|
177
221
|
|
|
178
222
|
.#{$prefix}--modal-content p,
|
|
179
223
|
.#{$prefix}--modal-content__regular-content {
|
|
180
224
|
padding-right: 20%;
|
|
181
225
|
}
|
|
226
|
+
}
|
|
182
227
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
padding-right: $spacing-05;
|
|
186
|
-
}
|
|
228
|
+
@include breakpoint(xlg) {
|
|
229
|
+
width: 36%;
|
|
187
230
|
}
|
|
188
231
|
}
|
|
189
232
|
|
|
233
|
+
// -----------------------------
|
|
234
|
+
// LG Modal
|
|
235
|
+
// -----------------------------
|
|
190
236
|
.#{$prefix}--modal-container--lg {
|
|
191
|
-
.#{$prefix}--modal-header {
|
|
192
|
-
padding-right: $spacing-09;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.#{$prefix}--modal-content,
|
|
196
|
-
.#{$prefix}--modal-content__regular-content,
|
|
197
|
-
.#{$prefix}--modal-content--with-form {
|
|
198
|
-
padding-right: $spacing-05;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
237
|
@include breakpoint(md) {
|
|
202
238
|
width: 96%;
|
|
203
|
-
|
|
204
|
-
.#{$prefix}--modal-content p,
|
|
205
|
-
.#{$prefix}--modal-content__regular-content {
|
|
206
|
-
padding-right: 20%;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.#{$prefix}--modal-content--with-form {
|
|
210
|
-
// Override for `.#{$prefix}--modal-content`
|
|
211
|
-
padding-right: $spacing-05;
|
|
212
|
-
}
|
|
213
239
|
}
|
|
214
240
|
|
|
215
241
|
@include breakpoint(lg) {
|
|
@@ -222,49 +248,9 @@
|
|
|
222
248
|
}
|
|
223
249
|
}
|
|
224
250
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
margin-bottom: $spacing-03;
|
|
229
|
-
grid-column: 1/-1;
|
|
230
|
-
grid-row: 1/1;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.#{$prefix}--modal-header__label {
|
|
234
|
-
@include type-style('label-01');
|
|
235
|
-
|
|
236
|
-
margin-bottom: $spacing-02;
|
|
237
|
-
color: $text-secondary;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.#{$prefix}--modal-header__heading {
|
|
241
|
-
@include type-style('productive-heading-03');
|
|
242
|
-
|
|
243
|
-
color: $text-primary;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.#{$prefix}--modal-content {
|
|
247
|
-
@include type-style('body-long-01');
|
|
248
|
-
|
|
249
|
-
position: relative;
|
|
250
|
-
// Required to accommodate focus outline's negative offset:
|
|
251
|
-
padding-top: $spacing-03;
|
|
252
|
-
margin-bottom: $spacing-09;
|
|
253
|
-
color: $text-primary;
|
|
254
|
-
font-weight: 400;
|
|
255
|
-
grid-column: 1/-1;
|
|
256
|
-
grid-row: 2/-2;
|
|
257
|
-
overflow-y: auto;
|
|
258
|
-
|
|
259
|
-
&:focus {
|
|
260
|
-
@include focus-outline('outline');
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.#{$prefix}--modal-content > p {
|
|
265
|
-
@include type-style('body-long-01');
|
|
266
|
-
}
|
|
267
|
-
|
|
251
|
+
// -----------------------------
|
|
252
|
+
// Modal overflow
|
|
253
|
+
// -----------------------------
|
|
268
254
|
// Required so overflow-indicator disappears at end of content
|
|
269
255
|
.#{$prefix}--modal-scroll-content > *:last-child {
|
|
270
256
|
padding-bottom: $spacing-07;
|
|
@@ -310,6 +296,9 @@
|
|
|
310
296
|
}
|
|
311
297
|
}
|
|
312
298
|
|
|
299
|
+
// -----------------------------
|
|
300
|
+
// Modal footer
|
|
301
|
+
// -----------------------------
|
|
313
302
|
.#{$prefix}--modal-footer {
|
|
314
303
|
display: flex;
|
|
315
304
|
height: rem(64px);
|
|
@@ -333,6 +322,9 @@
|
|
|
333
322
|
align-items: flex-start;
|
|
334
323
|
}
|
|
335
324
|
|
|
325
|
+
// -----------------------------
|
|
326
|
+
// Modal close btn
|
|
327
|
+
// -----------------------------
|
|
336
328
|
.#{$prefix}--modal-close {
|
|
337
329
|
position: absolute;
|
|
338
330
|
z-index: 2;
|
|
@@ -81,12 +81,21 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.#{$prefix}--pagination .#{$prefix}--select-input {
|
|
84
|
+
@include type-style('body-compact-01');
|
|
85
|
+
|
|
84
86
|
width: auto;
|
|
85
87
|
min-width: auto;
|
|
86
88
|
height: 100%;
|
|
87
89
|
line-height: rem(40px);
|
|
88
90
|
}
|
|
89
91
|
|
|
92
|
+
// Extra specificity is needed to preserve padding
|
|
93
|
+
.#{$prefix}--pagination
|
|
94
|
+
.#{$prefix}--select--inline
|
|
95
|
+
.#{$prefix}--select-input {
|
|
96
|
+
padding: 0 2.25rem 0 $spacing-05;
|
|
97
|
+
}
|
|
98
|
+
|
|
90
99
|
.#{$prefix}--pagination--sm .#{$prefix}--select-input {
|
|
91
100
|
line-height: rem(32px);
|
|
92
101
|
}
|
|
@@ -95,16 +104,13 @@
|
|
|
95
104
|
line-height: rem(48px);
|
|
96
105
|
}
|
|
97
106
|
|
|
98
|
-
.#{$prefix}--pagination
|
|
99
|
-
.#{$prefix}--select--inline
|
|
100
|
-
.#{$prefix}--select-input {
|
|
101
|
-
padding: 0 2.25rem 0 $spacing-05;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
107
|
.#{$prefix}--pagination .#{$prefix}--select-input:hover {
|
|
105
108
|
background: $layer-hover;
|
|
106
109
|
}
|
|
107
110
|
|
|
111
|
+
.#{$prefix}--pagination
|
|
112
|
+
.#{$prefix}--select--inline
|
|
113
|
+
.#{$prefix}--select-input:focus,
|
|
108
114
|
.#{$prefix}--pagination
|
|
109
115
|
.#{$prefix}--select--inline
|
|
110
116
|
.#{$prefix}--select-input:focus
|
|
@@ -34,6 +34,7 @@ $radio-border-width: 1px !default;
|
|
|
34
34
|
.#{$prefix}--radio-button-group {
|
|
35
35
|
@include reset;
|
|
36
36
|
|
|
37
|
+
position: relative;
|
|
37
38
|
display: flex;
|
|
38
39
|
align-items: center;
|
|
39
40
|
}
|
|
@@ -54,7 +55,7 @@ $radio-border-width: 1px !default;
|
|
|
54
55
|
|
|
55
56
|
.#{$prefix}--radio-button__label {
|
|
56
57
|
margin-right: 0;
|
|
57
|
-
line-height:
|
|
58
|
+
line-height: 1.25;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.#{$prefix}--radio-button__label:not(:last-of-type) {
|
|
@@ -69,7 +70,7 @@ $radio-border-width: 1px !default;
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.#{$prefix}--radio-button__label {
|
|
72
|
-
@include type.type-style('body-
|
|
73
|
+
@include type.type-style('body-compact-01');
|
|
73
74
|
|
|
74
75
|
display: flex;
|
|
75
76
|
align-items: center;
|