fix a bunch of issues
This commit is contained in:
parent
91f88dc9ef
commit
2c3df28c48
66 changed files with 1546 additions and 542 deletions
|
|
@ -1,6 +1,39 @@
|
|||
:root {
|
||||
color: #18201f;
|
||||
background: #eef1ee;
|
||||
color-scheme: light;
|
||||
--color-text: #18201f;
|
||||
--color-page: #eef1ee;
|
||||
--color-sidebar-text: #f4f7f5;
|
||||
--color-sidebar-bg: #12201d;
|
||||
--color-muted: #6f7f7a;
|
||||
--color-sidebar-muted: #9baca6;
|
||||
--color-primary-text: #09201a;
|
||||
--color-primary: #60d394;
|
||||
--color-secondary-text: #25322f;
|
||||
--color-secondary-bg: #dfe7e2;
|
||||
--color-danger-text: #fff8f8;
|
||||
--color-danger: #a64545;
|
||||
--color-nav-text: #dfe9e4;
|
||||
--color-nav-hover: #223b36;
|
||||
--color-status-border: #cbd5d0;
|
||||
--color-status-text: #33413d;
|
||||
--color-surface: #fbfdfb;
|
||||
--color-warning: #d4b25f;
|
||||
--color-warning-bg: #fff7de;
|
||||
--color-label: #52605c;
|
||||
--color-input-border: #bec9c4;
|
||||
--color-input-bg: #ffffff;
|
||||
--color-sidebar-input-text: #10201c;
|
||||
--color-active-text: #f8fbf9;
|
||||
--color-active: #226957;
|
||||
--color-panel-border: #d5ddd8;
|
||||
--color-border-subtle: #d8e0dc;
|
||||
--color-panel-subtle: #f4f7f5;
|
||||
--color-active-surface: #e3f3ec;
|
||||
--color-metric: #1f5c4c;
|
||||
--color-small-text: #66736f;
|
||||
color: var(--color-text);
|
||||
background: var(--color-page);
|
||||
accent-color: var(--color-primary);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-size: 16px;
|
||||
font-synthesis: none;
|
||||
|
|
@ -10,6 +43,43 @@
|
|||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--color-text: #e4ece8;
|
||||
--color-page: #0f1514;
|
||||
--color-sidebar-text: #f3faf6;
|
||||
--color-sidebar-bg: #0b1715;
|
||||
--color-muted: #9fb2ab;
|
||||
--color-sidebar-muted: #9eb2ab;
|
||||
--color-primary-text: #06130f;
|
||||
--color-primary: #69e6a2;
|
||||
--color-secondary-text: #dce7e2;
|
||||
--color-secondary-bg: #22302d;
|
||||
--color-danger-text: #fff8f8;
|
||||
--color-danger: #d05a5a;
|
||||
--color-nav-text: #d8e7e1;
|
||||
--color-nav-hover: #1b332f;
|
||||
--color-status-border: #37504a;
|
||||
--color-status-text: #d8e7e1;
|
||||
--color-surface: #161f1d;
|
||||
--color-warning: #e1bd66;
|
||||
--color-warning-bg: #3a2f14;
|
||||
--color-label: #b3c2bd;
|
||||
--color-input-border: #435750;
|
||||
--color-input-bg: #101917;
|
||||
--color-sidebar-input-text: #e6f0ec;
|
||||
--color-active-text: #f8fbf9;
|
||||
--color-active: #2f967c;
|
||||
--color-panel-border: #2a3a36;
|
||||
--color-border-subtle: #344942;
|
||||
--color-panel-subtle: #1b2925;
|
||||
--color-active-surface: #17392f;
|
||||
--color-metric: #7ce3b4;
|
||||
--color-small-text: #9badb0;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
@ -42,8 +112,8 @@ button {
|
|||
flex-direction: column;
|
||||
gap: 18px;
|
||||
padding: 24px;
|
||||
color: #f4f7f5;
|
||||
background: #12201d;
|
||||
color: var(--color-sidebar-text);
|
||||
background: var(--color-sidebar-bg);
|
||||
}
|
||||
|
||||
.brand {
|
||||
|
|
@ -76,12 +146,12 @@ button {
|
|||
.brand p,
|
||||
.eyebrow,
|
||||
.subtle {
|
||||
color: #6f7f7a;
|
||||
color: var(--color-muted);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.sidebar .brand p {
|
||||
color: #9baca6;
|
||||
color: var(--color-sidebar-muted);
|
||||
}
|
||||
|
||||
.primary-action,
|
||||
|
|
@ -94,24 +164,25 @@ nav button,
|
|||
}
|
||||
|
||||
.primary-action {
|
||||
color: #09201a;
|
||||
background: #60d394;
|
||||
color: var(--color-primary-text);
|
||||
background: var(--color-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.secondary-action {
|
||||
padding: 0 14px;
|
||||
color: #25322f;
|
||||
background: #dfe7e2;
|
||||
color: var(--color-secondary-text);
|
||||
background: var(--color-secondary-bg);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.secondary-action.danger {
|
||||
color: #fff8f8;
|
||||
background: #a64545;
|
||||
color: var(--color-danger-text);
|
||||
background: var(--color-danger);
|
||||
}
|
||||
|
||||
.primary-action:disabled,
|
||||
.secondary-action:disabled,
|
||||
nav button:disabled,
|
||||
select:disabled {
|
||||
cursor: not-allowed;
|
||||
|
|
@ -125,7 +196,7 @@ nav {
|
|||
}
|
||||
|
||||
nav button {
|
||||
color: #dfe9e4;
|
||||
color: var(--color-nav-text);
|
||||
background: transparent;
|
||||
text-align: left;
|
||||
padding: 0 12px;
|
||||
|
|
@ -133,10 +204,11 @@ nav button {
|
|||
|
||||
nav button:hover,
|
||||
nav button.active {
|
||||
background: #223b36;
|
||||
background: var(--color-nav-hover);
|
||||
}
|
||||
|
||||
.workspace {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
padding: 28px;
|
||||
overflow-x: hidden;
|
||||
|
|
@ -159,19 +231,50 @@ nav button.active {
|
|||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.status {
|
||||
max-width: 420px;
|
||||
border: 1px solid #cbd5d0;
|
||||
border-radius: 6px;
|
||||
padding: 10px 12px;
|
||||
color: #33413d;
|
||||
background: #fbfdfb;
|
||||
overflow-wrap: anywhere;
|
||||
.toast-region {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 24px;
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(420px, calc(100vw - 48px));
|
||||
gap: 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.status.busy {
|
||||
border-color: #d4b25f;
|
||||
background: #fff7de;
|
||||
.toast {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 28px;
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
border: 1px solid var(--color-status-border);
|
||||
border-radius: 6px;
|
||||
padding: 10px 12px;
|
||||
color: var(--color-status-text);
|
||||
background: var(--color-surface);
|
||||
box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
|
||||
overflow-wrap: anywhere;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.toast.busy {
|
||||
border-color: var(--color-warning);
|
||||
background: var(--color-warning-bg);
|
||||
}
|
||||
|
||||
.toast button {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 6px;
|
||||
color: inherit;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toast button:hover {
|
||||
background: var(--color-secondary-bg);
|
||||
}
|
||||
|
||||
.field {
|
||||
|
|
@ -186,7 +289,7 @@ nav button.active {
|
|||
|
||||
.field span,
|
||||
.profile-row > span {
|
||||
color: #52605c;
|
||||
color: var(--color-label);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
|
@ -196,11 +299,121 @@ textarea,
|
|||
select {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
border: 1px solid #bec9c4;
|
||||
border: 1px solid var(--color-input-border);
|
||||
border-radius: 6px;
|
||||
padding: 0 10px;
|
||||
color: #18201f;
|
||||
background: #ffffff;
|
||||
color: var(--color-text);
|
||||
background: var(--color-input-bg);
|
||||
}
|
||||
|
||||
.app-select-field {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-select {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-select-click-away {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 29;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.app-select-trigger {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 18px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--color-input-border);
|
||||
border-radius: 6px;
|
||||
padding: 0 10px;
|
||||
color: var(--color-text);
|
||||
background: var(--color-input-bg);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.app-select.open .app-select-trigger {
|
||||
position: relative;
|
||||
z-index: 31;
|
||||
}
|
||||
|
||||
.sidebar .app-select-trigger {
|
||||
color: var(--color-sidebar-input-text);
|
||||
}
|
||||
|
||||
.app-select-trigger:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.app-select-trigger span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.app-select-trigger .app-select-arrow {
|
||||
color: var(--color-label);
|
||||
font-size: 0.75rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.app-select-menu {
|
||||
position: absolute;
|
||||
z-index: 30;
|
||||
top: calc(100% + 4px);
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: grid;
|
||||
max-height: 260px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--color-input-border);
|
||||
border-radius: 6px;
|
||||
padding: 4px;
|
||||
background: var(--color-input-bg);
|
||||
box-shadow: 0 16px 32px rgb(0 0 0 / 24%);
|
||||
}
|
||||
|
||||
.app-select-menu button {
|
||||
min-height: 36px;
|
||||
border-radius: 4px;
|
||||
padding: 8px 10px;
|
||||
color: var(--color-text);
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
overflow-wrap: anywhere;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.app-select-menu button:hover,
|
||||
.app-select-menu button.active {
|
||||
color: var(--color-active-text);
|
||||
background: var(--color-active);
|
||||
}
|
||||
|
||||
select,
|
||||
option,
|
||||
optgroup {
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
option,
|
||||
optgroup {
|
||||
color: var(--color-text);
|
||||
background: var(--color-input-bg);
|
||||
}
|
||||
|
||||
textarea {
|
||||
|
|
@ -210,7 +423,15 @@ textarea {
|
|||
}
|
||||
|
||||
.sidebar select {
|
||||
color: #10201c;
|
||||
color: var(--color-sidebar-input-text);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
select,
|
||||
option,
|
||||
optgroup {
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-row {
|
||||
|
|
@ -228,13 +449,13 @@ textarea {
|
|||
|
||||
.segments button {
|
||||
padding: 0 14px;
|
||||
color: #25322f;
|
||||
background: #dfe7e2;
|
||||
color: var(--color-secondary-text);
|
||||
background: var(--color-secondary-bg);
|
||||
}
|
||||
|
||||
.segments button.active {
|
||||
color: #f8fbf9;
|
||||
background: #226957;
|
||||
color: var(--color-active-text);
|
||||
background: var(--color-active);
|
||||
}
|
||||
|
||||
.panel-grid {
|
||||
|
|
@ -245,10 +466,10 @@ textarea {
|
|||
|
||||
.panel,
|
||||
.empty-state {
|
||||
border: 1px solid #d5ddd8;
|
||||
border: 1px solid var(--color-panel-border);
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
background: #fbfdfb;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.panel.wide,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue