fix(miniprogram): unify nav headers to dashboard style with tall workbench bar
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
aa2da07c99
commit
ddff1212ae
21 files changed
+202
-131
No files matched your search
@@ -70,7 +70,7 @@
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
/* Topbar */
|
||||
/* Topbar — 对齐仪表盘白底顶栏 */
|
||||
.bx-page .topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -79,66 +79,38 @@
|
||||
grid-template-columns: minmax(0, 1fr) var(--sq-capsule-right-safe, 96px);
|
||||
align-items: center;
|
||||
height: var(--sq-header-height, calc(44px + 44px));
|
||||
padding: var(--sq-safe-top, 44px) 12px 0;
|
||||
padding: var(--sq-safe-top, 44px) 12px 0 8px;
|
||||
box-sizing: border-box;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
box-shadow: 0 1px 0 rgba(217, 232, 226, 0.85), 0 8px 20px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.bx-page .topbar::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: var(--sq-header-height, calc(44px + 44px));
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(16, 185, 129, 0.1),
|
||||
rgba(236, 253, 245, 0.55) 45%,
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bx-page .topbar > view,
|
||||
.bx-page .topbar > text {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #eee;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.bx-page .topbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 4px;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.bx-page .topbar-back {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text);
|
||||
border-radius: 10px;
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
padding: 4px 8px;
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.bx-page .topbar-back:active {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.bx-page .topbar-back-icon {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.bx-page .topbar-title {
|
||||
text-align: left;
|
||||
font-size: 17px;
|
||||
font-weight: 800;
|
||||
font-weight: 700;
|
||||
color: #111827;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
Reference in new issue
Block a user