settings-v2.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. @import "@opencode-ai/ui/v2/text-input-v2.css";
  2. @import "@opencode-ai/ui/v2/button-v2.css";
  3. [data-component="tabs-v2"][data-variant="settings"] {
  4. height: 100%;
  5. }
  6. [data-component="dialog-v2"][data-variant="settings"] [data-slot="dialog-container"] {
  7. background: var(--v2-background-bg-base);
  8. }
  9. [data-component="dialog-v2"][data-variant="settings"] [data-slot="dialog-body"] {
  10. padding: 0;
  11. overflow: hidden;
  12. }
  13. .settings-v2-panel {
  14. display: flex;
  15. flex-direction: column;
  16. height: 100%;
  17. overflow-y: auto;
  18. scrollbar-width: none;
  19. user-select: none;
  20. }
  21. .settings-v2-panel :is(input, textarea, [contenteditable="true"]) {
  22. user-select: text;
  23. }
  24. .settings-v2-panel::-webkit-scrollbar {
  25. display: none;
  26. }
  27. .settings-v2-tab-header {
  28. position: sticky;
  29. top: 0;
  30. z-index: 10;
  31. padding: 40px 40px 32px;
  32. background: linear-gradient(to bottom, var(--v2-background-bg-base) calc(100% - 24px), transparent);
  33. }
  34. .settings-v2-tab-title {
  35. font-size: 15px;
  36. font-weight: 640;
  37. line-height: 1;
  38. color: var(--v2-text-text-base);
  39. }
  40. .settings-v2-tab-body {
  41. display: flex;
  42. flex-direction: column;
  43. gap: 36px;
  44. width: 100%;
  45. padding: 0 40px 40px;
  46. }
  47. [data-slot="settings-v2-row-description"] a.settings-v2-link {
  48. color: var(--v2-text-text-accent);
  49. cursor: pointer;
  50. text-decoration: none;
  51. }
  52. [data-slot="settings-v2-row-description"] a.settings-v2-link:hover {
  53. color: var(--v2-text-text-accent-hover);
  54. }
  55. .settings-v2-section {
  56. display: flex;
  57. flex-direction: column;
  58. gap: 16px;
  59. }
  60. .settings-v2-section-title {
  61. padding-bottom: 8px;
  62. font-size: 15px;
  63. font-weight: 640;
  64. line-height: 1;
  65. color: var(--v2-text-text-base);
  66. }
  67. .settings-v2-section-title + [data-component="settings-v2-list"] {
  68. margin-top: -4px;
  69. margin-bottom: 0;
  70. }
  71. [data-component="settings-v2-list"] {
  72. border-radius: 8px;
  73. background-color: var(--v2-background-bg-layer-01);
  74. padding-inline: 20px;
  75. box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
  76. }
  77. [data-component="settings-v2-row"] {
  78. display: flex;
  79. flex-wrap: wrap;
  80. align-items: center;
  81. gap: 16px;
  82. padding-block: 20px;
  83. border-bottom: 0.5px solid var(--v2-border-border-base);
  84. }
  85. [data-component="settings-v2-row"]:last-child {
  86. border-bottom: none;
  87. }
  88. @media (min-width: 640px) {
  89. [data-component="settings-v2-row"] {
  90. flex-wrap: nowrap;
  91. }
  92. }
  93. [data-slot="settings-v2-row-copy"] {
  94. display: flex;
  95. min-width: 0;
  96. flex: 1;
  97. flex-direction: column;
  98. gap: 8px;
  99. }
  100. [data-slot="settings-v2-row-title"] {
  101. font-style: normal;
  102. font-size: 13px;
  103. font-weight: 530;
  104. line-height: 1;
  105. letter-spacing: -0.04px;
  106. color: var(--v2-text-text-base);
  107. font-variation-settings: "slnt" 0;
  108. }
  109. [data-slot="settings-v2-row-description"] {
  110. font-size: 11px;
  111. font-weight: 440;
  112. line-height: 1;
  113. color: var(--v2-text-text-muted);
  114. }
  115. [data-slot="settings-v2-row-control"] {
  116. display: flex;
  117. width: 100%;
  118. justify-content: flex-end;
  119. }
  120. [data-slot="settings-v2-row-control"] > div:has([data-component="switch"]),
  121. [data-slot="settings-v2-row-control"] > [data-component="switch"] {
  122. display: inline-flex;
  123. align-items: center;
  124. padding: 4px;
  125. }
  126. @media (min-width: 640px) {
  127. [data-slot="settings-v2-row-control"] {
  128. width: auto;
  129. flex-shrink: 0;
  130. }
  131. }
  132. [data-slot="settings-v2-row-control"] [data-component="text-input-v2"] {
  133. width: 100%;
  134. }
  135. [data-component="dialog-v2"][data-variant="settings"] [data-component="select-v2-root"] {
  136. width: fit-content;
  137. max-width: 100%;
  138. }
  139. [data-component="dialog-v2"][data-variant="settings"] [data-component="button-v2"] {
  140. width: fit-content;
  141. max-width: 100%;
  142. }
  143. [data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"] [data-slot="tabs-v2-list"] {
  144. background-color: var(--v2-background-bg-layer-01);
  145. }
  146. @media (max-width: 639px) {
  147. .settings-v2[data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"]
  148. [data-slot="tabs-v2-list"] {
  149. width: 144px;
  150. min-width: 144px;
  151. padding-inline: 8px;
  152. }
  153. }
  154. .settings-v2-nav-footer {
  155. display: flex;
  156. flex-direction: column;
  157. gap: 8px;
  158. padding: 4px 0 4px 4px;
  159. user-select: none;
  160. }
  161. .settings-v2-nav-footer > span {
  162. font-size: 11px;
  163. font-weight: 440;
  164. line-height: 1;
  165. color: var(--v2-text-text-faint);
  166. }
  167. .settings-v2-legacy-panel {
  168. height: 100%;
  169. overflow: hidden;
  170. }
  171. .settings-v2-legacy-panel [data-component="dialog"] {
  172. display: contents;
  173. }
  174. .settings-v2-provider-row {
  175. display: flex;
  176. flex-wrap: wrap;
  177. align-items: center;
  178. justify-content: space-between;
  179. gap: 16px;
  180. padding-block: 20px;
  181. border-bottom: 0.5px solid var(--v2-border-border-base);
  182. }
  183. .settings-v2-provider-row:last-child {
  184. border-bottom: none;
  185. }
  186. @media (min-width: 640px) {
  187. .settings-v2-provider-row {
  188. flex-wrap: nowrap;
  189. }
  190. }
  191. .settings-v2-providers [data-component="provider-icon"] {
  192. color: var(--v2-icon-icon-base);
  193. }
  194. .settings-v2-provider-lead {
  195. display: flex;
  196. min-width: 0;
  197. flex: 1;
  198. align-items: flex-start;
  199. gap: 10px;
  200. }
  201. .settings-v2-provider-lead:not(:has(.settings-v2-provider-copy)) {
  202. align-items: center;
  203. }
  204. .settings-v2-provider-copy {
  205. display: flex;
  206. min-width: 0;
  207. flex: 1;
  208. flex-direction: column;
  209. gap: 6px;
  210. }
  211. .settings-v2-provider-main {
  212. display: flex;
  213. min-width: 0;
  214. flex-wrap: wrap;
  215. align-items: center;
  216. gap: 8px;
  217. }
  218. .settings-v2-provider-name {
  219. font-size: 13px;
  220. font-weight: 530;
  221. line-height: 16px;
  222. color: var(--v2-text-text-base);
  223. }
  224. .settings-v2-provider-description {
  225. margin: 0;
  226. font-size: 13px;
  227. font-weight: 440;
  228. line-height: 1;
  229. color: var(--v2-text-text-muted);
  230. }
  231. .settings-v2-provider-empty {
  232. padding-block: 20px;
  233. font-size: 13px;
  234. font-weight: 440;
  235. line-height: 1;
  236. color: var(--v2-text-text-muted);
  237. }
  238. .settings-v2-provider-env-hint {
  239. padding-right: 12px;
  240. font-size: 13px;
  241. font-weight: 440;
  242. line-height: 1;
  243. color: var(--v2-text-text-muted);
  244. opacity: 0;
  245. transition: opacity 200ms ease;
  246. cursor: default;
  247. }
  248. .group:hover .settings-v2-provider-env-hint {
  249. opacity: 1;
  250. }
  251. .settings-v2-providers-view-all {
  252. margin-top: 20px;
  253. padding: 0;
  254. border: 0;
  255. background: transparent;
  256. font-size: 13px;
  257. font-weight: 530;
  258. line-height: 1;
  259. color: var(--v2-text-text-accent);
  260. cursor: pointer;
  261. text-align: left;
  262. }
  263. .settings-v2-providers-view-all:hover {
  264. color: var(--v2-text-text-accent-hover);
  265. }
  266. .settings-v2-tab-body.settings-v2-providers {
  267. gap: 32px;
  268. }
  269. .settings-v2-tab-header:has(+ .settings-v2-tab-body.settings-v2-providers) {
  270. padding-bottom: 32px;
  271. }
  272. .settings-v2-providers .settings-v2-section-title {
  273. padding-bottom: 0;
  274. font-size: 13px;
  275. font-weight: 530;
  276. line-height: 1;
  277. }
  278. .settings-v2-providers .settings-v2-section-title + [data-component="settings-v2-list"] {
  279. margin-top: 16px;
  280. }
  281. .settings-v2-tab-header.settings-v2-tab-header--stacked {
  282. display: flex;
  283. flex-direction: column;
  284. gap: 32px;
  285. padding-bottom: 32px;
  286. }
  287. .settings-v2-tab-header--stacked > .settings-v2-tab-header-row {
  288. display: flex;
  289. align-items: center;
  290. justify-content: space-between;
  291. gap: 16px;
  292. }
  293. .settings-v2-tab-search {
  294. position: relative;
  295. width: 100%;
  296. }
  297. .settings-v2-tab-search [data-component="text-input-v2"] {
  298. width: 100%;
  299. }
  300. .settings-v2-tab-search [data-slot="text-input-v2-input"] {
  301. padding-right: 28px;
  302. }
  303. .settings-v2-tab-search-clear {
  304. position: absolute;
  305. top: 50%;
  306. right: 6px;
  307. z-index: 1;
  308. transform: translateY(-50%);
  309. }
  310. .settings-v2-tab-body.settings-v2-models {
  311. gap: 24px;
  312. }
  313. .settings-v2-models-group-header {
  314. display: flex;
  315. align-items: center;
  316. gap: 8px;
  317. padding-bottom: 8px;
  318. }
  319. .settings-v2-models .settings-v2-section-title {
  320. padding-bottom: 0;
  321. font-size: 13px;
  322. font-weight: 530;
  323. line-height: 16px;
  324. }
  325. .settings-v2-models [data-component="provider-icon"] {
  326. color: var(--v2-icon-icon-base);
  327. }
  328. .settings-v2-models .settings-v2-section-title + [data-component="settings-v2-list"] {
  329. margin-top: 0;
  330. }
  331. .settings-v2-models [data-slot="settings-v2-row-description"]:empty {
  332. display: none;
  333. }
  334. .settings-v2-models [data-slot="settings-v2-row-copy"] {
  335. gap: 0;
  336. }
  337. .settings-v2-models [data-slot="settings-v2-row-title"] {
  338. min-width: 0;
  339. overflow: hidden;
  340. font-size: 13px;
  341. font-weight: 440;
  342. line-height: 16px;
  343. text-overflow: ellipsis;
  344. white-space: nowrap;
  345. }
  346. .settings-v2-models-status {
  347. display: flex;
  348. flex-direction: column;
  349. align-items: center;
  350. justify-content: center;
  351. gap: 4px;
  352. padding-block: 48px;
  353. font-size: 13px;
  354. font-weight: 440;
  355. line-height: 1;
  356. color: var(--v2-text-text-muted);
  357. text-align: center;
  358. }
  359. .settings-v2-models-status-filter {
  360. color: var(--v2-text-text-base);
  361. }
  362. .settings-v2-shortcuts .settings-v2-section {
  363. gap: 16px;
  364. }
  365. .settings-v2-shortcuts .settings-v2-section-title {
  366. padding-bottom: 0;
  367. font-size: 13px;
  368. font-weight: 530;
  369. line-height: 1;
  370. }
  371. .settings-v2-shortcuts [data-component="settings-v2-list"] {
  372. display: flex;
  373. flex-direction: column;
  374. gap: 0;
  375. padding: 20px;
  376. border-radius: 6px;
  377. }
  378. .settings-v2-shortcuts [data-component="settings-v2-list"] > div {
  379. display: flex;
  380. align-items: center;
  381. justify-content: space-between;
  382. gap: 16px;
  383. padding-top: 0;
  384. padding-bottom: 0;
  385. border-bottom: none;
  386. }
  387. .settings-v2-shortcuts [data-component="settings-v2-list"] > div:not(:last-child) {
  388. padding-bottom: 16px;
  389. margin-bottom: 16px;
  390. border-bottom: 0.5px solid var(--v2-border-border-base);
  391. }
  392. .settings-v2-shortcuts [data-component="settings-v2-list"] > div > span {
  393. font-weight: 440;
  394. font-size: 13px;
  395. line-height: 1;
  396. letter-spacing: -0.04px;
  397. color: var(--v2-text-text-base);
  398. font-variation-settings: "slnt" 0;
  399. }
  400. .settings-v2-keybind-button {
  401. box-sizing: border-box;
  402. flex-shrink: 0;
  403. padding: 6px 8px;
  404. margin: -6px -8px;
  405. border: 0;
  406. border-radius: 2px;
  407. background: transparent;
  408. cursor: pointer;
  409. font-style: normal;
  410. font-weight: 530;
  411. font-size: 11px;
  412. line-height: 1;
  413. letter-spacing: 0.05px;
  414. font-variant-numeric: tabular-nums;
  415. font-feature-settings:
  416. "tnum" on,
  417. "lnum" on;
  418. font-variation-settings: "slnt" 0;
  419. color: var(--v2-text-text-faint);
  420. }
  421. .settings-v2-keybind-button:hover {
  422. background-color: var(--v2-background-bg-layer-02);
  423. }
  424. .settings-v2-keybind-button:focus-visible {
  425. outline: 2px solid var(--v2-border-border-focus);
  426. outline-offset: 2px;
  427. }
  428. .settings-v2-keybind-button--active {
  429. color: var(--v2-text-text-faint);
  430. border-radius: 2px;
  431. background-color: var(--v2-background-bg-layer-02);
  432. }
  433. .settings-v2-shortcuts-status {
  434. display: flex;
  435. flex-direction: column;
  436. align-items: center;
  437. justify-content: center;
  438. gap: 4px;
  439. padding-block: 48px;
  440. font-size: 13px;
  441. font-weight: 440;
  442. line-height: 1;
  443. color: var(--v2-text-text-muted);
  444. text-align: center;
  445. }
  446. .settings-v2-shortcuts-status-filter {
  447. color: var(--v2-text-text-base);
  448. }
  449. .settings-v2-tab-body.settings-v2-servers {
  450. gap: 0;
  451. }
  452. .settings-v2-tab-header.settings-v2-servers-header {
  453. padding-bottom: 24px;
  454. }
  455. .settings-v2-servers-header .settings-v2-tab-header-row {
  456. display: flex;
  457. align-items: center;
  458. justify-content: space-between;
  459. gap: 16px;
  460. }
  461. .settings-v2-tab-header.settings-v2-servers-header.settings-v2-tab-header--stacked {
  462. gap: 24px;
  463. padding-bottom: 24px;
  464. }
  465. .settings-v2-servers [data-component="settings-v2-list"] {
  466. display: flex;
  467. flex-direction: column;
  468. gap: 0;
  469. padding: 20px;
  470. border-radius: 6px;
  471. }
  472. .settings-v2-servers-row {
  473. display: flex;
  474. align-items: center;
  475. justify-content: space-between;
  476. gap: 16px;
  477. }
  478. .settings-v2-servers-row:not(:last-child) {
  479. padding-bottom: 16px;
  480. margin-bottom: 16px;
  481. border-bottom: 0.5px solid var(--v2-border-border-base);
  482. }
  483. .settings-v2-servers-actions {
  484. display: flex;
  485. flex-shrink: 0;
  486. align-items: center;
  487. justify-content: flex-end;
  488. gap: 8px;
  489. }
  490. .settings-v2-servers-lead {
  491. display: flex;
  492. min-width: 0;
  493. flex: 1;
  494. align-items: flex-start;
  495. gap: 10px;
  496. }
  497. .settings-v2-servers-copy {
  498. display: flex;
  499. min-width: 0;
  500. flex: 1;
  501. flex-direction: column;
  502. gap: 6px;
  503. }
  504. .settings-v2-servers-name {
  505. font-size: 13px;
  506. font-weight: 530;
  507. line-height: 1;
  508. color: var(--v2-text-text-base);
  509. }
  510. .settings-v2-servers-meta {
  511. font-size: 11px;
  512. font-weight: 440;
  513. line-height: 1;
  514. color: var(--v2-text-text-muted);
  515. }
  516. .settings-v2-servers-status {
  517. display: flex;
  518. flex-direction: column;
  519. align-items: center;
  520. justify-content: center;
  521. gap: 4px;
  522. padding-block: 48px;
  523. font-size: 13px;
  524. font-weight: 440;
  525. line-height: 1;
  526. color: var(--v2-text-text-muted);
  527. text-align: center;
  528. }
  529. .settings-v2-servers-status-filter {
  530. color: var(--v2-text-text-base);
  531. }
  532. [data-component="dialog-v2"].settings-v2-server-dialog [data-slot="dialog-container"] {
  533. width: 480px;
  534. max-width: calc(100vw - 32px);
  535. height: auto;
  536. border-radius: 8px;
  537. align-items: stretch;
  538. }
  539. [data-component="dialog-v2"].settings-v2-server-dialog [data-slot="dialog-content"] {
  540. align-items: stretch;
  541. width: 100%;
  542. }
  543. [data-component="dialog-v2"].settings-v2-server-dialog [data-slot="dialog-header"] {
  544. align-items: center;
  545. padding: 24px 24px 16px;
  546. }
  547. [data-component="dialog-v2"].settings-v2-server-dialog [data-slot="dialog-body"] {
  548. display: flex;
  549. width: 100%;
  550. min-width: 0;
  551. flex-direction: column;
  552. align-items: stretch;
  553. }
  554. [data-component="dialog-v2"].settings-v2-server-dialog [data-slot="dialog-footer"] {
  555. padding: 24px;
  556. }
  557. .settings-v2-server-dialog-label {
  558. font-size: 13px;
  559. font-weight: 530;
  560. line-height: 1;
  561. color: var(--v2-text-text-base);
  562. }
  563. .settings-v2-server-dialog-error {
  564. font-size: 11px;
  565. font-weight: 440;
  566. line-height: 1;
  567. color: var(--v2-state-fg-danger);
  568. }