tip.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. position: relative;
  75. margin: 1rem;
  76. box-sizing: border-box;
  77. display: flex;
  78. flex-direction: row;
  79. border-width: 1px;
  80. border-style: solid;
  81. border-color: var(--calcite-ui-border-2);
  82. background-color: var(--calcite-ui-foreground-1);
  83. font-size: var(--calcite-font-size--1);
  84. line-height: 1rem;
  85. color: var(--calcite-ui-text-2);
  86. }
  87. :host * {
  88. box-sizing: border-box;
  89. }
  90. .container {
  91. width: 100%;
  92. padding: 1rem;
  93. }
  94. :host([dismissed]), :host([dismissed]) .container {
  95. display: none;
  96. }
  97. :host([selected]) .container {
  98. margin: 0px;
  99. border-style: none;
  100. padding: 0px;
  101. }
  102. /* Shared styles for header elements */
  103. .header {
  104. margin: 0px;
  105. display: flex;
  106. align-content: space-between;
  107. align-items: center;
  108. fill: var(--calcite-ui-text-2);
  109. color: var(--calcite-ui-text-2);
  110. }
  111. .heading {
  112. margin: 0px;
  113. padding: 0px;
  114. font-weight: var(--calcite-font-weight-medium);
  115. }
  116. .header .heading {
  117. flex: 1 1 auto;
  118. padding: 0.5rem;
  119. }
  120. h1.heading {
  121. font-size: var(--calcite-font-size-2);
  122. line-height: 1.5rem;
  123. }
  124. h2.heading {
  125. font-size: var(--calcite-font-size-1);
  126. line-height: 1.5rem;
  127. }
  128. h3.heading {
  129. font-size: var(--calcite-font-size-0);
  130. line-height: 1.25rem;
  131. }
  132. h4.heading, h5.heading {
  133. font-size: var(--calcite-font-size--1);
  134. line-height: 1rem;
  135. }
  136. .header {
  137. margin-bottom: 0.5rem;
  138. }
  139. .header .heading {
  140. padding: 0px;
  141. color: var(--calcite-ui-text-1);
  142. }
  143. .container[hidden] {
  144. display: none;
  145. }
  146. .content {
  147. display: flex;
  148. }
  149. .info {
  150. padding-top: 0px;
  151. padding-bottom: 0px;
  152. padding-left: 1rem;
  153. padding-right: 1rem;
  154. width: 70%;
  155. }
  156. .info:only-child {
  157. width: 100%;
  158. padding-left: 0px;
  159. padding-right: 0px;
  160. }
  161. ::slotted(p) {
  162. margin-top: 0px;
  163. }
  164. ::slotted(a) {
  165. outline-offset: 0;
  166. outline-color: transparent;
  167. transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
  168. color: var(--calcite-ui-brand);
  169. }
  170. ::slotted(a:focus) {
  171. outline: 2px solid var(--calcite-ui-brand);
  172. outline-offset: 2px;
  173. }
  174. .image-frame {
  175. width: 25%;
  176. }
  177. .image-frame img {
  178. max-width: 100%;
  179. }
  180. ::slotted(img) {
  181. max-width: 100%;
  182. }