update: PythonEditor.tsx
This commit is contained in:
@@ -1048,6 +1048,7 @@ button {
|
||||
}
|
||||
|
||||
.editor-canvas {
|
||||
position: relative;
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
@@ -1990,6 +1991,81 @@ button {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Save button — green primary tone for python editor */
|
||||
.editor-toolbar__actions .editor-save-button {
|
||||
color: #1f6d3a;
|
||||
background: #f1faf3;
|
||||
border-color: #b8dec1;
|
||||
font-weight: 600;
|
||||
}
|
||||
.editor-toolbar__actions .editor-save-button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.editor-toolbar__actions .editor-save-button.is-saving {
|
||||
color: #1f6d3a;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.editor-toolbar__actions .editor-save-button .button-spinner {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
/* Dirty banner — top of editor canvas */
|
||||
.editor-dirty-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 14px;
|
||||
background: #fff7e6;
|
||||
border-bottom: 1px solid #f0d8a8;
|
||||
color: #9b6a18;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.editor-dirty-banner::before {
|
||||
content: "●";
|
||||
color: #d49b00;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Python editor wrapper */
|
||||
.python-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.python-editor__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 4px 14px;
|
||||
background: #f5f7fa;
|
||||
border-bottom: 1px solid #e6e8ec;
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
}
|
||||
.python-editor__canvas {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* Python editor mount — multiple instances, only active visible */
|
||||
.python-editor-mount {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* ============ 只读编辑器样式 ============ */
|
||||
.readonly-editor-container {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user