flow.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /* mixins & extensions */
  2. @keyframes in {
  3. 0% {
  4. opacity: 0;
  5. }
  6. 100% {
  7. opacity: 1;
  8. }
  9. }
  10. @keyframes in-down {
  11. 0% {
  12. opacity: 0;
  13. transform: translate3D(0, -5px, 0);
  14. }
  15. 100% {
  16. opacity: 1;
  17. transform: translate3D(0, 0, 0);
  18. }
  19. }
  20. @keyframes in-up {
  21. 0% {
  22. opacity: 0;
  23. transform: translate3D(0, 5px, 0);
  24. }
  25. 100% {
  26. opacity: 1;
  27. transform: translate3D(0, 0, 0);
  28. }
  29. }
  30. @keyframes in-scale {
  31. 0% {
  32. opacity: 0;
  33. transform: scale3D(0.95, 0.95, 1);
  34. }
  35. 100% {
  36. opacity: 1;
  37. transform: scale3D(1, 1, 1);
  38. }
  39. }
  40. :root {
  41. --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
  42. --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
  43. --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
  44. --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
  45. --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
  46. }
  47. .calcite-animate {
  48. opacity: 0;
  49. animation-fill-mode: both;
  50. animation-duration: var(--calcite-animation-timing);
  51. }
  52. .calcite-animate__in {
  53. animation-name: in;
  54. }
  55. .calcite-animate__in-down {
  56. animation-name: in-down;
  57. }
  58. .calcite-animate__in-up {
  59. animation-name: in-up;
  60. }
  61. .calcite-animate__in-scale {
  62. animation-name: in-scale;
  63. }
  64. /**
  65. * Currently only used in Checkbox.
  66. */
  67. :host {
  68. /* Base ":host" styles for the component */
  69. box-sizing: border-box;
  70. background-color: var(--calcite-ui-foreground-1);
  71. color: var(--calcite-ui-text-2);
  72. font-size: var(--calcite-font-size--1);
  73. }
  74. :host * {
  75. box-sizing: border-box;
  76. }
  77. :root {
  78. --calcite-popper-transition: var(--calcite-animation-timing);
  79. }
  80. :host([hidden]) {
  81. display: none;
  82. }
  83. :host {
  84. position: relative;
  85. display: flex;
  86. width: 100%;
  87. flex: 1 1 auto;
  88. align-items: stretch;
  89. overflow: hidden;
  90. background-color: transparent;
  91. }
  92. :host .frame {
  93. position: relative;
  94. margin: 0px;
  95. display: flex;
  96. width: 100%;
  97. flex: 1 1 auto;
  98. flex-direction: column;
  99. align-items: stretch;
  100. padding: 0px;
  101. }
  102. :host ::slotted(calcite-panel) {
  103. height: 100%;
  104. }
  105. :host ::slotted(.calcite-match-height:last-child) {
  106. display: flex;
  107. flex: 1 1 auto;
  108. overflow: hidden;
  109. }
  110. :host .frame--advancing {
  111. animation: calcite-frame-advance var(--calcite-animation-timing);
  112. }
  113. :host .frame--retreating {
  114. animation: calcite-frame-retreat var(--calcite-animation-timing);
  115. }
  116. @keyframes calcite-frame-advance {
  117. 0% {
  118. --tw-bg-opacity: 0.5;
  119. transform: translate3d(50px, 0, 0);
  120. }
  121. 100% {
  122. --tw-bg-opacity: 1;
  123. transform: translate3d(0, 0, 0);
  124. }
  125. }
  126. @keyframes calcite-frame-retreat {
  127. 0% {
  128. --tw-bg-opacity: 0.5;
  129. transform: translate3d(-50px, 0, 0);
  130. }
  131. 100% {
  132. --tw-bg-opacity: 1;
  133. transform: translate3d(0, 0, 0);
  134. }
  135. }