1090 lines
25 KiB
CSS
1090 lines
25 KiB
CSS
/**
|
|
* ComfyUI MagnifyGlass - Info Panel Styles
|
|
*
|
|
* Complete CSS styles for the info panel component.
|
|
*/
|
|
|
|
/* SVG Icon Styling */
|
|
.magnify-info-panel svg,
|
|
.floating-controls svg {
|
|
width: 1em;
|
|
height: 1em;
|
|
vertical-align: middle;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
pointer-events: none;
|
|
/* Allow clicks to pass through to button */
|
|
}
|
|
|
|
.header-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.section-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.control-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.expand-icon svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.empty-state-icon svg {
|
|
width: 36px;
|
|
height: 36px;
|
|
stroke-width: 1.5;
|
|
}
|
|
|
|
.magnify-info-panel {
|
|
border-radius: 12px;
|
|
backdrop-filter: blur(20px);
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
overflow: hidden;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.magnify-info-panel * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.magnify-info-panel.theme-dark {
|
|
background: linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(10, 10, 15, 0.96));
|
|
color: var(--info-panel-text-color, #e0e0e0);
|
|
border: 1px solid rgba(100, 100, 120, 0.4);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 16px rgba(0, 0, 0, 0.2);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.magnify-info-panel.theme-light {
|
|
background: linear-gradient(135deg, rgba(250, 250, 255, 0.96), rgba(240, 240, 250, 0.96));
|
|
color: var(--info-panel-text-color, #2a2a2a);
|
|
border: 1px solid rgba(200, 200, 220, 0.5);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.05);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
/* Solarized Theme - warm, muted tones */
|
|
.magnify-info-panel.theme-solarized {
|
|
background: linear-gradient(135deg, rgba(0, 43, 54, 0.96), rgba(7, 54, 66, 0.96));
|
|
color: var(--info-panel-text-color, #839496);
|
|
border: 1px solid rgba(88, 110, 117, 0.5);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 16px rgba(0, 0, 0, 0.2);
|
|
backdrop-filter: blur(12px);
|
|
--info-panel-accent-color: #268bd2;
|
|
}
|
|
|
|
/* Arc Theme - modern blue-gray */
|
|
.magnify-info-panel.theme-arc {
|
|
background: linear-gradient(135deg, rgba(56, 60, 74, 0.96), rgba(64, 69, 82, 0.96));
|
|
color: var(--info-panel-text-color, #d3dae3);
|
|
border: 1px solid rgba(90, 100, 120, 0.5);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 16px rgba(0, 0, 0, 0.15);
|
|
backdrop-filter: blur(12px);
|
|
--info-panel-accent-color: #5294e2;
|
|
}
|
|
|
|
/* Nord Theme - cool arctic colors */
|
|
.magnify-info-panel.theme-nord {
|
|
background: linear-gradient(135deg, rgba(46, 52, 64, 0.96), rgba(59, 66, 82, 0.96));
|
|
color: var(--info-panel-text-color, #d8dee9);
|
|
border: 1px solid rgba(76, 86, 106, 0.5);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 16px rgba(0, 0, 0, 0.15);
|
|
backdrop-filter: blur(12px);
|
|
--info-panel-accent-color: #88c0d0;
|
|
}
|
|
|
|
/* GitHub Theme - clean, professional */
|
|
.magnify-info-panel.theme-github {
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 250, 0.96));
|
|
color: var(--info-panel-text-color, #24292e);
|
|
border: 1px solid rgba(225, 228, 232, 0.8);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.05);
|
|
backdrop-filter: blur(12px);
|
|
--info-panel-accent-color: #0366d6;
|
|
}
|
|
|
|
.magnify-info-panel.visible {
|
|
transform: translateY(0) !important;
|
|
}
|
|
|
|
.magnify-info-panel.panel-pinned {
|
|
cursor: grab;
|
|
box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.magnify-info-panel.panel-locked {
|
|
cursor: default !important;
|
|
box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.magnify-info-panel.panel-locked::after {
|
|
content: '📌';
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.magnify-info-panel.panel-pinned.panel-dragging {
|
|
cursor: grabbing;
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 215, 0, 0.7);
|
|
transform: scale(1.02) !important;
|
|
z-index: 100001 !important;
|
|
transition: none !important;
|
|
}
|
|
|
|
.magnify-info-panel.panel-pinned::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(45deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.panel-dragging * {
|
|
pointer-events: none !important;
|
|
user-select: none !important;
|
|
transition: none !important;
|
|
}
|
|
|
|
.magnify-info-panel.panel-minimized .panel-content {
|
|
max-height: 0 !important;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.floating-controls {
|
|
position: fixed;
|
|
display: none;
|
|
/* Hidden initially - JS will show when positioned */
|
|
padding: 4px;
|
|
background: rgba(40, 40, 50, 0.95);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
opacity: 1;
|
|
z-index: 100000;
|
|
backdrop-filter: blur(8px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.floating-controls.vertical-layout {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.floating-controls.horizontal-layout {
|
|
flex-direction: row;
|
|
gap: 4px;
|
|
}
|
|
|
|
.control-btn {
|
|
background: rgba(60, 60, 70, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: #ddd;
|
|
border-radius: 3px;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: rgba(80, 80, 90, 0.9);
|
|
color: white;
|
|
}
|
|
|
|
.control-btn:active {
|
|
background: rgba(100, 100, 110, 0.9);
|
|
}
|
|
|
|
.control-btn:disabled {
|
|
background: rgba(40, 40, 50, 0.5);
|
|
color: #666;
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.control-btn.active {
|
|
background: rgba(255, 200, 50, 0.3);
|
|
border-color: rgba(255, 200, 50, 0.6);
|
|
color: #ffcc33;
|
|
}
|
|
|
|
.control-btn.lock-btn.active {
|
|
background: rgba(255, 69, 0, 0.3);
|
|
border-color: rgba(255, 69, 0, 0.6);
|
|
color: #ff4500;
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 18px;
|
|
background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.05));
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
user-select: none;
|
|
cursor: grab;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.panel-header:hover {
|
|
background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.08));
|
|
}
|
|
|
|
.panel-header:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-icon {
|
|
font-size: 18px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.header-title {
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.header-subtitle {
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.minimize-btn {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: inherit;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.minimize-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.minimize-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.panel-content {
|
|
padding: 0;
|
|
max-height: calc(100% - 60px);
|
|
overflow-y: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.panel-content::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.panel-content::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.panel-content::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.info-section {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
margin-bottom: 8px;
|
|
border-radius: 10px;
|
|
overflow: visible;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.info-section:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
/* Removed transform to prevent bounce */
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
margin: 3px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.6s ease;
|
|
}
|
|
|
|
.section-header:hover::before {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.section-header:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
/* Removed transform: translateX(2px) */
|
|
box-shadow: inset 2px 0 0 rgba(116, 185, 255, 0.5);
|
|
}
|
|
|
|
.section-header:active {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
transform: translateX(1px);
|
|
}
|
|
|
|
.section-header.expanded {
|
|
background: rgba(116, 185, 255, 0.1);
|
|
border-left: 2px solid var(--info-panel-accent-color, #74b9ff);
|
|
}
|
|
|
|
.info-section[data-section="node"] {
|
|
background: linear-gradient(135deg, rgba(116, 185, 255, 0.05), rgba(160, 212, 104, 0.05));
|
|
border: 1px solid rgba(116, 185, 255, 0.2);
|
|
border-radius: 8px;
|
|
margin: 6px;
|
|
}
|
|
|
|
.info-section[data-section="node"] .section-header {
|
|
background: linear-gradient(135deg, rgba(116, 185, 255, 0.15), rgba(160, 212, 104, 0.15));
|
|
border-radius: 8px 8px 0 0;
|
|
cursor: default;
|
|
}
|
|
|
|
.info-section[data-section="node"] .section-header:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.info-section[data-section="node"] .section-title {
|
|
color: var(--info-panel-accent-color, #74b9ff);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.info-section[data-section="inspector"] {
|
|
background: linear-gradient(135deg, rgba(100, 150, 255, 0.05), rgba(74, 144, 226, 0.05));
|
|
border: 1px solid rgba(100, 150, 255, 0.2);
|
|
border-radius: 8px;
|
|
margin: 6px;
|
|
}
|
|
|
|
.info-section[data-section="inspector"] .section-header {
|
|
background: linear-gradient(135deg, rgba(100, 150, 255, 0.15), rgba(74, 144, 226, 0.15));
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.info-section[data-section="inspector"] .section-title {
|
|
color: #6496ff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.info-section[data-section="media"] {
|
|
background: linear-gradient(135deg, rgba(253, 203, 110, 0.05), rgba(255, 215, 0, 0.05));
|
|
border: 1px solid rgba(253, 203, 110, 0.2);
|
|
border-radius: 8px;
|
|
margin: 6px;
|
|
}
|
|
|
|
.info-section[data-section="media"] .section-header {
|
|
background: linear-gradient(135deg, rgba(253, 203, 110, 0.15), rgba(255, 215, 0, 0.15));
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.info-section[data-section="media"] .section-title {
|
|
color: var(--info-panel-accent-color, #fdcb6e);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.section-icon {
|
|
font-size: 18px;
|
|
width: 22px;
|
|
text-align: center;
|
|
}
|
|
|
|
.section-title {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.3px;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.section-badge {
|
|
background: rgba(100, 150, 255, 0.2);
|
|
color: #8bb3ff;
|
|
padding: 3px 10px;
|
|
border-radius: 10px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.expand-icon {
|
|
font-size: 14px;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
color: rgba(255, 255, 255, 0.6);
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.section-header:hover .expand-icon {
|
|
color: var(--info-panel-accent-color, #74b9ff);
|
|
background: rgba(116, 185, 255, 0.15);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.section-header.expanded .expand-icon {
|
|
transform: rotate(90deg) scale(1.1);
|
|
color: var(--info-panel-accent-color, #74b9ff);
|
|
background: rgba(116, 185, 255, 0.2);
|
|
}
|
|
|
|
.section-content {
|
|
max-height: 0;
|
|
overflow: visible;
|
|
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
|
|
opacity: 0;
|
|
}
|
|
|
|
.section-content.expanded {
|
|
max-height: 2000px;
|
|
opacity: 1;
|
|
overflow: visible;
|
|
}
|
|
|
|
.section-body {
|
|
padding: 0 18px 16px 24px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
transition: all 0.2s ease;
|
|
border-radius: 4px;
|
|
margin: 0 -8px;
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-row:hover {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-bottom-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.info-label {
|
|
font-weight: 500;
|
|
opacity: 0.85;
|
|
font-size: 15px;
|
|
min-width: 80px;
|
|
padding-right: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.info-value {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 14px;
|
|
color: var(--info-panel-accent-color, #a0d468);
|
|
background: rgba(160, 212, 104, 0.12);
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
max-width: 100%;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
hyphens: auto;
|
|
line-height: 1.4;
|
|
text-align: left;
|
|
white-space: pre-wrap;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.info-value:hover {
|
|
background: rgba(160, 212, 104, 0.18);
|
|
/* Removed transform: translateY(-1px) */
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.info-value.long-text {
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
max-width: 100%;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 50px 25px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 36px;
|
|
margin-bottom: 15px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state-text {
|
|
font-size: 16px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Copy to clipboard functionality */
|
|
.info-value[title]:hover::after {
|
|
content: '📋';
|
|
position: absolute;
|
|
right: -20px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Smooth loading states */
|
|
.section-body.loading {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.section-body.loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid transparent;
|
|
border-top: 2px solid var(--info-panel-accent-color, #74b9ff);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Enhanced scrollbar for better UX */
|
|
.section-body::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.section-body::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.section-body::-webkit-scrollbar-thumb {
|
|
background: var(--info-panel-accent-color, #74b9ff);
|
|
border-radius: 2px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.section-body::-webkit-scrollbar-thumb:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
.pulse {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
/* Focus Node Button Styling - Premium Glass */
|
|
.focus-node-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
|
|
/* Ghost Style Default */
|
|
background: transparent;
|
|
color: var(--info-panel-accent-color, #74b9ff);
|
|
border: 1px solid var(--info-panel-accent-color, #74b9ff);
|
|
|
|
padding: 2px 10px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
font-size: 0.9em;
|
|
letter-spacing: 0.02em;
|
|
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.focus-node-btn:hover {
|
|
/* Glowing active state */
|
|
background: var(--info-panel-accent-color, #74b9ff);
|
|
color: #fff;
|
|
/* Switch to white text on fill */
|
|
|
|
/* Create a glow effect using the accent color */
|
|
box-shadow: 0 4px 12px -2px var(--info-panel-accent-color, #74b9ff),
|
|
0 0 0 1px var(--info-panel-accent-color, #74b9ff);
|
|
|
|
transform: translateY(-1px) scale(1.02);
|
|
opacity: 1;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.focus-node-btn:active {
|
|
transform: translateY(0) scale(0.98);
|
|
box-shadow: 0 2px 4px -2px var(--info-panel-accent-color, #74b9ff);
|
|
filter: brightness(0.95);
|
|
}
|
|
|
|
.focus-node-btn .icon {
|
|
display: flex;
|
|
align-items: center;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.focus-node-btn:hover .icon {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Ensure the SVG inside inherits color properly */
|
|
.focus-node-btn svg {
|
|
stroke: currentColor;
|
|
width: 14px;
|
|
height: 14px;
|
|
stroke-width: 2.5;
|
|
/* Make icon slightly bolder */
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Widget Editor Styles - Inspector Inline Editing
|
|
========================================================================== */
|
|
|
|
/* Base widget editor container */
|
|
.widget-editor {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Shared input styles */
|
|
.widget-editor-input,
|
|
.widget-editor-textarea,
|
|
.widget-editor-select {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 13px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 1px solid var(--info-panel-accent-color, #74b9ff);
|
|
border-radius: 4px;
|
|
color: inherit;
|
|
padding: 6px 8px;
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.widget-editor-input:focus,
|
|
.widget-editor-textarea:focus,
|
|
.widget-editor-select:focus {
|
|
border-color: var(--info-panel-accent-color, #74b9ff);
|
|
box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.25);
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.widget-editor-input:hover,
|
|
.widget-editor-textarea:hover,
|
|
.widget-editor-select:hover {
|
|
border-color: rgba(116, 185, 255, 0.7);
|
|
}
|
|
|
|
/* Number editor specific */
|
|
.widget-editor-number {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.widget-editor-number .widget-editor-input {
|
|
flex: 1;
|
|
min-width: 60px;
|
|
max-width: 100px;
|
|
text-align: center;
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.widget-editor-number .widget-editor-input::-webkit-outer-spin-button,
|
|
.widget-editor-number .widget-editor-input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.widget-editor-stepper {
|
|
width: 24px;
|
|
height: 28px;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: inherit;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
transition: all 0.15s ease;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.widget-editor-stepper:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-color: var(--info-panel-accent-color, #74b9ff);
|
|
}
|
|
|
|
.widget-editor-stepper:active {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.widget-editor-stepper.decrement {
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
|
|
.widget-editor-stepper.increment {
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
/* Text editor specific */
|
|
.widget-editor-text {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 4px;
|
|
}
|
|
|
|
.widget-editor-text .widget-editor-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.widget-editor-textarea {
|
|
width: 100%;
|
|
min-height: 60px;
|
|
max-height: 200px;
|
|
resize: vertical;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.widget-editor-counter {
|
|
font-size: 11px;
|
|
opacity: 0.6;
|
|
text-align: right;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
/* Combo/dropdown editor */
|
|
.widget-editor-combo {
|
|
width: 100%;
|
|
}
|
|
|
|
.widget-editor-select {
|
|
width: 100%;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374b9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
background-size: 14px;
|
|
padding-right: 28px;
|
|
}
|
|
|
|
.widget-editor-select option {
|
|
background: #2a2a2a;
|
|
color: #e0e0e0;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* Boolean toggle editor */
|
|
.widget-editor-boolean {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.widget-editor-toggle {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 44px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.widget-editor-checkbox {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.widget-editor-toggle-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 24px;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.widget-editor-toggle-slider::before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.widget-editor-checkbox:checked + .widget-editor-toggle-slider {
|
|
background: var(--info-panel-accent-color, #74b9ff);
|
|
border-color: var(--info-panel-accent-color, #74b9ff);
|
|
}
|
|
|
|
.widget-editor-checkbox:checked + .widget-editor-toggle-slider::before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
.widget-editor-checkbox:focus + .widget-editor-toggle-slider {
|
|
box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.25);
|
|
}
|
|
|
|
/* Slider editor */
|
|
.widget-editor-slider {
|
|
gap: 8px;
|
|
}
|
|
|
|
.widget-editor-range {
|
|
flex: 1;
|
|
height: 6px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.widget-editor-range::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--info-panel-accent-color, #74b9ff);
|
|
cursor: pointer;
|
|
border: 2px solid white;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.widget-editor-range::-webkit-slider-thumb:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.25);
|
|
}
|
|
|
|
.widget-editor-range::-moz-range-thumb {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--info-panel-accent-color, #74b9ff);
|
|
cursor: pointer;
|
|
border: 2px solid white;
|
|
}
|
|
|
|
.widget-editor-slider-value {
|
|
min-width: 50px;
|
|
text-align: center;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 12px;
|
|
color: var(--info-panel-accent-color, #74b9ff);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Editable row styling */
|
|
.info-row.editable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.info-row.editable:hover {
|
|
background: rgba(116, 185, 255, 0.08);
|
|
}
|
|
|
|
.info-row.editable .info-value {
|
|
cursor: text;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.info-row.editable .info-value:hover {
|
|
border-color: rgba(116, 185, 255, 0.3);
|
|
}
|
|
|
|
.info-row.editing {
|
|
background: rgba(116, 185, 255, 0.1);
|
|
padding: 8px;
|
|
margin: 4px -8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.info-row.editing .info-label {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Hide original value when editing */
|
|
.info-row.editing .info-value.original {
|
|
display: none;
|
|
}
|
|
|
|
/* Copy button styling (for coexistence with edit) */
|
|
.copy-btn {
|
|
flex-shrink: 0;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.15s ease;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.copy-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
stroke: currentColor;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.copy-btn:hover svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-btn.copied {
|
|
background: rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
/* Theme-specific adjustments for editors */
|
|
.magnify-info-panel.theme-light .widget-editor-input,
|
|
.magnify-info-panel.theme-light .widget-editor-textarea,
|
|
.magnify-info-panel.theme-light .widget-editor-select {
|
|
background: rgba(0, 0, 0, 0.05);
|
|
border-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.magnify-info-panel.theme-light .widget-editor-input:focus,
|
|
.magnify-info-panel.theme-light .widget-editor-textarea:focus,
|
|
.magnify-info-panel.theme-light .widget-editor-select:focus {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.magnify-info-panel.theme-light .widget-editor-stepper {
|
|
border-color: rgba(0, 0, 0, 0.15);
|
|
background: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.magnify-info-panel.theme-light .widget-editor-toggle-slider {
|
|
background: rgba(0, 0, 0, 0.15);
|
|
border-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.magnify-info-panel.theme-github .widget-editor-input,
|
|
.magnify-info-panel.theme-github .widget-editor-textarea,
|
|
.magnify-info-panel.theme-github .widget-editor-select {
|
|
background: #f6f8fa;
|
|
border-color: #d1d5db;
|
|
color: #24292e;
|
|
}
|
|
|
|
.magnify-info-panel.theme-github .widget-editor-select option {
|
|
background: #ffffff;
|
|
color: #24292e;
|
|
} |