Use tooltips instead of <details>.

This commit is contained in:
2023-01-04 14:42:08 +01:00
parent c7d29781ee
commit dc2d5dd866
2 changed files with 115 additions and 89 deletions
+27
View File
@@ -175,3 +175,30 @@ td {
line-height: 30px; /* To center it vertically */
color: white;
}
/* Tooltip container */
.tooltip {
position: relative;
display: inline-block;
/* border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
/* Tooltip text */
.tooltip .tooltiptext {
visibility: hidden;
width: 320px;
background-color: black;
color: #fff;
text-align: left;
padding: 5px;
border-radius: 6px;
/* Position the tooltip text - see examples below! */
position: absolute;
z-index: 1;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
visibility: visible;
}