Tooltip.scss 763 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @import "../css/variables.module";
  2. // container in body where the actual tooltip is appended to
  3. .excalidraw-tooltip {
  4. position: absolute;
  5. z-index: 1000;
  6. padding: 8px;
  7. border-radius: 6px;
  8. box-sizing: border-box;
  9. pointer-events: none;
  10. word-wrap: break-word;
  11. background: $oc-black;
  12. line-height: 1.5;
  13. text-align: center;
  14. font-size: 13px;
  15. font-weight: 500;
  16. color: $oc-white;
  17. display: none;
  18. &.excalidraw-tooltip--visible {
  19. display: block;
  20. }
  21. }
  22. // wraps the element we want to apply the tooltip to
  23. .excalidraw-tooltip-wrapper {
  24. display: flex;
  25. height: 100%;
  26. }
  27. .excalidraw-tooltip-icon {
  28. width: 0.9em;
  29. height: 0.9em;
  30. margin-left: 5px;
  31. margin-top: 1px;
  32. display: flex;
  33. @include isMobile {
  34. display: none;
  35. }
  36. }