@cloudscape-design/components-themeable 3.0.470 → 3.0.472
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/badge/styles.scss +6 -2
- package/lib/internal/scss/box/base-styles.scss +4 -2
- package/lib/internal/scss/box/layout.scss +2 -0
- package/lib/internal/scss/box/text.scss +3 -3
- package/lib/internal/scss/breadcrumb-group/item/styles.scss +3 -2
- package/lib/internal/scss/breadcrumb-group/styles.scss +16 -9
- package/lib/internal/scss/button-dropdown/category-elements/styles.scss +37 -28
- package/lib/internal/scss/button-dropdown/item-element/styles.scss +20 -15
- package/lib/internal/scss/button-dropdown/mobile-expandable-group/styles.scss +3 -3
- package/lib/internal/scss/button-dropdown/styles.scss +17 -14
- package/lib/internal/scss/calendar/styles.scss +36 -20
- package/lib/internal/scss/cards/styles.scss +40 -24
- package/lib/internal/scss/code-editor/ace-editor.scss +12 -12
- package/lib/internal/scss/code-editor/pane.scss +23 -21
- package/lib/internal/scss/code-editor/resizable-box/styles.scss +5 -5
- package/lib/internal/scss/code-editor/styles.scss +38 -30
- package/lib/internal/scss/collection-preferences/content-display/content-display-option.scss +18 -10
- package/lib/internal/scss/collection-preferences/content-display/styles.scss +5 -3
- package/lib/internal/scss/collection-preferences/styles.scss +1 -1
- package/lib/internal/scss/collection-preferences/visible-content.scss +11 -8
- package/lib/internal/scss/column-layout/flexible-column-layout/styles.scss +4 -5
- package/lib/internal/scss/column-layout/styles.scss +15 -9
- package/lib/internal/scss/container/shared.scss +1 -3
- package/lib/internal/scss/container/styles.scss +53 -43
- package/lib/internal/scss/content-layout/styles.scss +4 -4
- package/lib/internal/scss/date-picker/styles.scss +3 -3
- package/lib/internal/scss/date-range-picker/calendar/grids/styles.scss +29 -18
- package/lib/internal/scss/date-range-picker/relative-range/styles.scss +8 -8
- package/lib/internal/scss/date-range-picker/styles.scss +26 -21
- package/lib/internal/scss/drawer/styles.scss +13 -10
- package/lib/internal/scss/expandable-section/styles.scss +41 -36
- package/lib/internal/scss/file-upload/dropzone/styles.scss +6 -2
- package/lib/internal/scss/file-upload/file-option/styles.scss +7 -7
- package/lib/internal/scss/file-upload/styles.scss +1 -1
- package/lib/internal/scss/flashbar/collapsible.scss +25 -25
- package/lib/internal/scss/flashbar/styles.scss +29 -19
- package/lib/internal/scss/form/styles.scss +10 -10
- package/lib/internal/scss/form-field/styles.scss +5 -5
- package/lib/internal/template/badge/styles.css.js +5 -5
- package/lib/internal/template/badge/styles.scoped.css +11 -7
- package/lib/internal/template/badge/styles.selectors.js +5 -5
- package/lib/internal/template/box/styles.css.js +190 -190
- package/lib/internal/template/box/styles.scoped.css +244 -240
- package/lib/internal/template/box/styles.selectors.js +190 -190
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +9 -9
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +20 -19
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +9 -9
- package/lib/internal/template/breadcrumb-group/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +28 -21
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +7 -7
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +13 -13
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +60 -50
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +15 -15
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +38 -33
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +15 -15
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -8
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/lib/internal/template/button-dropdown/styles.css.js +15 -15
- package/lib/internal/template/button-dropdown/styles.scoped.css +39 -36
- package/lib/internal/template/button-dropdown/styles.selectors.js +15 -15
- package/lib/internal/template/calendar/styles.css.js +18 -18
- package/lib/internal/template/calendar/styles.scoped.css +75 -59
- package/lib/internal/template/calendar/styles.selectors.js +18 -18
- package/lib/internal/template/cards/styles.css.js +38 -38
- package/lib/internal/template/cards/styles.scoped.css +110 -94
- package/lib/internal/template/cards/styles.selectors.js +38 -38
- package/lib/internal/template/code-editor/resizable-box/styles.css.js +3 -3
- package/lib/internal/template/code-editor/resizable-box/styles.scoped.css +13 -13
- package/lib/internal/template/code-editor/resizable-box/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/styles.css.js +32 -32
- package/lib/internal/template/code-editor/styles.scoped.css +258 -246
- package/lib/internal/template/code-editor/styles.selectors.js +32 -32
- package/lib/internal/template/collection-preferences/content-display/styles.css.js +11 -11
- package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +40 -30
- package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +11 -11
- package/lib/internal/template/collection-preferences/styles.css.js +37 -37
- package/lib/internal/template/collection-preferences/styles.scoped.css +79 -66
- package/lib/internal/template/collection-preferences/styles.selectors.js +37 -37
- package/lib/internal/template/column-layout/flexible-column-layout/styles.css.js +5 -5
- package/lib/internal/template/column-layout/flexible-column-layout/styles.scoped.css +8 -9
- package/lib/internal/template/column-layout/flexible-column-layout/styles.selectors.js +5 -5
- package/lib/internal/template/column-layout/styles.css.js +13 -13
- package/lib/internal/template/column-layout/styles.scoped.css +70 -64
- package/lib/internal/template/column-layout/styles.selectors.js +13 -13
- package/lib/internal/template/container/styles.css.js +28 -28
- package/lib/internal/template/container/styles.scoped.css +106 -98
- package/lib/internal/template/container/styles.selectors.js +28 -28
- package/lib/internal/template/content-layout/styles.css.js +7 -7
- package/lib/internal/template/content-layout/styles.scoped.css +15 -15
- package/lib/internal/template/content-layout/styles.selectors.js +7 -7
- package/lib/internal/template/date-picker/styles.css.js +7 -7
- package/lib/internal/template/date-picker/styles.scoped.css +12 -12
- package/lib/internal/template/date-picker/styles.selectors.js +7 -7
- package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +71 -60
- package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/lib/internal/template/date-range-picker/relative-range/styles.css.js +9 -9
- package/lib/internal/template/date-range-picker/relative-range/styles.scoped.css +21 -21
- package/lib/internal/template/date-range-picker/relative-range/styles.selectors.js +9 -9
- package/lib/internal/template/date-range-picker/styles.css.js +38 -38
- package/lib/internal/template/date-range-picker/styles.scoped.css +73 -68
- package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
- package/lib/internal/template/drawer/styles.css.js +3 -3
- package/lib/internal/template/drawer/styles.scoped.css +21 -18
- package/lib/internal/template/drawer/styles.selectors.js +3 -3
- package/lib/internal/template/expandable-section/styles.css.js +29 -29
- package/lib/internal/template/expandable-section/styles.scoped.css +99 -94
- package/lib/internal/template/expandable-section/styles.selectors.js +29 -29
- package/lib/internal/template/file-upload/dropzone/styles.css.js +2 -2
- package/lib/internal/template/file-upload/dropzone/styles.scoped.css +8 -4
- package/lib/internal/template/file-upload/dropzone/styles.selectors.js +2 -2
- package/lib/internal/template/file-upload/file-option/styles.css.js +7 -7
- package/lib/internal/template/file-upload/file-option/styles.scoped.css +15 -15
- package/lib/internal/template/file-upload/file-option/styles.selectors.js +7 -7
- package/lib/internal/template/file-upload/styles.css.js +2 -2
- package/lib/internal/template/file-upload/styles.scoped.css +4 -4
- package/lib/internal/template/file-upload/styles.selectors.js +2 -2
- package/lib/internal/template/flashbar/styles.css.js +47 -47
- package/lib/internal/template/flashbar/styles.scoped.css +220 -215
- package/lib/internal/template/flashbar/styles.selectors.js +47 -47
- package/lib/internal/template/form/styles.css.js +9 -9
- package/lib/internal/template/form/styles.scoped.css +18 -18
- package/lib/internal/template/form/styles.selectors.js +9 -9
- package/lib/internal/template/form-field/styles.css.js +19 -19
- package/lib/internal/template/form-field/styles.scoped.css +34 -34
- package/lib/internal/template/form-field/styles.selectors.js +19 -19
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/hooks/use-scroll-sync/index.js +1 -1
- package/lib/internal/template/internal/hooks/use-scroll-sync/index.js.map +1 -1
- package/lib/internal/template/modal/styles.css.js +23 -23
- package/lib/internal/template/modal/styles.scoped.css +39 -39
- package/lib/internal/template/modal/styles.selectors.js +23 -23
- package/lib/internal/template/tiles/styles.css.js +29 -29
- package/lib/internal/template/tiles/styles.scoped.css +97 -91
- package/lib/internal/template/tiles/styles.selectors.js +29 -29
- package/package.json +1 -1
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
@include styles.font-body-s;
|
|
13
13
|
line-height: awsui.$line-height-body-m;
|
|
14
14
|
display: inline-block;
|
|
15
|
-
border-radius: awsui.$border-radius-badge;
|
|
16
|
-
|
|
15
|
+
border-start-start-radius: awsui.$border-radius-badge;
|
|
16
|
+
border-start-end-radius: awsui.$border-radius-badge;
|
|
17
|
+
border-end-start-radius: awsui.$border-radius-badge;
|
|
18
|
+
border-end-end-radius: awsui.$border-radius-badge;
|
|
19
|
+
padding-block: 0;
|
|
20
|
+
padding-inline: awsui.$space-xs;
|
|
17
21
|
color: awsui.$color-text-notification-default;
|
|
18
22
|
|
|
19
23
|
&.badge-color-grey {
|
|
@@ -129,9 +129,11 @@ $font-styles: (
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
@mixin headings-paragraphs-extra-defaults {
|
|
132
|
-
margin: 0;
|
|
132
|
+
margin-block: 0;
|
|
133
|
+
margin-inline: 0;
|
|
133
134
|
text-decoration: none;
|
|
134
|
-
padding: awsui.$space-xxs
|
|
135
|
+
padding-block: awsui.$space-xxs;
|
|
136
|
+
padding-inline: 0;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
@mixin code-extra-defaults {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
&.key-label-variant {
|
|
42
42
|
@include styles.font-label;
|
|
43
43
|
color: awsui.$color-text-label;
|
|
44
|
-
margin-
|
|
44
|
+
margin-block-end: awsui.$space-key-value-gap;
|
|
45
45
|
}
|
|
46
46
|
&.value-large-variant {
|
|
47
47
|
@include styles.font-display-l;
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.t-left {
|
|
93
|
-
text-align:
|
|
93
|
+
text-align: start;
|
|
94
94
|
}
|
|
95
95
|
.t-right {
|
|
96
|
-
text-align:
|
|
96
|
+
text-align: end;
|
|
97
97
|
}
|
|
98
98
|
.t-center {
|
|
99
99
|
text-align: center;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
|
|
17
17
|
> .icon {
|
|
18
|
-
margin: 0
|
|
18
|
+
margin-block: 0;
|
|
19
|
+
margin-inline: awsui.$space-xs;
|
|
19
20
|
color: awsui.$color-text-breadcrumb-icon;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
.compressed {
|
|
43
|
-
min-
|
|
44
|
+
min-inline-size: 0;
|
|
44
45
|
overflow: hidden;
|
|
45
46
|
> .text {
|
|
46
47
|
overflow: hidden;
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
.breadcrumb-group {
|
|
10
10
|
@include styles.styles-reset;
|
|
11
|
-
margin: 0;
|
|
12
|
-
|
|
11
|
+
margin-block: 0;
|
|
12
|
+
margin-inline: 0;
|
|
13
|
+
padding-block: awsui.$space-xxs;
|
|
14
|
+
padding-inline: 0;
|
|
13
15
|
|
|
14
16
|
> .item {
|
|
15
17
|
@include styles.styles-reset;
|
|
@@ -19,24 +21,29 @@
|
|
|
19
21
|
> .breadcrumb-group-list {
|
|
20
22
|
display: flex;
|
|
21
23
|
align-items: center;
|
|
22
|
-
padding: 0;
|
|
23
|
-
|
|
24
|
+
padding-block: 0;
|
|
25
|
+
padding-inline: 0;
|
|
26
|
+
margin-block: 0;
|
|
27
|
+
margin-inline: 0;
|
|
24
28
|
list-style: none;
|
|
25
|
-
|
|
29
|
+
inline-size: 100%;
|
|
26
30
|
flex-wrap: wrap;
|
|
27
31
|
|
|
28
32
|
> .item,
|
|
29
33
|
> .ellipsis {
|
|
30
34
|
display: inline-block;
|
|
31
|
-
padding: 0;
|
|
32
|
-
|
|
35
|
+
padding-block: 0;
|
|
36
|
+
padding-inline: 0;
|
|
37
|
+
margin-block: 0;
|
|
38
|
+
margin-inline: 0;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
> .ellipsis {
|
|
36
42
|
display: none;
|
|
37
43
|
|
|
38
44
|
> .icon {
|
|
39
|
-
margin: 0
|
|
45
|
+
margin-block: 0;
|
|
46
|
+
margin-inline: styles.$base-size;
|
|
40
47
|
color: awsui.$color-text-breadcrumb-icon;
|
|
41
48
|
}
|
|
42
49
|
}
|
|
@@ -54,7 +61,7 @@
|
|
|
54
61
|
flex-shrink: 0;
|
|
55
62
|
}
|
|
56
63
|
> .item {
|
|
57
|
-
min-
|
|
64
|
+
min-inline-size: 0;
|
|
58
65
|
&:not(:first-child):not(:last-child) {
|
|
59
66
|
display: none;
|
|
60
67
|
}
|
|
@@ -8,19 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
.header {
|
|
10
10
|
position: relative;
|
|
11
|
-
margin: 0;
|
|
11
|
+
margin-block: 0;
|
|
12
|
+
margin-inline: 0;
|
|
12
13
|
color: awsui.$color-text-dropdown-group-label;
|
|
13
|
-
border: awsui.$border-divider-list-width solid transparent;
|
|
14
|
+
border-block: awsui.$border-divider-list-width solid transparent;
|
|
15
|
+
border-inline: awsui.$border-divider-list-width solid transparent;
|
|
14
16
|
// remove the borders completely to avoid the slating effect at the border ends (AWSUI-10545)
|
|
15
|
-
border-
|
|
16
|
-
border-right: 0;
|
|
17
|
+
border-inline-width: 0;
|
|
17
18
|
font-weight: bold;
|
|
18
19
|
display: flex;
|
|
19
20
|
justify-content: space-between;
|
|
20
21
|
// to compensate for the loss of padding due to the removal of the left and right borders
|
|
21
22
|
// and differences in default divider + selected border widths (visual refresh)
|
|
22
|
-
padding: styles.$option-padding-with-border-placeholder-vertical
|
|
23
|
-
|
|
23
|
+
padding-block: styles.$option-padding-with-border-placeholder-vertical;
|
|
24
|
+
padding-inline: calc(#{awsui.$space-button-horizontal} + #{awsui.$border-item-width});
|
|
24
25
|
z-index: 1;
|
|
25
26
|
|
|
26
27
|
&.disabled {
|
|
@@ -29,8 +30,8 @@
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
&.expandable-header {
|
|
32
|
-
border-
|
|
33
|
-
border-
|
|
33
|
+
border-block-start-color: awsui.$color-border-dropdown-group;
|
|
34
|
+
border-block-end-color: awsui.$color-border-dropdown-group;
|
|
34
35
|
cursor: pointer;
|
|
35
36
|
&.disabled {
|
|
36
37
|
cursor: default;
|
|
@@ -39,16 +40,22 @@
|
|
|
39
40
|
outline: none;
|
|
40
41
|
}
|
|
41
42
|
&.rolled-down {
|
|
42
|
-
border-
|
|
43
|
+
border-block-end-color: transparent;
|
|
43
44
|
}
|
|
44
45
|
&.highlighted {
|
|
45
46
|
background-color: awsui.$color-background-dropdown-item-hover;
|
|
46
47
|
color: awsui.$color-text-dropdown-item-highlighted;
|
|
47
48
|
// reset padding when adding border back in
|
|
48
|
-
padding: styles.$option-padding-vertical
|
|
49
|
-
|
|
50
|
-
border-
|
|
49
|
+
padding-block: styles.$option-padding-vertical;
|
|
50
|
+
padding-inline: awsui.$space-button-horizontal;
|
|
51
|
+
border-block: awsui.$border-item-width solid awsui.$color-border-dropdown-item-hover;
|
|
52
|
+
border-inline: awsui.$border-item-width solid awsui.$color-border-dropdown-item-hover;
|
|
53
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
54
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
55
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
56
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
51
57
|
z-index: 2;
|
|
58
|
+
|
|
52
59
|
&.disabled {
|
|
53
60
|
background-color: awsui.$color-background-dropdown-item-dimmed;
|
|
54
61
|
border-color: awsui.$color-border-dropdown-item-dimmed-hover;
|
|
@@ -61,14 +68,12 @@
|
|
|
61
68
|
}
|
|
62
69
|
|
|
63
70
|
&.variant-navigation {
|
|
64
|
-
padding-
|
|
65
|
-
padding-bottom: awsui.$space-xs;
|
|
71
|
+
padding-block: awsui.$space-xs;
|
|
66
72
|
|
|
67
73
|
&.highlighted {
|
|
68
74
|
border-color: transparent;
|
|
69
|
-
border-
|
|
70
|
-
border-
|
|
71
|
-
|
|
75
|
+
border-block-start-color: awsui.$color-border-dropdown-group;
|
|
76
|
+
border-block-end-color: awsui.$color-border-dropdown-group;
|
|
72
77
|
background-color: transparent;
|
|
73
78
|
color: awsui.$color-text-accent;
|
|
74
79
|
}
|
|
@@ -78,33 +83,34 @@
|
|
|
78
83
|
|
|
79
84
|
.category {
|
|
80
85
|
list-style: none;
|
|
81
|
-
margin-
|
|
82
|
-
padding: 0;
|
|
86
|
+
margin-block-start: calc(-1 * #{awsui.$border-divider-list-width});
|
|
87
|
+
padding-block: 0;
|
|
88
|
+
padding-inline: 0;
|
|
83
89
|
&:first-child {
|
|
84
|
-
margin-
|
|
90
|
+
margin-block-start: 0;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
&.expandable {
|
|
88
|
-
border-
|
|
94
|
+
border-block-start: 0;
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
&:last-child {
|
|
92
|
-
border-
|
|
98
|
+
border-block-end: none;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
&.variant-navigation {
|
|
96
|
-
padding-
|
|
102
|
+
padding-block-start: awsui.$space-xxs;
|
|
97
103
|
|
|
98
104
|
&.expandable {
|
|
99
|
-
padding-
|
|
105
|
+
padding-block-start: 0;
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
}
|
|
103
109
|
|
|
104
110
|
.expand-icon {
|
|
105
111
|
position: relative;
|
|
106
|
-
|
|
107
|
-
|
|
112
|
+
inset-inline-start: awsui.$space-s;
|
|
113
|
+
inline-size: awsui.$space-m;
|
|
108
114
|
display: inline-block;
|
|
109
115
|
|
|
110
116
|
&-up {
|
|
@@ -120,7 +126,10 @@
|
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
.items-list-container {
|
|
123
|
-
padding: 0;
|
|
124
|
-
|
|
129
|
+
padding-block: 0;
|
|
130
|
+
padding-inline: 0;
|
|
131
|
+
margin-block-start: -1px;
|
|
132
|
+
margin-block-end: 0;
|
|
133
|
+
margin-inline: 0;
|
|
125
134
|
overflow-y: auto;
|
|
126
135
|
}
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
.item-element {
|
|
10
10
|
position: relative;
|
|
11
11
|
z-index: 1;
|
|
12
|
-
border: awsui.$border-item-width solid transparent;
|
|
12
|
+
border-block: awsui.$border-item-width solid transparent;
|
|
13
|
+
border-inline: awsui.$border-item-width solid transparent;
|
|
13
14
|
list-style: none;
|
|
14
|
-
padding: 0;
|
|
15
|
+
padding-block: 0;
|
|
16
|
+
padding-inline: 0;
|
|
15
17
|
color: awsui.$color-text-dropdown-item-default;
|
|
16
|
-
margin-
|
|
18
|
+
margin-block-start: calc(-1 * #{styles.$control-border-width});
|
|
17
19
|
cursor: pointer;
|
|
18
20
|
|
|
19
21
|
&.disabled {
|
|
@@ -21,10 +23,10 @@
|
|
|
21
23
|
color: awsui.$color-text-dropdown-item-disabled;
|
|
22
24
|
}
|
|
23
25
|
&:first-child {
|
|
24
|
-
margin-
|
|
26
|
+
margin-block-start: 0;
|
|
25
27
|
}
|
|
26
28
|
&.last {
|
|
27
|
-
border-
|
|
29
|
+
border-block-end: awsui.$border-item-width solid awsui.$color-border-dropdown-group;
|
|
28
30
|
}
|
|
29
31
|
&.highlighted {
|
|
30
32
|
color: awsui.$color-text-dropdown-item-highlighted;
|
|
@@ -36,7 +38,10 @@
|
|
|
36
38
|
&.variant-primary {
|
|
37
39
|
background-color: awsui.$color-background-dropdown-item-hover;
|
|
38
40
|
border-color: awsui.$color-border-dropdown-item-hover;
|
|
39
|
-
border-radius: awsui.$border-radius-item;
|
|
41
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
42
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
43
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
44
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
40
45
|
|
|
41
46
|
&.disabled {
|
|
42
47
|
color: awsui.$color-text-dropdown-item-dimmed;
|
|
@@ -58,18 +63,17 @@
|
|
|
58
63
|
|
|
59
64
|
// Additional spacing for groups of items
|
|
60
65
|
&.first:not(.has-category-header) {
|
|
61
|
-
padding-
|
|
66
|
+
padding-block-start: styles.$option-padding-vertical;
|
|
62
67
|
}
|
|
63
68
|
&.last {
|
|
64
|
-
padding-
|
|
69
|
+
padding-block-end: styles.$option-padding-vertical;
|
|
65
70
|
}
|
|
66
71
|
&.first.last {
|
|
67
|
-
padding-
|
|
68
|
-
padding-top: styles.$option-padding-vertical;
|
|
72
|
+
padding-block: styles.$option-padding-vertical;
|
|
69
73
|
}
|
|
70
74
|
// Additional spacing for the very last item in the list
|
|
71
75
|
&.last:last-child {
|
|
72
|
-
padding-
|
|
76
|
+
padding-block-end: styles.$option-padding-vertical;
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
79
|
}
|
|
@@ -78,7 +82,8 @@
|
|
|
78
82
|
@include styles.text-wrapping;
|
|
79
83
|
display: flex;
|
|
80
84
|
align-items: flex-start;
|
|
81
|
-
padding: styles.$option-padding-vertical
|
|
85
|
+
padding-block: styles.$option-padding-vertical;
|
|
86
|
+
padding-inline: awsui.$space-button-horizontal;
|
|
82
87
|
color: inherit;
|
|
83
88
|
text-decoration: none;
|
|
84
89
|
|
|
@@ -89,15 +94,15 @@
|
|
|
89
94
|
/* stylelint-disable-next-line selector-max-type */
|
|
90
95
|
.has-category-header > &,
|
|
91
96
|
.has-category-header > span > & {
|
|
92
|
-
padding-
|
|
97
|
+
padding-inline-start: calc(#{awsui.$space-s} + #{awsui.$space-button-horizontal});
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
.icon {
|
|
97
|
-
padding-
|
|
102
|
+
padding-inline-end: awsui.$space-xs;
|
|
98
103
|
flex-shrink: 0;
|
|
99
104
|
}
|
|
100
105
|
|
|
101
106
|
.external-icon {
|
|
102
|
-
margin-
|
|
107
|
+
margin-inline-start: awsui.$space-xxs;
|
|
103
108
|
}
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
user-select: none;
|
|
21
21
|
background-color: awsui.$color-background-dropdown-item-default;
|
|
22
22
|
outline: none;
|
|
23
|
-
border-
|
|
24
|
-
border-
|
|
23
|
+
border-block-start: none;
|
|
24
|
+
border-block-end: none;
|
|
25
25
|
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: column;
|
|
28
|
-
|
|
28
|
+
inline-size: 100%;
|
|
29
29
|
|
|
30
30
|
&.nowrap {
|
|
31
31
|
white-space: nowrap;
|
|
@@ -13,8 +13,10 @@ $dropdown-trigger-icon-offset: 2px;
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.items-list-container {
|
|
16
|
-
padding: 0;
|
|
17
|
-
|
|
16
|
+
padding-block: 0;
|
|
17
|
+
padding-inline: 0;
|
|
18
|
+
margin-block: 0;
|
|
19
|
+
margin-inline: 0;
|
|
18
20
|
|
|
19
21
|
@include styles.with-motion {
|
|
20
22
|
animation: awsui-motion-fade-in-0 500ms awsui.$motion-easing-show-quick;
|
|
@@ -40,9 +42,11 @@ $dropdown-trigger-icon-offset: 2px;
|
|
|
40
42
|
display: flex;
|
|
41
43
|
flex-direction: column;
|
|
42
44
|
list-style: none;
|
|
43
|
-
padding: awsui.$space-s
|
|
44
|
-
|
|
45
|
-
border-
|
|
45
|
+
padding-block: awsui.$space-s;
|
|
46
|
+
padding-inline: awsui.$space-l;
|
|
47
|
+
border-block-start: styles.$control-border-width solid transparent;
|
|
48
|
+
border-block-end: styles.$control-border-width solid awsui.$color-border-dropdown-group;
|
|
49
|
+
border-inline: styles.$control-border-width solid transparent;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.title,
|
|
@@ -61,24 +65,23 @@ $dropdown-trigger-icon-offset: 2px;
|
|
|
61
65
|
|
|
62
66
|
& > .trigger-item:not(:last-child) {
|
|
63
67
|
& > .trigger-button {
|
|
64
|
-
border-
|
|
65
|
-
border-
|
|
66
|
-
padding-
|
|
67
|
-
margin-
|
|
68
|
+
border-start-end-radius: 0;
|
|
69
|
+
border-end-end-radius: 0;
|
|
70
|
+
padding-inline-end: awsui.$space-m;
|
|
71
|
+
margin-inline-end: awsui.$space-xxxs;
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
& > .trigger-item:not(:first-child) {
|
|
72
76
|
& > .trigger-button {
|
|
73
|
-
border-
|
|
74
|
-
border-
|
|
75
|
-
padding-
|
|
76
|
-
padding-right: calc(#{awsui.$space-xs} - #{$dropdown-trigger-icon-offset});
|
|
77
|
+
border-start-start-radius: 0;
|
|
78
|
+
border-end-start-radius: 0;
|
|
79
|
+
padding-inline: calc(#{awsui.$space-xs} - #{$dropdown-trigger-icon-offset});
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
&.visual-refresh {
|
|
80
83
|
& > .trigger-button {
|
|
81
|
-
padding-
|
|
84
|
+
padding-inline-end: calc(#{awsui.$space-s} - #{$dropdown-trigger-icon-offset});
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
}
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
.calendar {
|
|
19
19
|
display: block;
|
|
20
20
|
// IE11 does not calculate the height correctly when in nested flex containers (@see https://github.com/philipwalton/flexbugs#flexbug-3)
|
|
21
|
-
|
|
21
|
+
inline-size: awsui.$size-calendar-grid-width;
|
|
22
22
|
overflow: auto;
|
|
23
23
|
|
|
24
24
|
&-inner {
|
|
25
|
-
margin: awsui.$space-xs;
|
|
25
|
+
margin-block: awsui.$space-xs;
|
|
26
|
+
margin-inline: awsui.$space-xs;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
&-header {
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
@include styles.font-body-m;
|
|
36
37
|
font-weight: typographyConstants.$font-weight-bold;
|
|
37
38
|
color: calendar.$header-color;
|
|
38
|
-
margin: 0;
|
|
39
|
+
margin-block: 0;
|
|
40
|
+
margin-inline: 0;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&-next-month-btn {
|
|
@@ -47,39 +49,45 @@
|
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
&-grid {
|
|
50
|
-
|
|
52
|
+
inline-size: 100%;
|
|
51
53
|
border-spacing: 0;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
&-grid-cell {
|
|
55
|
-
|
|
57
|
+
inline-size: calc(100% / 7);
|
|
56
58
|
word-break: break-word;
|
|
57
59
|
text-align: center;
|
|
58
60
|
font-weight: unset;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
&-day-header {
|
|
62
|
-
padding: awsui.$space-s
|
|
64
|
+
padding-block-start: awsui.$space-s;
|
|
65
|
+
padding-block-end: awsui.$space-xxs;
|
|
66
|
+
padding-inline: 0;
|
|
63
67
|
color: calendar.$grid-day-name-color;
|
|
64
68
|
@include styles.font-body-s;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
&-day {
|
|
68
|
-
border-
|
|
69
|
-
border-
|
|
70
|
-
padding: awsui.$space-xxs
|
|
72
|
+
border-block-end: calendar.$grid-border;
|
|
73
|
+
border-inline-end: calendar.$grid-border;
|
|
74
|
+
padding-block: awsui.$space-xxs;
|
|
75
|
+
padding-inline: 0;
|
|
71
76
|
color: calendar.$grid-disabled-day-color;
|
|
72
77
|
position: relative;
|
|
73
78
|
|
|
74
79
|
&:first-child {
|
|
75
|
-
border-
|
|
80
|
+
border-inline-start: calendar.$grid-border;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
&-enabled {
|
|
79
84
|
cursor: pointer;
|
|
80
85
|
color: calendar.$grid-nonmonth-day-color;
|
|
81
86
|
&::after {
|
|
82
|
-
border-radius: awsui.$border-radius-item;
|
|
87
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
88
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
89
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
90
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
83
91
|
}
|
|
84
92
|
&.calendar-day-current-month {
|
|
85
93
|
color: calendar.$grid-day-color;
|
|
@@ -88,7 +96,8 @@
|
|
|
88
96
|
background-color: calendar.$grid-hover-background-color;
|
|
89
97
|
&:not(.calendar-day-selected) {
|
|
90
98
|
&::after {
|
|
91
|
-
border: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
99
|
+
border-block: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
100
|
+
border-inline: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
92
101
|
}
|
|
93
102
|
}
|
|
94
103
|
}
|
|
@@ -97,7 +106,10 @@
|
|
|
97
106
|
|
|
98
107
|
&-today {
|
|
99
108
|
background-color: calendar.$grid-today-background-color;
|
|
100
|
-
border-radius: awsui.$border-radius-item;
|
|
109
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
110
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
111
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
112
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
101
113
|
font-weight: styles.$font-weight-bold;
|
|
102
114
|
}
|
|
103
115
|
|
|
@@ -105,10 +117,10 @@
|
|
|
105
117
|
content: '';
|
|
106
118
|
position: absolute;
|
|
107
119
|
z-index: 1;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
inset-block-start: calc(-1 * #{awsui.$border-item-width});
|
|
121
|
+
inset-block-end: -1px;
|
|
122
|
+
inset-inline-start: -1px;
|
|
123
|
+
inset-inline-end: calc(-1 * #{awsui.$border-item-width});
|
|
112
124
|
background-color: transparent;
|
|
113
125
|
}
|
|
114
126
|
> .day-inner {
|
|
@@ -148,8 +160,12 @@
|
|
|
148
160
|
}
|
|
149
161
|
&::after {
|
|
150
162
|
background-color: calendar.$grid-selected-background-color;
|
|
151
|
-
border: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
152
|
-
border-
|
|
163
|
+
border-block: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
164
|
+
border-inline: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
165
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
166
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
167
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
168
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
153
169
|
}
|
|
154
170
|
> .day-inner {
|
|
155
171
|
z-index: 2;
|
|
@@ -162,7 +178,7 @@
|
|
|
162
178
|
&-week {
|
|
163
179
|
&:first-child {
|
|
164
180
|
> .calendar-day {
|
|
165
|
-
border-
|
|
181
|
+
border-block-start: calendar.$grid-border;
|
|
166
182
|
}
|
|
167
183
|
}
|
|
168
184
|
}
|