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

希望能支持标题中的单行代码显示 #6

Open
tisfeng opened this issue Jan 31, 2021 · 2 comments
Open

希望能支持标题中的单行代码显示 #6

tisfeng opened this issue Jan 31, 2021 · 2 comments

Comments

@tisfeng
Copy link

tisfeng commented Jan 31, 2021

image

主题很漂亮,感谢作者!

如图,在标题中,单行代码没有适配,显得很小。

可以用 guard:在验证入口条件时

另外,guard 后面 在验证下面的下划线不知道怎么来的。。

MarMomento added a commit that referenced this issue Jan 31, 2021
@MarMomento
Copy link
Owner

谢谢,很高兴你能喜欢该主题。

  1. 第一个问题(标题中的单行代码显示问题):已经修复。
  2. 第二个问题(标题下的下划线):这个下划线是为了区分二级标题而特意加上的,当然如果你不喜欢的话,可以修改mo.css/mo-dark.css文件,注释或删除以下代码即可。
#write h2:after {
  content: "";
  display: block;
  width: 6.25rem;
  height: 1px;
  margin: 0 auto;
  border-bottom: 1px solid #2f2f2f;
}

@tisfeng
Copy link
Author

tisfeng commented Jan 31, 2021

非常感谢! 第二个我以为 bug,原来是特意加上的。。

一个建议:将这里下划线的长度设为和二级标题等宽会不会更好一些,因为目前这个下划线居中显示,有时与上面的文字对不上,如果不清楚这个特性看着就像奇怪的 bug(比如之前的我)

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