Spaces:
Running
Running
| /* static/css/editor.css */ | |
| .editor-layout { | |
| display: flex; | |
| flex: 1; | |
| height: calc(100vh - 65px); | |
| padding: 20px; | |
| gap: 20px; | |
| box-sizing: border-box; | |
| } | |
| /* Left: File Explorer */ | |
| .file-explorer { | |
| width: 250px; | |
| background: rgba(15, 15, 18, 0.7); | |
| backdrop-filter: var(--backdrop-blur); | |
| border: var(--glass-border); | |
| border-radius: 12px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .explorer-header { | |
| padding: 15px; | |
| background: rgba(0, 0, 0, 0.4); | |
| border-bottom: var(--glass-border); | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .file-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 10px; | |
| } | |
| .file-item { | |
| padding: 8px 12px; | |
| color: var(--text-secondary); | |
| font-size: 13px; | |
| cursor: pointer; | |
| border-radius: 6px; | |
| margin-bottom: 2px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| transition: 0.2s; | |
| } | |
| .file-item:hover, .file-item.active { | |
| background: rgba(255, 193, 7, 0.1); | |
| color: var(--accent-main); | |
| } | |
| /* Center: Code Editor */ | |
| .editor-main { | |
| flex: 2; | |
| background: rgba(10, 10, 12, 0.9); | |
| border: var(--glass-border); | |
| border-radius: 12px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.5); | |
| } | |
| .editor-toolbar { | |
| height: 45px; | |
| background: rgba(20, 20, 25, 0.8); | |
| border-bottom: var(--glass-border); | |
| display: flex; | |
| align-items: center; | |
| padding: 0 15px; | |
| gap: 10px; | |
| } | |
| .filename-input { | |
| background: rgba(0,0,0,0.5); | |
| border: 1px solid rgba(255,255,255,0.1); | |
| color: white; | |
| padding: 6px 12px; | |
| border-radius: 4px; | |
| font-family: var(--font-mono); | |
| font-size: 13px; | |
| width: 200px; | |
| } | |
| .editor-btn { | |
| background: transparent; | |
| color: var(--text-secondary); | |
| border: 1px solid rgba(255,255,255,0.1); | |
| padding: 6px 12px; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 12px; | |
| font-weight: 600; | |
| transition: 0.2s; | |
| } | |
| .editor-btn:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| color: white; | |
| } | |
| .editor-btn.primary { | |
| background: rgba(255, 193, 7, 0.1); | |
| color: var(--accent-main); | |
| border-color: rgba(255, 193, 7, 0.3); | |
| } | |
| .editor-btn.primary:hover { | |
| background: var(--accent-main); | |
| color: black; | |
| } | |
| .editor-btn.ai { | |
| background: rgba(0, 230, 118, 0.1); | |
| color: #00e676; | |
| border-color: rgba(0, 230, 118, 0.3); | |
| } | |
| #ace-editor { | |
| flex: 1; | |
| width: 100%; | |
| } | |
| /* Mobile Adjustments */ | |
| @media (max-width: 1024px) { | |
| .editor-layout { flex-direction: column; } | |
| .file-explorer { width: 100%; height: 200px; flex: none; } | |
| } | |