Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一些不影响使用的样式上的小缺陷 #282

Open
starlight02 opened this issue Aug 20, 2022 · 2 comments
Open

一些不影响使用的样式上的小缺陷 #282

starlight02 opened this issue Aug 20, 2022 · 2 comments

Comments

@starlight02
Copy link
Contributor

  1. 首页文章项中的图标和文字没有居中对齐
    image

    原因:初步断定是字体图标没有加 vertical-align 导致 加上了反而更对不齐了😰
    修复方案:暂不知

  2. 文章页中在 # 系列标题中使用「``」后字体大小变小了
    image
    image

    原因:.code 类名里设置了 font-size属性
    修复方案:直接移除 font-size,看起来正常工作

@starlight02
Copy link
Contributor Author

还有,想问下该如何使用自定义字体?我现在是直接覆盖 .serif 类名的样式,还有别的方式吗?

@LIlGG
Copy link
Owner

LIlGG commented Aug 20, 2022

  1. 第一个问题是由于字体图标不一致导致的,并不是定位问题。
  2. 不太建议直接移除 font-size 属性,可以在 h1,h2,h3 等属性下新增 .code 类选择器的 font-size 属性。这样可以避免影响到正常代码块。而且建议直接在主题设置中加入 css,而不用修改主题文件。
  3. 自定义字体目前没有特殊方式引入方式,只能使用覆盖原字体 css 的方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants