# New Features - Added custom prompt mode - Always use the default environment and profile for a more compact UI - Added option to hide the toolbar when it's empty - Added documentation and icon # Fixed bugs - Fixed issue with config returning to defaults - Fixed TOC lag when cards update - Fixed some UI consistency issues - Dynamically show site text char count in popup UI Reviewed-on: #3
878 lines
13 KiB
CSS
878 lines
13 KiB
CSS
:root {
|
|
--ink: #221b15;
|
|
--muted: #6b5f55;
|
|
--accent: #b14d2b;
|
|
--danger: #b42318;
|
|
--panel: #fffaf1;
|
|
--border: #eadbc8;
|
|
--bg: #f5ead7;
|
|
--input-bg: #fffdf9;
|
|
--input-fg: var(--ink);
|
|
--card-bg: #fffefb;
|
|
--panel-shadow: 0 18px 40px rgba(120, 85, 55, 0.12);
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--ink: #abb2bf;
|
|
--muted: #8b93a5;
|
|
--accent: #61afef;
|
|
--danger: #ff6b6b;
|
|
--panel: #2f343f;
|
|
--border: #3e4451;
|
|
--bg: linear-gradient(160deg, #2a2f3a, #1f232b);
|
|
--input-bg: #2b303b;
|
|
--input-fg: var(--ink);
|
|
--card-bg: #2b303b;
|
|
--panel-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
|
|
color-scheme: dark;
|
|
}
|
|
|
|
:root[data-theme="light"] {
|
|
color-scheme: light;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 24px;
|
|
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
color: var(--ink);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.settings-layout {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.toc {
|
|
flex: 0 0 160px;
|
|
width: 160px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-self: flex-start;
|
|
position: sticky;
|
|
top: 16px;
|
|
padding: 12px;
|
|
max-height: calc(100vh - 32px);
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel);
|
|
box-shadow: var(--panel-shadow);
|
|
}
|
|
|
|
.toc-title {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toc-heading {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.toc a.toc-active {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toc a.toc-active::before {
|
|
content: "•";
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.toc-links {
|
|
display: block;
|
|
overflow-y: auto;
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.toc-group {
|
|
margin: 0;
|
|
}
|
|
|
|
.toc-group summary {
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
color: var(--ink);
|
|
list-style-position: inside;
|
|
}
|
|
|
|
.toc-group summary::marker {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toc-group summary:hover {
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.toc-group summary a {
|
|
display: inline;
|
|
padding: 0;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.toc-resizer {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 6px;
|
|
height: 100%;
|
|
cursor: col-resize;
|
|
background: transparent;
|
|
}
|
|
|
|
body.is-resizing {
|
|
cursor: col-resize;
|
|
user-select: none;
|
|
}
|
|
|
|
.toc ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
.toc-sub {
|
|
padding-left: 12px !important;
|
|
margin-top: 2px !important;
|
|
display: grid;
|
|
}
|
|
|
|
.toc li a {
|
|
display: block;
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
color: var(--ink);
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.toc li a:hover {
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.toc-group summary a {
|
|
display: inline;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.toc-group summary a:hover {
|
|
background: transparent;
|
|
}
|
|
|
|
.toc-sub li a {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toc-sub li a:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.sidebar-errors {
|
|
margin-top: 8px;
|
|
border-radius: 10px;
|
|
border: 1px solid #c0392b;
|
|
background: rgba(192, 57, 43, 0.08);
|
|
color: #c0392b;
|
|
font-size: 11px;
|
|
padding: 8px;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.settings-main {
|
|
flex: 1;
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.title-block {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
box-shadow: var(--panel-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-summary {
|
|
cursor: pointer;
|
|
padding: 12px 16px;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
list-style: none;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.panel-summary::marker {
|
|
content: "";
|
|
}
|
|
|
|
.panel-summary h2,
|
|
.panel-summary h3 {
|
|
display: inline;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.panel-summary::before {
|
|
content: "▶";
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
line-height: 1;
|
|
}
|
|
|
|
details[open] > .panel-summary::before {
|
|
content: "▼";
|
|
}
|
|
|
|
.panel-summary .row-title {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.panel-summary-row {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding-left: 8px;
|
|
min-height: 32px;
|
|
width: 100%;
|
|
line-height: normal;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.panel-summary-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.panel-summary-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sub-panel .panel-summary {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.sub-panel .panel-body {
|
|
padding: 12px;
|
|
}
|
|
|
|
.panel-body {
|
|
margin-top: 0;
|
|
padding: 12px 16px 16px;
|
|
}
|
|
|
|
.sub-panel .panel-body.panel-body-inherited {
|
|
padding: 0 12px 12px;
|
|
}
|
|
|
|
.sub-panel .scope-group-inherited {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.panel[open] .panel-summary {
|
|
margin-bottom: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sub-panel {
|
|
box-shadow: none;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.sub-panel:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.workspace-card .sub-panel,
|
|
.site-card .sub-panel {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.row-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.row-title {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hint {
|
|
font-size: 12px;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hint-accent {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
label {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toggle-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.toggle-label input[type="checkbox"] {
|
|
width: auto;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--input-bg);
|
|
color: var(--input-fg);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.inline {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
border: none;
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.enabled-toggle {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.accent {
|
|
background: var(--accent);
|
|
color: #fff9f3;
|
|
box-shadow: 0 8px 20px rgba(177, 77, 43, 0.2);
|
|
}
|
|
|
|
.ghost {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.status {
|
|
font-size: 12px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.status.is-dirty {
|
|
color: var(--danger);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tasks {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.workspaces,
|
|
.sites {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.workspace-card,
|
|
.site-card {
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.workspace-card:not([open]) > .panel-summary,
|
|
.site-card:not([open]) > .panel-summary {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.workspace-header,
|
|
.site-header {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.workspace-header .field,
|
|
.site-header .field {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.task-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.task-fields {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
grid-template-rows: auto auto;
|
|
column-gap: 10px;
|
|
row-gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.task-field-label {
|
|
margin: 0;
|
|
font-size: 11px;
|
|
letter-spacing: 0.6px;
|
|
}
|
|
|
|
.task-field-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.shortcuts {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.shortcut-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.shortcut-fields {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
grid-template-rows: auto auto;
|
|
column-gap: 10px;
|
|
row-gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.shortcut-field-label {
|
|
margin: 0;
|
|
font-size: 11px;
|
|
letter-spacing: 0.6px;
|
|
}
|
|
|
|
.shortcut-field-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.scope-group {
|
|
margin-top: 12px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scope-title {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
color: var(--muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scope-meta-link {
|
|
border: none;
|
|
padding: 0;
|
|
background: transparent;
|
|
font: inherit;
|
|
text-transform: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.panel-meta-link {
|
|
border: none;
|
|
padding: 0;
|
|
background: transparent;
|
|
font: inherit;
|
|
text-transform: none;
|
|
cursor: pointer;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.panel-meta-link:focus-visible {
|
|
outline: 1px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.scope-meta-link:focus-visible {
|
|
outline: 1px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.inherited-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.inherited-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.inherited-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel);
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.inherited-button input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.inherited-item.is-enabled .inherited-button {
|
|
border: 1px solid var(--accent);
|
|
background: var(--accent);
|
|
color: #fff9f3;
|
|
box-shadow: 0 8px 20px rgba(177, 77, 43, 0.2);
|
|
}
|
|
|
|
.inherited-item.is-disabled .inherited-button {
|
|
background: transparent;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.inherited-item.is-overridden .inherited-button {
|
|
cursor: default;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.dup-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.dup-select {
|
|
min-width: 160px;
|
|
}
|
|
|
|
.dup-select option.dup-option-cancel {
|
|
color: #c0392b;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sites-list {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.sites-list a {
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sites-list a:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.api-keys {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.api-key-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.api-key-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.api-key-actions .delete,
|
|
.api-config-actions .delete,
|
|
.env-config-actions .delete,
|
|
.task-actions .delete,
|
|
.shortcut-actions .delete {
|
|
background: #c0392b;
|
|
border-color: #c0392b;
|
|
color: #fff6f2;
|
|
}
|
|
|
|
.workspace-card .panel-summary-right .delete,
|
|
.site-card .panel-summary-right .delete {
|
|
background: #c0392b;
|
|
border-color: #c0392b;
|
|
color: #fff6f2;
|
|
padding: 8px 12px;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.api-configs {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.api-config-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.card-summary .card-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.card-body {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inline-fields {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.inline-fields.two {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.inline-fields.three {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.inline-fields.four {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.inline-fields .field {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.api-config-primary {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.api-config-card.is-advanced .api-config-primary {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.api-config-card.is-advanced .api-config-model-field {
|
|
display: none;
|
|
}
|
|
|
|
.field-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.api-config-card.is-advanced .basic-only {
|
|
display: none;
|
|
}
|
|
|
|
.api-config-card:not(.is-advanced) .advanced-only {
|
|
display: none;
|
|
}
|
|
|
|
.api-config-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.api-config-actions-left,
|
|
.api-config-actions-right {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.env-configs {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.env-config-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.env-config-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.profiles {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.profile-card {
|
|
margin-bottom: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.profile-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.profile-actions .delete {
|
|
background: #c0392b;
|
|
border-color: #c0392b;
|
|
color: #fff6f2;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme]),
|
|
:root[data-theme="system"] {
|
|
--ink: #abb2bf;
|
|
--muted: #8b93a5;
|
|
--accent: #61afef;
|
|
--panel: #2f343f;
|
|
--border: #3e4451;
|
|
--bg: linear-gradient(160deg, #2a2f3a, #1f232b);
|
|
--input-bg: #2b303b;
|
|
--input-fg: var(--ink);
|
|
--card-bg: #2b303b;
|
|
--panel-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
.task-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.shortcut-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.settings-layout {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.toc {
|
|
width: 100%;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
}
|
|
}
|