thsf.net/build/lib/thsf/static/css/tooltip.css

54 lines
1.1 KiB
CSS
Raw Normal View History

2023-04-09 11:12:29 +11:00
.tooltip, .planning_tooltip {
2023-04-09 06:17:34 +11:00
position: relative;
display: inline-block;
}
2023-04-09 11:12:29 +11:00
2023-04-09 06:17:34 +11:00
.tooltip .tooltiptext {
visibility: hidden;
background-color: var(--main-color);
2023-04-09 11:12:29 +11:00
color: var(--alt-main-color);
2023-04-09 06:17:34 +11:00
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 1s;
}
2023-04-09 11:12:29 +11:00
.tooltip .tooltiptext::after, .planning_tooltip .planning_tooltiptext::after {
2023-04-09 06:17:34 +11:00
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
}
2023-04-09 11:12:29 +11:00
.tooltip:hover .tooltiptext, .planning_tooltip:hover .planning_tooltiptext {
2023-04-09 06:17:34 +11:00
visibility: visible;
opacity: 1;
font-size: 0.7em;
padding: 0.2em;
}
2023-04-09 11:12:29 +11:00
.planning_tooltip .planning_tooltiptext {
visibility: hidden;
background-color: var(--main-color);
color: var(--alt-main-color);
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 0;
left: 0;
opacity: 0;
transform: translateX(2em) translateY(-3em);
transition: opacity 1s;
}