deploy-ease-platform/frontend/src/pages/Workflow/Design/components/NodePanel.module.css
2025-11-10 13:56:26 +08:00

107 lines
1.6 KiB
CSS

.nodePanel {
width: 260px;
height: 100%;
background: #f8fafc;
border-right: 1px solid #e5e7eb;
overflow: hidden;
display: flex;
flex-direction: column;
}
.header {
padding: 16px;
background: white;
border-bottom: 1px solid #e5e7eb;
}
.title {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #374151;
}
.subtitle {
margin: 4px 0 0 0;
font-size: 12px;
color: #6b7280;
}
.content {
flex: 1;
overflow: auto;
padding: 12px;
}
.category {
margin-bottom: 16px;
}
.categoryTitle {
font-size: 12px;
font-weight: 600;
color: #4b5563;
margin-bottom: 8px;
padding: 4px 0;
border-bottom: 1px solid #e5e7eb;
}
.nodeItem {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #e5e7eb;
background: white;
cursor: grab;
transition: all 0.2s ease-in-out;
margin-bottom: 6px;
}
.nodeItem:hover {
background: #f9fafb;
transform: translateX(2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nodeItem:active {
cursor: grabbing;
}
.nodeIcon {
font-size: 16px;
width: 20px;
text-align: center;
flex-shrink: 0;
}
.nodeInfo {
flex: 1;
min-width: 0;
}
.nodeName {
font-size: 13px;
font-weight: 500;
color: #374151;
line-height: 1.2;
}
.nodeDesc {
font-size: 11px;
color: #6b7280;
line-height: 1.2;
margin-top: 2px;
}
.tips {
padding: 12px;
background: #f1f5f9;
border-top: 1px solid #e5e7eb;
font-size: 11px;
color: #64748b;
line-height: 1.4;
}