:root { --ui-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } .app-header { background: #f5f5f5; padding: 0.75rem 1rem; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; gap: 0.75rem; justify-content: space-between; } .app-header a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; transition: opacity 0.2s; } .app-header a:hover { opacity: 0.8; } .app-header img { width: 24px; height: 24px; } .app-header h1 { font-family: var(--ui-font); font-size: 1.25rem; font-weight: 600; color: #333; margin: 0; } .header-controls { display: flex; gap: 0.5rem; } .button.mini { padding: 0.25rem 0.75rem; font-size: 0.875rem; background: #607D8B; } .button.mini:hover { background: #546E7A; } #vis { width: 100%; height: 100%; padding: 1rem; } * { margin: 0; padding: 0; box-sizing: border-box; } /* Apply font to UI elements */ .panel-header, .button, .snippet-item, .snippet-content { font-family: var(--ui-font); } .panel-header h2 { font-weight: 600; font-size: 1.125rem; } .button { font-weight: 500; } .snippet-content { font-size: 0.925rem; } .container { display: grid; grid-template-rows: auto 1fr; grid-template-columns: var(--snippet-width, 1fr) 5px var(--editor-width, 1fr) 5px var(--preview-width, 2fr); height: 100vh; background-color: #e0e0e0; } .app-header { grid-column: 1 / -1; } .panel { background: white; overflow-y: auto; display: flex; flex-direction: column; } .panel-header { padding: 1rem; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; background: #f5f5f5; } .resize-handle { background-color: #e0e0e0; cursor: col-resize; transition: background-color 0.2s; } .resize-handle:hover, .resize-handle.active { background-color: #2196F3; } .button { padding: 0.5rem 1rem; background: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } .button:hover { background: #45a049; } .button:disabled { background: #cccccc; cursor: not-allowed; } .button.secondary { background: #607D8B; } .button.secondary:hover { background: #546E7A; } .snippet-list { padding: 1rem; flex-grow: 1; } .snippet-item { padding: 0.75rem; margin: 0.5rem 0; background: #f5f5f5; border-radius: 4px; cursor: pointer; transition: background 0.2s; } .snippet-item:hover { background: #eeeeee; } .snippet-item.active { background: #e3f2fd; border-left: 4px solid #2196F3; } #monaco-editor { height: 100%; flex-grow: 1; } .preview-panel>*:not(.panel-header) { padding: 1rem; } .editor-controls { display: flex; gap: 0.5rem; align-items: center; } .snippet-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; cursor: pointer; gap: 8px; } .snippet-item span { cursor: pointer; } .snippet-content { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .delete-snippet, .edit-snippet, .duplicate-snippet, .comment-snippet { opacity: 0.2; font-size: 14px; padding: 2px 4px; background: none; border: none; cursor: pointer; min-width: 24px; transition: opacity 0.2s; } .snippet-item:hover .delete-snippet, .snippet-item:hover .edit-snippet, .snippet-item:hover .duplicate-snippet, .snippet-item:hover .comment-snippet { opacity: 0.6; } .snippet-item.active .delete-snippet, .snippet-item.active .edit-snippet, .snippet-item.active .duplicate-snippet, .snippet-item.active .comment-snippet { opacity: 1; } .comment-snippet.has-comment { opacity: 0.4; } .snippet-item:hover .comment-snippet.has-comment { opacity: 0.6; } .snippet-item.active .comment-snippet.has-comment { opacity: 1; } .snippet-buttons { display: flex; gap: 4px; } .comment-modal { display: none; position: fixed; top: 50%; left: 50%; width: 50%; height: 50%; transform: translate(-50%, -50%); background: white; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); z-index: 1001; font-family: var(--ui-font); } .comment-modal h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; } .comment-modal textarea { width: 100%; height: calc(100% - 2rem); margin-bottom: 1rem; font-family: var(--ui-font); font-size: 1rem; padding: 0.5rem; border: 1px solid #e0e0e0; border-radius: 4px; } .comment-modal .button { display: block; margin: 0 auto; font-family: var(--ui-font); } .comment-modal-background { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; } .comment-snippet { opacity: 0; font-size: 14px; padding: 2px 4px; background: none; border: none; cursor: pointer; min-width: 24px; transition: opacity 0.2s; } .comment-snippet.has-comment { opacity: 0.4; } .snippet-item:hover .comment-snippet, .snippet-item.active .comment-snippet { opacity: 0.4; } .snippet-item:hover .comment-snippet.has-comment, .snippet-item.active .comment-snippet.has-comment { opacity: 1; } .comment-snippet:hover { opacity: 1; } .snippet-item:hover .comment-snippet { opacity: 0.8; } .snippet-search { width: 100%; padding: 0.5rem; margin-bottom: 1rem; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 1rem; } #comment-editor { width: 100%; height: calc(100% - 2rem); margin-bottom: 1rem; } .header-left { display: flex; align-items: center; gap: 0.75rem; } .about-link { font-family: var(--ui-font); font-size: 1rem; color: #607D8B; text-decoration: none; transition: color 0.2s; padding-left: 1rem; } .about-link:hover { color: #546E7A; } .content { max-width: 66%; margin: 0 auto; padding: 2rem 0; font-family: var(--ui-font); font-size: 1rem; line-height: 1.5; color: #333; } .content h2 { font-size: 1.5rem; font-weight: 600; margin-top: 1.5rem; } .content p { margin-bottom: 1rem; } .content a { color: #2196F3; text-decoration: none; } .content a:hover { text-decoration: underline; } .content ul { padding-left: 1.5rem; margin-bottom: 1rem; } .content li { margin-bottom: 0.5rem; } .footer { text-align: center; font-size: 0.875rem; padding: 1rem 0; background: #f5f5f5; border-top: 1px solid #e0e0e0; font-family: var(--ui-font); } .footer p { margin: 0; color: #333; } .footer a { color: #2196F3; text-decoration: none; } .footer a:hover { text-decoration: underline; }