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

关于代码块的背景颜色 #103

Closed
YANthinkn opened this issue Dec 16, 2022 · 7 comments
Closed

关于代码块的背景颜色 #103

YANthinkn opened this issue Dec 16, 2022 · 7 comments
Labels
❓question ISSUE: 发生什么事了

Comments

@YANthinkn
Copy link

需求描述

大佬你好!这个仿LaTex的主题很好用,但是美中不足的一点就是代码块的背景颜色是白色的,有时候很难区分边界。因此,想询问一下如何修改css文件中的相关代码,使其与默认主题的代码块背景颜色相同(#f8f8f8)?

@YANthinkn YANthinkn added the feature request ISSUE: request for new feature label Dec 16, 2022
@YANthinkn
Copy link
Author

不好意思,提交的时候网卡了...出现了两个issue

@Keldos-Li
Copy link
Owner

我把前一个重复的 issue 删掉了哈。你需要的核心代码大概是这样吧,我从 GitHub 主题的 CSS 文件上复制过来了。你把这段代码粘贴进 CSS 文件中即可。

.md-fences {
  border: 1px solid #e7eaed;
  background-color: #f8f8f8; 
  border-radius: 3px;
}

@Keldos-Li Keldos-Li added ❓question ISSUE: 发生什么事了 and removed feature request ISSUE: request for new feature labels Dec 17, 2022
@YANthinkn
Copy link
Author

谢谢!

@jatolispark
Copy link

黑色print pdf会有色差框

@Keldos-Li
Copy link
Owner

黑色print pdf会有色差框

@jatolispark 什么意思?给个截图看一下。如果有问题开一个新issue吧。

@jatolispark
Copy link

你可以试着用黑色版本主题输出pdf,就能看见了,很快的。我现在电脑不在身边,抱歉。

@Keldos-Li
Copy link
Owner

image

我这里没问题呀,以前 #104 已经被我解决了。你下载一下最新的release,重启一下Typora,重新选择一下主题应该就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓question ISSUE: 发生什么事了
Projects
None yet
Development

No branches or pull requests

3 participants