tip-manager.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. /**
  74. * CSS Custom Properties
  75. *
  76. * These properties can be overridden using the component's tag as selector.
  77. *
  78. * @prop --calcite-tip-manager-height: the maximum height of the tip-manager
  79. * @prop --calcite-tip-max-width: the maximum width of a slotted tip within tip-manager
  80. */
  81. :host {
  82. box-sizing: border-box;
  83. display: block;
  84. background-color: var(--calcite-ui-foreground-1);
  85. font-size: var(--calcite-font-size--1);
  86. line-height: 1rem;
  87. color: var(--calcite-ui-text-2);
  88. --calcite-tip-manager-height: 19vh;
  89. }
  90. :host * {
  91. box-sizing: border-box;
  92. }
  93. :host([closed]) {
  94. display: none;
  95. }
  96. /* Shared styles for header elements */
  97. .header {
  98. margin: 0px;
  99. display: flex;
  100. align-content: space-between;
  101. align-items: center;
  102. fill: var(--calcite-ui-text-2);
  103. color: var(--calcite-ui-text-2);
  104. }
  105. .heading {
  106. margin: 0px;
  107. padding: 0px;
  108. font-weight: var(--calcite-font-weight-medium);
  109. }
  110. .header .heading {
  111. flex: 1 1 auto;
  112. padding: 0.5rem;
  113. }
  114. h1.heading {
  115. font-size: var(--calcite-font-size-2);
  116. line-height: 1.5rem;
  117. }
  118. h2.heading {
  119. font-size: var(--calcite-font-size-1);
  120. line-height: 1.5rem;
  121. }
  122. h3.heading {
  123. font-size: var(--calcite-font-size-0);
  124. line-height: 1.25rem;
  125. }
  126. h4.heading, h5.heading {
  127. font-size: var(--calcite-font-size--1);
  128. line-height: 1rem;
  129. }
  130. .header {
  131. border-width: 0px;
  132. border-bottom-width: 1px;
  133. border-style: solid;
  134. border-color: var(--calcite-ui-border-3);
  135. padding-top: 0px;
  136. padding-bottom: 0px;
  137. padding-inline-end: 0px;
  138. padding-inline-start: 1rem;
  139. }
  140. .header h2.heading {
  141. padding: 0px;
  142. font-size: var(--calcite-font-size-1);
  143. line-height: 1.5rem;
  144. font-weight: var(--calcite-font-weight-bold);
  145. color: var(--calcite-ui-text-1);
  146. }
  147. .container {
  148. position: relative;
  149. overflow: hidden;
  150. outline-offset: 0;
  151. outline-color: transparent;
  152. transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
  153. min-height: 150px;
  154. }
  155. .container:focus {
  156. outline: 2px solid var(--calcite-ui-brand);
  157. outline-offset: 2px;
  158. }
  159. .tip-container {
  160. margin-top: 1px;
  161. display: flex;
  162. align-items: flex-start;
  163. justify-content: center;
  164. overflow: auto;
  165. outline-offset: 0;
  166. outline-color: transparent;
  167. transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
  168. animation-name: none;
  169. animation-duration: var(--calcite-animation-timing);
  170. height: var(--calcite-tip-manager-height);
  171. }
  172. .tip-container:focus {
  173. outline: 2px solid var(--calcite-ui-brand);
  174. outline-offset: 2px;
  175. }
  176. ::slotted(calcite-tip) {
  177. border-style: none;
  178. padding: 0.75rem;
  179. max-width: var(--calcite-tip-max-width);
  180. }
  181. .tip-container--advancing {
  182. animation-name: tip-advance;
  183. }
  184. .tip-container--retreating {
  185. animation-name: tip-retreat;
  186. }
  187. /* Pagination Styles*/
  188. .pagination {
  189. display: flex;
  190. align-items: center;
  191. justify-content: center;
  192. padding-left: 0px;
  193. padding-right: 0px;
  194. padding-top: 0.75rem;
  195. padding-bottom: 0.5rem;
  196. }
  197. .page-position {
  198. margin-top: 0px;
  199. margin-bottom: 0px;
  200. margin-left: 0.5rem;
  201. margin-right: 0.5rem;
  202. font-size: var(--calcite-font-size--2);
  203. line-height: 1rem;
  204. }
  205. /* @keyframes*/
  206. @keyframes tip-advance {
  207. 0% {
  208. opacity: 0;
  209. transform: translate3d(50px, 0, 0) scale(0.99);
  210. }
  211. 100% {
  212. opacity: 1;
  213. transform: translate3d(0, 0, 0) scale(1);
  214. }
  215. }
  216. @keyframes tip-retreat {
  217. 0% {
  218. opacity: 0;
  219. transform: translate3d(-50px, 0, 0) scale(0.99);
  220. }
  221. 100% {
  222. opacity: 1;
  223. transform: translate3d(0, 0, 0) scale(1);
  224. }
  225. }