feat(shell): 一级导航(52px 纯图标)+ 插件整页 + 快捷键弹窗分区罗列(v3.25.59)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s
This commit is contained in:
1 parent
6db5a143a8
commit
7b2f07bdad
37 files changed
+676
-177
No files matched your search
@@ -41,6 +41,8 @@
|
||||
--iwb-grid-size: 1.4px;
|
||||
--iwb-grid-gap: 22px;
|
||||
--iwb-grid-on: 1;
|
||||
/* 一级导航宽度:左停靠栏/工具栏让位都以它为基准(v3.25.59) */
|
||||
--iwb-nav-w: 52px;
|
||||
--iwb-text: #1c2333;
|
||||
--iwb-text2: #4d5668;
|
||||
--iwb-err: #e5484d;
|
||||
@@ -2162,7 +2164,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
|
||||
background: var(--iwb-dock-bg); pointer-events: auto; min-width: 100px;
|
||||
}
|
||||
.iwb-dock.left { left: 0; border-right: 1px solid var(--iwb-border2); }
|
||||
.iwb-dock.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border2); }
|
||||
.iwb-dock.right { right: 0; border-left: 1px solid var(--iwb-border2); }
|
||||
.iwb-dock-head {
|
||||
height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
|
||||
@@ -2194,7 +2196,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
|
||||
background: var(--iwb-panel); color: var(--iwb-text2);
|
||||
}
|
||||
.iwb-dock-strip.left { left: 0; border-right: 1px solid var(--iwb-border); }
|
||||
.iwb-dock-strip.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border); }
|
||||
.iwb-dock-strip.right { right: 0; border-left: 1px solid var(--iwb-border); }
|
||||
.iwb-dock-strip:hover { color: var(--iwb-text); background: var(--iwb-layer); }
|
||||
.iwb-dock-drop { position: absolute; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--iwb-brand); pointer-events: none; }
|
||||
@@ -2215,3 +2217,70 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-minimap { right: calc(62px + var(--iwb-dock-r, 0px)); }
|
||||
.iwb-statusbar { right: calc(62px + var(--iwb-dock-r, 0px)); }
|
||||
.iwb-hint-bottom { left: calc(var(--iwb-dock-l, 0px) + (100% - var(--iwb-dock-l, 0px) - var(--iwb-dock-r, 0px)) / 2); }
|
||||
|
||||
/* ── 一级导航(v3.25.59):最左 52px 纯图标栏 ─────────────────────────── */
|
||||
.iwb-navrail {
|
||||
position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; z-index: 27;
|
||||
display: flex; flex-direction: column; align-items: center; gap: 6px;
|
||||
padding: 10px 0 12px; background: var(--iwb-panel);
|
||||
border-right: 1px solid var(--iwb-border); box-sizing: border-box;
|
||||
}
|
||||
.iwb-navrail-logo {
|
||||
width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
border-radius: 10px; color: #fff; background: var(--iwb-brand); margin-bottom: 6px;
|
||||
}
|
||||
.iwb-navrail-logo .iwb-ic { width: 20px; height: 20px; }
|
||||
.iwb-navrail-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
|
||||
.iwb-navrail-spacer { flex: 1 1 auto; }
|
||||
.iwb-nav-item {
|
||||
width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
border: 0; border-radius: 50%; background: transparent; color: var(--iwb-text2);
|
||||
cursor: pointer; padding: 0; transition: background var(--tr-fast), color var(--tr-fast);
|
||||
}
|
||||
.iwb-nav-item .iwb-ic { width: 19px; height: 19px; }
|
||||
.iwb-nav-item:hover { background: var(--iwb-layer); color: var(--iwb-text); }
|
||||
.iwb-nav-item.on { background: color-mix(in srgb, var(--iwb-text) 82%, #000); color: #fff; }
|
||||
.iwb-nav-item.on:hover { background: color-mix(in srgb, var(--iwb-text) 90%, #000); }
|
||||
.theme-dark .iwb-nav-item.on { background: color-mix(in srgb, #ffffff 88%, #000); color: #1c2333; }
|
||||
.ws-expanded .iwb-navrail { width: 52px; }
|
||||
|
||||
/* ── 插件整页(v3.25.59)──────────────────────────────────────────────── */
|
||||
.iwb-plugin-page {
|
||||
position: absolute; left: 52px; right: 0; top: 36px; bottom: 0; z-index: 25;
|
||||
display: flex; flex-direction: column; background: var(--iwb-bg);
|
||||
}
|
||||
.iwb-plugin-page-head {
|
||||
flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
|
||||
height: 52px; padding: 0 18px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-panel);
|
||||
}
|
||||
.iwb-plugin-page-title { font-weight: 800; font-size: 16px; color: var(--iwb-text); }
|
||||
.iwb-plugin-page-sub { font-size: 12px; color: var(--iwb-text2); }
|
||||
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; }
|
||||
|
||||
/* ── 快捷键弹窗(v3.25.59 分区罗列)──────────────────────────────────── */
|
||||
.iwb-hotkey-help { display: flex; flex-direction: column; gap: 12px; }
|
||||
.iwb-hotkey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
|
||||
.iwb-hotkey-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
||||
.iwb-hotkey-gname { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--iwb-brand); letter-spacing: .04em; }
|
||||
.iwb-hotkey-row { display: flex; align-items: center; gap: 8px; min-height: 22px; }
|
||||
.iwb-hotkey-name { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.iwb-hotkey-key {
|
||||
flex: 0 0 auto; display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
padding: 2px 8px; border-radius: 5px; border: 1px solid var(--iwb-border);
|
||||
background: var(--iwb-layer); color: var(--iwb-text); font-size: 11px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
}
|
||||
.iwb-hotkey-more { border-top: 1px dashed var(--iwb-border); padding-top: 10px; }
|
||||
.iwb-hotkey-toggle { border: 0; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; padding: 2px 0; }
|
||||
.iwb-hotkey-toggle:hover { color: var(--iwb-text); }
|
||||
.iwb-hotkey-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
|
||||
.iwb-hotkey-detail-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--iwb-text2); }
|
||||
.iwb-hotkey-detail-row b { flex: 0 0 108px; color: var(--iwb-text); font-weight: 700; }
|
||||
.iwb-hotkey-note { font-size: 11px; color: var(--iwb-text2); }
|
||||
.iwb-help-modal { width: min(720px, 92vw); }
|
||||
@media (max-width: 720px) { .iwb-hotkey-grid { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 一级导航(v3.25.59):首页/落地页也要为 52px 导航让位,否则导航会压在首页侧栏上 */
|
||||
.iwb-overlay.iwb-view-landing .iwb-landing-panel { padding-left: max(52px, 8vw); }
|
||||
.iwb-overlay.iwb-view-home .iwb-home-side { margin-left: 52px; }
|
||||
.iwb-overlay.iwb-view-plugins .iwb-navrail { border-right-color: var(--iwb-border2); }
|
||||
Reference in new issue
Block a user