You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tippy.less 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* styles are based on node_modules/tippy.js/dist/tippy.css */
  2. // class to hide tippy target elements on page load
  3. .tippy-target {
  4. display: none !important;
  5. }
  6. [data-tippy-root] {
  7. max-width: calc(100vw - 10px);
  8. }
  9. .tippy-box {
  10. position: relative;
  11. background-color: var(--color-body);
  12. color: var(--color-secondary-dark-6);
  13. border: 1px solid var(--color-secondary);
  14. border-radius: var(--border-radius);
  15. font-size: 1rem;
  16. }
  17. .tippy-box[data-theme="tooltip"] {
  18. background-color: var(--color-tooltip-bg);
  19. color: var(--color-tooltip-text);
  20. border: none;
  21. }
  22. .tippy-box[data-theme="menu"] {
  23. background-color: transparent;
  24. color: var(--color-tooltip-text);
  25. }
  26. .tippy-box[data-theme="menu"] .ui.menu {
  27. border: none;
  28. }
  29. .tippy-content {
  30. position: relative;
  31. padding: 1rem;
  32. z-index: 1;
  33. }
  34. .tippy-box[data-theme="tooltip"] .tippy-content {
  35. padding: .5rem 1rem;
  36. }
  37. .tippy-box[data-theme="menu"] .tippy-content {
  38. padding: 0;
  39. }
  40. .tippy-box[data-placement^="top"] > .tippy-svg-arrow {
  41. bottom: 0;
  42. }
  43. .tippy-box[data-placement^="top"] > .tippy-svg-arrow::after,
  44. .tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg {
  45. top: 16px;
  46. transform: rotate(180deg);
  47. }
  48. .tippy-box[data-placement^="bottom"] > .tippy-svg-arrow {
  49. top: 0;
  50. }
  51. .tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg {
  52. bottom: 16px;
  53. }
  54. .tippy-box[data-placement^="left"] > .tippy-svg-arrow {
  55. right: 0;
  56. }
  57. .tippy-box[data-placement^="left"] > .tippy-svg-arrow::after,
  58. .tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg {
  59. transform: rotate(90deg);
  60. top: calc(50% - 3px);
  61. left: 11px;
  62. }
  63. .tippy-box[data-placement^="right"] > .tippy-svg-arrow {
  64. left: 0;
  65. }
  66. .tippy-box[data-placement^="right"] > .tippy-svg-arrow::after,
  67. .tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg {
  68. transform: rotate(-90deg);
  69. top: calc(50% - 3px);
  70. right: 11px;
  71. }
  72. .tippy-svg-arrow {
  73. width: 16px;
  74. height: 16px;
  75. text-align: initial;
  76. }
  77. .tippy-svg-arrow,
  78. .tippy-svg-arrow > svg {
  79. position: absolute;
  80. }
  81. .tippy-svg-arrow-outer {
  82. fill: var(--color-secondary);
  83. }
  84. .tippy-svg-arrow-inner {
  85. fill: var(--color-body);
  86. }
  87. .tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner,
  88. .tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer {
  89. fill: var(--color-tooltip-bg);
  90. }
  91. .tippy-box[data-theme="menu"] .tippy-svg-arrow-inner {
  92. fill: var(--color-menu);
  93. }