From 73e11d91652c19fe72d3bf9d656ec9cb448c8e36 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 25 Aug 2015 11:48:01 +0800 Subject: [PATCH] Update code font family --- spec/font.md | 6 ------ style/core/base.less | 7 +++++++ style/themes/default/custom.less | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/spec/font.md b/spec/font.md index 3845f89602..c2f194e86d 100644 --- a/spec/font.md +++ b/spec/font.md @@ -23,12 +23,6 @@ font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","STHeitiSC-Light","Microsoft YaHei","微软雅黑",Arial,sans-serif; ``` -代码字体: - -```css -font-family: "PT Mono",Menlo,Consolas,"Courier New",monospace; -``` - ## 字体使用规范
diff --git a/style/core/base.less b/style/core/base.less index f0df124a9d..ff39560df3 100644 --- a/style/core/base.less +++ b/style/core/base.less @@ -98,3 +98,10 @@ a { .invisible { visibility: hidden; } + +code, +kbd, +pre, +samp { + font-family: @code-family; +} diff --git a/style/themes/default/custom.less b/style/themes/default/custom.less index 0c92700027..9f1cdda637 100644 --- a/style/themes/default/custom.less +++ b/style/themes/default/custom.less @@ -11,7 +11,7 @@ @body-background : #fff; @font-family : "Helvetica Neue",Helvetica,"Hiragino Sans GB","STHeitiSC-Light","Microsoft YaHei","微软雅黑",Arial,sans-serif; -@code-family : "PT Mono",Menlo,Consolas,"Courier New",monospace; +@code-family : Consolas,Menlo,Courier,monospace; @text-color : #666; @font-size-base : 12px; @line-height-base : 1.5;