CodeStudio.css 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189
  1. /*
  2. Code Studio — Workbench stylesheet
  3. Layout follows the VS Code workbench convention:
  4. titlebar / menubar
  5. ┌───────────┬──────────────────────────────┬───────────┐
  6. │ activity │ editor stack │ aux bar │
  7. │ bar ├──────────────────────────────┤ (tools) │
  8. │ + sidebar │ bottom panel (terminal …) │ │
  9. └───────────┴──────────────────────────────┴───────────┘
  10. statusbar
  11. Every colour is driven by a CSS variable so the three colour schemes
  12. (blue / dark / light) can be swapped at runtime by changing the theme
  13. class on <body>. Never hard-code a colour below this block.
  14. */
  15. /* ═══════════════════════════════════════════════════════════════════
  16. Colour schemes
  17. ═══════════════════════════════════════════════════════════════════ */
  18. /* Default — dark blue (matches the ArozOS desktop accent) */
  19. body.theme-blue {
  20. --bg-title: #0a1320;
  21. --bg-activity: #0a1522;
  22. --bg-side: #0e1a2b;
  23. --bg-editor: #0d1b2e;
  24. --bg-panel: #0b1727;
  25. --bg-tab: #0b1726;
  26. --bg-tab-active: #0d1b2e;
  27. --bg-elevated: #15263d;
  28. --bg-hover: rgba(255, 255, 255, 0.06);
  29. --bg-active: rgba(59, 130, 246, 0.20);
  30. --bg-input: #0a1523;
  31. --border: #1c2f47;
  32. --border-strong: #27405e;
  33. --fg: #c8d6e8;
  34. --fg-strong: #ffffff;
  35. --fg-dim: #7c90aa;
  36. --fg-faint: #556882;
  37. --accent: #3b82f6;
  38. --accent-fg: #ffffff;
  39. --accent-dim: rgba(59, 130, 246, 0.35);
  40. --ok: #4ec9b0;
  41. --warn: #dcb67a;
  42. --err: #f4707a;
  43. --info: #6cb6ff;
  44. --shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
  45. --monaco-theme: "arozos-blue";
  46. }
  47. /* Neutral dark */
  48. body.theme-dark {
  49. --bg-title: #1a1a1a;
  50. --bg-activity: #1f1f1f;
  51. --bg-side: #252526;
  52. --bg-editor: #1e1e1e;
  53. --bg-panel: #1b1b1b;
  54. --bg-tab: #2d2d2d;
  55. --bg-tab-active: #1e1e1e;
  56. --bg-elevated: #2d2d30;
  57. --bg-hover: rgba(255, 255, 255, 0.07);
  58. --bg-active: rgba(0, 122, 204, 0.30);
  59. --bg-input: #1a1a1a;
  60. --border: #3c3c3c;
  61. --border-strong: #505050;
  62. --fg: #d4d4d4;
  63. --fg-strong: #ffffff;
  64. --fg-dim: #969696;
  65. --fg-faint: #6e6e6e;
  66. --accent: #0e8ad8;
  67. --accent-fg: #ffffff;
  68. --accent-dim: rgba(14, 138, 216, 0.35);
  69. --ok: #4ec9b0;
  70. --warn: #dcb67a;
  71. --err: #f48771;
  72. --info: #75beff;
  73. --shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
  74. --monaco-theme: "vs-dark";
  75. }
  76. /* Light */
  77. body.theme-light {
  78. --bg-title: #eceef1;
  79. --bg-activity: #eceef1;
  80. --bg-side: #f4f5f7;
  81. --bg-editor: #ffffff;
  82. --bg-panel: #f7f8fa;
  83. --bg-tab: #eceef1;
  84. --bg-tab-active: #ffffff;
  85. --bg-elevated: #ffffff;
  86. --bg-hover: rgba(0, 0, 0, 0.05);
  87. --bg-active: rgba(0, 102, 184, 0.14);
  88. --bg-input: #ffffff;
  89. --border: #dcdfe4;
  90. --border-strong: #c3c8d0;
  91. --fg: #2f333a;
  92. --fg-strong: #10131a;
  93. --fg-dim: #646b76;
  94. --fg-faint: #8b929c;
  95. --accent: #0066b8;
  96. --accent-fg: #ffffff;
  97. --accent-dim: rgba(0, 102, 184, 0.25);
  98. --ok: #17845a;
  99. --warn: #a37200;
  100. --err: #c5232c;
  101. --info: #0066b8;
  102. --shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  103. --monaco-theme: "vs";
  104. }
  105. /* ═══════════════════════════════════════════════════════════════════
  106. Shell
  107. ═══════════════════════════════════════════════════════════════════ */
  108. html, body {
  109. height: 100%;
  110. margin: 0;
  111. padding: 0;
  112. overflow: hidden;
  113. }
  114. body {
  115. background: var(--bg-editor);
  116. color: var(--fg);
  117. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
  118. Helvetica, Arial, sans-serif;
  119. font-size: 13px;
  120. -webkit-font-smoothing: antialiased;
  121. }
  122. #ide {
  123. display: flex;
  124. flex-direction: column;
  125. height: 100vh;
  126. width: 100%;
  127. overflow: hidden;
  128. }
  129. /* Thin scrollbars everywhere inside the workbench */
  130. #ide *::-webkit-scrollbar { width: 10px; height: 10px; }
  131. #ide *::-webkit-scrollbar-track { background: transparent; }
  132. #ide *::-webkit-scrollbar-thumb {
  133. background: var(--border-strong);
  134. border-radius: 5px;
  135. border: 3px solid transparent;
  136. background-clip: content-box;
  137. }
  138. #ide *::-webkit-scrollbar-thumb:hover { background-clip: padding-box; }
  139. /* ── Title bar ─────────────────────────────────────────────────── */
  140. #titlebar {
  141. flex-shrink: 0;
  142. height: 34px;
  143. display: flex;
  144. align-items: center;
  145. padding: 0 10px;
  146. background: var(--bg-title);
  147. border-bottom: 1px solid var(--border);
  148. user-select: none;
  149. }
  150. #titlebar .brand {
  151. display: flex;
  152. align-items: center;
  153. gap: 8px;
  154. color: var(--fg-strong);
  155. font-weight: 600;
  156. letter-spacing: 0.01em;
  157. }
  158. #titlebar .brand img { height: 18px; width: 18px; }
  159. #titlebar .titlecenter {
  160. flex: 1;
  161. text-align: center;
  162. color: var(--fg-dim);
  163. font-size: 12px;
  164. white-space: nowrap;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. padding: 0 12px;
  168. }
  169. #titlebar .titleactions { display: flex; align-items: center; gap: 2px; }
  170. /* ── Menu bar ──────────────────────────────────────────────────── */
  171. #menubar {
  172. flex-shrink: 0;
  173. height: 30px;
  174. display: flex;
  175. align-items: center;
  176. padding: 0 6px;
  177. background: var(--bg-title);
  178. border-bottom: 1px solid var(--border);
  179. user-select: none;
  180. }
  181. #menubar .menuitem {
  182. padding: 4px 9px;
  183. border-radius: 4px;
  184. cursor: pointer;
  185. color: var(--fg);
  186. white-space: nowrap;
  187. }
  188. #menubar .menuitem:hover { background: var(--bg-hover); }
  189. #menubar .menuitem.open { background: var(--bg-active); color: var(--fg-strong); }
  190. #menubar .spacer { flex: 1; }
  191. /* Icon-only buttons used in the title bar and menu bar right side */
  192. .iconbtn {
  193. display: inline-flex;
  194. align-items: center;
  195. justify-content: center;
  196. min-width: 26px;
  197. height: 24px;
  198. padding: 0 6px;
  199. border-radius: 4px;
  200. color: var(--fg-dim);
  201. cursor: pointer;
  202. border: none;
  203. background: transparent;
  204. font-size: 12px;
  205. font-family: inherit;
  206. }
  207. .iconbtn:hover { background: var(--bg-hover); color: var(--fg-strong); }
  208. .iconbtn.active { background: var(--bg-active); color: var(--fg-strong); }
  209. .iconbtn i.icon { margin: 0 !important; }
  210. /* ── Workbench ─────────────────────────────────────────────────── */
  211. #workbench {
  212. flex: 1;
  213. display: flex;
  214. min-height: 0;
  215. overflow: hidden;
  216. }
  217. /* ── Activity bar ──────────────────────────────────────────────── */
  218. #activitybar {
  219. flex-shrink: 0;
  220. width: 48px;
  221. background: var(--bg-activity);
  222. border-right: 1px solid var(--border);
  223. display: flex;
  224. flex-direction: column;
  225. align-items: center;
  226. padding: 6px 0;
  227. user-select: none;
  228. }
  229. #activitybar .actitem {
  230. position: relative;
  231. width: 48px;
  232. height: 44px;
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. color: var(--fg-dim);
  237. cursor: pointer;
  238. font-size: 17px;
  239. }
  240. #activitybar .actitem:hover { color: var(--fg-strong); }
  241. #activitybar .actitem.active { color: var(--fg-strong); }
  242. #activitybar .actitem.active::before {
  243. content: "";
  244. position: absolute;
  245. left: 0;
  246. top: 8px;
  247. bottom: 8px;
  248. width: 2px;
  249. background: var(--accent);
  250. }
  251. #activitybar .actitem i.icon { margin: 0 !important; }
  252. #activitybar .actitem .badge {
  253. position: absolute;
  254. right: 8px;
  255. bottom: 7px;
  256. min-width: 15px;
  257. height: 15px;
  258. padding: 0 4px;
  259. border-radius: 8px;
  260. background: var(--accent);
  261. color: var(--accent-fg);
  262. font-size: 9px;
  263. line-height: 15px;
  264. text-align: center;
  265. font-family: -apple-system, "Segoe UI", sans-serif;
  266. }
  267. #activitybar .actspacer { flex: 1; }
  268. /* ── Sidebar ───────────────────────────────────────────────────── */
  269. #sidebar {
  270. flex-shrink: 0;
  271. width: 250px;
  272. background: var(--bg-side);
  273. display: flex;
  274. flex-direction: column;
  275. overflow: hidden;
  276. }
  277. #sidebar.collapsed { display: none; }
  278. .sideview { display: none; flex-direction: column; height: 100%; overflow: hidden; }
  279. .sideview.active { display: flex; }
  280. .sideview .viewheader {
  281. flex-shrink: 0;
  282. display: flex;
  283. align-items: center;
  284. height: 34px;
  285. padding: 0 6px 0 18px;
  286. font-size: 11px;
  287. letter-spacing: 0.08em;
  288. text-transform: uppercase;
  289. color: var(--fg-dim);
  290. user-select: none;
  291. }
  292. .sideview .viewheader .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  293. .sideview .viewbody { flex: 1; overflow-y: auto; overflow-x: hidden; }
  294. /* Collapsible section inside a sidebar view */
  295. .section { border-top: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
  296. .section:first-child { border-top: none; }
  297. .section > .sectionhead {
  298. flex-shrink: 0;
  299. display: flex;
  300. align-items: center;
  301. gap: 4px;
  302. height: 24px;
  303. padding: 0 8px;
  304. font-size: 11px;
  305. font-weight: 700;
  306. letter-spacing: 0.04em;
  307. text-transform: uppercase;
  308. color: var(--fg);
  309. cursor: pointer;
  310. user-select: none;
  311. }
  312. .section > .sectionhead:hover { background: var(--bg-hover); }
  313. .section > .sectionhead .caret { width: 14px; text-align: center; color: var(--fg-dim); }
  314. .section > .sectionhead .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  315. .section > .sectionhead .actions { display: none; gap: 2px; }
  316. .section > .sectionhead:hover .actions { display: flex; }
  317. .section > .sectionbody { overflow-y: auto; overflow-x: hidden; }
  318. .section.collapsed > .sectionbody { display: none; }
  319. /* Tree rows (open editors, explorer, changes …) */
  320. .row {
  321. display: flex;
  322. align-items: center;
  323. gap: 5px;
  324. height: 22px;
  325. padding: 0 8px 0 18px;
  326. color: var(--fg);
  327. cursor: pointer;
  328. white-space: nowrap;
  329. overflow: hidden;
  330. user-select: none;
  331. }
  332. .row:hover { background: var(--bg-hover); }
  333. .row.selected { background: var(--bg-active); color: var(--fg-strong); }
  334. .row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
  335. .row .sub { color: var(--fg-faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  336. .row i.icon { margin: 0 !important; flex-shrink: 0; width: 14px; text-align: center; }
  337. .row .caret { width: 12px; flex-shrink: 0; text-align: center; color: var(--fg-dim); font-size: 10px; }
  338. .row .rowbtn { opacity: 0; color: var(--fg-dim); flex-shrink: 0; padding: 0 2px; }
  339. .row:hover .rowbtn { opacity: 1; }
  340. .row .rowbtn:hover { color: var(--fg-strong); }
  341. .row.unsaved .name { font-style: italic; }
  342. .row.unsaved .dot { color: var(--accent); font-size: 9px; }
  343. .emptyhint { padding: 14px 18px; color: var(--fg-dim); font-size: 12px; line-height: 1.6; }
  344. .emptyhint .ui.button { margin-top: 8px; width: 100%; }
  345. /* Explorer tree indentation */
  346. .dirlist { }
  347. .dirlist .row { padding-left: 30px; }
  348. .dirlist .dirlist .row { padding-left: 42px; }
  349. .dirlist .dirlist .dirlist .row { padding-left: 54px; }
  350. .dirlist .dirlist .dirlist .dirlist .row { padding-left: 66px; }
  351. .folderObjectWrapper.drag-over > .row,
  352. #directoryExplorer.drag-over {
  353. background: var(--accent-dim);
  354. outline: 1px dashed var(--accent);
  355. outline-offset: -1px;
  356. }
  357. .row input.rename-input {
  358. flex: 1;
  359. background: var(--bg-input);
  360. border: 1px solid var(--accent);
  361. color: var(--fg-strong);
  362. padding: 1px 4px;
  363. font-size: 12px;
  364. font-family: inherit;
  365. outline: none;
  366. min-width: 0;
  367. }
  368. /* ── Splitters ─────────────────────────────────────────────────── */
  369. .vsplit {
  370. flex-shrink: 0;
  371. width: 1px;
  372. background: var(--border);
  373. cursor: col-resize;
  374. position: relative;
  375. }
  376. .vsplit::after {
  377. content: "";
  378. position: absolute;
  379. top: 0; bottom: 0; left: -2px; right: -2px;
  380. z-index: 5;
  381. }
  382. .vsplit:hover, .vsplit.dragging { background: var(--accent); }
  383. .hsplit {
  384. flex-shrink: 0;
  385. height: 1px;
  386. background: var(--border);
  387. cursor: row-resize;
  388. position: relative;
  389. }
  390. .hsplit::after {
  391. content: "";
  392. position: absolute;
  393. left: 0; right: 0; top: -2px; bottom: -2px;
  394. z-index: 5;
  395. }
  396. .hsplit:hover, .hsplit.dragging { background: var(--accent); }
  397. /* ── Editor region + bottom panel ──────────────────────────────── */
  398. #center {
  399. flex: 1;
  400. display: flex;
  401. flex-direction: column;
  402. min-width: 0;
  403. min-height: 0;
  404. }
  405. #codeArea {
  406. flex: 1;
  407. min-height: 0;
  408. display: flex;
  409. background: var(--bg-editor);
  410. overflow: hidden;
  411. }
  412. .codeBoard {
  413. flex: 1;
  414. min-width: 0;
  415. display: flex;
  416. flex-direction: column;
  417. position: relative;
  418. border-left: 1px solid var(--border);
  419. }
  420. .codeBoard:first-child { border-left: none; }
  421. .codeBoard .tabs {
  422. flex-shrink: 0;
  423. height: 35px;
  424. display: flex;
  425. align-items: stretch;
  426. background: var(--bg-tab);
  427. border-bottom: 1px solid var(--border);
  428. overflow-x: auto;
  429. overflow-y: hidden;
  430. scrollbar-width: none;
  431. }
  432. .codeBoard .tabs::-webkit-scrollbar { height: 0; }
  433. .codeBoard .tabs .item {
  434. display: flex;
  435. align-items: center;
  436. gap: 6px;
  437. padding: 0 8px 0 12px;
  438. max-width: 220px;
  439. background: var(--bg-tab);
  440. color: var(--fg-dim);
  441. border-right: 1px solid var(--border);
  442. cursor: pointer;
  443. white-space: nowrap;
  444. flex-shrink: 0;
  445. position: relative;
  446. user-select: none;
  447. }
  448. .codeBoard .tabs .item:hover { color: var(--fg); }
  449. .codeBoard .tabs .item.selected {
  450. background: var(--bg-tab-active);
  451. color: var(--fg-strong);
  452. }
  453. .codeBoard .tabs .item.selected::before {
  454. content: "";
  455. position: absolute;
  456. left: 0; right: 0; top: 0;
  457. height: 1px;
  458. background: var(--accent);
  459. }
  460. .codeBoard .tabs .item .tabFilename {
  461. overflow: hidden;
  462. text-overflow: ellipsis;
  463. }
  464. .codeBoard .tabs .item i.icon { margin: 0 !important; flex-shrink: 0; }
  465. .codeBoard .tabs .item .closebtn {
  466. flex-shrink: 0;
  467. width: 18px;
  468. height: 18px;
  469. display: flex;
  470. align-items: center;
  471. justify-content: center;
  472. border-radius: 4px;
  473. opacity: 0;
  474. color: var(--fg-dim);
  475. }
  476. .codeBoard .tabs .item:hover .closebtn,
  477. .codeBoard .tabs .item.selected .closebtn { opacity: 1; }
  478. .codeBoard .tabs .item .closebtn:hover { background: var(--bg-hover); color: var(--fg-strong); }
  479. .codeBoard .tabs .item.dirty .closebtn { opacity: 1; }
  480. .codeBoard .editor { flex: 1; min-height: 0; }
  481. .codeBoard .editorcover {
  482. position: absolute;
  483. left: 0; right: 0; top: 35px; bottom: 0;
  484. background: var(--bg-editor);
  485. overflow: auto;
  486. z-index: 3;
  487. }
  488. .tabs .item.drag-over-left { box-shadow: inset 2px 0 0 var(--accent); }
  489. .tabs .item.drag-over-right { box-shadow: inset -2px 0 0 var(--accent); }
  490. .tabs .item.closing { animation: tabClose 0.15s ease-out forwards; }
  491. @keyframes tabClose {
  492. from { opacity: 1; max-width: 220px; }
  493. to { opacity: 0; max-width: 0; padding: 0; }
  494. }
  495. /* Welcome screen shown inside the editor cover */
  496. .welcome {
  497. display: flex;
  498. flex-direction: column;
  499. justify-content: center;
  500. height: 100%;
  501. padding: 0 10%;
  502. color: var(--fg-dim);
  503. user-select: none;
  504. }
  505. .welcome h1 {
  506. font-size: 26px;
  507. font-weight: 300;
  508. color: var(--fg-strong);
  509. margin: 0 0 4px 0;
  510. }
  511. .welcome .tagline { margin-bottom: 26px; font-size: 13px; }
  512. .welcome .cols { display: flex; gap: 48px; flex-wrap: wrap; }
  513. .welcome .col h4 {
  514. font-size: 11px;
  515. text-transform: uppercase;
  516. letter-spacing: 0.08em;
  517. color: var(--fg-dim);
  518. margin: 0 0 8px 0;
  519. font-weight: 700;
  520. }
  521. .welcome a {
  522. display: block;
  523. color: var(--accent);
  524. cursor: pointer;
  525. padding: 3px 0;
  526. text-decoration: none;
  527. }
  528. .welcome a:hover { text-decoration: underline; }
  529. .welcome .keyhint { color: var(--fg-faint); font-size: 12px; padding: 3px 0; }
  530. .welcome .recentpath {
  531. display: block;
  532. color: var(--fg-faint);
  533. font-size: 11px;
  534. margin-top: -1px;
  535. }
  536. .welcome a:hover .recentpath { text-decoration: none; }
  537. .welcome kbd {
  538. background: var(--bg-elevated);
  539. border: 1px solid var(--border-strong);
  540. border-radius: 3px;
  541. padding: 1px 5px;
  542. font-size: 11px;
  543. font-family: monospace;
  544. }
  545. .errorcover {
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. justify-content: center;
  550. height: 100%;
  551. gap: 10px;
  552. user-select: none;
  553. text-align: center;
  554. padding: 20px;
  555. }
  556. .errorcover .headline { color: var(--err); font-size: 15px; }
  557. .errorcover .path { color: var(--fg-dim); font-size: 12px; word-break: break-all; max-width: 420px; }
  558. /* ── Bottom panel ──────────────────────────────────────────────── */
  559. #bottomPanel {
  560. flex-shrink: 0;
  561. height: 240px;
  562. display: none;
  563. flex-direction: column;
  564. background: var(--bg-panel);
  565. overflow: hidden;
  566. }
  567. #bottomPanel.open { display: flex; }
  568. #split-panel { display: none; }
  569. #split-panel.open { display: block; }
  570. .paneltabs {
  571. flex-shrink: 0;
  572. height: 32px;
  573. display: flex;
  574. align-items: center;
  575. padding: 0 6px 0 14px;
  576. gap: 2px;
  577. border-bottom: 1px solid var(--border);
  578. user-select: none;
  579. }
  580. .paneltabs .ptab {
  581. padding: 0 10px;
  582. height: 32px;
  583. line-height: 32px;
  584. font-size: 11px;
  585. letter-spacing: 0.06em;
  586. text-transform: uppercase;
  587. color: var(--fg-dim);
  588. cursor: pointer;
  589. border-bottom: 1px solid transparent;
  590. }
  591. .paneltabs .ptab:hover { color: var(--fg); }
  592. .paneltabs .ptab.active { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
  593. .paneltabs .ptab .count {
  594. display: inline-block;
  595. min-width: 16px;
  596. padding: 0 4px;
  597. margin-left: 4px;
  598. border-radius: 8px;
  599. background: var(--bg-elevated);
  600. color: var(--fg);
  601. font-size: 10px;
  602. line-height: 15px;
  603. text-align: center;
  604. }
  605. .paneltabs .spacer { flex: 1; }
  606. .panelbody { flex: 1; min-height: 0; position: relative; }
  607. .panelview { display: none; height: 100%; overflow: auto; }
  608. .panelview.active { display: block; }
  609. /* Problems / output list */
  610. .loglist { padding: 6px 0; font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: 12px; }
  611. .loglist .logrow { display: flex; gap: 8px; padding: 2px 14px; white-space: pre-wrap; word-break: break-word; }
  612. .loglist .logrow:hover { background: var(--bg-hover); }
  613. .loglist .logrow .ts { color: var(--fg-faint); flex-shrink: 0; }
  614. .loglist .logrow.err { color: var(--err); }
  615. .loglist .logrow.warn { color: var(--warn); }
  616. .loglist .logrow.ok { color: var(--ok); }
  617. .loglist .logrow.info { color: var(--info); }
  618. /* ── Terminal ──────────────────────────────────────────────────── */
  619. #terminalView { display: none; height: 100%; }
  620. #terminalView.active { display: flex; }
  621. .termstack { flex: 1; min-width: 0; position: relative; }
  622. .termsessionlist {
  623. flex-shrink: 0;
  624. width: 170px;
  625. border-left: 1px solid var(--border);
  626. overflow-y: auto;
  627. padding: 4px 0;
  628. }
  629. .termsessionlist .row { height: 24px; padding-left: 12px; font-size: 12px; }
  630. .termsessionlist .row.selected { background: var(--bg-active); }
  631. .terminstance {
  632. position: absolute;
  633. inset: 0;
  634. display: none;
  635. flex-direction: column;
  636. background: var(--bg-panel);
  637. }
  638. .terminstance.active { display: flex; }
  639. .termout {
  640. flex: 1;
  641. overflow-y: auto;
  642. padding: 8px 14px 4px;
  643. cursor: text;
  644. font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  645. font-size: 12.5px;
  646. line-height: 1.55;
  647. }
  648. .termout .tl { white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
  649. .termout .tl-in { color: var(--fg); }
  650. .termout .tl-ok { color: var(--ok); }
  651. .termout .tl-err { color: var(--err); }
  652. .termout .tl-log { color: var(--warn); }
  653. .termout .tl-sys { color: var(--info); }
  654. .termout .tl-dim { color: var(--fg-faint); }
  655. .terminputrow {
  656. flex-shrink: 0;
  657. display: flex;
  658. align-items: center;
  659. gap: 8px;
  660. padding: 5px 14px;
  661. border-top: 1px solid var(--border);
  662. background: var(--bg-input);
  663. font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  664. font-size: 12.5px;
  665. }
  666. .terminputrow .prompt { color: var(--ok); flex-shrink: 0; white-space: nowrap; }
  667. .terminputrow input {
  668. flex: 1;
  669. min-width: 0;
  670. background: transparent;
  671. border: none;
  672. outline: none;
  673. color: var(--fg);
  674. font-family: inherit;
  675. font-size: inherit;
  676. caret-color: var(--accent);
  677. }
  678. .termstatus {
  679. flex-shrink: 0;
  680. display: flex;
  681. align-items: center;
  682. gap: 6px;
  683. padding: 3px 14px;
  684. font-size: 11px;
  685. color: var(--fg-dim);
  686. border-top: 1px solid var(--border);
  687. }
  688. .conndot {
  689. width: 7px;
  690. height: 7px;
  691. border-radius: 50%;
  692. background: var(--fg-faint);
  693. flex-shrink: 0;
  694. }
  695. .conndot.connecting { background: var(--warn); animation: blink 1s ease-in-out infinite; }
  696. .conndot.connected { background: var(--ok); }
  697. .conndot.error { background: var(--err); }
  698. @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
  699. /* ── Aux bar (docked tools) ────────────────────────────────────── */
  700. #auxbar {
  701. flex-shrink: 0;
  702. width: 380px;
  703. background: var(--bg-side);
  704. display: none;
  705. flex-direction: column;
  706. overflow: hidden;
  707. }
  708. #auxbar.open { display: flex; }
  709. #split-aux { display: none; }
  710. #split-aux.open { display: block; }
  711. .auxtabs {
  712. flex-shrink: 0;
  713. height: 34px;
  714. display: flex;
  715. align-items: center;
  716. gap: 2px;
  717. padding: 0 4px 0 10px;
  718. border-bottom: 1px solid var(--border);
  719. overflow-x: auto;
  720. scrollbar-width: none;
  721. user-select: none;
  722. }
  723. .auxtabs::-webkit-scrollbar { height: 0; }
  724. .auxtabs .atab {
  725. display: flex;
  726. align-items: center;
  727. gap: 5px;
  728. height: 34px;
  729. padding: 0 8px;
  730. font-size: 11px;
  731. letter-spacing: 0.05em;
  732. text-transform: uppercase;
  733. color: var(--fg-dim);
  734. cursor: pointer;
  735. border-bottom: 1px solid transparent;
  736. white-space: nowrap;
  737. flex-shrink: 0;
  738. }
  739. .auxtabs .atab:hover { color: var(--fg); }
  740. .auxtabs .atab.active { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
  741. .auxtabs .atab .closebtn { opacity: 0.5; }
  742. .auxtabs .atab .closebtn:hover { opacity: 1; }
  743. .auxtabs .spacer { flex: 1; }
  744. .auxbody { flex: 1; min-height: 0; position: relative; }
  745. .auxpane {
  746. position: absolute;
  747. inset: 0;
  748. display: none;
  749. flex-direction: column;
  750. background: var(--bg-editor);
  751. }
  752. .auxpane.active { display: flex; }
  753. .auxpane .toolbar {
  754. flex-shrink: 0;
  755. display: flex;
  756. align-items: center;
  757. gap: 6px;
  758. padding: 4px 8px;
  759. border-bottom: 1px solid var(--border);
  760. background: var(--bg-side);
  761. font-size: 11px;
  762. color: var(--fg-dim);
  763. }
  764. .auxpane iframe {
  765. flex: 1;
  766. width: 100%;
  767. border: 0;
  768. background: var(--bg-editor);
  769. }
  770. /* ── Status bar ────────────────────────────────────────────────── */
  771. #statusbar {
  772. flex-shrink: 0;
  773. height: 24px;
  774. display: flex;
  775. align-items: center;
  776. gap: 2px;
  777. padding: 0 4px;
  778. background: var(--bg-title);
  779. border-top: 1px solid var(--border);
  780. color: var(--fg-dim);
  781. font-size: 11.5px;
  782. user-select: none;
  783. }
  784. #statusbar .sbitem {
  785. display: flex;
  786. align-items: center;
  787. gap: 4px;
  788. height: 22px;
  789. padding: 0 7px;
  790. border-radius: 3px;
  791. cursor: pointer;
  792. white-space: nowrap;
  793. }
  794. #statusbar .sbitem:hover { background: var(--bg-hover); color: var(--fg-strong); }
  795. #statusbar .sbitem i.icon { margin: 0 !important; font-size: 11px; }
  796. #statusbar .sbitem.plain { cursor: default; }
  797. #statusbar .sbitem.plain:hover { background: transparent; color: var(--fg-dim); }
  798. #statusbar .spacer { flex: 1; }
  799. #statusbar .sbitem.flash { background: var(--accent); color: var(--accent-fg); }
  800. /* ═══════════════════════════════════════════════════════════════════
  801. Menus (drop-down + context)
  802. ═══════════════════════════════════════════════════════════════════ */
  803. .menupanel {
  804. position: fixed;
  805. z-index: 900;
  806. min-width: 230px;
  807. padding: 4px 0;
  808. background: var(--bg-elevated);
  809. border: 1px solid var(--border-strong);
  810. border-radius: 5px;
  811. box-shadow: var(--shadow);
  812. color: var(--fg);
  813. display: none;
  814. user-select: none;
  815. }
  816. .menupanel .item {
  817. display: flex;
  818. align-items: center;
  819. gap: 8px;
  820. padding: 5px 12px 5px 34px;
  821. cursor: pointer;
  822. position: relative;
  823. white-space: nowrap;
  824. }
  825. .menupanel .item:hover { background: var(--accent); color: var(--accent-fg); }
  826. .menupanel .item .label { flex: 1; }
  827. .menupanel .item .tips { color: var(--fg-faint); font-size: 11px; }
  828. .menupanel .item:hover .tips { color: var(--accent-fg); opacity: 0.85; }
  829. .menupanel .item .check {
  830. position: absolute;
  831. left: 9px;
  832. top: 0;
  833. bottom: 0;
  834. width: 16px;
  835. display: flex;
  836. align-items: center;
  837. justify-content: center;
  838. color: var(--accent);
  839. }
  840. .menupanel .item .check i.icon {
  841. margin: 0;
  842. margin-left: -0.6em;
  843. width: auto;
  844. height: auto;
  845. line-height: 1;
  846. font-size: 12px;
  847. }
  848. .menupanel .item:hover .check { color: var(--accent-fg); }
  849. .menupanel .item.disabled { color: var(--fg-faint); cursor: default; }
  850. .menupanel .item.disabled:hover { background: transparent; color: var(--fg-faint); }
  851. .menupanel .divider {
  852. height: 1px;
  853. background: var(--border);
  854. margin: 4px 8px;
  855. }
  856. .menupanel .grouplabel {
  857. padding: 4px 12px 3px;
  858. font-size: 10px;
  859. text-transform: uppercase;
  860. letter-spacing: 0.08em;
  861. color: var(--fg-faint);
  862. }
  863. /* ═══════════════════════════════════════════════════════════════════
  864. Source control view
  865. ═══════════════════════════════════════════════════════════════════ */
  866. .scmbox { padding: 8px 10px; border-bottom: 1px solid var(--border); }
  867. .scmbox textarea {
  868. width: 100%;
  869. min-height: 54px;
  870. resize: vertical;
  871. background: var(--bg-input);
  872. border: 1px solid var(--border-strong);
  873. border-radius: 4px;
  874. color: var(--fg);
  875. padding: 6px 8px;
  876. font-family: inherit;
  877. font-size: 12px;
  878. outline: none;
  879. }
  880. .scmbox textarea:focus { border-color: var(--accent); }
  881. .btn {
  882. display: inline-flex;
  883. align-items: center;
  884. justify-content: center;
  885. gap: 6px;
  886. padding: 5px 10px;
  887. border: 1px solid var(--border-strong);
  888. border-radius: 4px;
  889. background: transparent;
  890. color: var(--fg);
  891. font-family: inherit;
  892. font-size: 12px;
  893. cursor: pointer;
  894. }
  895. .btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--fg-strong); }
  896. .btn:disabled { opacity: 0.45; cursor: default; }
  897. .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
  898. .btn.primary:hover:not(:disabled) { filter: brightness(1.12); background: var(--accent); color: var(--accent-fg); }
  899. .btn.block { width: 100%; margin-top: 6px; }
  900. .btn i.icon { margin: 0 !important; }
  901. .scmstatus { display: flex; gap: 8px; padding: 6px 10px; color: var(--fg-dim); font-size: 11.5px; }
  902. .gitbadge {
  903. flex-shrink: 0;
  904. width: 15px;
  905. text-align: center;
  906. font-weight: 700;
  907. font-size: 11px;
  908. font-family: "Cascadia Code", Consolas, monospace;
  909. }
  910. .gitbadge.modified { color: var(--warn); }
  911. .gitbadge.added { color: var(--ok); }
  912. .gitbadge.untracked { color: var(--ok); }
  913. .gitbadge.deleted { color: var(--err); }
  914. .gitbadge.renamed { color: var(--info); }
  915. .gitbadge.conflicted{ color: var(--err); }
  916. /* ═══════════════════════════════════════════════════════════════════
  917. Search view
  918. ═══════════════════════════════════════════════════════════════════ */
  919. .searchbox { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
  920. .searchbox input[type="text"] {
  921. width: 100%;
  922. background: var(--bg-input);
  923. border: 1px solid var(--border-strong);
  924. border-radius: 4px;
  925. color: var(--fg);
  926. padding: 5px 8px;
  927. font-family: inherit;
  928. font-size: 12px;
  929. outline: none;
  930. }
  931. .searchbox input[type="text"]:focus { border-color: var(--accent); }
  932. .searchbox .opts { display: flex; gap: 4px; align-items: center; }
  933. .searchresult .hitline {
  934. padding-left: 30px;
  935. font-family: "Cascadia Code", Consolas, monospace;
  936. font-size: 11.5px;
  937. color: var(--fg-dim);
  938. }
  939. .searchresult .hitline mark {
  940. background: var(--accent-dim);
  941. color: var(--fg-strong);
  942. padding: 0 1px;
  943. border-radius: 2px;
  944. }
  945. /* ═══════════════════════════════════════════════════════════════════
  946. File / folder icon colours (kept from the previous stylesheet)
  947. ═══════════════════════════════════════════════════════════════════ */
  948. .folder-icon { margin-right: 2px; }
  949. .folder.icon { color: #dcb67a !important; }
  950. .folder-icon.src, .folder-icon.components, .folder-icon.backend,
  951. .folder-icon.server { color: #4ec9b0 !important; }
  952. .folder-icon.lib, .folder-icon.js, .folder-icon.scripts,
  953. .folder-icon.utils, .folder-icon.helpers { color: #dcdcaa !important; }
  954. .folder-icon.test, .folder-icon.tests, .folder-icon.spec,
  955. .folder-icon.middleware, .folder-icon.frontend,
  956. .folder-icon.client { color: #ce9178 !important; }
  957. .folder-icon.config { color: #9cdcfe !important; }
  958. .folder-icon.public, .folder-icon.static, .folder-icon.api,
  959. .folder-icon.routes { color: #4fc1ff !important; }
  960. .folder-icon.assets, .folder-icon.images, .folder-icon.img { color: #c586c0 !important; }
  961. .folder-icon.css, .folder-icon.styles, .folder-icon.docs,
  962. .folder-icon.documentation { color: #569cd6 !important; }
  963. .folder-icon.views, .folder-icon.pages, .folder-icon.templates { color: #6a9955 !important; }
  964. .folder-icon.models, .folder-icon.controllers, .folder-icon.database,
  965. .folder-icon.db, .folder-icon.migrations, .folder-icon.seeds { color: #d7ba7d !important; }
  966. .folder-icon.vendor { color: #808080 !important; }
  967. .folder-icon.node_modules { color: #6d8086 !important; }
  968. .folder-icon.build, .folder-icon.dist, .folder-icon.out,
  969. .folder-icon.bin { color: #b0b0b0 !important; }
  970. .file-icon-js { color: #f1e05a !important; }
  971. .file-icon-ts { color: #3178c6 !important; }
  972. .file-icon-jsx { color: #61dafb !important; }
  973. .file-icon-tsx { color: #3178c6 !important; }
  974. .file-icon-html { color: #e34c26 !important; }
  975. .file-icon-htm { color: #e34c26 !important; }
  976. .file-icon-css { color: #7b61c9 !important; }
  977. .file-icon-scss { color: #c6538c !important; }
  978. .file-icon-sass { color: #c6538c !important; }
  979. .file-icon-less { color: #4d7ac7 !important; }
  980. .file-icon-json { color: #f1e05a !important; }
  981. .file-icon-xml { color: #e34c26 !important; }
  982. .file-icon-md { color: #519aba !important; }
  983. .file-icon-py { color: #3572a5 !important; }
  984. .file-icon-go { color: #00add8 !important; }
  985. .file-icon-java { color: #b07219 !important; }
  986. .file-icon-c { color: #9aa0a6 !important; }
  987. .file-icon-cpp { color: #f34b7d !important; }
  988. .file-icon-cs { color: #4bb54b !important; }
  989. .file-icon-php { color: #8892bf !important; }
  990. .file-icon-rb { color: #c9414a !important; }
  991. .file-icon-rs { color: #dea584 !important; }
  992. .file-icon-swift { color: #ffac45 !important; }
  993. .file-icon-sh { color: #89e051 !important; }
  994. .file-icon-bash { color: #89e051 !important; }
  995. .file-icon-sql { color: #e38c00 !important; }
  996. .file-icon-vue { color: #41b883 !important; }
  997. .file-icon-agi { color: #f1e05a !important; }
  998. .file-icon-yaml { color: #cb171e !important; }
  999. .file-icon-yml { color: #cb171e !important; }
  1000. .file-icon-toml { color: #c1704a !important; }
  1001. .file-icon-ini { color: #a5b3ba !important; }
  1002. .file-icon-env { color: #ecd53f !important; }
  1003. .file-icon-gitignore { color: #f14e32 !important; }
  1004. .file-icon-dockerfile { color: #5d8fa3 !important; }
  1005. /* ═══════════════════════════════════════════════════════════════════
  1006. Semantic UI overrides so its components inherit the workbench theme
  1007. ═══════════════════════════════════════════════════════════════════ */
  1008. #ide .ui.button {
  1009. font-family: inherit;
  1010. }
  1011. .ui.modal > .header,
  1012. .ui.modal > .content,
  1013. .ui.modal > .actions {
  1014. background: var(--bg-elevated) !important;
  1015. color: var(--fg) !important;
  1016. border-color: var(--border) !important;
  1017. }
  1018. .ui.modal > .header { color: var(--fg-strong) !important; }
  1019. .ui.modal .ui.header { color: var(--fg-strong) !important; }