285028c61d
- 字体: cn-font-split 分片 MiSans(4字重×~88片, unicode-range 按需加载) 接入 --font-sans/--font-mono/--font-mono-2 栈尾; 修复 next/font 与 Tailwind @theme 变量重名导致的死规则(--font-geist-mono/--font-departure-mono) - 内容: 品牌名/首屏/关于/导航/页脚/滚动段/文章页 UI/解锁屏全部中文化; 元数据 title 北极新一©2026, lang=zh-CN; 日期中文格式 - 彩蛋: 品牌标签 TikTok→小红书(保留 char-code 混淆与口令机制), /2026 文案改为个人创作手记语境 - 页脚: 邮箱 + 抖音/微信/小红书; 有链接项点击新开主页, 全部支持悬停 二维码卡片(正方形白衬+object-contain 防变形); 无链接项(微信)点击弹 二维码浮层 - 移除原作者手写签名动画(AboutMedia) - 构建: cn-font-split devDependency + onlyBuiltDependencies 允许列表
171 lines
4.2 KiB
CSS
171 lines
4.2 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* Theme color indirection: utilities (text-l1, bg-b1, …) reference these
|
|
tokens, and the .dark block (below) flips their values — the same
|
|
light/dark token pairs the original stylesheet emits. */
|
|
@theme {
|
|
/* MiSans(中文,cn-font-split 分片 + unicode-range,经 <link> 引入)
|
|
接在各栈尾:英文/数字由 TikTok Sans 与等宽字体先行命中,中文回落
|
|
到 MiSans 分片。 */
|
|
--font-sans: var(--font-tiktok), "MiSans", sans-serif;
|
|
--font-mono: var(--font-geist-mono), "MiSans", monospace;
|
|
--font-mono-2: var(--font-departure-mono), "MiSans", monospace;
|
|
|
|
--color-l1: var(--label-1);
|
|
--color-l2: var(--label-2);
|
|
--color-l3: var(--label-3);
|
|
--color-line: var(--line);
|
|
--color-b1: rgb(var(--background-deep));
|
|
--color-be: var(--background-elevated);
|
|
--color-selection: #c0fe04;
|
|
}
|
|
|
|
:root {
|
|
--bg-color: rgb(var(--background-deep));
|
|
--text-color: var(--label-1);
|
|
--grid-dot: var(--line);
|
|
--selection-bg: #c0fe04;
|
|
|
|
/* Light theme tokens (chunk 635eb04122aa774f.css :root). */
|
|
--label: 0, 0, 0;
|
|
--label-d: 54, 54, 48;
|
|
--background-deep: 251, 250, 244;
|
|
--background-elevated: #efede7;
|
|
--label-1: rgba(var(--label), 1);
|
|
--label-2: rgba(var(--label-d), 0.6);
|
|
--label-3: rgba(var(--label-d), 0.32);
|
|
--label-4: rgba(var(--label-d), 0.18);
|
|
--line: rgba(var(--label-d), 0.1);
|
|
|
|
/* Original code token colors (light theme). */
|
|
--code-comment: rgba(var(--label-d), 0.45);
|
|
--code-string: lab(43.8263% -47.6118 18.596);
|
|
--code-number: lab(46.7992% 8.99872 72.9973);
|
|
--code-keyword: lab(43.3789% 36.2819 -73.3524);
|
|
--code-function: lab(47.3165% -8.24019 -45.3882);
|
|
--code-tag: lab(47.2741% 51.266 23.7532);
|
|
--code-operator: rgba(var(--label-d), 0.75);
|
|
}
|
|
|
|
/* Dark theme (original .dark block: ThemeModeProvider adds the class to
|
|
<html>; localStorage "theme" ∈ light|dark|system, system follows
|
|
prefers-color-scheme). */
|
|
.dark {
|
|
color-scheme: dark;
|
|
--label: 255, 255, 255;
|
|
--label-d: 230, 232, 232;
|
|
--background-deep: 15, 17, 17;
|
|
--background-elevated: #191b1b;
|
|
--label-1: rgba(var(--label), 1);
|
|
--label-2: rgba(var(--label-d), 0.6);
|
|
--label-3: rgba(var(--label-d), 0.32);
|
|
--label-4: rgba(var(--label-d), 0.16);
|
|
--line: rgba(var(--label-d), 0.08);
|
|
|
|
--code-comment: rgba(var(--label-d), 0.5);
|
|
--code-string: lab(80.5863% -36.0539 14.2351);
|
|
--code-number: lab(81.7507% 5.58251 51.1676);
|
|
--code-keyword: lab(74.3615% 26.3244 -70.4223);
|
|
--code-function: lab(78.8788% -11.9607 -42.8116);
|
|
--code-tag: lab(76.4079% 47.9123 21.2271);
|
|
--code-operator: rgba(var(--label-d), 0.85);
|
|
}
|
|
|
|
/* Background lives on the ROOT only — per CSS painting it propagates to the
|
|
canvas backdrop, so it stays BEHIND the original's -z-1 fixed WebGL host.
|
|
A body-level background would paint as normal-flow content and cover the
|
|
scene (the text-over-canvas regression this fixes). */
|
|
html {
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
body {
|
|
color: var(--text-color);
|
|
font-family: var(--font-sans);
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
::selection {
|
|
background-color: var(--selection-bg);
|
|
color: #000;
|
|
}
|
|
|
|
.no-scrollbar {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
html, body {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
}
|
|
html::-webkit-scrollbar, body::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari and Opera */
|
|
}
|
|
@keyframes vh-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Hyper-space stagger text (original hsst-char / hsstFadeIn / hsstFadeOut). */
|
|
.hsst-char {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Passcode unlock screen (original ease-66 token + caret-blink). */
|
|
.ease-66 {
|
|
transition-timing-function: cubic-bezier(0.66, 0, 0.01, 1);
|
|
}
|
|
@keyframes caret-blink {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.caret-blink {
|
|
animation: caret-blink 1s step-end infinite;
|
|
}
|
|
|
|
@keyframes hsstFadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
32% {
|
|
opacity: 0.22;
|
|
}
|
|
62% {
|
|
opacity: 0.55;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes hsstFadeOut {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
38% {
|
|
opacity: 0.62;
|
|
}
|
|
72% {
|
|
opacity: 0.28;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|