-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyles.css.old
210 lines (183 loc) · 3.85 KB
/
styles.css.old
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/* Reset margins and paddings */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', sans-serif;
height: 100vh; /* Keep the entire layout at 100vh */
display: flex;
justify-content: center;
align-items: center;
background-color: #1e1e2f;
overflow: hidden; /* Prevent body from scrolling */
}
.container {
display: flex;
width: 100vw;
height: 100vh; /* Keep the container at 100vh */
background-color: #2e2e3e;
overflow: hidden; /* Ensure no page-level scrolling */
}
/* Chat Section Styling */
.chat-section {
flex: 1;
background-color: #2c3e50;
color: #ecf0f1;
padding: 20px;
display: flex;
flex-direction: column;
height: 100%; /* Fill the available height */
}
#chatInput {
width: 100%;
height: 100px;
margin-top: 10px;
margin-bottom: 10px;
border: none;
padding: 10px;
border-radius: 5px;
background-color: #34495e;
color: #ecf0f1;
font-size: 16px;
resize: none;
}
#sendChat {
padding: 10px;
background-color: #1abc9c;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#sendChat:hover {
background-color: #16a085;
}
#chatMessages {
margin-top: 20px;
overflow-y: auto;
flex-grow: 1;
background-color: #34495e;
padding: 10px;
border-radius: 5px;
}
/* Styling Markdown-rendered content */
#chatMessages p {
margin-bottom: 15px;
}
#chatMessages p strong {
display: block;
margin-bottom: 5px;
}
#chatMessages p {
padding: 8px;
color: #ecf0f1;
}
#chatMessages ul {
margin-left: 20px;
padding: 8px;
color: #ecf0f1;
}
#chatMessages h1, h2, h3, h4 {
color: #f1c40f;
margin-bottom: 10px;
}
#chatMessages code {
background-color: #2c3e50;
color: #e74c3c;
padding: 2px 4px;
border-radius: 3px;
}
/* Function Call Styling */
.gpt-function-call {
background-color: #1b2631;
color: #f1c40f;
padding: 12px;
border-radius: 5px;
font-family: 'Courier New', Courier, monospace;
margin-top: 15px;
margin-bottom: 15px;
}
.gpt-function-call strong {
color: #ecf0f1;
}
/* Right Section (Editor and Output) */
.right-section {
flex: 2;
display: flex;
flex-direction: column;
height: 100%; /* Fill available height */
}
.editor-output-container {
display: flex;
flex: 1;
height: 100%; /* Make sure the editor/output container expands fully */
}
/* Code Editor Section (Dark Mode) */
.editor-section {
flex: 1;
margin-right: 10px;
display: flex;
flex-direction: column;
color: #f8f8f2;
}
.editor-section h2 {
color: #f8f8f2;
margin-bottom: 10px;
margin-left: 10px;
}
#codeEditor {
flex-grow: 1;
width: 100%;
padding: 0px;
background-color: #1e1e2f;
border: none;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
color: #f8f8f2;
}
/* CodeMirror Editor Full Height with Scroll */
.CodeMirror {
height: 100% !important; /* Take full height */
box-sizing: border-box;
border-radius: 5px;
}
/* Ensure scroll if content overflows */
.CodeMirror-scroll {
height: 100%;
overflow-y: auto; /* Scroll if content overflows */
}
/* Output (Iframe Preview) Section */
.output-section {
flex: 1;
display: flex;
flex-direction: column;
}
.output-section h2 {
color: #f8f8f2;
margin-bottom: 10px;
}
#codeOutput {
flex-grow: 1;
width: 100%;
border: 1px solid #4e4e5e;
border-radius: 5px;
background-color: #1e1e2f;
overflow-y: auto; /* Allow the iframe to scroll */
}
/* User and GPT Messages */
.user-message {
background-color: #34495e;
padding: 10px;
border-radius: 5px;
margin: 10px 0;
color: #ecf0f1;
}
.gpt-message {
background-color: #2c3e50;
padding: 10px;
border-radius: 5px;
margin: 10px 0;
color: #ecf0f1;
}