完善前端UI
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
/* 比影擎 164px 略宽:我们子项带数量徽章,164 会挤 */
|
||||
--sidebar-width: 192px;
|
||||
|
||||
/* ===== Backgrounds (冷灰 · YZ 影擎) ===== */
|
||||
--background-base: #f7f8fa;
|
||||
--background-lighter: #fbfbfc;
|
||||
@@ -217,7 +220,7 @@ img, svg, video { display: block; max-width: 100%; }
|
||||
/* ─── App shell ─── */
|
||||
.app {
|
||||
display: grid;
|
||||
grid-template-columns: 164px 1fr;
|
||||
grid-template-columns: var(--sidebar-width) 1fr;
|
||||
min-height: 100vh;
|
||||
transition: grid-template-columns var(--t-base);
|
||||
}
|
||||
@@ -225,22 +228,26 @@ body.sidebar-collapsed .app { grid-template-columns: 96px 1fr; }
|
||||
|
||||
/* ─── Sidebar ─── */
|
||||
aside.sidebar {
|
||||
padding: 0 16px 22px;
|
||||
border-right: 1px solid var(--border-faint);
|
||||
background: #f5f6f8;
|
||||
--klein: #002fa7;
|
||||
padding: 0;
|
||||
border-right: 1px solid rgba(27, 32, 40, 0.08);
|
||||
background: rgba(28, 34, 43, 0.035);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
align-self: start;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: padding var(--t-base);
|
||||
}
|
||||
.sidebar-head {
|
||||
position: relative;
|
||||
z-index: 6;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 -16px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 116px;
|
||||
min-height: 116px;
|
||||
@@ -252,19 +259,20 @@ aside.sidebar {
|
||||
.brand { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--accent-black); }
|
||||
.brand-clip {
|
||||
display: block;
|
||||
width: 132px;
|
||||
height: 40px;
|
||||
width: 112px;
|
||||
height: 90px;
|
||||
overflow: hidden;
|
||||
transition: width var(--t-base), height var(--t-base);
|
||||
}
|
||||
.brand-logo {
|
||||
display: block;
|
||||
width: 132px;
|
||||
height: 40px;
|
||||
width: 112px;
|
||||
height: 90px;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
object-fit: contain;
|
||||
object-position: left center;
|
||||
object-position: center;
|
||||
mix-blend-mode: multiply;
|
||||
}
|
||||
.brand-mark, .flame { width: 22px; height: 22px; color: var(--accent-black); }
|
||||
.brand-mark svg, .flame svg { width: 100%; height: 100%; }
|
||||
@@ -272,7 +280,7 @@ aside.sidebar {
|
||||
.sidebar-toggle {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 136px;
|
||||
left: calc(var(--sidebar-width) - 28px);
|
||||
z-index: 70;
|
||||
width: 28px;
|
||||
height: 100vh;
|
||||
@@ -395,180 +403,226 @@ nav a.disabled:hover { background: transparent; color: var(--black-alpha-32); }
|
||||
.user .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.user .em { font-size: 13px; color: var(--accent-black); }
|
||||
|
||||
/* ─── YZ 左侧导航预览(资源中心胶囊 + 子库) ─── */
|
||||
/* ─── 影擎侧栏 · 从 UI 源码原样接入(液态胶囊 + nav-item) ─── */
|
||||
.sidebar-toggle,
|
||||
.sidebar .search-box,
|
||||
.nav-section {
|
||||
display: none;
|
||||
}
|
||||
.yz-side-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.yz-resource-head {
|
||||
height: 48px;
|
||||
margin-left: -16px;
|
||||
margin-right: 10px;
|
||||
border: 0;
|
||||
border-radius: 0 24px 24px 0;
|
||||
background: transparent;
|
||||
color: #17191d;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 10px 0 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
.yz-resource-head > span { white-space: nowrap; flex: 0 0 auto; }
|
||||
.yz-resource-head.active {
|
||||
background: var(--nav-active);
|
||||
color: var(--accent-white);
|
||||
box-shadow: 0 6px 18px rgba(17, 19, 24, .14);
|
||||
}
|
||||
.yz-resource-head .major-dot,
|
||||
.yz-side-link .major-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
flex-shrink: 0;
|
||||
margin-right: 1px;
|
||||
}
|
||||
.yz-resource-head .major-dot { display: none; }
|
||||
.yz-side-link .major-dot { display: none; }
|
||||
.yz-resource-head > svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
color: #17191d;
|
||||
}
|
||||
.yz-resource-head.active > svg { color: rgba(255, 255, 255, .95); }
|
||||
.yz-resource-head .chev {
|
||||
margin-left: auto;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
opacity: .72;
|
||||
}
|
||||
.yz-resource-head.active .chev { opacity: .82; }
|
||||
.yz-resource-head .chev svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
transform: rotate(90deg);
|
||||
transition: transform .18s ease;
|
||||
}
|
||||
.yz-resource-head[aria-expanded="false"] .chev svg {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
.yz-resource-sub {
|
||||
aside.sidebar .nav-panel {
|
||||
position: relative;
|
||||
margin-left: 8px;
|
||||
padding-left: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
/* 条目变多后不能再卡死 320px,否则「消费/垃圾桶」会被裁掉只剩一截字 */
|
||||
overflow: visible;
|
||||
max-height: none;
|
||||
opacity: 1;
|
||||
margin-top: 2px;
|
||||
height: calc(100vh - 116px);
|
||||
min-height: 0;
|
||||
padding-top: 14px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.yz-resource-sub::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 4px;
|
||||
bottom: 6px;
|
||||
width: 1px;
|
||||
background: #d7dbe3;
|
||||
aside.sidebar .nav-list {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.yz-resource-sub a {
|
||||
min-height: 34px;
|
||||
border-radius: 11px;
|
||||
padding: 0 8px 0 10px;
|
||||
color: #888888;
|
||||
aside.sidebar .nav-item {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
width: 100%;
|
||||
height: clamp(70px, 7.6vh, 84px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
transition: background .15s, color .15s;
|
||||
padding: 0 10px 0 38px;
|
||||
color: #272a2f;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: color 180ms ease, transform 180ms ease;
|
||||
}
|
||||
.yz-resource-sub a .dot {
|
||||
aside.sidebar .nav-item .nav-inner {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 28px max-content 17px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
white-space: nowrap;
|
||||
transition: opacity 140ms ease;
|
||||
}
|
||||
aside.sidebar .nav-item .nav-chevron {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
margin-left: 1px;
|
||||
color: rgba(39, 42, 47, 0.45);
|
||||
transform: translateX(-7px);
|
||||
transition: color 180ms ease, transform 220ms ease;
|
||||
}
|
||||
aside.sidebar .nav-item[aria-expanded="true"] .nav-chevron {
|
||||
color: var(--klein);
|
||||
transform: translateX(-7px) rotate(180deg);
|
||||
}
|
||||
aside.sidebar .nav-item:hover:not(.active) {
|
||||
color: var(--klein);
|
||||
transform: translateX(3px);
|
||||
}
|
||||
aside.sidebar .nav-item.active .nav-inner {
|
||||
opacity: 0;
|
||||
}
|
||||
aside.sidebar .nav-item svg {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
stroke-width: 1.8;
|
||||
}
|
||||
aside.sidebar .nav-label {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
aside.sidebar .nav-submenu {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
max-height: 0;
|
||||
margin: 0 14px 0 28px;
|
||||
padding: 0 0 0 18px;
|
||||
overflow: hidden;
|
||||
border-left: 1px solid rgba(0, 47, 167, 0.16);
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
pointer-events: none;
|
||||
transition:
|
||||
max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
margin 280ms ease,
|
||||
padding 280ms ease,
|
||||
opacity 180ms ease,
|
||||
transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
aside.sidebar .nav-submenu.expanded {
|
||||
/* 比影擎 184px 略高:我们多「账单库 / 垃圾桶」两行 */
|
||||
max-height: 260px;
|
||||
margin: -8px 14px 10px 28px;
|
||||
padding: 8px 0 8px 18px;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
pointer-events: auto;
|
||||
}
|
||||
aside.sidebar .nav-subitem {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
padding: 0 12px;
|
||||
border-radius: 10px;
|
||||
color: rgba(39, 42, 47, 0.62);
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: color 180ms ease, background 180ms ease, transform 180ms ease;
|
||||
}
|
||||
aside.sidebar .nav-subitem::before {
|
||||
content: "";
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 50%;
|
||||
background: #c8c8c8;
|
||||
background: currentColor;
|
||||
opacity: 0.45;
|
||||
}
|
||||
.yz-resource-sub a:hover {
|
||||
background: #eceef2;
|
||||
color: #5e6571;
|
||||
aside.sidebar .nav-subitem:hover {
|
||||
color: var(--klein);
|
||||
background: rgba(0, 47, 167, 0.055);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
.yz-resource-sub a.active {
|
||||
background: #e9eefb;
|
||||
color: #2148bf;
|
||||
font-weight: 600;
|
||||
aside.sidebar .nav-subitem.active {
|
||||
color: var(--klein);
|
||||
background: rgba(0, 47, 167, 0.09);
|
||||
}
|
||||
.yz-resource-sub a.active .dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
background: #3158d4;
|
||||
aside.sidebar .nav-subitem.active::before {
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0 4px rgba(0, 47, 167, 0.10);
|
||||
}
|
||||
.yz-resource-sub a .pill-mini {
|
||||
aside.sidebar .nav-subitem .pill-mini {
|
||||
margin-left: auto;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #d4dcf4;
|
||||
padding: 0 7px;
|
||||
line-height: 18px;
|
||||
background: #fff;
|
||||
color: var(--klein);
|
||||
font-size: 11px;
|
||||
color: #4a5ca0;
|
||||
background: #f4f7ff;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
.yz-resource-sub.collapsed {
|
||||
display: none;
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
margin-top: 0;
|
||||
aside.sidebar .liquid-indicator {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
width: 132px;
|
||||
height: 76px;
|
||||
pointer-events: none;
|
||||
transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
will-change: transform;
|
||||
}
|
||||
.yz-side-link {
|
||||
min-height: 48px;
|
||||
margin-left: -16px;
|
||||
margin-right: 10px;
|
||||
border-radius: 0 24px 24px 0;
|
||||
aside.sidebar .liquid-indicator.is-hidden {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
aside.sidebar .liquid-shape {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.14));
|
||||
transform-origin: left center;
|
||||
}
|
||||
aside.sidebar .liquid-indicator.pulse .liquid-shape {
|
||||
animation: liquid-pulse 520ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
@keyframes liquid-pulse {
|
||||
0%, 100% { transform: scaleX(1); }
|
||||
42% { transform: scaleX(1.012); }
|
||||
72% { transform: scaleX(0.998); }
|
||||
}
|
||||
aside.sidebar .indicator-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 33px;
|
||||
height: 76px;
|
||||
width: 94px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px 0 14px;
|
||||
color: #17191d;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
gap: 9px;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
transition: background .22s ease, color .22s ease, box-shadow .22s ease;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
transition: opacity 140ms ease, transform 280ms ease;
|
||||
}
|
||||
.yz-side-link:hover { background: #eceef2; }
|
||||
.yz-side-link > svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex-shrink: 0;
|
||||
color: #4f5562;
|
||||
transition: color .22s ease;
|
||||
aside.sidebar .liquid-indicator.wide-label .indicator-content {
|
||||
left: 26px;
|
||||
gap: 7px;
|
||||
}
|
||||
.yz-side-link.active {
|
||||
color: #ffffff;
|
||||
background: var(--nav-active);
|
||||
box-shadow: 0 6px 18px rgba(17, 19, 24, .14);
|
||||
aside.sidebar .liquid-indicator.pulse .indicator-content {
|
||||
animation: label-pulse 520ms ease;
|
||||
}
|
||||
.yz-side-link.active > svg {
|
||||
color: rgba(255, 255, 255, .96);
|
||||
@keyframes label-pulse {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
44% { transform: translateX(2px); }
|
||||
}
|
||||
aside.sidebar .indicator-icon-slot {
|
||||
width: 24px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
aside.sidebar .indicator-icon-slot svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
stroke-width: 1.9;
|
||||
}
|
||||
aside.sidebar .nav-panel > nav {
|
||||
padding: 8px 16px 20px;
|
||||
}
|
||||
@media (max-height: 780px) {
|
||||
aside.sidebar .nav-panel { padding-top: 8px; }
|
||||
aside.sidebar .nav-item { height: 68px; }
|
||||
}
|
||||
.aside-foot {
|
||||
margin-top: auto;
|
||||
@@ -602,8 +656,8 @@ nav a.disabled:hover { background: transparent; color: var(--black-alpha-32); }
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
body.sidebar-collapsed aside.sidebar { padding: 0 12px 22px; }
|
||||
body.sidebar-collapsed .sidebar-head { gap: 6px; margin: 0 -12px; padding: 0 12px; height: 116px; min-height: 116px; }
|
||||
body.sidebar-collapsed aside.sidebar { padding: 0; }
|
||||
body.sidebar-collapsed .sidebar-head { gap: 6px; margin: 0; padding: 0; height: 116px; min-height: 116px; }
|
||||
body.sidebar-collapsed .brand-clip {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
@@ -648,20 +702,51 @@ body.sidebar-collapsed .user {
|
||||
justify-content: center;
|
||||
padding: 8px 0;
|
||||
}
|
||||
body.sidebar-collapsed .yz-side-main,
|
||||
body.sidebar-collapsed .nav-panel,
|
||||
body.sidebar-collapsed .user .em,
|
||||
body.sidebar-collapsed .user::after { display: none; }
|
||||
|
||||
/* ─── Main + grid background ─── */
|
||||
main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
main { position: relative; background: #fff; min-width: 0; }
|
||||
.grid-bg {
|
||||
position: absolute; inset: 0; pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background-image:
|
||||
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='60' cy='60' r='0.9' fill='%23d8d8d8'/></svg>"),
|
||||
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><g stroke='%23ebebeb' stroke-width='1' fill='none' stroke-dasharray='1.5 4'><path d='M240 0 L240 240'/><path d='M0 240 L240 240'/></g></svg>");
|
||||
background-size: 60px 60px, 240px 240px;
|
||||
mask-image: radial-gradient(ellipse 95% 80% at 50% 35%, #000 25%, transparent 95%);
|
||||
-webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 35%, #000 25%, transparent 95%);
|
||||
linear-gradient(rgba(0, 47, 167, 0.16) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(0, 47, 167, 0.16) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
background-position: -1px -1px;
|
||||
-webkit-mask-image: linear-gradient(
|
||||
90deg,
|
||||
#000 0%,
|
||||
rgba(0, 0, 0, 0.58) 2%,
|
||||
rgba(0, 0, 0, 0.3) 16%,
|
||||
rgba(0, 0, 0, 0.12) 30%,
|
||||
rgba(0, 0, 0, 0.03) 40%,
|
||||
transparent 46%,
|
||||
transparent 54%,
|
||||
rgba(0, 0, 0, 0.03) 60%,
|
||||
rgba(0, 0, 0, 0.12) 70%,
|
||||
rgba(0, 0, 0, 0.3) 84%,
|
||||
rgba(0, 0, 0, 0.58) 98%,
|
||||
#000 100%
|
||||
);
|
||||
mask-image: linear-gradient(
|
||||
90deg,
|
||||
#000 0%,
|
||||
rgba(0, 0, 0, 0.58) 2%,
|
||||
rgba(0, 0, 0, 0.3) 16%,
|
||||
rgba(0, 0, 0, 0.12) 30%,
|
||||
rgba(0, 0, 0, 0.03) 40%,
|
||||
transparent 46%,
|
||||
transparent 54%,
|
||||
rgba(0, 0, 0, 0.03) 60%,
|
||||
rgba(0, 0, 0, 0.12) 70%,
|
||||
rgba(0, 0, 0, 0.3) 84%,
|
||||
rgba(0, 0, 0, 0.58) 98%,
|
||||
#000 100%
|
||||
);
|
||||
}
|
||||
.scatter {
|
||||
position: absolute;
|
||||
@@ -694,37 +779,81 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
.crumbs .sep { color: var(--black-alpha-32); }
|
||||
.crumbs .here { color: var(--accent-black); font-weight: 500; }
|
||||
.crumbs a:hover { color: var(--accent-black); }
|
||||
.yz-mods {
|
||||
.topbar .yz-mods {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 0 0 auto;
|
||||
width: max-content;
|
||||
max-width: none;
|
||||
gap: 16px;
|
||||
min-height: 44px;
|
||||
}
|
||||
.yz-mod {
|
||||
.topbar .yz-mods.no-active .yz-mod-indicator-mask { opacity: 0; }
|
||||
.yz-mod-clip-defs {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.yz-mod-indicator-mask {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
clip-path: url(#yzModeButtonMask);
|
||||
-webkit-clip-path: url(#yzModeButtonMask);
|
||||
transition: opacity 180ms ease;
|
||||
}
|
||||
.yz-mod-indicator {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 104px;
|
||||
height: 44px;
|
||||
border-radius: 22px;
|
||||
background: #101012;
|
||||
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
|
||||
pointer-events: none;
|
||||
transform-origin: left center;
|
||||
transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
will-change: transform, width;
|
||||
}
|
||||
.topbar .yz-mods .yz-mod {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: auto;
|
||||
min-width: 104px;
|
||||
height: 44px;
|
||||
padding: 0 22px;
|
||||
gap: 0;
|
||||
border: 1px solid #d9dde3;
|
||||
border-radius: 22px;
|
||||
background: rgba(31, 39, 51, 0.025);
|
||||
color: #2b2e33;
|
||||
background: rgba(31, 39, 51, 0.025);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
|
||||
flex: 0 0 auto;
|
||||
transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
|
||||
}
|
||||
.yz-mod:hover { background: rgba(31, 39, 51, 0.06); color: #2b2e33; }
|
||||
.yz-mod.active {
|
||||
background: #101012;
|
||||
.topbar .yz-mods .yz-mod:hover:not(.active) { background: rgba(31, 39, 51, 0.06); color: #2b2e33; }
|
||||
.topbar .yz-mods .yz-mod.active {
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.topbar .yz-mods .yz-mod.active:hover { background: transparent; color: #fff; }
|
||||
.top-search {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -739,9 +868,9 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: border-color var(--t-base), background var(--t-base);
|
||||
transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
|
||||
}
|
||||
.top-search:hover { border-color: #e0e0e0; background: #f0f0f0; }
|
||||
.top-search:hover { border-color: #e0e0e0; background: #f0f0f0; transform: translateY(-1px); }
|
||||
.top-search svg { width: var(--icon-m); height: var(--icon-m); flex-shrink: 0; }
|
||||
.top-search span:not(.kbd) { flex: 1; text-align: left; }
|
||||
.top-search .kbd {
|
||||
@@ -763,9 +892,9 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
font-size: 13px;
|
||||
color: var(--black-alpha-56);
|
||||
cursor: pointer;
|
||||
transition: background var(--t-base), border-color var(--t-base);
|
||||
transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
|
||||
}
|
||||
.balance-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); }
|
||||
.balance-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); transform: translateY(-1px); }
|
||||
.balance-chip strong { color: var(--accent-black); font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
.balance-chip svg { width: var(--icon-m); height: var(--icon-m); color: var(--black-alpha-48); }
|
||||
.icon-btn {
|
||||
@@ -777,9 +906,9 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
color: var(--black-alpha-56);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
|
||||
transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
|
||||
}
|
||||
.icon-btn:hover { background: var(--background-lighter); color: var(--accent-black); border-color: var(--border-loud); }
|
||||
.icon-btn:hover { background: var(--background-lighter); color: var(--accent-black); border-color: var(--border-loud); transform: translateY(-1px); }
|
||||
.icon-btn svg { width: var(--icon-m); height: var(--icon-m); }
|
||||
.icon-btn .dot-noti {
|
||||
position: absolute; top: 8px; right: 9px;
|
||||
@@ -853,6 +982,11 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-height: calc(100vh - 116px);
|
||||
animation: yz-page-enter 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
@keyframes yz-page-enter {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.content > .corner-mark { display: none; }
|
||||
@@ -907,7 +1041,7 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
border: 1px solid var(--black-alpha-12);
|
||||
transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast);
|
||||
}
|
||||
.btn:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); }
|
||||
.btn:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); transform: translateY(-1px); }
|
||||
.btn:active { background: var(--black-alpha-7); transform: scale(.99); }
|
||||
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background-base), 0 0 0 4px var(--heat-40); }
|
||||
.btn:disabled, .btn.disabled {
|
||||
@@ -936,6 +1070,7 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
background: var(--heat-hover);
|
||||
border-color: var(--heat-hover);
|
||||
box-shadow: var(--shadow-cta-hover);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.btn-primary:active {
|
||||
background: var(--heat);
|
||||
@@ -1129,9 +1264,9 @@ main { position: relative; background: var(--background-base); min-width: 0; }
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
|
||||
transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
|
||||
}
|
||||
.chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); color: var(--accent-black); }
|
||||
.chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); color: var(--accent-black); transform: translateY(-1px); }
|
||||
.chip.active { border-color: var(--heat-40); color: var(--heat); background: var(--heat-12); }
|
||||
.chip svg { width: 12px; height: 12px; }
|
||||
/* 清空筛选:幽灵态(无边框/透明底),仅在有筛选时出现,点击重置全部筛选 */
|
||||
@@ -2050,15 +2185,23 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1800;
|
||||
display: none;
|
||||
display: flex;
|
||||
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);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity .2s ease, visibility .2s ease;
|
||||
}
|
||||
.shell-command-bg.show {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.shell-command-bg.show { display: flex; }
|
||||
.shell-command {
|
||||
width: min(640px, 100%);
|
||||
max-height: min(680px, 76vh);
|
||||
@@ -2069,6 +2212,13 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
border-radius: var(--r-md);
|
||||
box-shadow: var(--shadow-floating);
|
||||
overflow: hidden;
|
||||
transform: translateY(-10px) scale(.98);
|
||||
opacity: 0;
|
||||
transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1), opacity .22s ease;
|
||||
}
|
||||
.shell-command-bg.show .shell-command {
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
.shell-command-h {
|
||||
display: flex;
|
||||
@@ -2140,6 +2290,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
font-family: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background var(--t-base);
|
||||
}
|
||||
.shell-command-item:hover,
|
||||
.shell-command-item.active {
|
||||
@@ -2221,14 +2372,24 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
position: fixed;
|
||||
z-index: 1700;
|
||||
min-width: 232px;
|
||||
display: none;
|
||||
display: block;
|
||||
padding: 8px;
|
||||
background: var(--surface-raised);
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
box-shadow: var(--shadow-floating);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transform: translateY(-6px);
|
||||
transition: opacity .18s ease, transform .18s cubic-bezier(0.22, 1, 0.36, 1), visibility .18s ease;
|
||||
}
|
||||
.shell-account-menu.show {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
transform: none;
|
||||
}
|
||||
.shell-account-menu.show { display: block; }
|
||||
.shell-account-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2279,6 +2440,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
font-size: 13px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background var(--t-base), color var(--t-base);
|
||||
}
|
||||
.shell-account-menu button svg {
|
||||
width: 14px;
|
||||
@@ -2302,26 +2464,28 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
background: rgba(21, 20, 15, .42);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
display: none; align-items: center; justify-content: center;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
z-index: 999;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity .2s ease, visibility .2s ease;
|
||||
}
|
||||
.modal-bg.show { display: flex; opacity: 1; }
|
||||
.modal-bg.show { opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.modal {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
max-width: 480px; width: 90%;
|
||||
position: relative;
|
||||
transform: scale(.96);
|
||||
transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
transform: translateY(8px) scale(.98);
|
||||
transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.modal-bg.show .modal { transform: scale(1); }
|
||||
.modal-bg.show .modal { transform: none; }
|
||||
.modal::before, .modal::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -2428,10 +2592,14 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
.drawer-bg {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(21, 20, 15, .32);
|
||||
display: none;
|
||||
display: block;
|
||||
z-index: 90;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity .2s ease, visibility .2s ease;
|
||||
}
|
||||
.drawer-bg.show { display: block; }
|
||||
.drawer-bg.show { opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.drawer {
|
||||
position: fixed; right: 0; top: 0; bottom: 0;
|
||||
width: 540px; max-width: 100vw;
|
||||
@@ -2492,14 +2660,14 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
aside.sidebar {
|
||||
display: block;
|
||||
position: fixed; top: 0; left: 0; bottom: 0;
|
||||
width: 164px;
|
||||
width: var(--sidebar-width);
|
||||
z-index: 1200;
|
||||
transform: translateX(-100%);
|
||||
transition: transform .28s cubic-bezier(.32, .72, 0, 1);
|
||||
box-shadow: 0 0 40px rgba(0, 0, 0, .18);
|
||||
}
|
||||
/* 抽屉里收窄态不适用,强制展开宽度,避免 body.sidebar-collapsed 把抽屉压成 96px */
|
||||
body.sidebar-collapsed aside.sidebar { width: 164px; }
|
||||
body.sidebar-collapsed aside.sidebar { width: var(--sidebar-width); }
|
||||
aside.sidebar.mobile-open { transform: translateX(0); }
|
||||
.sidebar-toggle { display: none; }
|
||||
/* 抽屉内汉堡键无意义,藏掉,留出顶部空间给页面自己的汉堡 */
|
||||
@@ -2691,8 +2859,8 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
.recent-meta .name { font-weight: 600; font-size: 14px; color: var(--accent-black); }
|
||||
.recent-meta .sub { font-size: 12px; color: var(--black-alpha-48); margin-top: 3px; font-family: var(--font-mono); letter-spacing: .01em; }
|
||||
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||
.shortcut { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 14px; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; text-align: left; transition: background var(--t-base), border-color var(--t-base); }
|
||||
.shortcut:hover { background: var(--black-alpha-4); }
|
||||
.shortcut { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); padding: 14px; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; text-align: left; transition: background var(--t-base), border-color var(--t-base), transform var(--t-base); }
|
||||
.shortcut:hover { background: var(--black-alpha-4); transform: translateY(-2px); }
|
||||
.shortcut .ic { width: 30px; height: 30px; background: var(--heat-12); color: var(--heat); display: grid; place-items: center; border: 1px solid var(--heat-20); border-radius: var(--r-sm); flex-shrink: 0; }
|
||||
.shortcut .t { font-size: 13px; font-weight: 600; }
|
||||
.shortcut .d { font-size: 12px; color: var(--black-alpha-48); margin-top: 2px; font-family: var(--font-mono); letter-spacing: .01em; }
|
||||
@@ -2713,3 +2881,19 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
transition: color var(--t-base);
|
||||
}
|
||||
.dash-funds-mono:hover { color: var(--heat); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.yz-mod-indicator,
|
||||
.yz-mod-indicator-mask,
|
||||
.modal-bg,
|
||||
.modal,
|
||||
.drawer,
|
||||
.drawer-bg,
|
||||
.shell-command-bg,
|
||||
.shell-command,
|
||||
.shell-account-menu,
|
||||
.content {
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user