This commit is contained in:
2025-05-22 22:56:46 +02:00
parent 72b2e03529
commit b3a43acd4d
5 changed files with 93 additions and 18 deletions

53
static/css/tooltip.css Normal file
View File

@@ -0,0 +1,53 @@
.tag-tooltip {
position: relative;
display: inline-flex;
align-items: center;
}
.tag-tooltip .tooltip-text {
visibility: hidden;
width: 200px;
background-color: #4e6b50;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 8px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s, visibility 0.3s;
font-size: 0.875rem;
line-height: 1.4;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tag-tooltip .tooltip-text::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #4e6b50 transparent transparent transparent;
}
.tag-tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Adjust tooltip position for tags at the top of the screen */
.tag-tooltip.top .tooltip-text {
bottom: auto;
top: 125%;
}
.tag-tooltip.top .tooltip-text::after {
top: auto;
bottom: 100%;
border-color: transparent transparent #4e6b50 transparent;
}