-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathPythonCodeEditor.css
More file actions
122 lines (105 loc) · 2.02 KB
/
Copy pathPythonCodeEditor.css
File metadata and controls
122 lines (105 loc) · 2.02 KB
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
/* Python Code Editor Styles */
.python-code-editor {
border: 1px solid #333;
border-radius: 8px;
background: #1e1e1e;
color: #d4d4d4;
margin: 10px 0;
}
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background: #2d2d30;
border-bottom: 1px solid #333;
border-radius: 8px 8px 0 0;
}
.editor-header h3 {
margin: 0;
color: #d4d4d4;
font-size: 16px;
font-weight: 500;
}
.execute-btn {
background: #007acc;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.execute-btn:hover:not(:disabled) {
background: #005a9e;
}
.execute-btn:disabled {
background: #555;
cursor: not-allowed;
}
.editor-container {
border-radius: 0 0 8px 8px;
overflow: hidden;
}
.execution-result {
margin-top: 10px;
padding: 15px;
border-radius: 4px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.execution-result.success {
background: #1e3a1e;
border: 1px solid #4caf50;
}
.execution-result.error {
background: #3a1e1e;
border: 1px solid #f44336;
}
.result-header {
margin-bottom: 10px;
font-weight: bold;
}
.output pre {
background: #2d2d30;
padding: 10px;
border-radius: 4px;
margin: 5px 0;
white-space: pre-wrap;
word-wrap: break-word;
}
.variables ul,
.functions ul {
list-style: none;
padding: 0;
margin: 5px 0;
}
.variables li,
.functions li {
background: #2d2d30;
padding: 5px 10px;
margin: 2px 0;
border-radius: 3px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.variables code,
.functions code {
color: #9cdcfe;
background: transparent;
}
.error-message pre {
background: #3a1e1e;
padding: 10px;
border-radius: 4px;
margin: 5px 0;
white-space: pre-wrap;
word-wrap: break-word;
color: #ff9999;
}
/* Dark theme adjustments */
.python-code-editor .monaco-editor {
background: #1e1e1e !important;
}
.python-code-editor .monaco-editor .margin {
background: #1e1e1e !important;
}