Spaces:
Running
Running
File size: 2,729 Bytes
0d779c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | /* 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; }
}
|