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

[Feature]如何减少代码的 line-height? #128

Closed
hcoona opened this issue Apr 26, 2015 · 5 comments
Closed

[Feature]如何减少代码的 line-height? #128

hcoona opened this issue Apr 26, 2015 · 5 comments
Milestone

Comments

@hcoona
Copy link

hcoona commented Apr 26, 2015

代码的间距拉得太大的,希望默认能够调整 pre>code 的 line-height 为 1.2,应该怎么做呢?

@iissnan
Copy link
Owner

iissnan commented Apr 27, 2015

source/css/_custom/custom.styl 添加:

.post pre, .post .highlight { line-height: 1.2 }

@hcoona
Copy link
Author

hcoona commented Apr 27, 2015

修改 source/css/_vendor/highlight/highlight.styl 中的 line-height: $line-height-base 是否更好些,毕竟很少有要求代码的 line-height 和正文的 line-height 一样的情况。

@hcoona hcoona closed this as completed Apr 27, 2015
@hcoona hcoona reopened this Apr 27, 2015
@iissnan
Copy link
Owner

iissnan commented Apr 29, 2015

👌

@hcoona hcoona changed the title [Question]如何减少代码的 line-height? [Feature]如何减少代码的 line-height? Apr 29, 2015
@hcoona
Copy link
Author

hcoona commented Apr 29, 2015

好吧,我觉得这是个 feature,希望你能考虑一下,在代码中做出相应修改,谢谢!

@iissnan
Copy link
Owner

iissnan commented May 7, 2015

Done.

@iissnan iissnan closed this as completed May 7, 2015
@iissnan iissnan added this to the v0.4.1 milestone May 27, 2015
wangpei72 pushed a commit to wangpei72/hexo-theme-next that referenced this issue Sep 17, 2021
Co-authored-by: Renovate Bot <bot@renovateapp.com>
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