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

docs的目录和toc字体过大,导致显示换行 #110

Open
georgehao opened this issue May 29, 2021 · 3 comments
Open

docs的目录和toc字体过大,导致显示换行 #110

georgehao opened this issue May 29, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@georgehao
Copy link

georgehao commented May 29, 2021

image

目前这个目录字体过大,导致我的标题都换行显示,我得重新换个简短的名字,这个挺影响docs使用的

可以参考我的博客:https://www.haohongfan.com/docs/gohandbook/ 标题过长的效果

我觉得这个主题还是不错的,细节可以再优化下,如果可以的话,可以添加我的wx: forever_hhf 探讨下

@georgehao georgehao added the enhancement New feature or request label May 29, 2021
@wangchucheng
Copy link
Owner

我查看了你之前提到的hugo book,在我看来字体大小是类似的。换行的原因应该是由于宽度问题。目前为保持整体的一致性,宽度进行了限制。将宽度变宽在当前的考虑范围内,但由于这是一个影响较大的样式变化,因此还没有决定。欢迎听到更多的建议!

祝好!

@georgehao
Copy link
Author

嗯,希望能够调整一下,目前的呈现效果并不是太好。如果宽度的布局不好改变,希望有些增强的功能:

  1. 字体大小能够调整
  2. 将TOC与内容距离再大一点

@pluveto
Copy link

pluveto commented Jun 19, 2021

    #TableOfContents>ul {
        padding-left: 0;
    }

    .sticky-toc ul {
        font-size: 1rem;
        line-height: 1.5rem;
        list-style-type: none;
        padding-left: 1rem;
    }

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

No branches or pull requests

3 participants