2025-11-11 01:05:13 +01:00
|
|
|
.code-editor-overlay {
|
2025-11-11 17:57:45 +01:00
|
|
|
position: absolute;
|
2025-11-10 15:46:40 +01:00
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2025-11-11 01:05:13 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-11-11 17:57:45 +01:00
|
|
|
background: white;
|
|
|
|
|
z-index: 100;
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 16px 24px;
|
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-header .header-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-11 17:57:45 +01:00
|
|
|
.code-editor-header .preview-actions {
|
2025-11-10 15:46:40 +01:00
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-filename {
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror {
|
|
|
|
|
height: 100%;
|
|
|
|
|
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
background: white;
|
2025-11-11 01:05:13 +01:00
|
|
|
user-select: text !important;
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror * {
|
|
|
|
|
user-select: text !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-scroll {
|
|
|
|
|
cursor: text;
|
2025-11-10 15:46:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-gutters {
|
|
|
|
|
background: #f9f9f9;
|
|
|
|
|
border-right: 1px solid #ddd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-linenumber {
|
|
|
|
|
color: #999;
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-cursor {
|
|
|
|
|
border-left: 2px solid #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-selected {
|
|
|
|
|
background: #d7e8ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body .CodeMirror-line::selection,
|
|
|
|
|
.code-editor-body .CodeMirror-line > span::selection,
|
|
|
|
|
.code-editor-body .CodeMirror-line > span > span::selection {
|
|
|
|
|
background: #d7e8ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-editor-body textarea {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|