diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | 6ec259a0e71174651bae95d4628138bf6fd68742 (patch) | |
| tree | 5e33c6a5ec091ecabfcb257fdc7b6a88ed8754ac /packages/excalidraw/components/Tooltip.scss | |
| parent | 16c8578b15c727f22921f8a80a56ee4d4e7f2272 (diff) | |
refactor: packages/
Diffstat (limited to 'packages/excalidraw/components/Tooltip.scss')
| -rw-r--r-- | packages/excalidraw/components/Tooltip.scss | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/packages/excalidraw/components/Tooltip.scss b/packages/excalidraw/components/Tooltip.scss new file mode 100644 index 0000000..37fc336 --- /dev/null +++ b/packages/excalidraw/components/Tooltip.scss @@ -0,0 +1,47 @@ +@import "../css/variables.module.scss"; + +// container in body where the actual tooltip is appended to +.excalidraw-tooltip { + --ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, + Roboto, Helvetica, Arial, sans-serif; + font-family: var(--ui-font); + position: fixed; + z-index: var(--zIndex-popup); + + padding: 8px; + border-radius: 6px; + box-sizing: border-box; + pointer-events: none; + word-wrap: break-word; + + background: $oc-black; + + line-height: 1.5; + text-align: center; + font-size: 13px; + font-weight: 500; + color: $oc-white; + + display: none; + + &.excalidraw-tooltip--visible { + display: block; + } +} + +// wraps the element we want to apply the tooltip to +.excalidraw-tooltip-wrapper { + display: flex; +} + +.excalidraw-tooltip-icon { + width: 0.9em; + height: 0.9em; + margin-left: 5px; + margin-top: 1px; + display: flex; + + @include isMobile { + display: none; + } +} |
