style.css 6.3 KB

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