1241 lines
27 KiB
CSS
1241 lines
27 KiB
CSS
.lf-painter-button {
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
padding: 6px 14px;
|
|
font-size: 12px;
|
|
font-weight: 550;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
|
min-width: 80px;
|
|
text-align: center;
|
|
margin: 2px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.16);
|
|
text-shadow: 0 1px 2px rgb(0,0,0);
|
|
}
|
|
|
|
.lf-painter-button:hover {
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
border-color: rgba(255, 255, 255, 0.28);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.lf-painter-button:active {
|
|
background-color: rgba(0, 0, 0, 0.18);
|
|
transform: translateY(0);
|
|
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.lf-painter-button:disabled,
|
|
.lf-painter-button:disabled:hover {
|
|
background-color: rgba(0, 0, 0, 0.12);
|
|
color: #777;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.lf-painter-button.lf-primary {
|
|
background-color: rgba(58, 118, 214, 0.7);
|
|
border-color: rgba(90, 170, 255, 0.65);
|
|
color: #fff;
|
|
text-shadow: 0 1px 2px rgb(0,0,0);
|
|
}
|
|
|
|
.lf-painter-button.lf-primary:hover {
|
|
background-color: rgba(74, 134, 228, 0.78);
|
|
border-color: rgba(124, 204, 255, 0.8);
|
|
}
|
|
|
|
/* Crop mode button styling */
|
|
.lf-painter-button#lf-crop-mode-btn {
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
border-color: rgba(255, 255, 255, 0.18);
|
|
color: #fff;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.lf-painter-button#lf-crop-mode-btn.lf-primary {
|
|
background-color: rgba(0, 128, 255, 0.72);
|
|
border-color: rgba(90, 170, 255, 0.75);
|
|
color: #fff;
|
|
box-shadow: 0 0 8px rgba(0, 128, 255, 0.3);
|
|
}
|
|
|
|
.lf-painter-button#lf-crop-mode-btn.lf-primary:hover {
|
|
background-color: rgba(16, 144, 255, 0.8);
|
|
border-color: rgba(124, 204, 255, 0.9);
|
|
box-shadow: 0 0 12px rgba(0, 128, 255, 0.4);
|
|
}
|
|
|
|
.lf-painter-button#lf-crop-mode-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
border-color: rgba(255, 255, 255, 0.28);
|
|
}
|
|
|
|
.lf-painter-button.lf-success {
|
|
border-color: #4ae27a;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
color: #fff;
|
|
box-shadow: 0 0 0 1.5px #4ae27a88;
|
|
}
|
|
.lf-painter-button.lf-success:hover {
|
|
border-color: #6aff9a;
|
|
box-shadow: 0 0 0 2.5px #6aff9a88;
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
}
|
|
|
|
.lf-painter-button.lf-danger {
|
|
border-color: #e24a4a;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
color: #fff;
|
|
box-shadow: 0 0 0 1.5px #e24a4a88;
|
|
}
|
|
.lf-painter-button.lf-danger:hover {
|
|
border-color: #ff6a6a;
|
|
box-shadow: 0 0 0 2.5px #ff6a6a88;
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
}
|
|
|
|
.lf-painter-button.lf-icon-button {
|
|
width: 30px;
|
|
height: 30px;
|
|
min-width: 30px;
|
|
padding: 0;
|
|
font-size: 16px;
|
|
line-height: 30px; /* Match height */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lf-painter-controls {
|
|
background-color: var(--lf-controls-surface, rgba(47, 47, 47, 0.84));
|
|
border-bottom: 1px solid var(--lf-surface-border, rgba(255, 255, 255, 0.14));
|
|
box-shadow: 0 1px 3px var(--lf-surface-shadow, rgba(0, 0, 0, 0.18));
|
|
padding: 10px;
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.lf-painter-slider-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.lf-painter-slider-container input[type="range"] {
|
|
-webkit-appearance: none;
|
|
width: 80px;
|
|
height: 4px;
|
|
background: rgba(0, 0, 0, 0.22);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.lf-painter-slider-container input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: rgba(255, 255, 255, 0.78);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: 2px solid rgba(0, 0, 0, 0.3);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.lf-painter-slider-container input[type="range"]::-webkit-slider-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
}
|
|
|
|
.lf-painter-slider-container input[type="range"]::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
background: rgba(255, 255, 255, 0.78);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: 2px solid rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.lf-slider-value {
|
|
font-size: 11px;
|
|
color: #bbb;
|
|
margin-top: 2px;
|
|
min-height: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
.lf-painter-button-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background-color: transparent;
|
|
padding: 0;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.lf-painter-clipboard-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.lf-painter-clipboard-group .lf-painter-button {
|
|
margin: 1px;
|
|
height: 30px; /* Match switch height */
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lf-inputs-menu {
|
|
position: fixed;
|
|
z-index: 1000000;
|
|
width: min(340px, calc(100vw - 16px));
|
|
max-height: min(420px, calc(100vh - 16px));
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
overflow: hidden;
|
|
color: #e9e9e9;
|
|
background: rgba(38, 38, 38, 0.98);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 7px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.lf-inputs-menu-title {
|
|
padding: 3px 4px 7px;
|
|
color: #fff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lf-inputs-menu-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.lf-input-reference-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.lf-input-reference {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1 1 auto;
|
|
gap: 8px;
|
|
width: auto;
|
|
min-width: 0;
|
|
min-height: 56px;
|
|
padding: 5px;
|
|
box-sizing: border-box;
|
|
color: #e8e8e8;
|
|
background: rgba(255, 255, 255, 0.045);
|
|
border: 1px solid transparent;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
font: inherit;
|
|
}
|
|
|
|
.lf-input-reference:hover,
|
|
.lf-input-reference:focus-visible {
|
|
background: rgba(74, 134, 228, 0.24);
|
|
border-color: rgba(124, 204, 255, 0.75);
|
|
outline: none;
|
|
}
|
|
|
|
.lf-input-reference:disabled {
|
|
cursor: wait;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.lf-input-reference-unlink {
|
|
flex: 0 0 auto;
|
|
align-self: stretch;
|
|
min-width: 54px;
|
|
padding: 4px 7px;
|
|
color: rgba(255, 255, 255, 0.82);
|
|
background: rgba(220, 76, 76, 0.18);
|
|
border: 1px solid rgba(255, 120, 120, 0.4);
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lf-input-reference-unlink:hover,
|
|
.lf-input-reference-unlink:focus-visible {
|
|
color: #fff;
|
|
background: rgba(220, 76, 76, 0.42);
|
|
border-color: rgba(255, 150, 150, 0.78);
|
|
outline: none;
|
|
}
|
|
|
|
.lf-input-reference-unlink:disabled {
|
|
cursor: wait;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.lf-input-reference-thumb {
|
|
flex: 0 0 58px;
|
|
width: 58px;
|
|
height: 48px;
|
|
object-fit: contain;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.lf-input-reference-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
gap: 3px;
|
|
}
|
|
|
|
.lf-input-reference-label,
|
|
.lf-input-reference-detail {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lf-input-reference-label {
|
|
color: #fff;
|
|
font-weight: 550;
|
|
}
|
|
|
|
.lf-input-reference-detail {
|
|
color: rgba(255, 255, 255, 0.58);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lf-inputs-menu-empty {
|
|
padding: 14px 8px;
|
|
color: rgba(255, 255, 255, 0.62);
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Clipboard Switch Modern --- */
|
|
.lf-clipboard-switch {
|
|
position: relative;
|
|
width: 90px;
|
|
height: 30px;
|
|
box-sizing: border-box;
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 30%, rgba(58, 118, 214, 0.65));
|
|
border-radius: 5px;
|
|
border: 1px solid #555;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
|
user-select: none;
|
|
padding: 0;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
}
|
|
.lf-clipboard-switch:hover {
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0.14) 30%, rgba(74, 134, 228, 0.75));
|
|
border-color: rgba(255, 255, 255, 0.28);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Mask switch: szaro-czarny gradient tylko dla maski */
|
|
.lf-clipboard-switch.lf-mask-switch {
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 30%, rgba(229, 57, 53, 0.65));
|
|
}
|
|
.lf-clipboard-switch.lf-mask-switch:hover {
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0.14) 30%, rgba(255, 82, 82, 0.75));
|
|
}
|
|
.lf-clipboard-switch:active {
|
|
background: linear-gradient(135deg, rgba(58, 118, 214, 0.72), rgba(0, 0, 0, 0.18));
|
|
}
|
|
|
|
.lf-clipboard-switch input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
.lf-clipboard-switch .lf-switch-track {
|
|
display: none;
|
|
}
|
|
|
|
.lf-clipboard-switch .lf-switch-knob {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
background-color: rgba(255, 255, 255, 0.14);
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
z-index: 2;
|
|
}
|
|
|
|
.lf-clipboard-switch:hover .lf-switch-knob {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.lf-clipboard-switch:hover .lf-switch-knob {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.lf-clipboard-switch .lf-switch-labels {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 550;
|
|
color: #ffffff;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
transition: opacity 0.3s ease-in-out;
|
|
text-shadow: 0 1px 2px rgb(0, 0, 0);
|
|
}
|
|
.lf-clipboard-switch .lf-switch-labels .lf-text-clipspace,
|
|
.lf-clipboard-switch .lf-switch-labels .lf-text-system {
|
|
position: absolute;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
.lf-clipboard-switch .lf-switch-labels .lf-text-clipspace { opacity: 0; }
|
|
.lf-clipboard-switch .lf-switch-labels .lf-text-system { opacity: 1; padding-left: 20px; }
|
|
|
|
.lf-clipboard-switch .lf-switch-knob .lf-switch-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lf-clipboard-switch .lf-switch-knob .lf-switch-icon img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Checked state */
|
|
.lf-clipboard-switch:has(input:checked) {
|
|
background: linear-gradient(to right, rgba(58, 118, 214, 0.72), rgba(255, 255, 255, 0.08) 70%);
|
|
border-color: rgba(90, 170, 255, 0.7);
|
|
}
|
|
.lf-clipboard-switch:has(input:checked):hover {
|
|
background: linear-gradient(to right, rgba(74, 134, 228, 0.8), rgba(255, 255, 255, 0.14) 70%);
|
|
border-color: rgba(124, 204, 255, 0.85);
|
|
}
|
|
|
|
.lf-clipboard-switch input:checked ~ .lf-switch-knob {
|
|
left: calc(100% - 26px);
|
|
}
|
|
.lf-clipboard-switch input:checked ~ .lf-switch-knob .lf-switch-icon img {
|
|
filter: none;
|
|
}
|
|
.lf-clipboard-switch input:checked ~ .lf-switch-labels .lf-text-clipspace {
|
|
opacity: 1;
|
|
color: #fff;
|
|
padding-right: 20px;
|
|
}
|
|
.lf-clipboard-switch input:checked ~ .lf-switch-labels .lf-text-system {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Disabled state for switch */
|
|
.lf-clipboard-switch.lf-disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
background: rgba(0, 0, 0, 0.18) !important; /* Override gradient */
|
|
border-color: rgba(255, 255, 255, 0.1) !important;
|
|
transform: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.lf-clipboard-switch.lf-disabled .lf-switch-knob {
|
|
background-color: rgba(255, 255, 255, 0.08) !important;
|
|
}
|
|
|
|
.lf-clipboard-switch.lf-disabled .lf-switch-labels {
|
|
color: #777 !important;
|
|
}
|
|
|
|
|
|
|
|
.lf-painter-separator {
|
|
width: 1px;
|
|
height: 24px;
|
|
background-color: rgba(255, 255, 255, 0.16);
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.lf-painter-container {
|
|
background: transparent;
|
|
border: 1px solid var(--lf-surface-border, rgba(255, 255, 255, 0.14));
|
|
border-radius: 6px;
|
|
box-shadow: inset 0 0 10px var(--lf-surface-shadow, rgba(0, 0, 0, 0.12));
|
|
transition: border-color 0.3s ease; /* Dodano dla płynnej zmiany ramki */
|
|
}
|
|
|
|
.lf-painter-container.lf-drag-over {
|
|
border-color: #00ff00; /* Zielona ramka podczas przeciągania */
|
|
border-style: dashed;
|
|
}
|
|
|
|
.lf-painter-dialog {
|
|
background: #404040;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
|
padding: 20px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.lf-painter-dialog input {
|
|
background: #303030;
|
|
border: 1px solid #505050;
|
|
border-radius: 4px;
|
|
color: #ffffff;
|
|
padding: 4px 8px;
|
|
margin: 4px;
|
|
width: 80px;
|
|
}
|
|
|
|
.lf-painter-dialog button {
|
|
background: #505050;
|
|
border: 1px solid #606060;
|
|
border-radius: 4px;
|
|
color: #ffffff;
|
|
padding: 4px 12px;
|
|
margin: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lf-painter-dialog button:hover {
|
|
background: #606060;
|
|
}
|
|
|
|
.lf-blend-opacity-slider {
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
display: none;
|
|
}
|
|
|
|
.lf-blend-mode-active .lf-blend-opacity-slider {
|
|
display: block;
|
|
}
|
|
|
|
.lf-blend-mode-item {
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
.lf-blend-mode-item.lf-active {
|
|
background-color: rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.lf-blend-mode-item.lf-active {
|
|
background-color: rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.lf-global-tooltip {
|
|
position: fixed;
|
|
display: none;
|
|
background: #2B2B2B;
|
|
color: #f0f0f0;
|
|
border: 1px solid #444;
|
|
border-top: 2px solid #4a90e2;
|
|
border-radius: 6px;
|
|
padding: 12px 18px;
|
|
z-index: 1000001;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
width: auto;
|
|
max-width: min(450px, calc(100vw - 30px));
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
|
|
pointer-events: none;
|
|
transform-origin: top left;
|
|
transition: transform 0.2s ease;
|
|
will-change: transform;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
max-height: calc(100vh - 24px);
|
|
text-align: left;
|
|
}
|
|
|
|
.lf-global-tooltip[data-content-mode="text"] {
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.lf-global-tooltip[data-interactive="true"] {
|
|
pointer-events: auto;
|
|
cursor: default;
|
|
}
|
|
|
|
.lf-global-tooltip.lf-scale-down {
|
|
transform: scale(0.9);
|
|
transform-origin: top;
|
|
}
|
|
|
|
.lf-global-tooltip.lf-scale-down-more {
|
|
transform: scale(0.8);
|
|
transform-origin: top;
|
|
}
|
|
|
|
.lf-global-tooltip table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.lf-global-tooltip table td {
|
|
padding: 4px 8px;
|
|
vertical-align: middle;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.lf-global-tooltip table td:first-child {
|
|
width: auto;
|
|
white-space: nowrap;
|
|
min-width: fit-content;
|
|
}
|
|
|
|
.lf-global-tooltip table td:last-child {
|
|
width: auto;
|
|
}
|
|
|
|
.lf-global-tooltip table tr:nth-child(odd) td {
|
|
background-color: rgba(255, 255, 255, 0.02);
|
|
}
|
|
.lf-global-tooltip table tr:hover td {
|
|
background-color: rgba(74, 144, 226, 0.15);
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.lf-global-tooltip {
|
|
font-size: 11px;
|
|
padding: 8px 12px;
|
|
}
|
|
.lf-global-tooltip table td {
|
|
padding: 2px 4px;
|
|
}
|
|
.lf-global-tooltip kbd {
|
|
padding: 1px 4px;
|
|
font-size: 10px;
|
|
}
|
|
.lf-global-tooltip table td:first-child {
|
|
width: 40%;
|
|
}
|
|
.lf-global-tooltip table td:last-child {
|
|
width: 60%;
|
|
}
|
|
.lf-global-tooltip h4 {
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.lf-global-tooltip {
|
|
font-size: 10px;
|
|
padding: 6px 8px;
|
|
}
|
|
.lf-global-tooltip table td {
|
|
padding: 1px 3px;
|
|
}
|
|
.lf-global-tooltip kbd {
|
|
padding: 0px 3px;
|
|
font-size: 9px;
|
|
}
|
|
.lf-global-tooltip table td:first-child {
|
|
width: 35%;
|
|
}
|
|
.lf-global-tooltip table td:last-child {
|
|
width: 65%;
|
|
}
|
|
.lf-global-tooltip h4 {
|
|
font-size: 11px;
|
|
margin-top: 6px;
|
|
margin-bottom: 3px;
|
|
}
|
|
}
|
|
|
|
.lf-global-tooltip::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.lf-global-tooltip::-webkit-scrollbar-track {
|
|
background: #2a2a2a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-global-tooltip::-webkit-scrollbar-thumb {
|
|
background: #555;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-global-tooltip::-webkit-scrollbar-thumb:hover {
|
|
background: #666;
|
|
}
|
|
|
|
.lf-global-tooltip h4 {
|
|
margin-top: 10px;
|
|
margin-bottom: 6px;
|
|
color: #4a90e2;
|
|
border-bottom: 1px solid #4a90e2;
|
|
padding-bottom: 4px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
.lf-global-tooltip h4:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.lf-global-tooltip ul {
|
|
list-style: none;
|
|
padding-left: 10px;
|
|
margin: 0;
|
|
}
|
|
|
|
.lf-global-tooltip kbd {
|
|
background-color: #444;
|
|
border: 1px solid #555;
|
|
border-bottom-width: 2px;
|
|
border-radius: 4px;
|
|
padding: 2px 6px;
|
|
font-family: monospace;
|
|
font-size: 11px;
|
|
color: #e0e0e0;
|
|
box-shadow: 0 1px 1px rgba(0,0,0,0.15);
|
|
margin: 0 1px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.lf-painter-container.lf-has-focus {
|
|
/* Używamy box-shadow, aby stworzyć efekt zewnętrznej ramki,
|
|
która nie wpłynie na rozmiar ani pozycję elementu. */
|
|
box-shadow: 0 0 0 2px white;
|
|
/* Możesz też zmienić kolor istniejącej ramki, ale box-shadow jest bardziej wyrazisty */
|
|
/* border-color: white; */
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button {
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button.lf-loading {
|
|
padding-right: 36px; /* Make space for spinner */
|
|
cursor: wait;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button .lf-matting-spinner {
|
|
display: none;
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: #fff;
|
|
will-change: transform;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button.lf-loading .lf-matting-spinner {
|
|
display: block;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button .lf-matting-download-progress {
|
|
display: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 3px;
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button.lf-downloading .lf-matting-download-progress {
|
|
display: block;
|
|
}
|
|
|
|
.lf-painter-button.lf-matting-button .lf-matting-download-progress-fill {
|
|
display: block;
|
|
width: 0;
|
|
height: 100%;
|
|
background: #39d353;
|
|
box-shadow: 0 0 5px rgba(57, 211, 83, 0.85);
|
|
transition: width 0.12s linear;
|
|
}
|
|
|
|
.lf-matting-settings-button {
|
|
color: #d7d7d7;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.lf-matting-settings-button:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.lf-matting-settings-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
background: rgba(0, 0, 0, 0.72);
|
|
}
|
|
|
|
.lf-matting-settings-dialog {
|
|
width: min(520px, 100%);
|
|
max-height: min(680px, 100%);
|
|
overflow: auto;
|
|
color: #f2f2f2;
|
|
background: #303030;
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
border-radius: 9px;
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
|
|
}
|
|
|
|
.lf-matting-settings-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 18px;
|
|
border-bottom: 1px solid #484848;
|
|
}
|
|
|
|
.lf-matting-settings-header h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lf-matting-settings-close {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
color: #d0d0d0;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-settings-close:hover {
|
|
color: #fff;
|
|
background: #484848;
|
|
border-color: #666;
|
|
}
|
|
|
|
.lf-matting-settings-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 18px;
|
|
}
|
|
|
|
.lf-matting-settings-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
}
|
|
|
|
.lf-matting-settings-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lf-matting-tooltip-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
flex: 0 0 auto;
|
|
margin-left: 2px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
cursor: help;
|
|
user-select: none;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.lf-matting-tooltip-badge:hover,
|
|
.lf-matting-tooltip-badge:focus-visible {
|
|
color: #d9ecff;
|
|
outline: none;
|
|
background: rgba(78, 161, 255, 0.18);
|
|
border-color: rgba(78, 161, 255, 0.65);
|
|
}
|
|
|
|
.lf-matting-settings-select {
|
|
width: 100%;
|
|
min-height: 34px;
|
|
padding: 6px 9px;
|
|
color: #f4f4f4;
|
|
cursor: pointer;
|
|
background: #252525;
|
|
border: 1px solid #5a5a5a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-settings-input {
|
|
width: 100%;
|
|
min-height: 34px;
|
|
box-sizing: border-box;
|
|
padding: 6px 9px;
|
|
color: #f4f4f4;
|
|
background: #252525;
|
|
border: 1px solid #5a5a5a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-settings-token {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.lf-matting-settings-token-clear {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
color: #bdbdbd;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lf-matting-settings-token-clear input {
|
|
margin: 0;
|
|
}
|
|
|
|
.lf-matting-settings-select:focus,
|
|
.lf-matting-settings-input:focus,
|
|
.lf-matting-settings-threshold input:focus {
|
|
outline: 2px solid #4b8fe8;
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.lf-matting-settings-status {
|
|
margin: 0;
|
|
color: #bdbdbd;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.lf-matting-model-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: -7px;
|
|
padding: 10px 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid #4b4b4b;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-model-description {
|
|
margin: 0;
|
|
color: #d2d2d2;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.lf-matting-model-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.lf-matting-model-link {
|
|
color: #76adff;
|
|
font-size: 11px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.lf-matting-model-link:hover {
|
|
color: #a9ccff;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.lf-matting-settings-threshold {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.lf-matting-settings-threshold input {
|
|
flex: 1;
|
|
accent-color: #4b8fe8;
|
|
}
|
|
|
|
.lf-matting-settings-threshold-value {
|
|
min-width: 38px;
|
|
color: #fff;
|
|
font-family: monospace;
|
|
text-align: right;
|
|
}
|
|
|
|
.lf-matting-settings-status {
|
|
padding: 10px 12px;
|
|
background: rgba(75, 143, 232, 0.1);
|
|
border: 1px solid rgba(75, 143, 232, 0.28);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-settings-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 14px 18px 18px;
|
|
border-top: 1px solid #484848;
|
|
}
|
|
|
|
.lf-matting-settings-actions button {
|
|
min-height: 34px;
|
|
padding: 6px 14px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lf-matting-settings-secondary {
|
|
background: #414141;
|
|
border: 1px solid #5c5c5c;
|
|
}
|
|
|
|
.lf-matting-settings-primary {
|
|
background: #3a76d6;
|
|
border: 1px solid #2a6ac4;
|
|
}
|
|
|
|
.lf-matting-settings-actions button:hover {
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.lf-painter-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: transparent;
|
|
z-index: 999999;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.lf-painter-modal-content {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: auto;
|
|
height: auto;
|
|
background-color: #353535;
|
|
border: none;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
pointer-events: auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Keep the fullscreen actions clear of the top toolbar controls. */
|
|
.lf-painter-modal-content .lf-painter-controls {
|
|
box-sizing: border-box;
|
|
padding-right: 92px;
|
|
}
|
|
|
|
.lf-workflow-overview-toggle {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 30;
|
|
width: 32px;
|
|
min-width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lf-workflow-run-button {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 52px;
|
|
z-index: 30;
|
|
width: 32px;
|
|
min-width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lf-workflow-overview-toggle i[class~="icon-[lucide--panel-right]"] {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.lf-workflow-run-button i[class~="icon-[lucide--play]"] {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.lf-workflow-progress {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
height: 6px;
|
|
overflow: visible;
|
|
box-sizing: border-box;
|
|
background: rgba(20, 20, 20, 0.72);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
z-index: 2147483646;
|
|
transition: opacity 120ms ease;
|
|
}
|
|
|
|
.lf-workflow-progress.lf-workflow-progress-visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.lf-workflow-progress-completed,
|
|
.lf-workflow-progress-active {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0;
|
|
transition: width 120ms ease-out, background-color 120ms ease;
|
|
}
|
|
|
|
.lf-workflow-progress-completed {
|
|
z-index: 1;
|
|
background: #2f6fb5;
|
|
}
|
|
|
|
.lf-workflow-progress-active {
|
|
z-index: 2;
|
|
background: #7fc4ff;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.lf-workflow-progress-label {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 50%;
|
|
z-index: 3;
|
|
display: block;
|
|
max-width: min(70vw, 720px);
|
|
overflow: hidden;
|
|
padding: 2px 8px 3px;
|
|
color: #fff;
|
|
background: rgba(20, 20, 20, 0.9);
|
|
border-radius: 0 0 4px 4px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
|
|
font: 11px/14px sans-serif;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lf-workflow-progress.lf-workflow-progress-success .lf-workflow-progress-completed,
|
|
.lf-workflow-progress.lf-workflow-progress-success .lf-workflow-progress-active {
|
|
background: #54b56d;
|
|
}
|
|
|
|
.lf-workflow-progress.lf-workflow-progress-error .lf-workflow-progress-completed,
|
|
.lf-workflow-progress.lf-workflow-progress-error .lf-workflow-progress-active {
|
|
background: #d15a5a;
|
|
}
|
|
|
|
.lf-workflow-progress.lf-workflow-progress-indeterminate .lf-workflow-progress-active {
|
|
width: 34%;
|
|
animation: lf-workflow-progress-indeterminate 1.15s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes lf-workflow-progress-indeterminate {
|
|
0% {
|
|
transform: translateX(-100%);
|
|
}
|
|
100% {
|
|
transform: translateX(300%);
|
|
}
|
|
}
|
|
|
|
.lf-workflow-overview-toggle.lf-workflow-overview-open {
|
|
background: var(--comfy-menu-bg, #2f2f2f);
|
|
}
|
|
|
|
.lf-painter-main-container {
|
|
--lf-controls-surface: rgba(0, 0, 0, 0.2);
|
|
--lf-layers-surface: rgba(0, 0, 0, 0.2);
|
|
--lf-canvas-fill: rgba(96, 96, 96, 0.72);
|
|
--lf-surface-border: rgba(255, 255, 255, 0.18);
|
|
--lf-surface-shadow: rgba(0, 0, 0, 0.12);
|
|
background: transparent;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.lf-painter-canvas-container {
|
|
background: transparent;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
}
|