Created
October 26, 2024 21:23
-
-
Save dahelg/45eecc5c437ba76f1e2b65a78e6133f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [tooltip-position='left']::before{ | |
| left:0%; | |
| top:50%; | |
| margin-left:-12px; | |
| transform:translatey(-50%) rotate(-90deg) | |
| } | |
| [tooltip-position='top']::before{ | |
| left:50%; | |
| } | |
| [tooltip-position='bottom']::before{ | |
| top:100%; | |
| margin-top:8px; | |
| transform: translateX(-50%) translatey(-100%) rotate(-180deg) | |
| } | |
| [tooltip-position='right']::before{ | |
| left:100%; | |
| top:50%; | |
| margin-left:1px; | |
| transform:translatey(-50%) rotate(90deg) | |
| } | |
| [tooltip-position='left']::after{ | |
| left:0%; | |
| top:50%; | |
| margin-left:-8px; | |
| transform: translateX(-100%) translateY(-50%); | |
| } | |
| [tooltip-position='top']::after{ | |
| left:50%; | |
| } | |
| [tooltip-position='bottom']::after{ | |
| top:100%; | |
| margin-top:8px; | |
| transform: translateX(-50%) translateY(0%); | |
| } | |
| [tooltip-position='right']::after{ | |
| left:100%; | |
| top:50%; | |
| margin-left:8px; | |
| transform: translateX(0%) translateY(-50%); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment