style.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. body {
  2. font-family: Arial, sans-serif;
  3. margin: 0;
  4. padding: 20px;
  5. background-color: #f4f4f4;
  6. }
  7. h1,
  8. h2 {
  9. color: #333;
  10. }
  11. #fileList {
  12. list-style-type: none;
  13. padding: 10px;
  14. max-height: 400px;
  15. overflow-y: auto;
  16. margin: 0;
  17. background-color: #eee;
  18. border: 3px solid #1697e2;
  19. border-radius: 10px;
  20. }
  21. #fileList li {
  22. cursor: pointer;
  23. padding: 10px;
  24. background-color: #fff;
  25. margin-bottom: 5px;
  26. border: 2px solid #333;
  27. border-radius: 5px;
  28. transition: background-color 0.3s;
  29. }
  30. #fileList li:hover {
  31. background-color: #bbb;
  32. }
  33. #fileList li.selected {
  34. border-color: #fabb00;
  35. }
  36. #fileContent {
  37. background-color: #fff;
  38. border: 1px solid #ddd;
  39. padding: 10px;
  40. margin-top: 20px;
  41. white-space: pre-wrap;
  42. }
  43. .button-container {
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. }
  48. #refreshButton {
  49. padding: 4px 10px;
  50. min-width: 80px;
  51. border: none;
  52. font: inherit;
  53. color: #373030;
  54. border-radius: 10px;
  55. outline: none;
  56. text-decoration: none;
  57. cursor: default;
  58. font-weight: 400;
  59. background: #fff;
  60. box-shadow:
  61. 0px 0px 1px #0000004d,
  62. 0px 1px 1px #00000066;
  63. }
  64. #refreshButton:hover {
  65. /* hover MUST come before active */
  66. background: linear-gradient(#0000004d, #00000066);
  67. color: #fff;
  68. position: relative;
  69. }
  70. #refreshButton:active {
  71. background: linear-gradient(#4faefc, #006bff);
  72. color: #fff;
  73. position: relative;
  74. }
  75. .history-item {
  76. border: 3px solid black;
  77. border-radius: 5px;
  78. padding: 0px;
  79. /* padding-bottom: 5%; */
  80. margin-bottom: 15px;
  81. overflow-x: hidden;
  82. white-space: normal;
  83. /* overflow-x: auto; Enables horizontal scrolling */
  84. /* white-space: nowrap; Keeps content in a single line */
  85. max-height: 450px; /* Adjust as needed for 25 lines */
  86. overflow: hidden;
  87. position: relative;
  88. }
  89. .shadow {
  90. height: 30px; /* Height of the shadow */
  91. background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
  92. position: absolute;
  93. bottom: 0;
  94. left: 0;
  95. right: 0;
  96. pointer-events: none; /* Ensures the shadow doesn't interfere with interaction */
  97. display: none; /* Initially hidden */
  98. }
  99. .has-shadow .shadow {
  100. display: block;
  101. }
  102. .content-container {
  103. max-height: 400px; /* Adjust as needed */
  104. overflow-y: auto;
  105. position: relative;
  106. padding: 10px;
  107. }
  108. .content-container pre {
  109. white-space: pre-wrap; /* Wrap lines and preserve whitespace */
  110. overflow-wrap: break-word; /* Handle long words */
  111. }
  112. .container {
  113. max-width: 1000px;
  114. margin: 0 auto; /* Centers the container */
  115. padding: 20px; /* Optional: for some inner spacing */
  116. }
  117. .role-bar {
  118. background-color: #fff;
  119. padding: 5px 10px;
  120. margin: 0;
  121. border-bottom: 1px solid #fff;
  122. font-size: 18px;
  123. display: flex;
  124. align-items: center;
  125. background-repeat: no-repeat;
  126. background-size: 22px 22px;
  127. padding-left: 35px; /* Adjust according to your icon size */
  128. padding-right: 35px; /* Same padding on the right for balance */
  129. }
  130. .role-bar.user {
  131. background-image: url("icons/computer.png");
  132. background-color: #9cdcff;
  133. justify-content: flex-end; /* Aligns content to the right */
  134. background-position: right 10px center; /* Moves the image to the right */
  135. text-align: right; /* Text aligned right */
  136. }
  137. .role-bar.tool {
  138. background-image: url("icons/computer.png");
  139. background-color: #1eacf8;
  140. justify-content: flex-end; /* Aligns content to the right */
  141. background-position: right 10px center; /* Moves the image to the right */
  142. text-align: right; /* Text aligned right */
  143. }
  144. .role-bar.system {
  145. background-image: url("icons/computer.png");
  146. background-color: #8aa8bd;
  147. justify-content: center; /* Center the flex container contents */
  148. background-position: calc(50% - 32px) center; /* Adjust position */
  149. text-align: center; /* Center the text */
  150. }
  151. .role-bar.system span {
  152. padding-left: 32px;
  153. }
  154. .role-bar.subroutine {
  155. background-image: url("icons/computer.png");
  156. background-color: #7bb776;
  157. justify-content: center;
  158. background-position: calc(50% - 45px) center;
  159. text-align: center;
  160. }
  161. .role-bar.subroutine span {
  162. padding-left: 45px;
  163. }
  164. .role-bar.model-patch {
  165. background-image: url("icons/swellama_blue.png");
  166. background-color: #bdbdbd;
  167. justify-content: center;
  168. background-position: calc(50% - 45px) center;
  169. text-align: center;
  170. }
  171. .role-bar.gold-patch {
  172. background-image: url("icons/swellama_blue.png");
  173. background-color: #ffc65b;
  174. justify-content: center;
  175. background-position: calc(50% - 46px) center;
  176. text-align: center;
  177. }
  178. .role-bar.gold-patch span {
  179. padding-left: 46px;
  180. }
  181. .role-bar.test-patch {
  182. background-image: url("icons/swellama_blue.png");
  183. background-color: #8888ff;
  184. justify-content: center;
  185. background-position: calc(50% - 46px) center;
  186. text-align: center;
  187. }
  188. .role-bar.test-patch span {
  189. padding-left: 46px;
  190. }
  191. .role-bar.assistant {
  192. background-image: url("icons/swe-agent-logo-50.png");
  193. background-color: #fff7ec;
  194. background-position: left 10px center;
  195. }
  196. .role-bar.evaluation-report {
  197. background-image: url("icons/swellama_blue.png");
  198. background-color: #86ad7a;
  199. justify-content: center;
  200. background-position: calc(50% - 96px) center;
  201. text-align: center;
  202. }
  203. .role-bar.evaluation-report span {
  204. padding-left: 23px;
  205. }
  206. .history-item.user {
  207. border-color: #1697e2;
  208. }
  209. .history-item.tool {
  210. border-color: #1483c3;
  211. }
  212. .history-item.system {
  213. border-color: #004b80;
  214. }
  215. .history-item.subroutine {
  216. border-color: #006b00;
  217. }
  218. .history-item.gold-patch {
  219. border-color: #fabb00;
  220. }
  221. .history-item.assistant {
  222. border-color: rgb(0, 0, 0);
  223. }
  224. .history-item.test-patch {
  225. border-color: #7373d9;
  226. }
  227. .history-item.evaluation-report {
  228. border-color: #35614b;
  229. }
  230. /* filepath-tree stuff */
  231. .filepath {
  232. display: flex;
  233. flex-direction: column; /* Changes layout to one part per line */
  234. align-items: flex-start; /* Aligns parts to the start of the container */
  235. font-size: 16px;
  236. gap: 10px;
  237. padding: 5px;
  238. background-color: #f4f4f4;
  239. }
  240. .part {
  241. border: 1px solid #ddd;
  242. white-space: nowrap; /* Prevents wrapping within parts */
  243. padding: 5px;
  244. background-color: #fff;
  245. border-radius: 5px;
  246. }
  247. @keyframes fadeIn {
  248. from {
  249. opacity: 0;
  250. }
  251. to {
  252. opacity: 1;
  253. }
  254. }
  255. .fade-in {
  256. animation: fadeIn 1s ease-out;
  257. }