feat: Add tooltip, improve styling a lot

This commit is contained in:
2025-04-13 13:36:34 +02:00
parent 809c73a767
commit 7e473955d9
4 changed files with 109 additions and 84 deletions

View File

@@ -17,4 +17,32 @@ $beige-lighter: #eff0eb;
);
// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");
.tooltip {
position: relative;
cursor: help;
&::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.75);
color: white;
padding: 0.5em;
border-radius: 4px;
white-space: nowrap;
font-size: 0.75rem;
line-height: 1.2;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease-in-out;
z-index: 1000;
}
&:hover::after {
opacity: 1;
}
}