1234 lines
23 KiB
CSS
1234 lines
23 KiB
CSS
/* Workflow Builder Specific Styles */
|
|
|
|
/* Workflow title section removed - using canvas header instead */
|
|
|
|
/* Old workflow header styles removed - now using standard header */
|
|
|
|
.workflow-container {
|
|
display: flex;
|
|
height: calc(100vh - 120px);
|
|
gap: 20px;
|
|
padding: 20px;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Components Panel */
|
|
.components-panel {
|
|
width: 400px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.components-panel h3 {
|
|
margin: 0 0 20px 0;
|
|
color: var(--text-primary);
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.search-bar {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.search-bar input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-bar input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
|
|
}
|
|
|
|
/* Category Card Styles */
|
|
.component-categories {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.category-card {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-primary);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.category-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.category-card-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.category-icon {
|
|
font-size: 20px;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.category-title {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.category-count {
|
|
font-size: 12px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.category-arrow {
|
|
margin-left: 12px;
|
|
font-size: 12px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
/* Category Content Styles */
|
|
.category-content {
|
|
display: none;
|
|
padding: 0 16px 16px 16px;
|
|
}
|
|
|
|
.category-card.expanded .category-arrow {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.category-card.expanded .category-content {
|
|
display: block;
|
|
}
|
|
|
|
/* Tree View Styles (inside category cards) */
|
|
.component-tree {
|
|
font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tree-node {
|
|
user-select: none;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tree-node-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s ease;
|
|
border-radius: 6px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.tree-node-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.tree-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 6px;
|
|
font-size: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.folder-icon {
|
|
color: #dcb67a;
|
|
}
|
|
|
|
.file-icon {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.tree-label {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tree-count {
|
|
font-size: 11px;
|
|
background: var(--text-accent);
|
|
color: white;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
margin-left: 8px;
|
|
font-weight: 500;
|
|
min-width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tree-arrow {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 4px;
|
|
color: var(--text-accent);
|
|
font-size: 10px;
|
|
transition: transform 0.15s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tree-node-header.expanded .tree-arrow {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.tree-children {
|
|
display: none;
|
|
margin-left: 20px;
|
|
border-left: 1px solid var(--border-color);
|
|
padding-left: 12px;
|
|
margin-top: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.tree-children.expanded {
|
|
display: block;
|
|
}
|
|
|
|
.tree-file {
|
|
padding: 8px 12px;
|
|
margin: 3px 0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.tree-file:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.tree-file.dragging {
|
|
opacity: 0.6;
|
|
transform: rotate(2deg);
|
|
}
|
|
|
|
.tree-file-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tree-file-name {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tree-file-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.tree-file:hover .tree-file-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tree-action-btn {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-accent);
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.tree-action-btn:hover {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
/* Workflow Canvas */
|
|
.workflow-canvas {
|
|
flex: 1;
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.canvas-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.canvas-header h2 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.canvas-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-primary, .btn-secondary {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #D97706;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.workflow-steps {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
max-height: calc(100vh - 200px);
|
|
position: relative;
|
|
padding-left: 60px;
|
|
}
|
|
|
|
.drop-zone-header {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.workflow-stats {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.drop-zone {
|
|
flex: 1;
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.drop-zone.drag-over {
|
|
border-color: var(--accent-color);
|
|
background: rgba(234, 88, 12, 0.05);
|
|
border-style: solid;
|
|
transform: scale(1.02);
|
|
box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
.drop-zone-content {
|
|
text-align: center;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.drop-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 16px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.drop-zone p {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.drop-hint {
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.workflow-step {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
margin: 0 0 16px 30px;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.workflow-step:before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -15px;
|
|
top: -16px;
|
|
height: calc(100% + 16px);
|
|
border-left: 2px dashed var(--border-primary);
|
|
}
|
|
|
|
.workflow-step:first-child:before {
|
|
top: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.workflow-step:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.step-number {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
margin-right: 16px;
|
|
flex-shrink: 0;
|
|
position: absolute;
|
|
left: -46px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
border: 3px solid var(--bg-secondary);
|
|
}
|
|
|
|
.step-icon {
|
|
font-size: 24px;
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.step-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.step-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.step-type {
|
|
font-size: 12px;
|
|
color: var(--text-accent);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.step-description {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.step-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.step-action {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: transparent;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.step-action:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.step-action.remove:hover {
|
|
background: #FEE2E2;
|
|
border-color: #DC2626;
|
|
color: #DC2626;
|
|
}
|
|
|
|
/* Properties Modal */
|
|
.property-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.property-section label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.property-section input,
|
|
.property-section textarea {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.property-section input:focus,
|
|
.property-section textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
|
|
}
|
|
|
|
.property-section small {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: var(--text-accent);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-primary);
|
|
margin: 5% auto;
|
|
padding: 0;
|
|
border-radius: 12px;
|
|
width: 90%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.close {
|
|
color: var(--text-accent);
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 20px 24px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
border-radius: 0 0 12px 12px;
|
|
}
|
|
|
|
/* Component Modal Specific Styles */
|
|
.component-modal {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
max-width: 700px;
|
|
}
|
|
|
|
.component-modal .modal-header {
|
|
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.component-modal .modal-body {
|
|
padding: 0;
|
|
}
|
|
|
|
.component-detail-info {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.detail-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.detail-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.detail-item strong {
|
|
color: var(--text-primary);
|
|
margin-right: 8px;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.detail-item span {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.component-description {
|
|
padding: 20px 24px;
|
|
}
|
|
|
|
.component-description h4 {
|
|
margin: 0 0 12px 0;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.component-description div {
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.component-usage {
|
|
padding: 20px 24px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.component-usage h4 {
|
|
margin: 0 0 12px 0;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.usage-command {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: var(--bg-tertiary);
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.usage-command code {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
|
|
font-size: 13px;
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.btn-copy {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.btn-copy:hover {
|
|
background: #d97706;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #d97706;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.modal-content {
|
|
background: #2c2c2c;
|
|
color: #f0f0f0;
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
width: 90%;
|
|
max-width: 800px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
border: 1px solid #444;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid #444;
|
|
padding-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: #aaa;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.component-title-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.component-icon {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.component-description {
|
|
font-size: 1rem;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.installation-command {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.installation-command h4 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 8px;
|
|
color: #bbb;
|
|
}
|
|
|
|
.command-block {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #1e1e1e;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.command-block code {
|
|
font-family: 'Fira Code', monospace;
|
|
flex-grow: 1;
|
|
color: #d4d4d4;
|
|
}
|
|
|
|
.command-block .copy-btn {
|
|
background: #444;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.component-preview h4 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 8px;
|
|
color: #bbb;
|
|
}
|
|
|
|
.code-viewer {
|
|
background: #1e1e1e;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
border: 1px solid #444;
|
|
font-family: 'Fira Code', 'Courier New', monospace;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 24px;
|
|
border-top: 1px solid #444;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
background: #2c2c2c;
|
|
border-radius: 0 0 12px 12px;
|
|
}
|
|
|
|
.btn-github {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: #333;
|
|
color: #fff;
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
border: 1px solid #555;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.btn-github:hover {
|
|
background: #444;
|
|
border-color: #777;
|
|
}
|
|
|
|
.btn-github svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.code-viewer pre {
|
|
margin: 0;
|
|
}
|
|
|
|
.code-viewer code {
|
|
font-family: 'Fira Code', monospace;
|
|
font-size: 0.9rem;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
color: #d4d4d4;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: scale(0.95); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
/* Hierarchical Workflow Structure */
|
|
.workflow-agent {
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
/* Vertical step line */
|
|
.workflow-steps::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 30px;
|
|
top: 20px;
|
|
bottom: 20px;
|
|
width: 2px;
|
|
background: linear-gradient(to bottom, var(--border-color) 50%, transparent 50%);
|
|
background-size: 2px 8px;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Step number circle on the left */
|
|
.workflow-agent::before {
|
|
content: attr(data-step-number);
|
|
position: absolute;
|
|
left: -45px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
z-index: 2;
|
|
border: 3px solid var(--bg-primary);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.workflow-agent:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.agent-header {
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px 6px 0 0;
|
|
}
|
|
|
|
/* Remove the old step number positioning */
|
|
.workflow-agent .step-number {
|
|
display: none;
|
|
}
|
|
|
|
.agent-header .step-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.agent-header .step-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.agent-header .step-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.agent-header .step-type {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.agent-content {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.agent-sub-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sub-item {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: all 0.2s ease;
|
|
margin-left: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.sub-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -15px;
|
|
top: 50%;
|
|
width: 10px;
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.sub-item:hover {
|
|
background: var(--bg-secondary);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.sub-item .step-number {
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--accent-color);
|
|
color: var(--accent-color);
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 0.7rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sub-item .step-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.sub-item .step-name {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sub-item .step-type {
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sub-item-drop-zone {
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 12px 16px;
|
|
margin: 8px 20px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
min-height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
word-wrap: break-word;
|
|
white-space: normal;
|
|
}
|
|
|
|
.sub-item-drop-zone:hover,
|
|
.sub-item-drop-zone.drag-over {
|
|
border-color: var(--accent-color);
|
|
background: rgba(245, 158, 11, 0.05);
|
|
color: var(--text-primary);
|
|
transform: scale(1.02);
|
|
box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.sub-item-drop-zone.empty {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.agent-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.agent-action, .sub-item-action {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.agent-action:hover, .sub-item-action:hover {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Add new agent indicator */
|
|
.add-agent-indicator {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 8px 0;
|
|
height: 40px;
|
|
}
|
|
|
|
.add-agent-indicator::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -45px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--bg-tertiary);
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 50%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.add-agent-btn {
|
|
background: var(--bg-tertiary);
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 20px;
|
|
padding: 8px 16px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.add-agent-btn:hover {
|
|
background: var(--bg-secondary);
|
|
border-color: var(--accent-color);
|
|
color: var(--text-primary);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.add-agent-btn.drag-over {
|
|
background: var(--bg-secondary);
|
|
border-color: var(--accent-color);
|
|
border-style: solid;
|
|
color: var(--text-primary);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
|
|
animation: pulse-glow 1s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes pulse-glow {
|
|
from {
|
|
box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
|
|
}
|
|
to {
|
|
box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
|
|
transform: scale(1.08);
|
|
}
|
|
}
|
|
|
|
.add-agent-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
opacity: 0.7;
|
|
} |