@skyux/theme 14.0.0-alpha.5 → 14.0.0-alpha.7
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/sky.css +54 -0
- package/package.json +1 -1
package/css/sky.css
CHANGED
|
@@ -407,6 +407,60 @@ textarea {
|
|
|
407
407
|
--sky-viewkeeper-box-shadow: none;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
@property --sky-transition-time-short {
|
|
411
|
+
syntax: "<time>";
|
|
412
|
+
inherits: true;
|
|
413
|
+
initial-value: 150ms;
|
|
414
|
+
}
|
|
415
|
+
@property --sky-transition-time-medium {
|
|
416
|
+
syntax: "<time>";
|
|
417
|
+
inherits: true;
|
|
418
|
+
initial-value: 250ms;
|
|
419
|
+
}
|
|
420
|
+
.sky-animations-disabled *,
|
|
421
|
+
.sky-animations-disabled *::before,
|
|
422
|
+
.sky-animations-disabled *::after {
|
|
423
|
+
--sky-transition-time-short: 0s !important;
|
|
424
|
+
--sky-transition-time-medium: 0s !important;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* suppress motion globally based on user preferences */
|
|
428
|
+
@media (prefers-reduced-motion: reduce) {
|
|
429
|
+
*,
|
|
430
|
+
*::before,
|
|
431
|
+
*::after {
|
|
432
|
+
--sky-transition-time-short: 1ms !important;
|
|
433
|
+
--sky-transition-time-medium: 1ms !important;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
@keyframes sky-animation-emerge-enter {
|
|
437
|
+
from {
|
|
438
|
+
opacity: 0;
|
|
439
|
+
transform: scale(0);
|
|
440
|
+
}
|
|
441
|
+
to {
|
|
442
|
+
opacity: 1;
|
|
443
|
+
transform: scale(1);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
@keyframes sky-animation-emerge-leave {
|
|
447
|
+
from {
|
|
448
|
+
opacity: 1;
|
|
449
|
+
transform: scale(1);
|
|
450
|
+
}
|
|
451
|
+
to {
|
|
452
|
+
opacity: 0;
|
|
453
|
+
transform: scale(0);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
.sky-animation-emerge-enter {
|
|
457
|
+
animation: sky-animation-emerge-enter var(--sky-transition-time-medium) ease-in-out;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.sky-animation-emerge-leave {
|
|
461
|
+
animation: sky-animation-emerge-leave var(--sky-transition-time-medium) ease-in-out;
|
|
462
|
+
}
|
|
463
|
+
|
|
410
464
|
body:not(.sky-theme-modern) {
|
|
411
465
|
--sky-override-border-dark: 1px solid #cdcfd2;
|
|
412
466
|
--sky-override-border-light: 1px solid #e2e3e4;
|