Features implemented: - Visual node/edge editing with property panels - Drag and drop node positioning - Color customization for nodes and edges - Text editing with real-time updates - Bidirectional Mermaid code synchronization - Subgraph/grouping support for layout control - Export functionality to JSON with position data - Layout lock system (experimental) - Edge label editing and styling - Comprehensive Mermaid syntax parser 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
102 lines
No EOL
1.5 KiB
CSS
102 lines
No EOL
1.5 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
header {
|
|
background-color: #333;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
main {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.input-area, .output-area {
|
|
width: 48%;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
button {
|
|
margin-top: 1rem;
|
|
padding: 0.5rem 1rem;
|
|
background-color: #333;
|
|
color: #fff;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
footer {
|
|
background-color: #333;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 1rem;
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
#mermaidOutput {
|
|
border: 1px solid #ccc;
|
|
padding: 1rem;
|
|
min-height: 300px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#mermaidOutput svg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
|
|
.mermaid-diagram {
|
|
font-family: 'Montserrat', sans-serif;
|
|
}
|
|
|
|
.mermaid-diagram .node rect,
|
|
.mermaid-diagram .node circle,
|
|
.mermaid-diagram .node ellipse,
|
|
.mermaid-diagram .node polygon,
|
|
.mermaid-diagram .node path {
|
|
fill: #ECECFF;
|
|
stroke: #9370DB;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.mermaid-diagram .edgePath .path {
|
|
stroke: #333333;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.mermaid-diagram .cluster rect {
|
|
fill: #FFFFDE;
|
|
stroke: #AAAA33;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.mermaid-diagram .label {
|
|
font-family: 'Montserrat', sans-serif;
|
|
color: #333333;
|
|
}
|
|
|
|
.mermaid-diagram .cluster-label,
|
|
.mermaid-diagram .nodeLabel {
|
|
font-family: 'Montserrat', sans-serif;
|
|
} |