forked from SWE-agent/SWE-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
254 lines (250 loc) · 6.35 KB
/
style.css
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
}
h1, h2 {
color: #333;
}
#fileList {
list-style-type: none;
padding: 10px;
max-height: 400px;
overflow-y: auto;
margin: 0;
background-color: #eee;
border: 3px solid #1697e2;
border-radius: 10px;
}
#fileList li {
cursor: pointer;
padding: 10px;
background-color: #fff;
margin-bottom: 5px;
border: 2px solid #333;
border-radius: 5px;
transition: background-color 0.3s;
}
#fileList li:hover {
background-color: #bbb;
}
#fileList li.selected {
border-color: #fabb00;
}
#fileContent {
background-color: #fff;
border: 1px solid #ddd;
padding: 10px;
margin-top: 20px;
white-space: pre-wrap;
}
.button-container {
display: flex;
justify-content: center;
align-items: center;
}
#refreshButton {
padding: 4px 10px;
min-width: 80px;
border: none;
font: inherit;
color: #373030;
border-radius: 10px;
outline: none;
text-decoration: none;
cursor: default;
font-weight: 400;
background: #fff;
box-shadow: 0px 0px 1px #0000004d, 0px 1px 1px #00000066;
}
#refreshButton:hover {
/* hover MUST come before active */
background: linear-gradient(#0000004d, #00000066);
color: #fff;
position: relative;
}
#refreshButton:active {
background: linear-gradient(#4faefc, #006bff);
color: #fff;
position: relative;
}
.history-item {
border: 3px solid black;
border-radius: 5px;
padding: 0px;
/* padding-bottom: 5%; */
margin-bottom: 15px;
overflow-x: hidden;
white-space: normal;
/* overflow-x: auto; Enables horizontal scrolling */
/* white-space: nowrap; Keeps content in a single line */
max-height: 450px; /* Adjust as needed for 25 lines */
overflow: hidden;
position: relative;
}
.shadow {
height: 30px; /* Height of the shadow */
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
position: absolute;
bottom: 0;
left: 0;
right: 0;
pointer-events: none; /* Ensures the shadow doesn't interfere with interaction */
display: none; /* Initially hidden */
}
.has-shadow .shadow {
display: block;
}
.content-container {
max-height: 400px; /* Adjust as needed */
overflow-y: auto;
position: relative;
padding: 10px;
}
.content-container pre {
white-space: pre-wrap; /* Wrap lines and preserve whitespace */
overflow-wrap: break-word; /* Handle long words */
}
.container {
max-width: 1000px;
margin: 0 auto; /* Centers the container */
padding: 20px; /* Optional: for some inner spacing */
}
.role-bar {
background-color: #fff;
padding: 5px 10px;
margin: 0;
border-bottom: 1px solid #fff;
font-size: 18px;
display: flex;
align-items: center;
background-repeat: no-repeat;
background-size: 22px 22px;
padding-left: 35px; /* Adjust according to your icon size */
padding-right: 35px; /* Same padding on the right for balance */
}
.role-bar.user {
background-image: url('icons/swellama_brown.png');
background-color: #9cdcff;
justify-content: flex-end; /* Aligns content to the right */
background-position: right 10px center; /* Moves the image to the right */
text-align: right; /* Text aligned right */
}
.role-bar.tool {
background-image: url('icons/swellama_brown.png');
background-color: #1eacf8;
justify-content: flex-end; /* Aligns content to the right */
background-position: right 10px center; /* Moves the image to the right */
text-align: right; /* Text aligned right */
}
.role-bar.system {
background-image: url('icons/swellama_blue.png');
background-color: #8aa8bd;
justify-content: center; /* Center the flex container contents */
background-position: calc(50% - 32px) center; /* Adjust position */
text-align: center; /* Center the text */
}
.role-bar.system span {
padding-left: 32px;
}
.role-bar.subroutine {
background-image: url('icons/swellama_blue.png');
background-color: #7bb776;
justify-content: center;
background-position: calc(50% - 45px) center;
text-align: center;
}
.role-bar.subroutine span {
padding-left: 45px;
}
.role-bar.model-patch {
background-image: url('icons/swellama_blue.png');
background-color: #bdbdbd;
justify-content: center;
background-position: calc(50% - 45px) center;
text-align: center;
}
.role-bar.gold-patch {
background-image: url('icons/swellama_blue.png');
background-color: #ffc65b;
justify-content: center;
background-position: calc(50% - 46px) center;
text-align: center;
}
.role-bar.gold-patch span {
padding-left: 46px;
}
.role-bar.test-patch {
background-image: url('icons/swellama_blue.png');
background-color: #8888ff;
justify-content: center;
background-position: calc(50% - 46px) center;
text-align: center;
}
.role-bar.test-patch span {
padding-left: 46px;
}
.role-bar.assistant {
background-image: url('icons/swe-agent-logo-50.png');
background-color: #FFF7EC;
background-position: left 10px center;
}
.role-bar.evaluation-report {
background-image: url('icons/swellama_blue.png');
background-color: #86ad7a;
justify-content: center;
background-position: calc(50% - 96px) center;
text-align: center;
}
.role-bar.evaluation-report span {
padding-left: 23px;
}
.history-item.user {
border-color: #1697e2;
}
.history-item.tool {
border-color: #1483c3;
}
.history-item.system {
border-color: #004b80;
}
.history-item.subroutine {
border-color: #006b00;
}
.history-item.gold-patch {
border-color: #fabb00;
}
.history-item.assistant {
border-color: rgb(0, 0, 0);
}
.history-item.test-patch {
border-color: #7373d9;
}
.history-item.evaluation-report {
border-color: #35614b;
}
/* filepath-tree stuff */
.filepath {
display: flex;
flex-direction: column; /* Changes layout to one part per line */
align-items: flex-start; /* Aligns parts to the start of the container */
font-size: 16px;
gap: 10px;
padding: 5px;
background-color: #f4f4f4;
}
.part {
border: 1px solid #ddd;
white-space: nowrap; /* Prevents wrapping within parts */
padding: 5px;
background-color: #fff;
border-radius: 5px;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.fade-in {
animation: fadeIn 1s ease-out;
}