lumina/ui/views/components/tooltip.scss
2025-11-29 23:13:05 +03:00

91 lines
1.8 KiB
SCSS

.tooltip-wrapper {
position: relative;
display: inline-block;
}
.tooltip {
position: fixed;
background: rgba(0, 0, 0, 0.9);
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.85rem;
max-width: 250px;
z-index: 10000;
pointer-events: none;
white-space: normal;
word-wrap: break-word;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
animation: tooltipFadeIn 0.2s ease;
&::before {
content: '';
position: absolute;
width: 0;
height: 0;
border: 6px solid transparent;
}
&.tooltip-top::before {
bottom: -12px;
left: 50%;
transform: translateX(-50%);
border-top-color: rgba(0, 0, 0, 0.9);
}
&.tooltip-bottom::before {
top: -12px;
left: 50%;
transform: translateX(-50%);
border-bottom-color: rgba(0, 0, 0, 0.9);
}
&.tooltip-left::before {
right: -12px;
top: 50%;
transform: translateY(-50%);
border-left-color: rgba(0, 0, 0, 0.9);
}
&.tooltip-right::before {
left: -12px;
top: 50%;
transform: translateY(-50%);
border-right-color: rgba(0, 0, 0, 0.9);
}
}
.help-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 50%;
background: rgba(0, 240, 255, 0.2);
color: #00f0ff;
font-size: 0.75rem;
font-weight: 600;
cursor: help;
margin-left: 4px;
transition: all 0.2s ease;
&:hover {
background: rgba(0, 240, 255, 0.3);
transform: scale(1.1);
}
}
@keyframes tooltipFadeIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}