update css
This commit is contained in:
@@ -82,7 +82,7 @@ function AppInner() {
|
||||
if (!dbReady) {
|
||||
const errMsg = dbError ?? (dbTimedOut ? t.common.initTimeout : null);
|
||||
return (
|
||||
<div style={{
|
||||
<div className="welltrust-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
background: tokens.bodyBgImage, color: tokens.textSub, fontSize: 14,
|
||||
}}>
|
||||
@@ -116,7 +116,7 @@ function AppInner() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
<div className="welltrust-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', flexDirection: 'column',
|
||||
background: tokens.bodyBgImage, color: tokens.text, overflow: 'hidden',
|
||||
position: 'relative',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* 本模块样式仅保留动效/工具类;base 重置与 tailwind 由平台全局 index.css 提供 */
|
||||
|
||||
button { cursor: pointer; }
|
||||
input, textarea { font-family: inherit; }
|
||||
.welltrust-root button { cursor: pointer; }
|
||||
.welltrust-root input, .welltrust-root textarea { font-family: inherit; }
|
||||
|
||||
/* ═══════════════════════════════════════════
|
||||
太空舱 / 三栏工作区 动效层
|
||||
@@ -23,7 +23,7 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateX(-20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@keyframes slide-in-right {
|
||||
@keyframes welltrust-slide-in-right {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@@ -43,11 +43,11 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateY(18px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
@keyframes space-pulse {
|
||||
@keyframes welltrust-space-pulse {
|
||||
0%, 100% { opacity: 0.55; }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
@keyframes glow-pulse {
|
||||
@keyframes welltrust-glow-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 rgba(79,70,229,0); }
|
||||
50% { box-shadow: 0 0 18px var(--glow-color, rgba(79,70,229,0.35)); }
|
||||
}
|
||||
@@ -55,7 +55,7 @@ input, textarea { font-family: inherit; }
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.35; transform: scale(0.78); }
|
||||
}
|
||||
@keyframes scan-sweep {
|
||||
@keyframes welltrust-scan-sweep {
|
||||
0% { left: -30%; }
|
||||
100% { left: 110%; }
|
||||
}
|
||||
@@ -125,27 +125,27 @@ input, textarea { font-family: inherit; }
|
||||
.animate-slide-in { animation: slide-in-left 0.3s ease-out; }
|
||||
.animate-number { animation: number-roll 0.5s ease-out; }
|
||||
.space-animate-left { animation: slide-in-left 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-right{ animation: slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.welltrust-root .space-animate-right{ animation: welltrust-slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-up { animation: slide-in-up 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.card-in { animation: card-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.notice-in { animation: notice-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.welltrust-root .content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.stream-caret { display: inline-block; width: 2px; height: 0.95em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: stream-caret-blink 1s steps(1) infinite; }
|
||||
.space-pulse { animation: space-pulse 2.4s ease-in-out infinite; }
|
||||
.welltrust-root .space-pulse { animation: welltrust-space-pulse 2.4s ease-in-out infinite; }
|
||||
.dot-blink { animation: dot-blink 1.6s ease-in-out infinite; }
|
||||
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
|
||||
.welltrust-root .glow-pulse { animation: welltrust-glow-pulse 3s ease-in-out infinite; }
|
||||
.bar-grow { animation: bar-grow 0.6s cubic-bezier(0.4,0,0.2,1) both; transform-origin: bottom; }
|
||||
.dash-flow { animation: dash-flow 1.2s linear infinite; }
|
||||
|
||||
/* 滚动条:颜色由 --scroll-thumb 注入(跟随主题 token) */
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
::-webkit-scrollbar-corner { background: transparent; }
|
||||
.welltrust-root ::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
.welltrust-root ::-webkit-scrollbar-track { background: transparent; }
|
||||
.welltrust-root ::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
.welltrust-root ::-webkit-scrollbar-corner { background: transparent; }
|
||||
|
||||
.space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
|
||||
/* 面板通用过渡 */
|
||||
.panel-shell { transition: width 0.3s cubic-bezier(0.4,0,0.2,1); }
|
||||
@@ -153,7 +153,7 @@ input, textarea { font-family: inherit; }
|
||||
.ghost-btn:hover { background: var(--hover-bg, rgba(79,70,229,0.07)); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
.welltrust-root *, .welltrust-root *::before, .welltrust-root *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
|
||||
Reference in New Issue
Block a user