场景压白 38% 后整页亮度只剩 235~246,直接摆物体会突兀,改用纯渐变造光: - 左窗光柱 linear-gradient(112deg) - 右侧一朵 120px 暖散景,给右侧空白一点体积 - 人物脚下 560x170 地面光斑,把人物钉在地上 - 底部 24% 轻压深,页面下沿不飘 实测亮度差 3~9 级(肉眼可辨但不刺眼),横向扫描相邻像素差 max 4,无色阶断层。 纯白散景压在压白场景上不可见(diff 0.14),提亮必须先有暗部。 静态版本 20261020a
128 lines
6.3 KiB
CSS
128 lines
6.3 KiB
CSS
/* 砂狼白子(shiroko):阿拜多斯学园的灰蓝/银白配色。
|
|
只覆盖令牌与外观层面的组件微调,不改任何布局。
|
|
|
|
做法参考二次元官网(蔚蓝档案 JP 首页)的构图:**整个视口是一张场景插画,UI 浮在场景之上**,
|
|
而不是"白底 + 留白里贴几个人"。这里用一张教室场景(压白 38%)当整页背景,
|
|
卡片与顶栏改成磨砂半透明,人物站在场景左侧地面 —— 人物有环境,才不像贴纸。
|
|
|
|
素材(static/images/themes/shiroko/):
|
|
- scene-desktop.webp / scene-mobile.webp 教室场景(16:9 / 9:16,已压白与轻度虚化)
|
|
- chibi/window.webp 人物(侧后方视角、双手背在身后,已抠白底并压白 16%)
|
|
- pattern.svg / pattern-dark.svg 雪花 + 光环的极淡平铺纹样(深色模式用)
|
|
来源、提示词与处理参数见 docs/theme-shiroko.md。 */
|
|
html[data-theme-style="shiroko"] {
|
|
--tb-bg: #eef3f9;
|
|
/* 磨砂卡片:半透明白 + backdrop-filter,让场景的颜色透上来一点点 */
|
|
--tb-surface: rgba(255, 255, 255, 0.86);
|
|
--tb-surface-2: rgba(229, 236, 245, 0.92);
|
|
--tb-surface-hover: rgba(234, 241, 249, 0.92);
|
|
--tb-navbar: rgba(255, 255, 255, 0.52);
|
|
--tb-border: #d6e0ec;
|
|
|
|
--tb-text: #222d3b;
|
|
--tb-text-secondary: #51607a;
|
|
--tb-text-muted: #8794a7;
|
|
|
|
--tb-primary: #4a7fc1;
|
|
--tb-primary-weak: rgba(74, 127, 193, 0.11);
|
|
|
|
--tb-shadow: 0 1px 2px rgba(38, 56, 82, 0.05), 0 18px 44px -22px rgba(38, 56, 82, 0.30);
|
|
--tb-shadow-hover: 0 1px 2px rgba(38, 56, 82, 0.07), 0 24px 56px -24px rgba(38, 56, 82, 0.38);
|
|
|
|
/* 整页场景:一张教室插画,cover 铺满;不再叠纹样(纹样压在实景上会变成噪点) */
|
|
--tb-page-image: url("/static/images/themes/shiroko/scene-desktop.webp?v=20261019r");
|
|
--tb-page-pattern: none;
|
|
|
|
/* 人物:侧后方视角、双手背在身后望向箱内(不是正面盯着访客),
|
|
站在场景左侧地面,离底边 36px,配一层椭圆接触阴影,避免悬空。
|
|
图已压白 12%,与压白 38% 的场景同一"雾度",避免变成高对比贴纸。
|
|
|
|
其余 4 个槽位是"空气"(全部是渐变,不占体积、不会成为贴纸):
|
|
3 左窗光柱 / 4 右侧一朵暖散景 / 5 人物脚下的地面光斑 / 6 底部轻压深。
|
|
光斑把人物"钉"在地上,压深让页面下沿不飘。 */
|
|
--tb-deco: url("/static/images/themes/shiroko/chibi/window.webp?v=20261019r"),
|
|
radial-gradient(ellipse at center, rgba(63, 96, 138, 0.18) 0%, rgba(63, 96, 138, 0) 72%),
|
|
linear-gradient(112deg, rgba(255, 250, 236, 0.50) 0%, rgba(255, 250, 236, 0.22) 20%, rgba(255, 250, 236, 0) 44%),
|
|
radial-gradient(circle 120px at 88% 30%, rgba(255, 252, 240, 0.42), rgba(255, 252, 240, 0) 75%),
|
|
radial-gradient(ellipse 560px 170px at 28% 94%, rgba(255, 248, 228, 0.80) 0%, rgba(255, 248, 228, 0) 72%),
|
|
linear-gradient(0deg, rgba(110, 128, 156, 0.10) 0%, rgba(110, 128, 156, 0) 24%);
|
|
--tb-deco-size: auto 400px, 96px 13px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
|
|
--tb-deco-position: left max(10px, calc(50% - 524px)) bottom 36px,
|
|
left max(22px, calc(50% - 512px)) bottom 29px,
|
|
left top, left top, left top, left top;
|
|
}
|
|
|
|
html[data-theme="dark"][data-theme-style="shiroko"] {
|
|
--tb-bg: #141a22;
|
|
--tb-surface: #1d2530;
|
|
--tb-surface-2: #273140;
|
|
--tb-surface-hover: rgba(111, 163, 224, 0.12);
|
|
--tb-navbar: #141a22;
|
|
--tb-border: #334052;
|
|
|
|
--tb-text: #e3eaf4;
|
|
--tb-text-secondary: #a6b4c8;
|
|
--tb-text-muted: #77869b;
|
|
|
|
--tb-primary: #6fa3e0;
|
|
--tb-primary-weak: rgba(111, 163, 224, 0.16);
|
|
|
|
--tb-shadow: 0 1px 2px rgba(0, 0, 0, 0.34), 0 12px 28px -18px rgba(0, 0, 0, 0.58);
|
|
--tb-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.40), 0 18px 40px -20px rgba(0, 0, 0, 0.68);
|
|
|
|
/* 深色不用浅色场景(白天教室压在深底上会很脏),回到纯色渐变 + 极淡纹样 */
|
|
--tb-page-image: linear-gradient(180deg, #161d26 0%, #141a22 60%, #11161d 100%);
|
|
--tb-page-pattern: url("/static/images/themes/shiroko/pattern-dark.svg?v=20261019r");
|
|
--tb-page-pattern-size: 340px 340px;
|
|
--tb-deco: none, none, none, none, none, none;
|
|
--tb-deco-size: auto, auto, auto, auto, auto, auto;
|
|
--tb-deco-position: left top, left top, left top, left top, left top, left top;
|
|
}
|
|
|
|
/* 窄屏:卡片占满宽度,两侧没有视觉空间 —— 换成竖版场景,人物退场 */
|
|
@media (max-width: 900px) {
|
|
html[data-theme-style="shiroko"] {
|
|
--tb-page-image: url("/static/images/themes/shiroko/scene-mobile.webp?v=20261019r");
|
|
--tb-surface: rgba(255, 255, 255, 0.92);
|
|
--tb-deco: none, none, none, none, none, none;
|
|
--tb-deco-size: auto, auto, auto, auto, auto, auto;
|
|
--tb-deco-position: left top, left top, left top, left top, left top, left top;
|
|
}
|
|
}
|
|
|
|
/* 组件微调(仅外观) */
|
|
|
|
/* 磨砂:卡片与顶栏让场景透上来,才像"UI 浮在画面上"而不是压在照片上 */
|
|
html[data-theme-style="shiroko"] .uk-card-default {
|
|
backdrop-filter: blur(16px) saturate(1.05);
|
|
-webkit-backdrop-filter: blur(16px) saturate(1.05);
|
|
box-shadow: 0 0 0 1px rgba(74, 127, 193, 0.12), var(--tb-shadow);
|
|
}
|
|
html[data-theme-style="shiroko"] .uk-card-default.uk-card-hover:hover {
|
|
box-shadow: 0 0 0 1px rgba(74, 127, 193, 0.18), var(--tb-shadow-hover);
|
|
}
|
|
html[data-theme-style="shiroko"] .uk-navbar-container:not(.uk-navbar-transparent) {
|
|
background-color: var(--tb-navbar);
|
|
backdrop-filter: blur(14px) saturate(1.1);
|
|
-webkit-backdrop-filter: blur(14px) saturate(1.1);
|
|
}
|
|
|
|
/* 深色不用半透明(背后没有场景,半透明只会让层次变浑),也不加模糊 */
|
|
html[data-theme="dark"][data-theme-style="shiroko"] .uk-card-default {
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
box-shadow: 0 0 0 1px rgba(111, 163, 224, 0.14), var(--tb-shadow);
|
|
}
|
|
html[data-theme="dark"][data-theme-style="shiroko"] .uk-navbar-container:not(.uk-navbar-transparent) {
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
}
|
|
|
|
/* 顶栏融进场景后,UIkit 默认的 #999 偏淡,提到次要文字色 */
|
|
html[data-theme-style="shiroko"] .uk-navbar-nav > li > a {
|
|
color: var(--tb-text-secondary);
|
|
}
|
|
html[data-theme-style="shiroko"] .uk-navbar-nav > li > a:hover {
|
|
color: var(--tb-primary);
|
|
}
|