|
85 | 85 | #docify-content, #validation-content { |
86 | 86 | overflow: auto; |
87 | 87 | flex: 1 1 auto; |
88 | | - padding: 6px; |
| 88 | + padding: 6px; /* Remove padding to allow diagram containers full width */ |
89 | 89 | background: transparent; |
90 | 90 | } |
91 | 91 |
|
@@ -277,4 +277,95 @@ body { |
277 | 277 | overflow: hidden; |
278 | 278 | } |
279 | 279 |
|
| 280 | +/* Diagram zoom and pan controls */ |
| 281 | +.diagram-controls { |
| 282 | + position: absolute; |
| 283 | + top: 16px; |
| 284 | + right: 16px; |
| 285 | + z-index: 1000; |
| 286 | + display: flex; |
| 287 | + gap: 4px; |
| 288 | + background: var(--vscode-editor-background, #fff); |
| 289 | + border: 1px solid var(--vscode-editorWidget-border, #ddd); |
| 290 | + border-radius: 6px; |
| 291 | + padding: 4px; |
| 292 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 293 | +} |
| 294 | + |
| 295 | +.diagram-control-btn { |
| 296 | + appearance: none; |
| 297 | + background-color: var(--vscode-button-background); |
| 298 | + color: var(--vscode-button-foreground); |
| 299 | + border: 1px solid var(--vscode-button-border, transparent); |
| 300 | + border-radius: 4px; |
| 301 | + padding: 6px 10px; |
| 302 | + font-size: 14px; |
| 303 | + line-height: 1; |
| 304 | + cursor: pointer; |
| 305 | + min-width: 32px; |
| 306 | + display: flex; |
| 307 | + align-items: center; |
| 308 | + justify-content: center; |
| 309 | + transition: background-color 0.2s; |
| 310 | +} |
| 311 | + |
| 312 | +.diagram-control-btn:hover { |
| 313 | + background-color: var(--vscode-button-hoverBackground); |
| 314 | +} |
| 315 | + |
| 316 | +.diagram-control-btn:focus-visible { |
| 317 | + outline: 1px solid var(--vscode-focusBorder); |
| 318 | + outline-offset: 2px; |
| 319 | +} |
| 320 | + |
| 321 | +.diagram-control-btn:active { |
| 322 | + transform: translateY(1px); |
| 323 | +} |
| 324 | + |
| 325 | +.diagram-control-btn:disabled { |
| 326 | + opacity: 0.5; |
| 327 | + cursor: not-allowed; |
| 328 | +} |
| 329 | + |
| 330 | +/* Mermaid diagram container styling */ |
| 331 | +.mermaid-diagram-container { |
| 332 | + position: relative; |
| 333 | + width: 100%; |
| 334 | + height: 600px; |
| 335 | + margin: 16px 0; |
| 336 | + border: 1px solid var(--vscode-editorWidget-border, #ddd); |
| 337 | + border-radius: 6px; |
| 338 | + background: var(--vscode-editor-background, #fff); |
| 339 | + overflow: hidden; |
| 340 | +} |
| 341 | + |
| 342 | +.mermaid-diagram-container svg { |
| 343 | + display: block; |
| 344 | +} |
| 345 | + |
| 346 | +/* Clickable nodes and edges in Mermaid diagrams */ |
| 347 | +.clickable-node, |
| 348 | +.clickable-edge { |
| 349 | + cursor: pointer !important; |
| 350 | + transition: opacity 0.2s ease; |
| 351 | +} |
| 352 | + |
| 353 | +.clickable-node:hover { |
| 354 | + opacity: 0.7; |
| 355 | +} |
| 356 | + |
| 357 | +.clickable-edge:hover { |
| 358 | + opacity: 0.8; |
| 359 | +} |
| 360 | + |
| 361 | +/* Back button styles */ |
| 362 | +#back-button:hover { |
| 363 | + background: var(--vscode-button-secondaryHoverBackground); |
| 364 | + opacity: 0.9; |
| 365 | +} |
| 366 | + |
| 367 | +#back-button:active { |
| 368 | + transform: translateY(1px); |
| 369 | +} |
| 370 | + |
280 | 371 | /* End of styles */ |
0 commit comments