Polish static UI flows

This commit is contained in:
iye
2026-05-28 12:29:12 +08:00
parent 5edfa05369
commit bbe29622c2
45 changed files with 2187 additions and 813 deletions
+253 -5
View File
@@ -1482,9 +1482,9 @@ select.duration-select:focus,
/* ─── Table ─── */
table.t {
width: 100%; border-collapse: collapse;
width: 100%; border-collapse: separate; border-spacing: 0;
background: var(--surface);
border: 1px solid var(--border-faint);
border: 1px solid var(--border-muted);
border-radius: var(--r-md);
overflow: hidden;
}
@@ -1495,19 +1495,18 @@ table.t thead th {
color: var(--black-alpha-48);
padding: 14px 16px;
background: var(--black-alpha-3);
border-bottom: 1px solid var(--border-faint);
border-bottom: 1px solid var(--border-muted);
letter-spacing: .04em;
text-transform: uppercase;
font-family: var(--font-mono);
}
table.t tbody td {
padding: 16px;
border-bottom: 1px solid var(--border-faint);
border-bottom: 0;
font-size: 13px;
vertical-align: middle;
color: var(--accent-black);
}
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr { cursor: pointer; transition: background var(--t-base); }
table.t tbody tr:hover { background: var(--black-alpha-4); }
@@ -1589,6 +1588,255 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
letter-spacing: .04em; font-weight: 400;
}
/* ─── Global command palette + account menu ─── */
.shell-command-bg {
position: fixed;
inset: 0;
z-index: 1800;
display: none;
align-items: flex-start;
justify-content: center;
padding: 12vh 16px 24px;
background: var(--black-alpha-48);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.shell-command-bg.show { display: flex; }
.shell-command {
width: min(640px, 100%);
max-height: min(680px, 76vh);
display: flex;
flex-direction: column;
background: var(--surface-raised);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
box-shadow: var(--shadow-floating);
overflow: hidden;
}
.shell-command-h {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid var(--border-faint);
}
.shell-command-h .ic {
width: 30px;
height: 30px;
display: grid;
place-items: center;
background: var(--heat-12);
color: var(--heat);
border: 1px solid var(--heat-20);
border-radius: var(--r-md);
flex-shrink: 0;
}
.shell-command-h .ic svg { width: 14px; height: 14px; }
.shell-command-h input {
flex: 1;
min-width: 0;
height: 34px;
border: 0;
background: transparent;
color: var(--accent-black);
font-family: inherit;
font-size: 15px;
outline: none;
}
.shell-command-h input::placeholder { color: var(--black-alpha-48); }
.shell-command-close {
height: 26px;
padding: 0 8px;
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
background: var(--background-lighter);
color: var(--black-alpha-48);
font-family: var(--font-inter);
font-size: 11px;
font-weight: 700;
letter-spacing: .02em;
cursor: pointer;
}
.shell-command-close:hover { color: var(--accent-black); border-color: var(--black-alpha-24); }
.shell-command-list {
padding: 8px;
overflow-y: auto;
}
.shell-command-section {
padding: 8px 10px 6px;
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--black-alpha-48);
letter-spacing: .06em;
}
.shell-command-item {
width: 100%;
min-height: 48px;
display: flex;
align-items: center;
gap: 12px;
padding: 8px 10px;
border: 0;
border-radius: var(--r-md);
background: transparent;
color: var(--accent-black);
font-family: inherit;
text-align: left;
cursor: pointer;
}
.shell-command-item:hover,
.shell-command-item.active {
background: var(--heat-12);
color: var(--heat);
}
.shell-command-item .cmd-ic {
width: 30px;
height: 30px;
display: grid;
place-items: center;
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
background: var(--surface);
color: currentColor;
flex-shrink: 0;
}
.shell-command-item .cmd-ic svg { width: 14px; height: 14px; }
.shell-command-item .cmd-main {
flex: 1;
min-width: 0;
}
.shell-command-item .cmd-title {
display: block;
font-size: 13px;
font-weight: 600;
color: currentColor;
}
.shell-command-item .cmd-sub {
display: block;
margin-top: 2px;
font-size: 12px;
line-height: 1.45;
color: var(--black-alpha-56);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.shell-command-item:hover .cmd-sub,
.shell-command-item.active .cmd-sub { color: var(--black-alpha-72); }
.shell-command-item .cmd-key {
min-width: 26px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 7px;
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
background: var(--surface);
color: var(--black-alpha-48);
font-family: var(--font-inter);
font-size: 10px;
font-weight: 700;
letter-spacing: .02em;
}
.shell-command-empty {
padding: 48px 20px;
display: grid;
place-items: center;
gap: 8px;
color: var(--black-alpha-48);
font-size: 13px;
}
.shell-command-foot {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
border-top: 1px solid var(--border-faint);
color: var(--black-alpha-48);
font-family: var(--font-mono);
font-size: 10.5px;
letter-spacing: .04em;
}
.shell-command-foot .spacer { flex: 1; }
.shell-account-menu {
position: fixed;
z-index: 1700;
min-width: 232px;
display: none;
padding: 8px;
background: var(--surface-raised);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
box-shadow: var(--shadow-floating);
}
.shell-account-menu.show { display: block; }
.shell-account-head {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 8px 10px;
border-bottom: 1px solid var(--border-faint);
margin-bottom: 6px;
}
.shell-account-head .av {
width: 30px;
height: 30px;
display: grid;
place-items: center;
border-radius: 6px;
background: var(--accent-black);
color: var(--accent-white);
font-size: 12px;
font-weight: 600;
}
.shell-account-head .nm {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--accent-black);
}
.shell-account-head .mail {
display: block;
margin-top: 2px;
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--black-alpha-48);
letter-spacing: .02em;
}
.shell-account-menu button {
width: 100%;
min-height: 34px;
display: flex;
align-items: center;
gap: 9px;
padding: 0 9px;
border: 0;
border-radius: var(--r-sm);
background: transparent;
color: var(--accent-black);
font-family: inherit;
font-size: 13px;
text-align: left;
cursor: pointer;
}
.shell-account-menu button svg {
width: 14px;
height: 14px;
color: var(--black-alpha-56);
}
.shell-account-menu button:hover {
background: var(--black-alpha-4);
color: var(--heat);
}
.shell-account-menu button:hover svg { color: var(--heat); }
.shell-account-menu .sep {
height: 1px;
background: var(--border-faint);
margin: 6px 4px;
}
/* ─── Modal ─── */
.modal-bg {
position: fixed; inset: 0;