This website requires JavaScript.
0
Issues
Pull Requests
Milestones
Explore
0
Create…
New Repository
New Migration
New Organization
public
Signed in as
public
Profile
Starred
Subscriptions
Settings
Help
Sign Out
public
/
jinzuanwork
Unwatch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Settings
Files
jinzuanwork
/
portal
/
assets
/
or
Cancel
Edit File
Preview
Preview Changes
Spaces
Tabs
2
4
8
Wrap
No wrap
/* ========================================================================== 金钻系 · 统一设计 tokens(唯一真源) --------------------------------------------------------------------------- 四个界面共用同一套设计语言与动效规范: ① 主站 / 金钻客栈 https://example.com/ ② 自助模板渲染 https://example.com/order/ ③ 待会儿办 https://example.com/todo/ ④ 本地开单后台 http://<家里电脑>:8899(HTML/CSS 内联在 ys_admin.py, 引不到本文件 → 复制同一份变量值内联) 规范文档:(本机路径)/设计规范.md 动效口径:Emil Kowalski 的 skills(github.com/emilkowalski/skills,MIT) --------------------------------------------------------------------------- ⚠️ 引入顺序:本文件必须放在各页面自身 <style> / <link> 之前 —— 页面自己的 :root 会覆盖同名变量。本文件是"统一真源 + 兜底", 页面里已有的旧变量名(如主站的 --ink / --brass、待会儿办的 --text) 继续生效,改造是渐进的,不做一次性重写。 ========================================================================== */ :root{ /* ---- 底盘:近黑底 + 发丝级半透明边框(层级靠亮度差,不靠投影) ---- */ --bg:#0b0d0e; --card:rgba(255,255,255,.02); --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.06); /* ---- 文字灰阶 ---- */ --txt:#e8eaec; --txt-2:#c9cdd2; --txt-3:#9aa0a6; --txt-4:#7c8187; --dim:#767b81; --dim2:#5c6166; /* ---- 强调:整页只留一个强调色(绿) ---- */ --acc:#3ecf8e; --acc-hi:#4ade9f; --acc-hover:#37b87f; /* 语义色:只做小圆点 / 细边,不做大色块,也不与强调色抢 */ --ok:#3ecf8e; --warn:#e8b23a; --bad:#e08a8a; /* ---- 圆角 ---- */ --r-sm:7px; --r:9px; --r-lg:12px; /* ---- 间距 ---- */ --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; /* ---- 动效曲线(Emil 口径:内建 ease 太弱,一律用自定义曲线) ---- */ --ease-out:cubic-bezier(.23,1,.32,1); /* 进场 / 出场(默认用它) */ --ease-in-out:cubic-bezier(.77,0,.175,1); /* 屏内移动 / 形变 */ --ease-drawer:cubic-bezier(.32,.72,0,1); /* 抽屉 / 面板(iOS 感) */ /* ---- 时长 ---- */ --d-press:100ms; /* 按钮按下反馈 */ --d-hover:150ms; /* hover / 颜色变化 */ --d-pop:200ms; /* 小浮层 / 下拉 / 图片淡入 */ --d-modal:240ms; /* 弹窗 / 抽屉入场 */ --d-exit:180ms; /* 弹窗 / 抽屉退场(比入场快) */ --d-slow:400ms; /* 刻意的慢动效(撕小票这类仪式感) */ /* ---- 组合过渡:直接写 transition:var(--t-pop) 即可 ---- */ --t-press:transform var(--d-press) var(--ease-out),opacity var(--d-press) var(--ease-out); --t-hover:color var(--d-hover) var(--ease-out),border-color var(--d-hover) var(--ease-out),background-color var(--d-hover) var(--ease-out); --t-pop:transform var(--d-pop) var(--ease-out),opacity var(--d-pop) var(--ease-out); --t-modal:transform var(--d-modal) var(--ease-out),opacity var(--d-modal) var(--ease-out); } /* ========================================================================== 动效降级:prefers-reduced-motion —————————————————————————————————————————————————————————————————————————— 口径(Emil / Apple):reduced motion = 更少更轻,不是零。 透明度与颜色(帮助理解状态的)保留;位移 / 缩放 / 循环去掉。 这里只统一"关掉循环与入场关键帧"这一件最安全的事; 每个界面各自的弹窗 / toast / 步骤切换,在该页面里再补针对性降级规则 (把 transform 去掉、只留 opacity)。 ========================================================================== */ @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *,*::before,*::after{ animation-duration:1ms !important; animation-delay:0ms !important; animation-iteration-count:1 !important; } }
Commit Changes
Add a Signed-off-by trailer by the committer at the end of the commit log message.
Commit directly to the
main
branch.
Create a
new branch
for this commit and start a pull request.
Commit Changes
Cancel