Files
jiazi-gala-poster-demo/assets/css/common.css
T
rogerwang2008 07c2ab1f25 feat: page3 铺「黑」背景并统一配色,page1 落日修正为正圆
page3 空白格按 page1「天」的明度铺「黑」,nametag 与「演职员表」四周整格避让
(标题留白缩矮一格后居中,牌子整体上移一格);电线、麻雀、草、消防栓配色并入
熔岩暖色族。page1 去掉太阳上下端帽,行宽按半径 8 的圆逐行取整。
标题非强调部分改用与两页小字一致的 #e6dac6。
2026-11-11 04:10:59 +08:00

71 lines
1.6 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 三页共用:字体、页面骨架、文字网格与标题框 */
@font-face {
font-family: "Zpix";
src: url("../fonts/zpix.ttf") format("truetype");
font-display: swap;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: #000;
}
body {
min-height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
font-family: "Zpix", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
"Noto Sans SC", "Source Han Sans SC", sans-serif;
-webkit-text-size-adjust: 100%;
}
/* 28 列 × 44 行文字网格,1em = 1 个汉字;
字号统一在此控制,所有元素(含天线)字号一致 */
.scene {
position: relative;
font-size: min(3.4vw, calc(100dvh / 44));
line-height: 1em;
width: 28em;
height: 44em;
user-select: none;
font-kerning: none;
}
.line {
display: block;
height: 1em;
line-height: 1em;
white-space: pre;
/* Zpix 单字步进为 13/12 em,补偿回 1em,保证 28 列正好落在 28em 内 */
letter-spacing: -0.083333em;
}
/* 标题框:按整格扣出的黑色矩形,位置与尺寸由页面数据决定 */
.title-panel {
position: absolute;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
background: #000;
}
.title-panel .title {
margin: 0;
/* 同 page2 节目列表、page3 人名的「小字」色;甲子仍为纯白 */
color: #e6dac6;
font-size: 1.8em;
font-weight: 400;
line-height: 1;
letter-spacing: 0;
white-space: nowrap;
}
.title-panel .title-em { color: #fff; }