mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-05-07 08:56:43 -03:00
133 lines
3.5 KiB
CSS
133 lines
3.5 KiB
CSS
/* Local Version Badge */
|
|
.local-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: var(--lora-accent);
|
|
color: var(--lora-text);
|
|
padding: 4px 8px;
|
|
border-radius: var(--border-radius-xs);
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
/* Force hardware acceleration to prevent Chrome scroll issues */
|
|
transform: translateZ(0);
|
|
will-change: transform;
|
|
}
|
|
|
|
.local-badge i {
|
|
margin-right: 4px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.downloaded-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: color-mix(in oklch, var(--badge-update-bg, #4a90e2) 22%, transparent);
|
|
color: var(--badge-update-bg, #4a90e2);
|
|
border: 1px solid color-mix(in oklch, var(--badge-update-bg, #4a90e2) 50%, transparent);
|
|
padding: 4px 8px;
|
|
border-radius: var(--border-radius-xs);
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
transform: translateZ(0);
|
|
will-change: transform;
|
|
}
|
|
|
|
.downloaded-badge i {
|
|
margin-right: 4px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Early Access Badge */
|
|
.early-access-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: #00B87A; /* Green for early access */
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: var(--border-radius-xs);
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
/* Force hardware acceleration to prevent Chrome scroll issues */
|
|
transform: translateZ(0);
|
|
will-change: transform;
|
|
}
|
|
|
|
.early-access-badge i {
|
|
margin-right: 4px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.early-access-info {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
background: var(--card-bg);
|
|
border: 1px solid #00B87A;
|
|
border-radius: var(--border-radius-xs);
|
|
padding: var(--space-1);
|
|
margin-top: 4px;
|
|
font-size: 0.9em;
|
|
color: var(--text-color);
|
|
white-space: normal;
|
|
word-break: break-all;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
z-index: 100; /* Higher z-index to ensure it's above other elements */
|
|
min-width: 300px;
|
|
max-width: 300px;
|
|
/* Create a separate layer with hardware acceleration */
|
|
transform: translateZ(0);
|
|
/* Use a fixed position to ensure it's in a separate layer from scrollable content */
|
|
position: fixed;
|
|
pointer-events: none; /* Don't block mouse events */
|
|
}
|
|
|
|
.early-access-badge:hover .early-access-info {
|
|
display: block;
|
|
pointer-events: auto; /* Allow interaction with the tooltip when visible */
|
|
}
|
|
|
|
.local-path {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-xs);
|
|
padding: var(--space-1);
|
|
margin-top: 4px;
|
|
font-size: 0.9em;
|
|
color: var(--text-color);
|
|
white-space: normal;
|
|
word-break: break-all;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
z-index: 100; /* Higher z-index to ensure it's above other elements */
|
|
min-width: 200px;
|
|
max-width: 300px;
|
|
/* Create a separate layer with hardware acceleration */
|
|
transform: translateZ(0);
|
|
/* Use a fixed position to ensure it's in a separate layer from scrollable content */
|
|
position: fixed;
|
|
pointer-events: none; /* Don't block mouse events */
|
|
}
|
|
|
|
.local-badge:hover .local-path {
|
|
display: block;
|
|
pointer-events: auto; /* Allow interaction with the tooltip when visible */
|
|
}
|
|
|
|
.error-message {
|
|
color: var(--lora-error);
|
|
font-size: 0.9em;
|
|
margin-top: 4px;
|
|
}
|