mirror of
https://github.com/openclaw/openclaw.git
synced 2026-11-19 08:01:20 +00:00
Share guarded window and RPC operations, native browser/widget placement, and identical presentation declarations while preserving public contracts and visual output. Remove 592 net production lines after a largest-first deep pass. Also preserve early Quick Chat visibility intent across renderer initialization, with regressions that fail the original startup race. Validate Cargo build/test/clippy on macOS and Linux, six native Linux scenarios, browser and style parity, focused and full subsystem tests, changed-file checks, cycles, and independent review.
275 lines
4.4 KiB
CSS
275 lines
4.4 KiB
CSS
:root {
|
|
--gateway-control-height: 38px;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
.gateway-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.gateway-brand img {
|
|
display: block;
|
|
}
|
|
.gateway-view {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
.gateway-heading {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
h1,
|
|
h2,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
.gateway-heading p {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
.gateway-form,
|
|
.field {
|
|
display: grid;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
}
|
|
.field {
|
|
gap: 6px;
|
|
}
|
|
|
|
.optional {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.field input,
|
|
.field select {
|
|
outline: none;
|
|
}
|
|
|
|
button {
|
|
white-space: nowrap;
|
|
}
|
|
button:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
button.primary:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
.full-width {
|
|
width: 100%;
|
|
}
|
|
button.button-back {
|
|
min-height: 28px;
|
|
padding: 2px 0;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
button.button-back:hover {
|
|
color: var(--text-strong);
|
|
}
|
|
.gateway-profiles {
|
|
display: grid;
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
.gateway-profiles:empty {
|
|
display: none;
|
|
}
|
|
.gateway-profile {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 16px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.gateway-profile:first-child {
|
|
padding-top: 0;
|
|
}
|
|
.gateway-copy {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.gateway-name {
|
|
color: var(--text-strong);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.gateway-selected {
|
|
justify-self: start;
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
.gateway-profile-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
.gateway-profile-actions button {
|
|
min-height: 32px;
|
|
padding: 6px 9px;
|
|
font-size: 12px;
|
|
}
|
|
.gateway-profile-actions .gateway-remove {
|
|
width: 32px;
|
|
padding: 0;
|
|
border-color: transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
}
|
|
.gateway-profile-actions .gateway-remove:hover {
|
|
color: var(--danger);
|
|
background: color-mix(in srgb, var(--danger) 8%, transparent);
|
|
}
|
|
.gateway-empty {
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: 8px;
|
|
padding: 20px 12px;
|
|
text-align: center;
|
|
}
|
|
.gateway-empty > svg {
|
|
width: 28px;
|
|
height: 28px;
|
|
margin-bottom: 4px;
|
|
color: var(--muted);
|
|
}
|
|
.gateway-empty h2 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-strong);
|
|
}
|
|
.gateway-empty p {
|
|
max-width: 300px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
.gateway-ssh-address {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 124px;
|
|
gap: 12px;
|
|
}
|
|
.gateway-disclosure {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.gateway-disclosure > summary {
|
|
width: fit-content;
|
|
border-radius: 3px;
|
|
}
|
|
.gateway-disclosure[open] > summary {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
button.secret-toggle:hover {
|
|
color: var(--text-strong);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.gateway-hint {
|
|
margin-top: -6px;
|
|
}
|
|
.gateway-status {
|
|
margin-top: 16px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.gateway-status:empty {
|
|
display: none;
|
|
}
|
|
.gateway-footer {
|
|
margin-top: 16px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.gateway-feedback {
|
|
padding: 12px 14px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
|
|
border-radius: 10px;
|
|
background: color-mix(in srgb, var(--danger) 6%, transparent);
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.button-retry {
|
|
margin: -8px 0 20px;
|
|
}
|
|
#remove-dialog {
|
|
width: min(440px, calc(100vw - 32px));
|
|
padding: 24px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
color: var(--text);
|
|
box-shadow: var(--shadow-dialog);
|
|
}
|
|
#remove-dialog::backdrop {
|
|
background: var(--dialog-backdrop);
|
|
}
|
|
#remove-title {
|
|
color: var(--text-strong);
|
|
font-size: 20px;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
#remove-description {
|
|
margin-top: 8px;
|
|
color: var(--muted);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.gateway-dialog-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
:root {
|
|
--gateway-control-height: 44px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
}
|
|
.field input,
|
|
.field select,
|
|
button.primary {
|
|
min-height: 44px;
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
|
|
.gateway-profile {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 10px;
|
|
}
|
|
.gateway-profile-actions {
|
|
justify-content: flex-end;
|
|
}
|
|
.gateway-header {
|
|
gap: 8px;
|
|
}
|
|
|
|
.optional {
|
|
display: none;
|
|
}
|
|
}
|