tile.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. :root {
  68. --calcite-popper-transition: var(--calcite-animation-timing);
  69. }
  70. :host([hidden]) {
  71. display: none;
  72. }
  73. :host {
  74. box-sizing: border-box;
  75. display: inline-block;
  76. -webkit-user-select: none;
  77. user-select: none;
  78. background-color: var(--calcite-ui-foreground-1);
  79. color: var(--calcite-ui-text-3);
  80. transition-duration: 150ms;
  81. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  82. }
  83. :host .container {
  84. pointer-events: none;
  85. display: grid;
  86. grid-template-columns: repeat(1, minmax(0, 1fr));
  87. gap: 0.5rem;
  88. }
  89. :host .content {
  90. display: flex;
  91. flex: 1 1 auto;
  92. flex-direction: column;
  93. justify-content: center;
  94. gap: 0.5rem;
  95. width: 10%;
  96. }
  97. :host .content-container {
  98. display: flex;
  99. width: 100%;
  100. flex: 1 1 auto;
  101. align-items: stretch;
  102. padding: 0px;
  103. color: var(--calcite-ui-text-2);
  104. outline-offset: 0;
  105. outline-color: transparent;
  106. transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
  107. }
  108. :host .content-slot-container {
  109. display: flex;
  110. align-items: center;
  111. background-color: var(--calcite-ui-foreground-1);
  112. }
  113. :host .content-slot-container:first-child {
  114. padding-inline: 0 0.75rem;
  115. }
  116. :host .content-slot-container:last-child {
  117. padding-inline: 0.75rem 0;
  118. }
  119. :host .heading {
  120. pointer-events: none;
  121. overflow-wrap: break-word;
  122. font-size: var(--calcite-font-size--1);
  123. line-height: 1.375;
  124. font-weight: var(--calcite-font-weight-medium);
  125. color: var(--calcite-ui-text-2);
  126. transition-duration: 150ms;
  127. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  128. }
  129. :host .large-visual {
  130. align-items: center;
  131. text-align: center;
  132. min-height: 12rem;
  133. }
  134. :host .large-visual .icon {
  135. display: flex;
  136. justify-content: center;
  137. align-self: flex-end;
  138. }
  139. :host .large-visual .content-container {
  140. align-self: center;
  141. }
  142. :host .description {
  143. pointer-events: none;
  144. overflow-wrap: break-word;
  145. font-size: var(--calcite-font-size--2);
  146. line-height: 1.375;
  147. color: var(--calcite-ui-text-3);
  148. transition-duration: 150ms;
  149. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  150. }
  151. :host(:not([embed])) {
  152. padding: 0.75rem;
  153. box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
  154. }
  155. :host(:not([embed])[href]:hover) {
  156. cursor: pointer;
  157. box-shadow: 0 0 0 2px var(--calcite-ui-brand);
  158. }
  159. :host(:not([embed])[href]:active) {
  160. box-shadow: 0 0 0 3px var(--calcite-ui-brand);
  161. }
  162. :host([icon][heading]:not([description]):not([embed])) {
  163. padding: 0px;
  164. }
  165. :host([icon][heading]:not([description])) .icon {
  166. display: flex;
  167. justify-content: center;
  168. }
  169. :host([icon][heading]:not([description])) .large-visual {
  170. text-align: center;
  171. }
  172. :host([disabled]) {
  173. pointer-events: none;
  174. cursor: default;
  175. -webkit-user-select: none;
  176. user-select: none;
  177. opacity: var(--calcite-ui-opacity-disabled);
  178. }
  179. :host([disabled]) ::slotted([calcite-hydrated][disabled]),
  180. :host([disabled]) [calcite-hydrated][disabled] {
  181. /* prevent opacity stacking */
  182. opacity: 1;
  183. }
  184. :host(:hover) .heading, :host([active]) .heading {
  185. color: var(--calcite-ui-text-1);
  186. }
  187. :host(:hover) .description, :host([active]) .description {
  188. color: var(--calcite-ui-text-2);
  189. }