增加导航栏

This commit is contained in:
dekun
2026-05-25 17:12:49 +08:00
parent 2fbb3dd45a
commit 8117a1d71d
3 changed files with 172 additions and 40 deletions
+100
View File
@@ -1249,6 +1249,87 @@ pre {
box-shadow: -6px 0 20px rgba(255, 0, 170, 0.12);
}
/* Key monitor — segmented toggles + compact active rows */
.matrix-seg-group {
display: inline-flex;
flex-shrink: 0;
border: 1px solid rgba(0, 255, 213, 0.28);
border-radius: 2px;
overflow: hidden;
}
.matrix-seg-btn {
border: none;
background: rgba(0, 12, 10, 0.75);
color: #3d8f7a;
font-family: inherit;
font-size: 10px;
letter-spacing: 0.06em;
padding: 8px 10px;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.matrix-seg-btn:not(:last-child) {
border-right: 1px solid rgba(0, 255, 213, 0.2);
}
.matrix-seg-btn:hover {
color: #00ffd5;
background: rgba(0, 255, 213, 0.08);
}
.matrix-seg-btn.is-active {
color: #0a1512;
background: rgba(0, 255, 213, 0.85);
font-weight: 600;
}
.key-monitor-form .key-monitor-field {
min-width: 5.5rem;
flex: 0 1 auto;
}
.key-monitor-form .key-monitor-tp {
min-width: 5rem;
}
.key-monitor-form .key-monitor-check {
flex-shrink: 0;
}
.key-monitor-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 8px 10px !important;
}
.key-monitor-row-body {
flex: 1;
min-width: 0;
line-height: 1.35;
}
.key-monitor-row .key-monitor-del {
flex-shrink: 0;
margin: 0;
padding: 5px 8px;
font-size: 9px;
letter-spacing: 0.04em;
white-space: nowrap;
min-height: auto;
}
.key-gate-ok {
color: #4cd97f;
}
.key-gate-pending {
color: #8892b0;
}
.matrix-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@@ -1681,6 +1762,25 @@ body.matrix-theme {
min-height: 44px;
}
.key-monitor-form .matrix-seg-group {
width: fit-content;
align-self: flex-start;
}
.key-monitor-form .matrix-seg-btn {
min-height: 36px;
padding: 8px 12px;
}
.key-monitor-form .key-monitor-add {
width: 100%;
}
.key-monitor-row .key-monitor-del {
padding: 4px 6px;
font-size: 8px;
}
.matrix-grid {
grid-template-columns: 1fr;
}