-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modified): fix modified tooltip clipping
- Loading branch information
1 parent
22b0357
commit 6beb5ca
Showing
2 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,64 @@ | ||
.tooltip { | ||
display: inline-flex; | ||
cursor: help; | ||
align-items: flex-start; | ||
} | ||
|
||
.tooltipWrapper { | ||
position: absolute; | ||
margin-left: 124px; | ||
} | ||
|
||
.modifiedText { | ||
position: relative; | ||
cursor: help; | ||
color: white; | ||
margin: 0; | ||
} | ||
|
||
.tooltip .tooltiptext { | ||
visibility: hidden; | ||
width: 200px; | ||
.tooltipText { | ||
background-color: var(--color-card); | ||
color: white; | ||
text-align: center; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); | ||
border-radius: 6px; | ||
padding: 10px; | ||
width: 150px; | ||
position: absolute; | ||
z-index: 1; | ||
bottom: 150%; | ||
left: 0%; | ||
margin-left: -80px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); | ||
height: fit-content; | ||
bottom: 0; | ||
right: 0; | ||
opacity: 0; | ||
pointer-events: none; | ||
transition: opacity 0.1s ease-in-out; | ||
margin-bottom: 10px; | ||
} | ||
|
||
@media (prefers-reduced-motion) { | ||
transition: none; | ||
} | ||
|
||
|
||
.tooltip:hover .tooltipText { | ||
opacity: 1; | ||
pointer-events: auto; | ||
} | ||
|
||
.tooltipText:hover { | ||
opacity: 1; | ||
pointer-events: auto; | ||
} | ||
|
||
.tooltip .tooltiptext::after { | ||
.tooltipText::after { | ||
content: ''; | ||
position: absolute; | ||
top: 100%; | ||
left: 50%; | ||
margin-left: -5px; | ||
border-width: 5px; | ||
margin-left: -10px; | ||
border-width: 10px; | ||
padding-bottom: 20px; | ||
border-style: solid; | ||
border-color: var(--color-card) transparent transparent transparent; | ||
} | ||
|
||
.tooltip:hover .tooltiptext { | ||
.modifiedText:hover .tooltipText { | ||
visibility: visible; | ||
} |
This file contains 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
6beb5ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
runemarkers – ./
runemarkers-jamiegyoung.vercel.app
runemarkers-git-main-jamiegyoung.vercel.app
runemarkers.net
runemarkers.vercel.app
www.runemarkers.net