Refactor css checkpoint2

This commit is contained in:
Will Miao
2025-02-17 21:27:55 +08:00
parent 2fc7235537
commit 832abd743c
7 changed files with 948 additions and 952 deletions

View File

@@ -94,4 +94,30 @@
[data-theme="dark"] .toast {
background: var(--lora-surface);
color: var(--lora-text);
}
.tooltip {
position: relative;
cursor: help;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: 120%;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.8em;
white-space: nowrap;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
}
.tooltip:hover::after {
opacity: 1;
}