allinssl/frontend/apps/vue-flow/components/WorkflowEditor.module.css

106 lines
1.6 KiB
CSS

.workflowEditor {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.editorHeader {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid #e8e8e8;
background-color: #f5f5f5;
}
.title {
flex: 1;
}
.titleInput {
width: 100%;
padding: 6px 12px;
border: 1px solid #d9d9d9;
border-radius: 4px;
font-size: 14px;
}
.titleInput:focus {
outline: none;
border-color: #4096ff;
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.actions {
margin-left: 16px;
}
.saveButton {
padding: 6px 16px;
background-color: #1890ff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.saveButton:hover {
background-color: #40a9ff;
}
.editorContent {
flex: 1;
position: relative;
}
.nodesPanel {
background-color: white;
border-radius: 4px;
padding: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
width: 180px;
}
.nodesPanelTitle {
font-size: 14px;
font-weight: 500;
color: #333;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
}
.nodesList {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.nodeItem {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 8px;
border: 1px solid #f0f0f0;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.nodeItem:hover {
background-color: #f5f5f5;
border-color: #d9d9d9;
}
.nodeItemIcon {
font-size: 20px;
margin-bottom: 4px;
}
.nodeItemTitle {
font-size: 12px;
color: #666;
}