102 lines
2.9 KiB
SCSS
102 lines
2.9 KiB
SCSS
// /* ========================================
|
|
// 霞鹜文楷 (LXGW WenKai) 字体配置
|
|
// 许可证: SIL Open Font License 1.1
|
|
// 允许自由分发和使用
|
|
// ======================================== */
|
|
|
|
// /* Light 字重 - 用于代码块或强调 */
|
|
// @font-face {
|
|
// font-family: 'LXGW WenKai';
|
|
// src: url('/fonts/lxgw-wenkai/LXGWWenKai-Light.ttf') format('truetype');
|
|
// font-weight: 300;
|
|
// font-style: normal;
|
|
// font-display: swap;
|
|
// }
|
|
|
|
// /* Regular 字重 - 正文使用 */
|
|
// @font-face {
|
|
// font-family: 'LXGW WenKai';
|
|
// src: url('/fonts/lxgw-wenkai/LXGWWenKai-Regular.ttf') format('truetype');
|
|
// font-weight: 400;
|
|
// font-style: normal;
|
|
// font-display: swap;
|
|
// }
|
|
|
|
// /* Medium 字重 - 标题使用 */
|
|
// @font-face {
|
|
// font-family: 'LXGW WenKai';
|
|
// src: url('/fonts/lxgw-wenkai/LXGWWenKai-Medium.ttf') format('truetype');
|
|
// font-weight: 500;
|
|
// font-style: normal;
|
|
// font-display: swap;
|
|
// }
|
|
|
|
// /* 斜体版本(霞鹜文楷没有专门的斜体,用浏览器模拟) */
|
|
// @font-face {
|
|
// font-family: 'LXGW WenKai';
|
|
// src: url('/fonts/lxgw-wenkai/LXGWWenKai-Regular.ttf') format('truetype');
|
|
// font-weight: 400;
|
|
// font-style: italic;
|
|
// font-display: swap;
|
|
// }
|
|
|
|
// /* ========================================
|
|
// 全局字体设置
|
|
// ======================================== */
|
|
|
|
// /* 正文字体 */
|
|
// body {
|
|
// font-family: 'LXGW WenKai',
|
|
// -apple-system,
|
|
// BlinkMacSystemFont,
|
|
// 'Segoe UI',
|
|
// Roboto,
|
|
// 'Helvetica Neue',
|
|
// 'Noto Sans SC',
|
|
// 'Microsoft YaHei',
|
|
// sans-serif;
|
|
// }
|
|
|
|
// /* 标题字体 - 使用 Medium 字重更醒目 */
|
|
// h1, h2, h3, h4, h5, h6 {
|
|
// font-family: 'LXGW WenKai',
|
|
// -apple-system,
|
|
// BlinkMacSystemFont,
|
|
// 'Segoe UI',
|
|
// Roboto,
|
|
// 'Helvetica Neue',
|
|
// 'Noto Sans SC',
|
|
// 'Microsoft YaHei',
|
|
// sans-serif;
|
|
// font-weight: 500; /* 使用 Medium 字重 */
|
|
// }
|
|
|
|
// /* 代码块 - 等宽字体,不用霞鹜文楷 */
|
|
// code, pre, kbd, samp {
|
|
// font-family: 'JetBrains Mono',
|
|
// 'SF Mono',
|
|
// 'Monaco',
|
|
// 'Cascadia Code',
|
|
// 'Fira Code',
|
|
// monospace;
|
|
// }
|
|
|
|
// /* 文章正文保持舒适的字重和大小 */
|
|
// article {
|
|
// font-weight: 400;
|
|
// line-height: 1.7;
|
|
// }
|
|
|
|
// /* 粗体强调 */
|
|
// strong, b {
|
|
// font-weight: 500; /* Medium 比 Regular 粗一点,适合强调 */
|
|
// }
|
|
|
|
// /* 可选:文章首字下沉效果 */
|
|
// // article .article-content > p:first-of-type:first-letter {
|
|
// // font-size: 3em;
|
|
// // font-weight: 500;
|
|
// // float: left;
|
|
// // line-height: 0.8;
|
|
// // margin-right: 0.1em;
|
|
// // } |