mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
style: rename fontFamilyCode (#40622)
* style: rename fontFamilyCode * Update seed.ts * Update mixins.ts
This commit is contained in:
parent
66885f6f5c
commit
c325474047
@ -77,7 +77,7 @@ export interface SeedToken extends PresetColorType {
|
|||||||
* @nameEN Font family for code text
|
* @nameEN Font family for code text
|
||||||
* @desc 代码字体,用于 Typography 内的 code、pre 和 kbd 类型的元素
|
* @desc 代码字体,用于 Typography 内的 code、pre 和 kbd 类型的元素
|
||||||
*/
|
*/
|
||||||
codeFontFamily: string;
|
fontFamilyCode: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @nameZH 默认字号
|
* @nameZH 默认字号
|
||||||
|
@ -34,7 +34,7 @@ const seedToken: SeedToken = {
|
|||||||
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||||
'Noto Color Emoji'`,
|
'Noto Color Emoji'`,
|
||||||
codeFontFamily: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,
|
fontFamilyCode: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
||||||
// Line
|
// Line
|
||||||
|
@ -89,7 +89,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
|
|||||||
paddingInline: '0.4em',
|
paddingInline: '0.4em',
|
||||||
paddingBlock: '0.2em 0.1em',
|
paddingBlock: '0.2em 0.1em',
|
||||||
fontSize: '85%',
|
fontSize: '85%',
|
||||||
fontFamily: token.codeFontFamily,
|
fontFamily: token.fontFamilyCode,
|
||||||
background: 'rgba(150, 150, 150, 0.1)',
|
background: 'rgba(150, 150, 150, 0.1)',
|
||||||
border: '1px solid rgba(100, 100, 100, 0.2)',
|
border: '1px solid rgba(100, 100, 100, 0.2)',
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
@ -100,7 +100,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
|
|||||||
paddingInline: '0.4em',
|
paddingInline: '0.4em',
|
||||||
paddingBlock: '0.15em 0.1em',
|
paddingBlock: '0.15em 0.1em',
|
||||||
fontSize: '90%',
|
fontSize: '90%',
|
||||||
fontFamily: token.codeFontFamily,
|
fontFamily: token.fontFamilyCode,
|
||||||
background: 'rgba(150, 150, 150, 0.06)',
|
background: 'rgba(150, 150, 150, 0.06)',
|
||||||
border: '1px solid rgba(100, 100, 100, 0.2)',
|
border: '1px solid rgba(100, 100, 100, 0.2)',
|
||||||
borderBottomWidth: 2,
|
borderBottomWidth: 2,
|
||||||
@ -164,7 +164,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
|
|||||||
background: 'rgba(150, 150, 150, 0.1)',
|
background: 'rgba(150, 150, 150, 0.1)',
|
||||||
border: '1px solid rgba(100, 100, 100, 0.2)',
|
border: '1px solid rgba(100, 100, 100, 0.2)',
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
fontFamily: token.codeFontFamily,
|
fontFamily: token.fontFamilyCode,
|
||||||
|
|
||||||
// Compatible for marked
|
// Compatible for marked
|
||||||
code: {
|
code: {
|
||||||
|
Loading…
Reference in New Issue
Block a user