2
0

_vendor.tippy.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @import '../../../node_modules/tippy.js/dist/tippy';
  2. .tippy-box {
  3. // Special font size 12px for tooltips
  4. @apply w-bg-surface-tooltip w-text-text-button w-text-[0.75rem] w-rounded-sm w-font-medium;
  5. }
  6. .tippy-box[data-placement^='top'] > .tippy-arrow::before {
  7. @apply w-border-t-surface-tooltip;
  8. }
  9. .tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
  10. @apply w-border-b-surface-tooltip;
  11. }
  12. .tippy-box[data-placement^='left'] > .tippy-arrow::before {
  13. @apply w-border-l-surface-tooltip;
  14. }
  15. .tippy-box[data-placement^='right'] > .tippy-arrow::before {
  16. @apply w-border-r-surface-tooltip;
  17. }
  18. // Dropdown theme for tippy tooltips
  19. .tippy-box[data-theme='dropdown'] {
  20. @apply w-rounded;
  21. .tippy-content {
  22. @apply w-p-0;
  23. }
  24. }
  25. // Media for Windows High Contrast mode
  26. @media (forced-colors: active) {
  27. .tippy-box[data-theme='dropdown'] {
  28. .tippy-content {
  29. border: 2px solid transparent;
  30. }
  31. }
  32. .tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
  33. @apply w-border-b-surface-tooltip;
  34. clip-path: polygon(50% 0, 0 100%, 100% 100%);
  35. }
  36. }