@carbon/styles 1.77.1 → 1.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/styles.css
CHANGED
|
@@ -15193,117 +15193,6 @@ th .cds--table-sort__flex {
|
|
|
15193
15193
|
}
|
|
15194
15194
|
}
|
|
15195
15195
|
|
|
15196
|
-
.cds--dialog {
|
|
15197
|
-
padding: 0;
|
|
15198
|
-
border: none;
|
|
15199
|
-
background-color: var(--cds-layer);
|
|
15200
|
-
color: var(--cds-text-primary, #161616);
|
|
15201
|
-
inline-size: 48rem;
|
|
15202
|
-
max-block-size: 50%;
|
|
15203
|
-
max-inline-size: 100%;
|
|
15204
|
-
opacity: 0;
|
|
15205
|
-
transform: translateY(calc(-1 * 1.5rem));
|
|
15206
|
-
/** opening and closing is used in as allow-discrete is not currently supported wide enough
|
|
15207
|
-
* https://caniuse.com/mdn-css_properties_display_is_transitionable
|
|
15208
|
-
*/
|
|
15209
|
-
transition: opacity 240ms cubic-bezier(0.4, 0.14, 1, 1), transform 240ms cubic-bezier(0.4, 0.14, 1, 1), overlay 240ms cubic-bezier(0.4, 0.14, 1, 1) allow-discrete, display 240ms cubic-bezier(0.4, 0.14, 1, 1) allow-discrete;
|
|
15210
|
-
/** starting style also not supported widely
|
|
15211
|
-
* https://caniuse.com/mdn-css_at-rules_starting-style
|
|
15212
|
-
*/
|
|
15213
|
-
/* Before-open state */
|
|
15214
|
-
/* Needs to be after the previous dialog[open] rule to take effect,
|
|
15215
|
-
as the specificity is the same */
|
|
15216
|
-
}
|
|
15217
|
-
@media (prefers-reduced-motion) {
|
|
15218
|
-
.cds--dialog {
|
|
15219
|
-
transition: none;
|
|
15220
|
-
}
|
|
15221
|
-
}
|
|
15222
|
-
@media (min-width: 42rem) {
|
|
15223
|
-
.cds--dialog {
|
|
15224
|
-
max-inline-size: 84%;
|
|
15225
|
-
}
|
|
15226
|
-
}
|
|
15227
|
-
@media (min-width: 66rem) {
|
|
15228
|
-
.cds--dialog {
|
|
15229
|
-
max-inline-size: 72%;
|
|
15230
|
-
}
|
|
15231
|
-
}
|
|
15232
|
-
@media (min-width: 82rem) {
|
|
15233
|
-
.cds--dialog {
|
|
15234
|
-
max-inline-size: 64%;
|
|
15235
|
-
}
|
|
15236
|
-
}
|
|
15237
|
-
@media (min-width: 82rem) {
|
|
15238
|
-
.cds--dialog {
|
|
15239
|
-
max-inline-size: 60%;
|
|
15240
|
-
}
|
|
15241
|
-
}
|
|
15242
|
-
.cds--dialog[open] {
|
|
15243
|
-
opacity: 1;
|
|
15244
|
-
transform: translateY(0);
|
|
15245
|
-
transition: opacity 240ms cubic-bezier(0, 0, 0.3, 1), transform 240ms cubic-bezier(0, 0, 0.3, 1), overlay 240ms cubic-bezier(0, 0, 0.3, 1) allow-discrete, display 240ms cubic-bezier(0, 0, 0.3, 1) allow-discrete;
|
|
15246
|
-
}
|
|
15247
|
-
@media (prefers-reduced-motion) {
|
|
15248
|
-
.cds--dialog[open] {
|
|
15249
|
-
transition: none;
|
|
15250
|
-
}
|
|
15251
|
-
}
|
|
15252
|
-
@starting-style {
|
|
15253
|
-
.cds--dialog[open] {
|
|
15254
|
-
opacity: 0;
|
|
15255
|
-
transform: translateY(calc(-1 * 1.5rem));
|
|
15256
|
-
}
|
|
15257
|
-
}
|
|
15258
|
-
|
|
15259
|
-
.cds--dialog__header {
|
|
15260
|
-
position: relative;
|
|
15261
|
-
overflow: visible;
|
|
15262
|
-
inline-size: 100%;
|
|
15263
|
-
min-block-size: 3rem;
|
|
15264
|
-
}
|
|
15265
|
-
|
|
15266
|
-
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
|
|
15267
|
-
.cds--dialog::backdrop {
|
|
15268
|
-
background-color: var(--cds-overlay, rgba(22, 22, 22, 0.5));
|
|
15269
|
-
opacity: 0;
|
|
15270
|
-
/* opening and closing is used in as allow-discrete is not currently supported wide enough
|
|
15271
|
-
* https://caniuse.com/mdn-css_properties_display_is_transitionable
|
|
15272
|
-
*/
|
|
15273
|
-
transition: background-color 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1);
|
|
15274
|
-
}
|
|
15275
|
-
@media (prefers-reduced-motion) {
|
|
15276
|
-
.cds--dialog::backdrop {
|
|
15277
|
-
transition: none;
|
|
15278
|
-
}
|
|
15279
|
-
}
|
|
15280
|
-
|
|
15281
|
-
.cds--dialog[open]::backdrop {
|
|
15282
|
-
opacity: 1;
|
|
15283
|
-
transition: background-color 240ms cubic-bezier(0.4, 0.14, 1, 1), opacity 240ms cubic-bezier(0.4, 0.14, 1, 1);
|
|
15284
|
-
}
|
|
15285
|
-
@media (prefers-reduced-motion) {
|
|
15286
|
-
.cds--dialog[open]::backdrop {
|
|
15287
|
-
transition: none;
|
|
15288
|
-
}
|
|
15289
|
-
}
|
|
15290
|
-
|
|
15291
|
-
/** starting style also not supported widely
|
|
15292
|
-
* https://caniuse.com/mdn-css_at-rules_starting-style
|
|
15293
|
-
*/
|
|
15294
|
-
/* This starting-style rule cannot be nested inside the above selector
|
|
15295
|
-
because the nesting selector cannot represent pseudo-elements. */
|
|
15296
|
-
@starting-style {
|
|
15297
|
-
.cds--dialog[open]::backdrop {
|
|
15298
|
-
opacity: 0;
|
|
15299
|
-
}
|
|
15300
|
-
}
|
|
15301
|
-
.cds--dialog__header-controls {
|
|
15302
|
-
position: absolute;
|
|
15303
|
-
inset-block-start: 0;
|
|
15304
|
-
inset-inline-end: 0;
|
|
15305
|
-
}
|
|
15306
|
-
|
|
15307
15196
|
.cds--dropdown__wrapper--inline {
|
|
15308
15197
|
display: inline-grid;
|
|
15309
15198
|
align-items: center;
|