Files
Dariusz L e82c837af3 Add 'lf-' prefix to all LayerForge CSS classes (js)
Refactors all custom CSS class names to include an 'lf-' prefix
(e.g. .painter-button -> .lf-painter-button, .clipboard-switch -> .lf-clipboard-switch).

This isolates LayerForge styles within the ComfyUI DOM and prevents
CSS namespace collisions with other custom nodes or host page styles.
Changes span src/ TypeScript source files and src/css/ stylesheets.
2026-06-30 00:50:15 +02:00

171 lines
3.6 KiB
CSS

/* Blend Mode Menu Styles */
#lf-blend-mode-menu {
position: absolute;
top: 0;
left: 0;
background: #2a2a2a;
border: 1px solid #3a3a3a;
border-radius: 4px;
z-index: 10000;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
min-width: 200px;
}
#lf-blend-mode-menu .lf-blend-menu-title-bar {
background: #3a3a3a;
color: white;
padding: 8px 10px;
cursor: move;
user-select: none;
border-radius: 3px 3px 0 0;
font-size: 12px;
font-weight: bold;
border-bottom: 1px solid #4a4a4a;
display: flex;
justify-content: space-between;
align-items: center;
}
#lf-blend-mode-menu .lf-blend-menu-title-text {
flex: 1;
cursor: move;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#lf-blend-mode-menu .lf-blend-menu-close-button {
background: none;
border: none;
color: white;
font-size: 18px;
cursor: pointer;
padding: 0;
margin: 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 3px;
transition: background-color 0.2s;
}
#lf-blend-mode-menu .lf-blend-menu-close-button:hover {
background-color: #4a4a4a;
}
#lf-blend-mode-menu .lf-blend-menu-close-button:focus {
background-color: transparent;
}
#lf-blend-mode-menu .lf-blend-menu-content {
padding: 5px;
}
#lf-blend-mode-menu .lf-blend-area-container {
padding: 5px 10px;
border-bottom: 1px solid #4a4a4a;
}
#lf-blend-mode-menu .lf-blend-area-label {
color: white;
display: block;
margin-bottom: 5px;
font-size: 12px;
}
#lf-blend-mode-menu .lf-blend-area-slider {
width: 100%;
margin: 5px 0;
-webkit-appearance: none;
height: 4px;
background: #555;
border-radius: 2px;
outline: none;
}
#lf-blend-mode-menu .lf-blend-area-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
background: #e0e0e0;
border-radius: 50%;
cursor: pointer;
border: 2px solid #555;
transition: background 0.2s;
}
#lf-blend-mode-menu .lf-blend-area-slider::-webkit-slider-thumb:hover {
background: #fff;
}
#lf-blend-mode-menu .lf-blend-area-slider::-moz-range-thumb {
width: 14px;
height: 14px;
background: #e0e0e0;
border-radius: 50%;
cursor: pointer;
border: 2px solid #555;
}
#lf-blend-mode-menu .lf-blend-mode-container {
margin-bottom: 5px;
}
#lf-blend-mode-menu .lf-blend-mode-option {
padding: 5px 10px;
color: white;
cursor: pointer;
transition: background-color 0.2s;
}
#lf-blend-mode-menu .lf-blend-mode-option:hover {
background-color: #3a3a3a;
}
#lf-blend-mode-menu .lf-blend-mode-option.lf-active {
background-color: #3a3a3a;
}
#lf-blend-mode-menu .lf-blend-opacity-slider {
width: 100%;
margin: 5px 0;
display: none;
-webkit-appearance: none;
height: 4px;
background: #555;
border-radius: 2px;
outline: none;
}
#lf-blend-mode-menu .lf-blend-mode-container.lf-active .lf-blend-opacity-slider {
display: block;
}
#lf-blend-mode-menu .lf-blend-opacity-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
background: #e0e0e0;
border-radius: 50%;
cursor: pointer;
border: 2px solid #555;
transition: background 0.2s;
}
#lf-blend-mode-menu .lf-blend-opacity-slider::-webkit-slider-thumb:hover {
background: #fff;
}
#lf-blend-mode-menu .lf-blend-opacity-slider::-moz-range-thumb {
width: 14px;
height: 14px;
background: #e0e0e0;
border-radius: 50%;
cursor: pointer;
border: 2px solid #555;
}