update tooltip styling to bootstrap

This commit is contained in:
Karen Bradshaw
2020-10-05 12:01:39 -04:00
parent 9e01fb5560
commit be9e8e9ad8
6 changed files with 26 additions and 69 deletions
-59
View File
@@ -1,59 +0,0 @@
.no-underline {
text-decoration: none !important;
}
.hide {
display: none !important;
}
/* Tooltip container */
.glossary-tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
color: black;
text-decoration: none !important;
}
/* Tooltip text */
.glossary-tooltip .tooltip-text {
visibility: hidden;
width: 300px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 8px;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 10;
bottom: 125%;
left: 50%;
margin-left: -150px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.glossary-tooltip .tooltip-text::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.glossary-tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
font-size: 1rem;
font-weight: 400;
}