@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
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
@use '../internal/styles/tokens' as awsui;
|
|
8
8
|
|
|
9
9
|
$header-padding-horizontal: awsui.$space-container-horizontal;
|
|
10
|
-
$header-padding: awsui.$space-container-header-top awsui.$space-container-horizontal
|
|
11
|
-
awsui.$space-container-header-bottom;
|
|
12
10
|
$footer-padding: awsui.$space-scaled-s awsui.$space-container-horizontal;
|
|
13
11
|
|
|
14
12
|
// HACK: Remediate focus border for expandable section
|
|
@@ -20,5 +18,5 @@ $header-focus-visible-padding: calc(#{awsui.$space-scaled-s} - #{awsui.$border-d
|
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
@mixin divider {
|
|
23
|
-
border-
|
|
21
|
+
border-block-start: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
|
|
24
22
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
&.fit-height {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
|
|
18
|
+
block-size: 100%;
|
|
19
19
|
&.with-side-media {
|
|
20
20
|
flex-direction: row;
|
|
21
21
|
}
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
&-stacked:not(:last-child),
|
|
34
34
|
&-stacked:not(:last-child)::before,
|
|
35
35
|
&-stacked:not(:last-child)::after {
|
|
36
|
-
border-
|
|
37
|
-
border-
|
|
36
|
+
border-end-end-radius: 0;
|
|
37
|
+
border-end-start-radius: 0;
|
|
38
38
|
}
|
|
39
39
|
// Meld container top corners into preceding container
|
|
40
40
|
&-stacked + &-stacked,
|
|
41
41
|
&-stacked + &-stacked::before,
|
|
42
42
|
&-stacked + &-stacked::after {
|
|
43
|
-
border-
|
|
44
|
-
border-
|
|
43
|
+
border-start-start-radius: 0;
|
|
44
|
+
border-start-end-radius: 0;
|
|
45
45
|
}
|
|
46
46
|
// Replace container border with a divider
|
|
47
47
|
&-stacked + &-stacked::before {
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
// To ensure the top border/divider is visible on sticky elements which have a higher z-index
|
|
57
57
|
&.sticky-enabled {
|
|
58
58
|
&::before {
|
|
59
|
-
|
|
59
|
+
inset-block-start: calc(-1 * #{awsui.$border-container-top-width});
|
|
60
60
|
}
|
|
61
61
|
&.variant-stacked::before {
|
|
62
|
-
|
|
62
|
+
inset-block-start: calc(-1 * #{awsui.$border-divider-section-width});
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
.content-wrapper {
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
|
-
|
|
80
|
+
inline-size: 100%;
|
|
81
81
|
&-fit-height {
|
|
82
|
-
|
|
82
|
+
block-size: 100%;
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -92,41 +92,42 @@
|
|
|
92
92
|
img,
|
|
93
93
|
video,
|
|
94
94
|
picture {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
inline-size: 100%;
|
|
96
|
+
block-size: 100%;
|
|
97
97
|
object-fit: cover;
|
|
98
98
|
object-position: center;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// stylelint-disable-next-line @cloudscape-design/no-implicit-descendant, selector-max-type
|
|
102
102
|
iframe {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
border: 0;
|
|
103
|
+
inline-size: 100%;
|
|
104
|
+
block-size: 100%;
|
|
105
|
+
border-block: 0;
|
|
106
|
+
border-inline: 0;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
&-top {
|
|
109
|
-
max-
|
|
110
|
-
border-
|
|
111
|
-
border-
|
|
110
|
+
max-block-size: 66%;
|
|
111
|
+
border-start-start-radius: awsui.$border-radius-container;
|
|
112
|
+
border-start-end-radius: awsui.$border-radius-container;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
&-side {
|
|
115
|
-
max-
|
|
116
|
-
border-
|
|
117
|
-
border-
|
|
116
|
+
max-inline-size: 66%;
|
|
117
|
+
border-start-start-radius: awsui.$border-radius-container;
|
|
118
|
+
border-end-start-radius: awsui.$border-radius-container;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
.header {
|
|
122
123
|
background-color: awsui.$color-background-container-header;
|
|
123
|
-
border-
|
|
124
|
-
border-
|
|
124
|
+
border-start-start-radius: awsui.$border-radius-container;
|
|
125
|
+
border-start-end-radius: awsui.$border-radius-container;
|
|
125
126
|
|
|
126
127
|
&.header-with-media {
|
|
127
128
|
background: none;
|
|
128
129
|
&:not(:empty) {
|
|
129
|
-
border-
|
|
130
|
+
border-block-end: none;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
|
|
@@ -138,16 +139,21 @@
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
&-sticky-enabled {
|
|
141
|
-
|
|
142
|
+
inset-block-start: 0;
|
|
142
143
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
143
144
|
position: sticky;
|
|
144
145
|
z-index: 800;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
&-stuck {
|
|
148
|
-
border-radius: 0;
|
|
149
|
+
border-start-start-radius: 0;
|
|
150
|
+
border-start-end-radius: 0;
|
|
151
|
+
border-end-start-radius: 0;
|
|
152
|
+
border-end-end-radius: 0;
|
|
153
|
+
|
|
149
154
|
&::before {
|
|
150
|
-
border: 0;
|
|
155
|
+
border-block: 0;
|
|
156
|
+
border-inline: 0;
|
|
151
157
|
}
|
|
152
158
|
&:not(.header-variant-cards) {
|
|
153
159
|
box-shadow: awsui.$shadow-sticky-embedded;
|
|
@@ -156,23 +162,27 @@
|
|
|
156
162
|
|
|
157
163
|
&-dynamic-height.header-stuck {
|
|
158
164
|
// to prevent the block from changing its height when variant dynamically changes
|
|
159
|
-
margin-
|
|
165
|
+
margin-block-end: calc(#{awsui.$line-height-heading-xl} - #{awsui.$line-height-heading-l});
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
&:not(:empty) {
|
|
163
|
-
border-
|
|
169
|
+
border-block-end: awsui.$border-container-sticky-width solid awsui.$color-border-container-divider;
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
&.with-paddings {
|
|
167
|
-
padding:
|
|
173
|
+
padding-block-start: awsui.$space-container-header-top;
|
|
174
|
+
padding-block-end: awsui.$space-container-header-bottom;
|
|
175
|
+
padding-inline: awsui.$space-container-horizontal;
|
|
176
|
+
|
|
168
177
|
&.header-variant-cards {
|
|
169
|
-
padding: awsui.$space-container-header-top
|
|
178
|
+
padding-block: awsui.$space-container-header-top;
|
|
179
|
+
padding-inline: awsui.$space-container-horizontal;
|
|
170
180
|
}
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
&.with-hidden-content {
|
|
174
|
-
border-
|
|
175
|
-
border-
|
|
184
|
+
border-end-start-radius: awsui.$border-radius-container;
|
|
185
|
+
border-end-end-radius: awsui.$border-radius-container;
|
|
176
186
|
}
|
|
177
187
|
|
|
178
188
|
&-variant-cards {
|
|
@@ -183,9 +193,10 @@
|
|
|
183
193
|
|
|
184
194
|
&.header-stuck::after,
|
|
185
195
|
&.header-stuck::before {
|
|
186
|
-
border: 0;
|
|
187
|
-
border-
|
|
188
|
-
border-
|
|
196
|
+
border-block: 0;
|
|
197
|
+
border-inline: 0;
|
|
198
|
+
border-start-start-radius: 0;
|
|
199
|
+
border-start-end-radius: 0;
|
|
189
200
|
}
|
|
190
201
|
}
|
|
191
202
|
|
|
@@ -196,10 +207,7 @@
|
|
|
196
207
|
content: '';
|
|
197
208
|
|
|
198
209
|
position: absolute;
|
|
199
|
-
|
|
200
|
-
left: 0;
|
|
201
|
-
bottom: 0;
|
|
202
|
-
top: 0;
|
|
210
|
+
inset: 0;
|
|
203
211
|
|
|
204
212
|
box-shadow: awsui.$shadow-sticky;
|
|
205
213
|
// This polygon only shows the part of the shadow that is lower than the element itself.
|
|
@@ -223,12 +231,13 @@ the default white background of the container component.
|
|
|
223
231
|
overflow: auto;
|
|
224
232
|
}
|
|
225
233
|
&.with-paddings {
|
|
226
|
-
padding: awsui.$space-scaled-l
|
|
234
|
+
padding-block: awsui.$space-scaled-l;
|
|
235
|
+
padding-inline: awsui.$space-container-horizontal;
|
|
227
236
|
|
|
228
237
|
.header + & {
|
|
229
|
-
padding-
|
|
238
|
+
padding-block-start: awsui.$space-container-content-top;
|
|
230
239
|
&.content-with-media {
|
|
231
|
-
padding-
|
|
240
|
+
padding-block-start: 0;
|
|
232
241
|
}
|
|
233
242
|
}
|
|
234
243
|
}
|
|
@@ -236,7 +245,8 @@ the default white background of the container component.
|
|
|
236
245
|
|
|
237
246
|
.footer {
|
|
238
247
|
&.with-paddings {
|
|
239
|
-
padding:
|
|
248
|
+
padding-block: awsui.$space-scaled-s;
|
|
249
|
+
padding-inline: awsui.$space-container-horizontal;
|
|
240
250
|
}
|
|
241
251
|
|
|
242
252
|
&.with-divider {
|
|
@@ -20,7 +20,7 @@ nodes will directly touch with no gap between them.
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
> .header {
|
|
23
|
-
padding-
|
|
23
|
+
padding-block-end: awsui.$space-content-header-padding-bottom;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ nodes will directly touch with no gap between them.
|
|
|
28
28
|
display: grid;
|
|
29
29
|
grid-template-columns: minmax(0, 1fr);
|
|
30
30
|
grid-template-rows: auto #{awsui.$space-dark-header-overlap-distance} 1fr;
|
|
31
|
-
min-
|
|
31
|
+
min-block-size: 100%;
|
|
32
32
|
|
|
33
33
|
> .background {
|
|
34
34
|
background-color: awsui.$color-background-layout-main;
|
|
@@ -44,7 +44,7 @@ nodes will directly touch with no gap between them.
|
|
|
44
44
|
> .header {
|
|
45
45
|
grid-column: 1;
|
|
46
46
|
grid-row: 1;
|
|
47
|
-
padding-
|
|
47
|
+
padding-block-end: awsui.$space-content-header-padding-bottom;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
> .content {
|
|
@@ -60,7 +60,7 @@ nodes will directly touch with no gap between them.
|
|
|
60
60
|
1fr;
|
|
61
61
|
|
|
62
62
|
> .content {
|
|
63
|
-
padding-
|
|
63
|
+
padding-block-start: var(#{custom-props.$containerFirstGap}, 0px);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.date-picker-container {
|
|
31
31
|
position: relative;
|
|
32
|
-
max-
|
|
32
|
+
max-inline-size: 234px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.date-picker-trigger {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.date-picker-input {
|
|
40
|
-
padding-
|
|
41
|
-
|
|
40
|
+
padding-inline-end: awsui.$space-xs;
|
|
41
|
+
inline-size: 100%;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.open-calendar-button {
|
|
@@ -31,17 +31,19 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.grid {
|
|
34
|
-
|
|
34
|
+
inline-size: awsui.$size-calendar-grid-width;
|
|
35
35
|
border-spacing: 0;
|
|
36
36
|
}
|
|
37
37
|
.grid-cell {
|
|
38
|
-
|
|
38
|
+
inline-size: calc(100% / 7);
|
|
39
39
|
word-break: break-word;
|
|
40
40
|
text-align: center;
|
|
41
41
|
font-weight: unset;
|
|
42
42
|
}
|
|
43
43
|
.day-header {
|
|
44
|
-
padding: awsui.$space-s
|
|
44
|
+
padding-block-start: awsui.$space-s;
|
|
45
|
+
padding-block-end: awsui.$space-xxs;
|
|
46
|
+
padding-inline: 0;
|
|
45
47
|
color: calendar.$grid-day-name-color;
|
|
46
48
|
@include styles.font-body-s;
|
|
47
49
|
}
|
|
@@ -51,9 +53,10 @@
|
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.day {
|
|
54
|
-
border-
|
|
55
|
-
border-
|
|
56
|
-
padding: awsui.$space-xxs
|
|
56
|
+
border-block-end: calendar.$grid-border;
|
|
57
|
+
border-inline-end: calendar.$grid-border;
|
|
58
|
+
padding-block: awsui.$space-xxs;
|
|
59
|
+
padding-inline: 0;
|
|
57
60
|
color: calendar.$grid-disabled-day-color;
|
|
58
61
|
position: relative;
|
|
59
62
|
|
|
@@ -65,10 +68,10 @@
|
|
|
65
68
|
content: '';
|
|
66
69
|
position: absolute;
|
|
67
70
|
z-index: 1;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
inset-block-start: calc(-1 * #{awsui.$border-item-width});
|
|
72
|
+
inset-block-end: -1px;
|
|
73
|
+
inset-inline-start: -1px;
|
|
74
|
+
inset-inline-end: calc(-1 * #{awsui.$border-item-width});
|
|
72
75
|
background-color: transparent;
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -87,11 +90,11 @@
|
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
.in-first-row:not(.in-previous-month) {
|
|
90
|
-
border-
|
|
93
|
+
border-block-start: calendar.$grid-border;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
.in-previous-month:not(.last-day-of-month) {
|
|
94
|
-
border-
|
|
97
|
+
border-inline-end-color: transparent;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
.in-next-month {
|
|
@@ -99,10 +102,10 @@
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
.in-first-column {
|
|
102
|
-
border-
|
|
105
|
+
border-inline-start: 1px solid transparent;
|
|
103
106
|
|
|
104
107
|
&.in-current-month {
|
|
105
|
-
border-
|
|
108
|
+
border-inline-start: calendar.$grid-border;
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
|
|
@@ -116,7 +119,10 @@
|
|
|
116
119
|
&.no-range {
|
|
117
120
|
&,
|
|
118
121
|
&::after {
|
|
119
|
-
border-radius: awsui.$border-radius-item;
|
|
122
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
123
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
124
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
125
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
&:hover {
|
|
@@ -124,7 +130,8 @@
|
|
|
124
130
|
background-color: calendar.$grid-hover-background-color;
|
|
125
131
|
&:not(.selected) {
|
|
126
132
|
&::after {
|
|
127
|
-
border: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
133
|
+
border-block: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
134
|
+
border-inline: awsui.$border-item-width solid calendar.$grid-hover-border-color;
|
|
128
135
|
}
|
|
129
136
|
}
|
|
130
137
|
}
|
|
@@ -133,7 +140,10 @@
|
|
|
133
140
|
|
|
134
141
|
.today:not(.in-range) {
|
|
135
142
|
background-color: calendar.$grid-today-background-color;
|
|
136
|
-
border-radius: awsui.$border-radius-item;
|
|
143
|
+
border-start-start-radius: awsui.$border-radius-item;
|
|
144
|
+
border-start-end-radius: awsui.$border-radius-item;
|
|
145
|
+
border-end-start-radius: awsui.$border-radius-item;
|
|
146
|
+
border-end-end-radius: awsui.$border-radius-item;
|
|
137
147
|
font-weight: styles.$font-weight-bold;
|
|
138
148
|
}
|
|
139
149
|
|
|
@@ -155,7 +165,8 @@
|
|
|
155
165
|
|
|
156
166
|
&::after {
|
|
157
167
|
background-color: calendar.$grid-selected-background-color;
|
|
158
|
-
border: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
168
|
+
border-block: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
169
|
+
border-inline: awsui.$border-item-width solid calendar.$grid-selected-border-color;
|
|
159
170
|
z-index: 0;
|
|
160
171
|
}
|
|
161
172
|
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
|
|
10
10
|
.custom-range {
|
|
11
11
|
// This padding aligns the custom range selection with the radio labels
|
|
12
|
-
padding-
|
|
12
|
+
padding-inline-start: calc(#{1.4 * styles.$base-size} + #{awsui.$space-xs});
|
|
13
13
|
|
|
14
14
|
display: flex;
|
|
15
|
-
|
|
15
|
+
inline-size: 80%;
|
|
16
16
|
}
|
|
17
17
|
.custom-range--no-padding {
|
|
18
|
-
padding-
|
|
18
|
+
padding-inline-start: 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.custom-range-form-controls {
|
|
22
22
|
display: flex;
|
|
23
|
-
|
|
23
|
+
inline-size: 100%;
|
|
24
24
|
|
|
25
25
|
> .custom-range-duration,
|
|
26
26
|
> .custom-range-unit {
|
|
27
|
-
|
|
27
|
+
inline-size: 50%;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
> .custom-range-duration {
|
|
31
|
-
margin-
|
|
31
|
+
margin-inline-end: awsui.$space-xs;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.vertical {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
> .custom-range-duration,
|
|
38
38
|
> .custom-range-unit {
|
|
39
|
-
|
|
39
|
+
inline-size: 100%;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
> .custom-range-unit {
|
|
43
|
-
margin-
|
|
43
|
+
margin-block-start: awsui.$space-s;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -14,7 +14,7 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
14
14
|
|
|
15
15
|
.root {
|
|
16
16
|
@include styles.styles-reset;
|
|
17
|
-
max-
|
|
17
|
+
max-inline-size: 32em;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.focus-lock {
|
|
@@ -22,7 +22,7 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.trigger-wrapper {
|
|
25
|
-
min-
|
|
25
|
+
min-inline-size: calc(#{$calendar-grid-width} + 2 * #{awsui.$space-l});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.trigger-flexbox {
|
|
@@ -30,10 +30,10 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.calendar-container {
|
|
33
|
-
|
|
33
|
+
inline-size: calc(2 * #{$calendar-grid-width} + #{awsui.$space-xs});
|
|
34
34
|
|
|
35
35
|
&.one-grid {
|
|
36
|
-
|
|
36
|
+
inline-size: $calendar-grid-width;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -47,12 +47,10 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
47
47
|
|
|
48
48
|
&-header-months-wrapper {
|
|
49
49
|
position: absolute;
|
|
50
|
-
|
|
51
|
-
left: 0;
|
|
52
|
-
top: 0;
|
|
53
|
-
bottom: 0;
|
|
50
|
+
inset: 0;
|
|
54
51
|
|
|
55
|
-
margin: 0;
|
|
52
|
+
margin-block: 0;
|
|
53
|
+
margin-inline: 0;
|
|
56
54
|
|
|
57
55
|
display: flex;
|
|
58
56
|
justify-content: space-around;
|
|
@@ -92,7 +90,7 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
92
90
|
gap: awsui.$space-xs;
|
|
93
91
|
}
|
|
94
92
|
.date-and-time-wrapper {
|
|
95
|
-
|
|
93
|
+
inline-size: $calendar-grid-width;
|
|
96
94
|
display: grid;
|
|
97
95
|
gap: awsui.$space-xs;
|
|
98
96
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
@@ -102,29 +100,33 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
102
100
|
display: flex;
|
|
103
101
|
flex-wrap: wrap;
|
|
104
102
|
justify-content: flex-end;
|
|
105
|
-
border-
|
|
106
|
-
padding: 0
|
|
103
|
+
border-block-start: 1px solid #{awsui.$color-border-dropdown-item-default};
|
|
104
|
+
padding-block-start: 0;
|
|
105
|
+
padding-block-end: awsui.$space-s;
|
|
106
|
+
padding-inline: awsui.$space-l;
|
|
107
107
|
|
|
108
108
|
&.has-clear-button {
|
|
109
109
|
justify-content: space-between;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&.one-grid {
|
|
113
|
-
padding: 0
|
|
113
|
+
padding-block-start: 0;
|
|
114
|
+
padding-block-end: awsui.$space-s;
|
|
115
|
+
padding-inline: awsui.$space-xs;
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
.footer-button-wrapper {
|
|
118
|
-
padding-
|
|
120
|
+
padding-block-start: awsui.$space-s;
|
|
119
121
|
|
|
120
122
|
&:last-child {
|
|
121
|
-
margin-
|
|
123
|
+
margin-inline-start: auto;
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
.icon-wrapper {
|
|
126
128
|
color: awsui.$color-text-interactive-default;
|
|
127
|
-
margin-
|
|
129
|
+
margin-inline-end: awsui.$space-xs;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
.label {
|
|
@@ -154,9 +156,12 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
154
156
|
// widths.
|
|
155
157
|
overflow: auto;
|
|
156
158
|
|
|
157
|
-
border-
|
|
158
|
-
border-
|
|
159
|
-
border-radius: awsui.$border-radius-dropdown;
|
|
159
|
+
border-block-start: 1px solid #{awsui.$color-border-container-top};
|
|
160
|
+
border-block-end: 1px solid #{awsui.$color-border-container-top};
|
|
161
|
+
border-start-start-radius: awsui.$border-radius-dropdown;
|
|
162
|
+
border-start-end-radius: awsui.$border-radius-dropdown;
|
|
163
|
+
border-end-start-radius: awsui.$border-radius-dropdown;
|
|
164
|
+
border-end-end-radius: awsui.$border-radius-dropdown;
|
|
160
165
|
|
|
161
166
|
&:focus {
|
|
162
167
|
outline: none;
|
|
@@ -169,10 +174,10 @@ $calendar-header-color: awsui.$color-text-body-default;
|
|
|
169
174
|
.dropdown-content {
|
|
170
175
|
user-select: text;
|
|
171
176
|
background-color: awsui.$color-background-container-content;
|
|
172
|
-
|
|
177
|
+
inline-size: calc(2 * #{$calendar-grid-width} + #{awsui.$space-xs} + 2 * #{awsui.$space-l});
|
|
173
178
|
|
|
174
179
|
&.one-grid {
|
|
175
|
-
|
|
180
|
+
inline-size: calc(#{$calendar-grid-width} + 2 * #{awsui.$space-l});
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
|
|
@@ -10,18 +10,23 @@
|
|
|
10
10
|
.drawer {
|
|
11
11
|
@include styles.styles-reset;
|
|
12
12
|
word-wrap: break-word;
|
|
13
|
-
padding: awsui.$space-scaled-l
|
|
13
|
+
padding-block-start: awsui.$space-scaled-l;
|
|
14
|
+
padding-block-end: awsui.$space-scaled-xxxl;
|
|
15
|
+
padding-inline-start: awsui.$space-panel-side-left;
|
|
16
|
+
padding-inline-end: awsui.$space-panel-side-right;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
.header {
|
|
17
20
|
@include styles.font-panel-header;
|
|
18
21
|
color: awsui.$color-text-heading-default;
|
|
19
|
-
padding-
|
|
20
|
-
padding-
|
|
22
|
+
padding-block-end: awsui.$space-scaled-l;
|
|
23
|
+
padding-inline: awsui.$space-panel-side-left calc(#{awsui.$space-xl} + #{awsui.$space-scaled-xxl});
|
|
21
24
|
// padding to make sure the header doesn't overlap with the close icon
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
margin
|
|
25
|
+
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
|
|
26
|
+
margin-block-start: 0;
|
|
27
|
+
margin-block-end: awsui.$space-scaled-l;
|
|
28
|
+
margin-inline-end: calc(-1 * #{awsui.$space-panel-side-right});
|
|
29
|
+
margin-inline-start: calc(-1 * #{awsui.$space-panel-side-left});
|
|
25
30
|
|
|
26
31
|
h2,
|
|
27
32
|
h3,
|
|
@@ -29,10 +34,8 @@
|
|
|
29
34
|
h5,
|
|
30
35
|
h6 {
|
|
31
36
|
@include styles.font-panel-header;
|
|
32
|
-
padding-
|
|
33
|
-
|
|
34
|
-
margin-top: 0;
|
|
35
|
-
margin-bottom: 0;
|
|
37
|
+
padding-block: 0;
|
|
38
|
+
margin-block: 0;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
|