diff --git a/editor.html b/editor.html index 9498cc6..668ea2a 100644 --- a/editor.html +++ b/editor.html @@ -76,6 +76,104 @@ body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', syste .modal-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: flex-end; } .modal-actions button { padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); cursor: pointer; font-size: 12px; } .modal-actions .primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; } + +/* ===== Fullscreen Code Editor ===== */ +#code-editor-overlay { + position: fixed; inset: 0; z-index: 200; + background: rgba(0,0,0,0.85); + display: none; flex-direction: column; + align-items: center; justify-content: center; + padding: 20px; +} +#code-editor-overlay.show { display: flex; } + +#code-editor-panel { + width: min(900px, 95vw); height: min(680px, 90vh); + background: #1e1e2e; border: 1px solid #333; + border-radius: 8px; display: flex; flex-direction: column; + overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.6); +} + +/* Title bar (VSCode-like) */ +#code-editor-titlebar { + display: flex; align-items: center; gap: 10px; + padding: 8px 16px; background: #181825; + border-bottom: 1px solid #333; flex-shrink: 0; +} +#code-editor-titlebar .tab { + padding: 4px 12px; background: #1e1e2e; + border-radius: 4px 4px 0 0; font-size: 12px; + color: var(--accent); font-family: 'Cascadia Code', 'Fira Code', monospace; + border: 1px solid #333; border-bottom: 1px solid #1e1e2e; + margin-bottom: -1px; +} +#code-editor-titlebar .title-hint { + color: #666; font-size: 11px; margin-left: auto; +} +#code-editor-titlebar .close-x { + width: 28px; height: 28px; border: none; background: transparent; + color: #888; cursor: pointer; font-size: 18px; border-radius: 4px; + display: flex; align-items: center; justify-content: center; +} +#code-editor-titlebar .close-x:hover { background: #ff555530; color: var(--red); } + +/* Editor body */ +#code-editor-body { + flex: 1; display: flex; overflow: hidden; +} + +/* Line numbers gutter */ +#code-editor-gutter { + width: 48px; padding: 12px 8px 12px 0; + background: #181825; text-align: right; + font-family: 'Cascadia Code', 'Fira Code', monospace; + font-size: 13px; line-height: 1.6; + color: #555; user-select: none; overflow: hidden; + flex-shrink: 0; +} + +/* Main textarea */ +#code-editor-textarea { + flex: 1; resize: none; border: none; outline: none; + background: #1e1e2e; color: #cdd6f4; + font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; + font-size: 13px; line-height: 1.6; + padding: 12px 16px; tab-size: 2; + white-space: pre; overflow: auto; +} +#code-editor-textarea::selection { background: rgba(0,229,153,0.25); } + +/* Status bar */ +#code-editor-statusbar { + display: flex; align-items: center; gap: 16px; + padding: 4px 16px; background: #181825; + border-top: 1px solid #333; flex-shrink: 0; + font-size: 11px; color: #666; +} +#code-editor-statusbar .status-accent { color: var(--accent); } + +/* Bottom actions */ +#code-editor-actions { + display: flex; justify-content: flex-end; gap: 8px; + padding: 10px 16px; background: #181825; + border-top: 1px solid #333; flex-shrink: 0; +} +#code-editor-actions button { + padding: 6px 16px; border-radius: 4px; cursor: pointer; + font-size: 12px; font-weight: 600; border: 1px solid #333; +} +#code-editor-actions .btn-cancel { background: #2a2a3e; color: #aaa; } +#code-editor-actions .btn-cancel:hover { background: #333; } +#code-editor-actions .btn-save { background: var(--accent); color: #000; border-color: var(--accent); } +#code-editor-actions .btn-save:hover { filter: brightness(1.15); } + +/* Expand button for property panel */ +.btn-expand-code { + padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; + background: var(--bg); color: var(--text2); cursor: pointer; + font-size: 10px; transition: all 0.15s; flex-shrink: 0; +} +.btn-expand-code:hover { border-color: var(--accent); color: var(--accent); } @@ -182,6 +280,31 @@ body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', syste + +
+
+
+
verify.js
+ Module Verify Logic + +
+
+
+ +
+
+ JavaScript + Ln 1, Col 1 + UTF-8 + Tab Size: 2 +
+
+ + +
+
+
+