我刚接触Atom,我想知道我们是否可以通过style.less (Atom > Stylesheet...)文件定制One Dark Syntax主题附带的注释样式。我查找了主题的源代码,并在language.less文件中找到了以下内容:
.comment {
color: @mono-3;
font-style: italic;
.markup.link {
color: @mono-3;
}
}具体来说,我想将font-style更改为normal,但我似乎找不到方法,请帮助。谢谢。
发布于 2017-05-09 23:10:41
你不应该再使用atom-text-editor::shadow了

您现在应该使用
atom-text-editor.editor .syntax--comment {
font-style: normal;
}发布于 2016-05-30 07:34:54
更新
Atom已经改变了,现在接受的答案就是你应该使用的答案!
老答案
您尝试以此为目标的元素位于文本编辑器元素的阴影DOM中;尝试
atom-text-editor::shadow .comment {
font-style: normal;
}发布于 2018-01-02 14:44:40
具体地说,您可能希望将示例更改为
.editor, atom-text-editor::shadow {
.comment {
font-style: normal;
}
}https://stackoverflow.com/questions/37507333
复制相似问题