mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
2350 lines
48 KiB
CSS
2350 lines
48 KiB
CSS
@import "@opencode/ui/text-input.css";
|
|
@import "@opencode/ui/button.css";
|
|
|
|
[data-component="tabs-v2"][data-variant="settings"] {
|
|
height: 100%;
|
|
}
|
|
|
|
.settings-screen {
|
|
display: flex;
|
|
flex: 1;
|
|
width: calc(100% - 2 * var(--shell-inline-inset, 8px));
|
|
min-width: 0;
|
|
min-height: 0;
|
|
margin-inline: var(--shell-inline-inset, 8px);
|
|
margin-block: var(--shell-top-inset, 8px) var(--shell-bottom-inset, 8px);
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border-radius: 10px;
|
|
background: var(--v2-background-bg-base);
|
|
box-shadow: var(--v2-elevation-raised);
|
|
outline: none;
|
|
container: settings-screen / inline-size;
|
|
}
|
|
|
|
/* Spans the whole screen and centers its 1048px layout with padding, so the gutters belong to the page scroller. */
|
|
.settings-screen > .settings {
|
|
display: flex;
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding-inline: max(0px, calc((100% - 1048px) / 2));
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.settings-screen {
|
|
--settings-mobile-inner-inset: 8px;
|
|
}
|
|
}
|
|
|
|
.settings-screen
|
|
> .settings[data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"]
|
|
> .settings-sidebar {
|
|
min-height: 0;
|
|
flex-shrink: 0;
|
|
width: 328px;
|
|
min-width: 328px;
|
|
padding-block: 50px 48px;
|
|
padding-inline-start: 24px;
|
|
padding-inline-end: 64px;
|
|
border-inline-end: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
max-width: 720px;
|
|
}
|
|
|
|
.settings-screen .settings-tab-header {
|
|
padding: 48px 0 0;
|
|
}
|
|
|
|
.settings-screen .settings-tab-body {
|
|
padding-inline: 0;
|
|
}
|
|
|
|
.settings-nav {
|
|
display: flex;
|
|
width: 240px;
|
|
max-width: 100%;
|
|
height: 100%;
|
|
flex-shrink: 0;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-nav > .settings-back {
|
|
margin-block-end: 28px;
|
|
}
|
|
|
|
.settings-nav-groups {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
@property --settings-nav-fade-start {
|
|
syntax: "<length>";
|
|
inherits: false;
|
|
initial-value: 0px;
|
|
}
|
|
|
|
@property --settings-nav-fade-end {
|
|
syntax: "<length>";
|
|
inherits: false;
|
|
initial-value: 0px;
|
|
}
|
|
|
|
/* Each edge fades in once content is hidden behind it. A list that does not overflow has no scroll timeline, so it keeps both lengths at 0.
|
|
The same timeline keeps the wheel inside an overflowing list at its edges. Chromium contains even a list that fits,
|
|
which would stop a wheel over the page list from scrolling the page. */
|
|
@supports (animation-timeline: scroll()) {
|
|
.settings-nav-groups {
|
|
mask-image: linear-gradient(
|
|
to bottom,
|
|
transparent,
|
|
#000 var(--settings-nav-fade-start),
|
|
#000 calc(100% - var(--settings-nav-fade-end)),
|
|
transparent
|
|
);
|
|
animation:
|
|
settings-nav-fade-start linear both,
|
|
settings-nav-fade-end linear both,
|
|
settings-nav-contain linear both;
|
|
animation-timeline: scroll(self), scroll(self), scroll(self);
|
|
animation-range:
|
|
0 24px,
|
|
calc(100% - 24px) 100%,
|
|
normal;
|
|
}
|
|
}
|
|
|
|
@keyframes settings-nav-contain {
|
|
from,
|
|
to {
|
|
overscroll-behavior: contain;
|
|
}
|
|
}
|
|
|
|
@keyframes settings-nav-fade-start {
|
|
to {
|
|
--settings-nav-fade-start: 24px;
|
|
}
|
|
}
|
|
|
|
@keyframes settings-nav-fade-end {
|
|
from {
|
|
--settings-nav-fade-end: 24px;
|
|
}
|
|
}
|
|
|
|
.settings-nav-groups [data-slot="tabs-v2-trigger-wrapper"] {
|
|
width: 100%;
|
|
height: 28px;
|
|
flex-shrink: 0;
|
|
border-radius: 4px;
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-nav-groups [data-slot="tabs-v2-trigger"] {
|
|
width: 100%;
|
|
height: 100%;
|
|
justify-content: flex-start;
|
|
gap: 6px;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
.settings-nav-groups [data-slot="tabs-v2-trigger-wrapper"]:has([data-selected]) {
|
|
background: var(--v2-background-bg-layer-03);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.settings-nav-groups [data-slot="tabs-v2-trigger-wrapper"]:not(:has([data-selected])):hover {
|
|
background: var(--v2-overlay-simple-overlay-hover);
|
|
}
|
|
}
|
|
|
|
.settings-content > .settings-panel {
|
|
min-height: 0;
|
|
flex: 1;
|
|
/* Leave room for raised card shadows inside the scrollport. */
|
|
padding-inline: 4px;
|
|
}
|
|
|
|
.settings-nav-group {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.settings-nav-group-header {
|
|
display: flex;
|
|
height: 28px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding-inline: 6px;
|
|
border-radius: 4px;
|
|
color: var(--v2-text-text-muted);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-nav-group-header [data-component="icon-button-v2"] {
|
|
opacity: 0;
|
|
}
|
|
|
|
.settings-nav-group-header:focus-within [data-component="icon-button-v2"] {
|
|
opacity: 1;
|
|
}
|
|
|
|
.settings-nav-group-header:focus-within {
|
|
background: var(--v2-background-bg-layer-03);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.settings-nav-group-header:hover {
|
|
background: var(--v2-background-bg-layer-03);
|
|
}
|
|
|
|
.settings-nav-group-header:hover [data-component="icon-button-v2"] {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.settings-mobile-nav {
|
|
display: none;
|
|
}
|
|
|
|
.settings-mobile-menu-trigger {
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-mobile-actions {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-mobile-menu-trigger > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-mobile-menu[data-component="menu-v2-content"] {
|
|
max-width: calc(100vw - 32px);
|
|
max-height: var(--kb-popper-content-available-height);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-about {
|
|
align-items: center;
|
|
padding-inline: 24px;
|
|
}
|
|
|
|
.settings-about-content {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
width: 100%;
|
|
max-width: 560px;
|
|
min-height: 462px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 24px;
|
|
padding-block: 80px calc(80px + var(--settings-bottom-inset, 0px));
|
|
color: var(--v2-text-text-muted);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-base);
|
|
letter-spacing: -0.04px;
|
|
text-align: center;
|
|
}
|
|
|
|
.settings-about-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
.settings-about-intro,
|
|
.settings-about-credits,
|
|
.settings-about-publication,
|
|
.settings-about-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.settings-about-intro {
|
|
gap: 14px;
|
|
}
|
|
|
|
.settings-about-version-line {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.settings-about-version {
|
|
position: relative;
|
|
isolation: isolate;
|
|
display: inline-flex;
|
|
min-height: 24px;
|
|
align-items: center;
|
|
margin-block: -2px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
transition: color 120ms ease;
|
|
}
|
|
|
|
.settings-about-version::before {
|
|
position: absolute;
|
|
z-index: -1;
|
|
inset-block: 0;
|
|
inset-inline: -6px;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
content: "";
|
|
transition: background-color 120ms ease;
|
|
}
|
|
|
|
.settings-about-version:hover,
|
|
.settings-about-version:focus-visible {
|
|
color: var(--v2-text-text-base);
|
|
outline: none;
|
|
}
|
|
|
|
.settings-about-version:hover::before,
|
|
.settings-about-version:focus-visible::before {
|
|
background: var(--v2-background-bg-layer-02);
|
|
}
|
|
|
|
.settings-about-version:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.settings-about-credits,
|
|
.settings-about-publication,
|
|
.settings-about-details {
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-about-wordmark {
|
|
width: 178px;
|
|
height: 32px;
|
|
flex-shrink: 0;
|
|
opacity: 0.2;
|
|
color: var(--v2-text-text-muted);
|
|
fill: currentColor;
|
|
}
|
|
|
|
.settings-about-letter-shadow {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.settings-about-faint,
|
|
.settings-about-credits {
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-about-legal {
|
|
width: 109.2px;
|
|
height: 19.2px;
|
|
}
|
|
|
|
.settings-about-copyright {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-about-anomaly-brush {
|
|
width: 126.72px;
|
|
height: 48.384px;
|
|
flex-shrink: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.settings-about-content a {
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.settings-about-content a:hover,
|
|
.settings-about-content a:focus-visible {
|
|
color: var(--v2-text-text-base);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.settings-about-link {
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
letter-spacing: inherit;
|
|
}
|
|
|
|
.settings-about-link:hover,
|
|
.settings-about-link:focus-visible {
|
|
color: var(--v2-text-text-base);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.settings-notices-scroll {
|
|
min-height: 0;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-notices {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
padding: 0 20px 20px;
|
|
color: var(--v2-text-text-muted);
|
|
font-size: 13px;
|
|
line-height: var(--line-height-base);
|
|
}
|
|
|
|
.settings-notice {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.settings-notice p {
|
|
margin: 0;
|
|
}
|
|
|
|
.settings-notice-heading {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
color: var(--v2-text-text-base);
|
|
font-weight: 540;
|
|
}
|
|
|
|
.settings-notice-heading span {
|
|
color: var(--v2-text-text-faint);
|
|
font-weight: 440;
|
|
}
|
|
|
|
.settings-notice-heading a {
|
|
color: inherit;
|
|
}
|
|
|
|
.settings-notice summary {
|
|
cursor: pointer;
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-notice pre {
|
|
margin: 0;
|
|
font-family: var(--font-family-mono);
|
|
font-size: 11px;
|
|
line-height: var(--line-height-compact);
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.settings-notice details pre {
|
|
margin-top: 8px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
background: var(--v2-background-bg-layer-02);
|
|
}
|
|
|
|
.settings-crates {
|
|
padding-top: 20px;
|
|
border-top: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-crates h3,
|
|
.settings-crates h4 {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: var(--line-height-base);
|
|
}
|
|
|
|
.settings-crates h4 {
|
|
margin-top: 8px;
|
|
color: var(--v2-text-text-base);
|
|
font-weight: 540;
|
|
}
|
|
|
|
.settings-crate-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin: 8px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.settings-crate {
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-crate-heading {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-crate-heading > span:first-child {
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-crate-heading a {
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-crate-heading > span:last-child {
|
|
flex-shrink: 0;
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-crate-heading strong {
|
|
color: var(--v2-text-text-base);
|
|
font-weight: 540;
|
|
}
|
|
|
|
.settings-crate p {
|
|
color: var(--v2-text-text-faint);
|
|
font-size: 12px;
|
|
white-space: pre-line;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.settings-crates summary span {
|
|
margin-inline-start: 8px;
|
|
}
|
|
|
|
.settings-crates details > p {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.settings-back {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
height: 28px;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding-inline: 6px;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--v2-text-text-muted);
|
|
font: inherit;
|
|
line-height: var(--line-height-compact);
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-back:hover,
|
|
.settings-back:focus-visible {
|
|
background: var(--v2-background-bg-layer-03);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-back:focus-visible {
|
|
outline: 2px solid var(--v2-border-border-focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
[dir="rtl"] .settings-back-icon {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
[data-component="dialog-v2"][data-variant="settings"] [data-slot="dialog-container"] {
|
|
background: var(--v2-background-bg-base);
|
|
}
|
|
|
|
[data-component="dialog-v2"][data-variant="settings"] [data-slot="dialog-body"] {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.settings-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
user-select: none;
|
|
container: settings-panel / inline-size;
|
|
}
|
|
|
|
.settings-panel :is(input, textarea, [contenteditable="true"]) {
|
|
user-select: text;
|
|
}
|
|
|
|
.settings-panel::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.settings-tab-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
padding: 40px 40px 0;
|
|
background: var(--v2-background-bg-base);
|
|
}
|
|
|
|
.settings-tab-header::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline: 0;
|
|
top: 100%;
|
|
height: 24px;
|
|
background: linear-gradient(to bottom, var(--v2-background-bg-base), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.settings-tab-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.settings-tab-title {
|
|
font-size: 15px;
|
|
font-weight: 640;
|
|
line-height: var(--line-height-base);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
/* As tall as the title's line box, so header actions center on the title rather than on the title and description. */
|
|
.settings-tab-header-actions {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-self: flex-start;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: var(--line-height-base);
|
|
}
|
|
|
|
.settings-tab-header-actions:not(:has(*)) {
|
|
display: none;
|
|
}
|
|
|
|
.settings-server-switcher[data-component="button-v2"] {
|
|
max-width: 240px;
|
|
gap: 6px;
|
|
padding-inline: 6px;
|
|
}
|
|
|
|
.settings-server-switcher-icon {
|
|
display: inline-flex;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--v2-icon-icon-muted);
|
|
}
|
|
|
|
.settings-server-switcher-label {
|
|
flex-shrink: 0;
|
|
color: var(--v2-text-text-muted);
|
|
font-weight: 440;
|
|
}
|
|
|
|
.settings-server-switcher-name {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-server-switcher-chevron {
|
|
flex-shrink: 0;
|
|
color: var(--v2-icon-icon-muted);
|
|
}
|
|
|
|
.settings-server-switcher-menu[data-component="menu-v2-content"] {
|
|
min-width: 220px;
|
|
max-width: min(320px, calc(100vw - 32px));
|
|
}
|
|
|
|
/* One grid for every row: a 16px status or icon column, the name, then the selection check. */
|
|
.settings-server-switcher-menu [data-component="menu-v2-item"] {
|
|
padding-inline-start: 8px;
|
|
}
|
|
|
|
.settings-server-switcher-option {
|
|
min-width: 0;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-server-switcher-status {
|
|
flex-shrink: 0;
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-server-unavailable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 40px 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.settings-server-unavailable-icon {
|
|
margin-bottom: 4px;
|
|
color: var(--v2-icon-icon-muted);
|
|
}
|
|
|
|
.settings-server-unavailable-title {
|
|
color: var(--v2-text-text-base);
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-server-unavailable-description {
|
|
max-width: 360px;
|
|
color: var(--v2-text-text-muted);
|
|
font-size: 13px;
|
|
line-height: var(--line-height-base);
|
|
}
|
|
|
|
.settings-server-unavailable-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.settings-tab-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
width: 100%;
|
|
padding: 24px 40px calc(80px + var(--settings-bottom-inset, 0px));
|
|
}
|
|
|
|
.settings-tab-body--sectioned {
|
|
padding-top: 32px;
|
|
}
|
|
|
|
[data-slot="settings-row-description"] a.settings-link {
|
|
color: var(--v2-text-text-accent);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
[data-slot="settings-row-description"] a.settings-link:hover {
|
|
color: var(--v2-text-text-accent-hover);
|
|
}
|
|
|
|
.settings-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-section-title {
|
|
padding: 0;
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-section-stack {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
[data-component="settings-list"] {
|
|
border-radius: 8px;
|
|
background-color: var(--v2-background-bg-layer-01);
|
|
padding-inline: 20px;
|
|
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
|
|
}
|
|
|
|
[data-component="settings-list"][data-variant="catalog"] {
|
|
--settings-list-row-padding: 16px;
|
|
--settings-list-icon-gap: 8px;
|
|
padding-inline: 16px;
|
|
}
|
|
|
|
.settings-interface-feature [data-component="settings-list"] {
|
|
background-color: var(--v2-background-bg-base);
|
|
box-shadow: var(--v2-elevation-raised);
|
|
}
|
|
|
|
[data-component="settings-row"] {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding-block: var(--settings-list-row-padding, 20px);
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
[data-component="settings-row"][data-align="start"] {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
[data-component="settings-row"]:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
[data-component="settings-row"] {
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
|
|
[data-slot="settings-row-copy"] {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
[data-slot="settings-row-title"] {
|
|
font-style: normal;
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
letter-spacing: -0.04px;
|
|
color: var(--v2-text-text-base);
|
|
font-variation-settings: "slnt" 0;
|
|
}
|
|
|
|
[data-slot="settings-row-description"] {
|
|
margin-block: -3.5px;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: 20px;
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
[data-slot="settings-row-control"] {
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* The :has() belongs on the control, not on its div. Chromium checks a div:has() subject against every div in the
|
|
document and flags each one, then restyles a flagged div whenever an element is inserted anywhere beneath it, which
|
|
is every ancestor of a streaming answer. */
|
|
[data-slot="settings-row-control"]:has(> div [data-component="switch"]) > div,
|
|
[data-slot="settings-row-control"] > [data-component="switch"] {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
[data-component="settings-list"][data-variant="catalog"]
|
|
[data-slot="settings-row-control"]:has(> div [data-component="switch"])
|
|
> div,
|
|
[data-component="settings-list"][data-variant="catalog"]
|
|
[data-slot="settings-row-control"]
|
|
> [data-component="switch"] {
|
|
padding: 0;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
[data-slot="settings-row-control"] {
|
|
width: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
[data-slot="settings-row-control"] [data-component="text-input-v2"] {
|
|
width: 100%;
|
|
}
|
|
|
|
:is([data-component="dialog-v2"][data-variant="settings"], .settings-screen) [data-component="select-v2-root"] {
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
:is([data-component="dialog-v2"][data-variant="settings"], .settings-screen) [data-component="select-v2"] {
|
|
max-width: 100%;
|
|
}
|
|
|
|
:is([data-component="dialog-v2"][data-variant="settings"], .settings-screen) [data-component="button-v2"] {
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
[data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"] > [data-slot="tabs-v2-list"] {
|
|
background-color: var(--v2-background-bg-layer-01);
|
|
}
|
|
|
|
/* The whole view scrolls and the sidebar sticks, so a wheel over the gutters or the page list scrolls the page natively. */
|
|
@container settings-screen (min-width: 800px) {
|
|
.settings-screen > .settings {
|
|
align-items: flex-start;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-sidebar {
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-content {
|
|
min-height: 100%;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-content > .settings-panel {
|
|
flex: 1 0 auto;
|
|
height: auto;
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
@container settings-screen (min-width: 800px) and (max-width: 1047px) {
|
|
.settings-screen > .settings {
|
|
padding-inline: 24px;
|
|
}
|
|
|
|
.settings-screen
|
|
> .settings[data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"]
|
|
> .settings-sidebar {
|
|
width: 240px;
|
|
min-width: 240px;
|
|
padding-inline-start: 16px;
|
|
padding-inline-end: 24px;
|
|
}
|
|
}
|
|
|
|
@container settings-screen (max-width: 799px) {
|
|
.settings-screen > .settings[data-component="tabs-v2"] {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.settings-mobile-nav {
|
|
position: relative;
|
|
z-index: 11;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 8px var(--settings-mobile-inner-inset, 16px);
|
|
border-bottom: 0.5px solid var(--v2-border-border-muted);
|
|
background: var(--v2-background-bg-base);
|
|
}
|
|
|
|
.settings-mobile-nav::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline: 0;
|
|
inset-block-start: 100%;
|
|
height: 1px;
|
|
background: var(--v2-background-bg-base);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.settings-mobile-nav .settings-back {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-content {
|
|
min-height: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
.settings-screen .settings-tab-header,
|
|
.settings-screen .settings-tab-body {
|
|
padding-inline: var(--settings-mobile-inner-inset, 16px);
|
|
}
|
|
|
|
.settings-screen .settings-tab-header {
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.settings-screen
|
|
> .settings[data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"]
|
|
> .settings-sidebar {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 8px var(--settings-mobile-inner-inset, 16px);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.settings-nav {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.settings-nav > .settings-back,
|
|
.settings-sidebar .settings-nav-groups[data-slot="tabs-v2-list"] {
|
|
display: none;
|
|
}
|
|
|
|
.settings-screen > .settings > .settings-sidebar[data-searchable="false"] {
|
|
display: none;
|
|
}
|
|
|
|
.settings-search [data-slot="text-input-v2-input"] {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
@container settings-panel (max-width: 520px) {
|
|
.settings-tab-header-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Wrapped below the description, the actions no longer share the title's line. */
|
|
.settings-tab-header-actions {
|
|
height: auto;
|
|
}
|
|
|
|
.settings-tab-header-row [data-component="select-v2-root"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.settings-tab-header-row [data-component="select-v2"] {
|
|
width: 100%;
|
|
}
|
|
|
|
[data-component="settings-row"] {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
[data-slot="settings-row-control"] {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.settings-provider-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding-block: var(--settings-list-row-padding, 20px);
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-provider-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
[data-component="connected-providers-section"] .settings-provider-row {
|
|
min-height: 48px;
|
|
padding-block: 10px;
|
|
}
|
|
|
|
.settings-provider-console {
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-provider-console:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-provider-console-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
min-height: 48px;
|
|
padding-block: 10px;
|
|
}
|
|
|
|
.settings-provider-console-summary {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.settings-provider-console-toggle {
|
|
display: flex;
|
|
height: 28px;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding-inline: 4px;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--v2-text-text-muted);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.settings-provider-console-toggle:hover {
|
|
background: var(--v2-overlay-simple-overlay-hover);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
}
|
|
|
|
.settings-provider-console-chevron {
|
|
color: var(--v2-icon-icon-muted);
|
|
transition: transform 150ms ease-out;
|
|
}
|
|
|
|
.settings-provider-console-chevron.open {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.settings-provider-console-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.settings-provider-console-separator {
|
|
height: 0.5px;
|
|
margin-bottom: 6px;
|
|
background: var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-provider-console-item {
|
|
display: flex;
|
|
width: 100%;
|
|
min-height: 24px;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding-inline: 10px;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--v2-text-text-base);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-provider-console-item-chevron {
|
|
color: var(--v2-icon-icon-base);
|
|
opacity: 0;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.settings-provider-console-item:hover {
|
|
background: var(--v2-overlay-simple-overlay-hover);
|
|
}
|
|
|
|
.settings-provider-console-item:hover .settings-provider-console-item-chevron {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.settings-provider-console-item:focus-visible {
|
|
background: var(--v2-overlay-simple-overlay-hover);
|
|
}
|
|
|
|
.settings-provider-console-item:focus-visible .settings-provider-console-item-chevron {
|
|
opacity: 1;
|
|
}
|
|
|
|
:root[data-motion="reduce"] {
|
|
.settings-provider-console-chevron {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@container settings-panel (max-width: 520px) {
|
|
.settings-provider-console-header {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.settings-provider-row {
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
|
|
@container settings-panel (max-width: 520px) {
|
|
.settings-provider-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
.settings-providers [data-component="provider-icon"] {
|
|
color: var(--v2-icon-icon-base);
|
|
}
|
|
|
|
.settings-provider-lead {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
align-items: flex-start;
|
|
gap: var(--settings-list-icon-gap, 10px);
|
|
}
|
|
|
|
.settings-provider-lead:not(:has(.settings-provider-copy)) {
|
|
align-items: center;
|
|
}
|
|
|
|
.settings-provider-copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.settings-provider-main {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-provider-name {
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-provider-description {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: 20px;
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-provider-empty {
|
|
padding-block: var(--settings-list-row-padding, 20px);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-provider-env-hint {
|
|
padding-inline-end: 12px;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-muted);
|
|
opacity: 0;
|
|
transition: opacity 200ms ease;
|
|
cursor: default;
|
|
}
|
|
|
|
.group:hover .settings-provider-env-hint {
|
|
opacity: 1;
|
|
}
|
|
|
|
.settings-provider-account-actions {
|
|
display: flex;
|
|
min-width: 0;
|
|
max-width: min(272px, 50%);
|
|
align-items: center;
|
|
}
|
|
|
|
.settings-provider-account-trigger {
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-provider-account-trigger > span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-provider-account-input {
|
|
max-width: min(240px, 45%);
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: 20px;
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-provider-account-menu[data-component="menu-v2-content"] {
|
|
width: min(260px, calc(100vw - 32px));
|
|
overflow: visible;
|
|
}
|
|
|
|
.settings-provider-account-list {
|
|
max-height: min(240px, calc(var(--kb-popper-content-available-height) - 120px));
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-provider-account-label {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@container settings-panel (max-width: 520px) {
|
|
.settings-provider-account-actions {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.settings-providers-view-all {
|
|
margin-top: 20px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-accent);
|
|
cursor: pointer;
|
|
text-align: start;
|
|
}
|
|
|
|
.settings-providers-view-all:hover {
|
|
color: var(--v2-text-text-accent-hover);
|
|
}
|
|
|
|
.settings-tab-header.settings-tab-header--stacked {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.settings-tab-header--stacked > .settings-tab-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-tab-search {
|
|
position: relative;
|
|
width: calc(100% - 2px);
|
|
margin-inline: 1px;
|
|
}
|
|
|
|
.settings-tab-search [data-component="text-input-v2"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.settings-tab-search [data-slot="text-input-v2-input"] {
|
|
padding-inline-end: 28px;
|
|
}
|
|
|
|
.settings-filter-search [data-component="text-input-v2"] {
|
|
height: 36px;
|
|
background: color-mix(in oklab, var(--v2-background-bg-layer-02) 60%, transparent);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.settings-filter-search [data-component="text-input-v2"]:is(:hover, :focus-within):not([data-disabled]) {
|
|
background: var(--v2-background-bg-layer-02);
|
|
}
|
|
|
|
.settings-filter-search [data-slot="text-input-v2-input"] {
|
|
padding-inline-end: 0;
|
|
}
|
|
|
|
.settings-filter-search [data-slot="text-input-v2-leading-icon"] {
|
|
padding-inline-start: 16px;
|
|
}
|
|
|
|
.settings-filter-search [data-slot="text-input-v2-value"] {
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-filter-search [data-slot="text-input-v2-icon-button"][data-variant="clear"] {
|
|
margin-inline-end: -4px;
|
|
}
|
|
|
|
.settings-tab-search-empty {
|
|
width: 60%;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.settings-tab-search-empty .settings-search-empty {
|
|
justify-content: center;
|
|
padding-inline: 0;
|
|
}
|
|
|
|
.settings-tab-search-empty .settings-search-empty-quoted {
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
.settings-project-empty-card {
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
background: color-mix(in oklab, var(--v2-background-bg-base) 50%, var(--v2-background-bg-layer-01));
|
|
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
|
|
}
|
|
|
|
.settings-project-list {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
background: var(--v2-background-bg-layer-01);
|
|
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
|
|
}
|
|
|
|
.settings-project-row-shell {
|
|
position: relative;
|
|
margin-inline: 4px;
|
|
padding-block: 4px;
|
|
}
|
|
|
|
.settings-project-row-shell:not(:last-child)::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline: 12px;
|
|
bottom: 0;
|
|
height: 0.5px;
|
|
background: var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-project-row-shell:only-child {
|
|
margin-inline: 0;
|
|
padding-block: 0;
|
|
}
|
|
|
|
.settings-project-row-shell:only-child .settings-project-card {
|
|
height: 48px;
|
|
padding-inline: 16px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.settings-project-card {
|
|
display: flex;
|
|
height: 40px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding-inline: 12px;
|
|
border-radius: 4px;
|
|
transition: background-color 120ms;
|
|
}
|
|
|
|
.settings-project-card:hover,
|
|
.settings-project-card:focus-within,
|
|
.settings-project-card[data-menu="true"] {
|
|
background: var(--v2-background-bg-layer-02);
|
|
}
|
|
.settings-models {
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-models .settings-section {
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-models .settings-section[data-expanded] {
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.settings-models-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 28px;
|
|
}
|
|
|
|
.settings-models-group-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 28px;
|
|
padding: 4px 8px 4px 4px;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-models-group-trigger:focus-visible {
|
|
outline: 2px solid var(--v2-border-border-focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.settings-models-group-trigger:not(:disabled):hover {
|
|
background-color: var(--v2-background-bg-layer-02);
|
|
}
|
|
}
|
|
|
|
.settings-models-group-trigger:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.settings-models-group-chevron {
|
|
display: flex;
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--v2-icon-icon-muted);
|
|
}
|
|
|
|
.settings-models-group-chevron svg {
|
|
transition: transform 150ms ease;
|
|
}
|
|
|
|
.settings-models-group-chevron svg.collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
:dir(rtl) .settings-models-group-chevron svg.collapsed {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.settings-models-group-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-models-group-title {
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.provider-model-groups {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.provider-model-group[data-expanded]:not(:last-child) {
|
|
margin-block-end: 4px;
|
|
}
|
|
|
|
.settings-models-console-groups {
|
|
margin-inline-start: 14px;
|
|
padding-inline-start: 16px;
|
|
border-inline-start: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.provider-model-group {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
background-color: var(--v2-background-bg-layer-01);
|
|
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
|
|
}
|
|
|
|
.provider-model-group-header {
|
|
position: relative;
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.provider-model-group-trigger {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
min-height: 48px;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 16px;
|
|
padding: 12px 16px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--v2-text-text-base);
|
|
text-align: start;
|
|
}
|
|
|
|
.provider-model-group-trigger:focus-visible {
|
|
outline: 2px solid var(--v2-border-border-focus);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.provider-model-group-header:has(:focus-visible) {
|
|
background-color: var(--v2-background-bg-layer-02);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.provider-model-group-header:hover {
|
|
background-color: var(--v2-background-bg-layer-02);
|
|
}
|
|
}
|
|
|
|
.provider-model-group-trigger:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.provider-model-group-label {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.provider-model-group-title {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.provider-model-group-chevron {
|
|
flex-shrink: 0;
|
|
margin-inline-start: -2px;
|
|
color: var(--v2-icon-icon-muted);
|
|
transition: transform 150ms ease;
|
|
}
|
|
|
|
.provider-model-group-chevron.collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
:dir(rtl) .provider-model-group-chevron.collapsed {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.provider-model-group-actions {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding-inline-end: 12px;
|
|
}
|
|
|
|
.provider-model-group-models {
|
|
padding-inline: 16px;
|
|
}
|
|
|
|
.provider-model-group-models > [data-component="settings-list"] {
|
|
padding-inline: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border-top: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.provider-model-group:has(.provider-model-group-header :focus-visible)
|
|
.provider-model-group-models
|
|
> [data-component="settings-list"] {
|
|
border-top-color: transparent;
|
|
}
|
|
|
|
.provider-model-group:has(.provider-model-group-header :focus-visible) {
|
|
outline: 0.5px solid var(--v2-border-border-muted);
|
|
outline-offset: -0.5px;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.provider-model-group:has(.provider-model-group-header:hover) {
|
|
outline: 0.5px solid var(--v2-border-border-muted);
|
|
outline-offset: -0.5px;
|
|
}
|
|
|
|
.provider-model-group:has(.provider-model-group-header:hover)
|
|
.provider-model-group-models
|
|
> [data-component="settings-list"] {
|
|
border-top-color: transparent;
|
|
}
|
|
}
|
|
|
|
.provider-model-groups--dialog {
|
|
padding-block: 2px;
|
|
}
|
|
|
|
:root[data-motion="reduce"] {
|
|
.settings-models-group-chevron svg,
|
|
.provider-model-group-chevron {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.settings-models [data-component="provider-icon"] {
|
|
color: var(--v2-icon-icon-base);
|
|
}
|
|
|
|
.settings-models [data-slot="settings-row-description"]:empty {
|
|
display: none;
|
|
}
|
|
|
|
.settings-models [data-slot="settings-row-copy"] {
|
|
gap: 0;
|
|
}
|
|
|
|
.settings-models [data-component="settings-row"] {
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.settings-models [data-slot="settings-row-control"] {
|
|
width: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.settings-models [data-slot="settings-row-title"] {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: 16px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-models-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
padding-block: 48px;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.settings-models-status-filter {
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-shortcuts [data-component="settings-list"] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 20px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.settings-shortcuts [data-component="settings-list"] > div {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-shortcuts [data-component="settings-list"] > div:not(:last-child) {
|
|
padding-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-shortcuts [data-component="settings-list"] > div > span {
|
|
font-weight: 440;
|
|
font-size: 13px;
|
|
line-height: var(--line-height-compact);
|
|
letter-spacing: -0.04px;
|
|
color: var(--v2-text-text-base);
|
|
font-variation-settings: "slnt" 0;
|
|
}
|
|
|
|
.settings-servers-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-server-connection [data-component="settings-list"] {
|
|
padding-inline: 16px;
|
|
}
|
|
|
|
.settings-server-connection .settings-servers-row {
|
|
padding-block: 20px;
|
|
}
|
|
|
|
.settings-servers-row:not(:last-child) {
|
|
padding-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-servers-actions {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-servers-lead {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.settings-servers-copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.settings-servers-name {
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-servers-meta {
|
|
font-size: 11px;
|
|
font-weight: 440;
|
|
line-height: 1;
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-tab-body.settings-workspaces {
|
|
gap: 0;
|
|
}
|
|
|
|
.settings-workspaces-toolbar {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.settings-workspaces-toolbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.settings-workspaces-delete-all {
|
|
color: var(--v2-state-fg-danger);
|
|
}
|
|
|
|
.settings-workspaces-inventory [data-component="settings-list"] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
background-color: var(--v2-background-bg-layer-01);
|
|
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-workspaces-inventory[data-empty="true"] [data-component="settings-list"] {
|
|
padding: 0;
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.settings-workspaces-row-motion {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr);
|
|
opacity: 1;
|
|
transition:
|
|
grid-template-rows 150ms ease-out,
|
|
opacity 120ms ease-out;
|
|
}
|
|
|
|
.settings-workspaces-row-motion[data-removing="true"] {
|
|
grid-template-rows: minmax(0, 0fr);
|
|
opacity: 0;
|
|
}
|
|
|
|
.settings-workspaces-row {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
overflow: hidden;
|
|
transition:
|
|
padding-bottom 150ms ease-out,
|
|
margin-bottom 150ms ease-out,
|
|
border-color 120ms ease-out;
|
|
}
|
|
|
|
.settings-workspaces-row-motion:not(:last-child) > .settings-workspaces-row {
|
|
padding-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-workspaces-row-motion:has(+ .settings-workspaces-row-motion[data-removing="true"]:last-child)
|
|
> .settings-workspaces-row {
|
|
padding-bottom: 0;
|
|
margin-bottom: 0;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.settings-workspaces-empty-motion {
|
|
display: grid;
|
|
min-height: 0;
|
|
grid-template-rows: minmax(0, 0fr);
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
transition:
|
|
grid-template-rows 150ms ease-out,
|
|
opacity 120ms ease-out;
|
|
}
|
|
|
|
.settings-workspaces-empty-motion[data-visible="true"] {
|
|
grid-template-rows: minmax(0, 1fr);
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.settings-workspaces-empty-motion > .settings-workspaces-empty {
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
:root[data-motion="reduce"] {
|
|
.settings-workspaces-row-motion {
|
|
transition: none;
|
|
}
|
|
|
|
.settings-workspaces-row,
|
|
.settings-workspaces-empty-motion {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.settings-workspaces-row-header {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
|
|
.settings-workspaces-copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-workspaces-main {
|
|
display: flex;
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-workspaces-row-actions {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-workspaces-main [data-component="tooltip-v2-trigger"] {
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-workspaces-path {
|
|
display: block;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--v2-text-text-base);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
letter-spacing: -0.04px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 0;
|
|
text-align: left;
|
|
cursor: default;
|
|
}
|
|
|
|
.settings-workspaces-path-name {
|
|
color: var(--v2-text-text-base);
|
|
font-weight: 530;
|
|
}
|
|
|
|
.settings-workspaces-meta {
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-workspaces-meta-project {
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-workspaces-active,
|
|
.settings-workspaces-more {
|
|
flex-shrink: 0;
|
|
font-size: 11px;
|
|
font-weight: 440;
|
|
line-height: 1;
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-workspaces-active {
|
|
font-size: 13px;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-workspaces-sessions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 0.5px solid var(--v2-border-border-base);
|
|
border-radius: 6px;
|
|
background-color: var(--v2-background-bg-base);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.settings-workspaces-session {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding-block: 10px;
|
|
padding-inline: 12px 16px;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: 16px;
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-workspaces-session:not(:last-child) {
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-workspaces-session > span:first-child {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-workspaces-session-time {
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-faint);
|
|
}
|
|
|
|
.settings-workspaces-empty {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-workspaces-empty-title {
|
|
color: var(--v2-text-text-base);
|
|
font-weight: 530;
|
|
}
|
|
|
|
@media (max-width: 639px) {
|
|
.settings-workspaces-header {
|
|
padding: 24px 20px 0;
|
|
}
|
|
|
|
.settings-tab-body.settings-workspaces {
|
|
padding-inline: 20px;
|
|
}
|
|
|
|
.settings-workspaces-toolbar,
|
|
.settings-workspaces-main {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.settings-workspaces-toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-workspaces-toolbar-actions {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.settings-workspaces-inventory [data-component="settings-list"] {
|
|
padding: 14px;
|
|
}
|
|
|
|
.settings-workspaces-path {
|
|
overflow: visible;
|
|
text-overflow: clip;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.settings-workspaces-active {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@container settings-panel (max-width: 520px) {
|
|
.settings-workspaces-toolbar,
|
|
.settings-workspaces-main {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.settings-workspaces-toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-workspaces-toolbar-actions {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.settings-workspaces-inventory [data-component="settings-list"] {
|
|
padding: 14px;
|
|
}
|
|
|
|
.settings-workspaces-path {
|
|
overflow: visible;
|
|
text-overflow: clip;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.settings-workspaces-active {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
[data-component="dialog-v2"].settings-server-dialog [data-slot="dialog-container"] {
|
|
width: 480px;
|
|
max-width: calc(100vw - 32px);
|
|
height: auto;
|
|
border-radius: 8px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
[data-component="dialog-v2"].settings-server-dialog [data-slot="dialog-content"] {
|
|
align-items: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
[data-component="dialog-v2"].settings-server-dialog [data-slot="dialog-header"] {
|
|
align-items: center;
|
|
padding: 24px 24px 16px;
|
|
}
|
|
|
|
[data-component="dialog-v2"].settings-server-dialog [data-slot="dialog-body"] {
|
|
display: flex;
|
|
width: 100%;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
[data-component="dialog-v2"].settings-server-dialog [data-slot="dialog-footer"] {
|
|
padding: 24px;
|
|
}
|
|
|
|
.settings-server-dialog-label {
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-server-dialog-error {
|
|
font-size: 11px;
|
|
font-weight: 440;
|
|
/* Pairing errors are full sentences that wrap. */
|
|
line-height: var(--line-height-compact);
|
|
color: var(--v2-state-fg-danger);
|
|
}
|
|
|
|
.settings-server-dialog-hint {
|
|
font-size: 13px;
|
|
line-height: var(--line-height-base);
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
.settings-server-dialog-notice {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--v2-border-border-base);
|
|
border-radius: 6px;
|
|
background: var(--v2-background-bg-layer-01);
|
|
font-size: 13px;
|
|
line-height: var(--line-height-base);
|
|
color: var(--v2-text-text-base);
|
|
}
|
|
|
|
.settings-server-dialog-notice [data-slot="icon-svg"] {
|
|
flex: none;
|
|
margin-block: 2px;
|
|
color: var(--v2-icon-icon-muted);
|
|
}
|
|
|
|
.settings-extensions-tabs[data-component="tabs-v2"][data-variant="pill"] > [data-slot="tabs-v2-list"] {
|
|
width: min(280px, 100%);
|
|
}
|
|
|
|
.settings-subtabs[data-component="tabs-v2"][data-variant="pill"] > [data-slot="tabs-v2-list"] {
|
|
padding-inline: 0 !important;
|
|
}
|
|
|
|
.settings-subtabs > [data-slot="tabs-v2-content"] {
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.settings-extension-row {
|
|
display: flex;
|
|
min-height: 56px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding-block: var(--settings-list-row-padding, 16px);
|
|
border-bottom: 0.5px solid var(--v2-border-border-base);
|
|
}
|
|
|
|
.settings-extension-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.settings-extension-trailing {
|
|
display: flex;
|
|
min-width: 60px;
|
|
flex-shrink: 0;
|
|
justify-content: flex-end;
|
|
font-size: 13px;
|
|
font-weight: 440;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-mcp-row .settings-extension-trailing {
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-mcp-row {
|
|
gap: 16px;
|
|
}
|
|
|
|
/* The MCP status dot takes the icon's 16px slot, so names line up with the plugin and skill rows. */
|
|
.settings-mcp-status {
|
|
display: grid;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
place-items: center;
|
|
}
|
|
|
|
.settings-mcp-row[data-status="disabled"] .settings-extension-name {
|
|
color: var(--v2-text-text-muted);
|
|
}
|
|
|
|
/* A quiet toggle under a plugin's error, its label lined up with the error text above it. */
|
|
.settings-plugin-error-toggle[data-component="button-v2"][data-size="small"] {
|
|
height: 20px;
|
|
margin-inline-start: -5px;
|
|
padding-inline: 5px;
|
|
font-size: 11px;
|
|
font-weight: 440;
|
|
line-height: 16px;
|
|
letter-spacing: 0.05px;
|
|
}
|
|
|
|
.settings-extension-lead {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: var(--settings-list-icon-gap, 8px);
|
|
}
|
|
|
|
.settings-extension-name {
|
|
font-size: 13px;
|
|
font-weight: 530;
|
|
line-height: var(--line-height-compact);
|
|
}
|
|
|
|
.settings-extension-heading,
|
|
.settings-extension-name {
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.settings-extension-link {
|
|
color: var(--v2-text-text-accent) !important;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.settings-extension-link:hover {
|
|
color: var(--v2-text-text-accent-hover) !important;
|
|
}
|
|
|
|
.settings-subtabs[data-component="tabs-v2"][data-variant="pill"] > [data-slot="tabs-v2-list"]::before {
|
|
display: none;
|
|
}
|
|
|
|
.settings-subtabs[data-component="tabs-v2"][data-variant="pill"]
|
|
> [data-slot="tabs-v2-list"]
|
|
[data-slot="tabs-v2-trigger-wrapper"] {
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.settings-subtabs[data-component="tabs-v2"][data-variant="pill"]
|
|
> [data-slot="tabs-v2-list"]
|
|
[data-slot="tabs-v2-trigger"] {
|
|
padding-inline: 8px;
|
|
}
|