picturepan2 / spectre

Spectre.css - A Lightweight, Responsive and Modern CSS Framework
https://picturepan2.github.io/spectre/
MIT License
11.31k stars 805 forks source link

Wrong font-family set for <code> when set lang attribute to "zh" #476

Closed SukkaW closed 5 years ago

SukkaW commented 5 years ago

I have set <html lang="zh-CN"> in my project and it override the font-family of <code> tag to

font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",sans-serif;

What should I do? Should I add lang="en" attribute to <code> tag to solve this?

SukkaW commented 5 years ago

Find someone has the same problem with me at #467

picturepan2 commented 5 years ago

@SukkaW Your code is in Chinese(zh-CN)?

SukkaW commented 5 years ago

@picturepan2 I set <html lang="zh-Hans"> and cause this issue: <code> is under <html> tag.