-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tool tips): added the CSS styling for tool tips
Related to NEST/teal.modules.general#1216
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Tooltip container */ | ||
.teal-tooltip { | ||
position: relative; | ||
display: inline-block; | ||
border-bottom: 1px dotted black; | ||
} | ||
|
||
/* Tooltip text */ | ||
.teal-tooltip .tooltiptext { | ||
visibility: hidden; | ||
background-color: black; | ||
color: #fff; | ||
text-align: center; | ||
padding: 10px; | ||
border-radius: 6px; | ||
opacity: 0; | ||
|
||
z-index: 10; | ||
position: absolute; | ||
width: 400px; | ||
left: 100%; | ||
top: -5px; | ||
|
||
transition: all 0s ease 0s; | ||
} | ||
|
||
/* Show the tooltip text when you mouse over the tooltip container */ | ||
.teal-tooltip:hover .tooltiptext { | ||
visibility: visible; | ||
opacity: 1; | ||
transition: opacity 0.3s ease 0.4s; | ||
} |