mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat:增加字体样式 helper (#2046)
This commit is contained in:
parent
16ac0fa5c9
commit
12f8a8b9e0
@ -512,6 +512,18 @@ export const cssDocs = [
|
||||
{
|
||||
label: 'Typography',
|
||||
children: [
|
||||
{
|
||||
label: 'Font Family',
|
||||
path: '/zh-CN/style/typography/font-family',
|
||||
getComponent: (location: any, cb: any) =>
|
||||
(require as any)(
|
||||
['../../scss/helper/typography/_font-family.scss'],
|
||||
(doc: any) => {
|
||||
cb(null, makeMarkdownRenderer(doc));
|
||||
}
|
||||
)
|
||||
},
|
||||
|
||||
{
|
||||
label: 'Font Size',
|
||||
path: '/zh-CN/style/typography/font-size',
|
||||
|
@ -55,6 +55,7 @@
|
||||
@import './helper/sizing/width';
|
||||
@import './helper/sizing/height';
|
||||
|
||||
@import './helper/typography/font-family';
|
||||
@import './helper/typography/font-size';
|
||||
@import './helper/typography/font-style';
|
||||
@import './helper/typography/font-weight';
|
||||
|
34
scss/helper/typography/_font-family.scss
Normal file
34
scss/helper/typography/_font-family.scss
Normal file
@ -0,0 +1,34 @@
|
||||
/*!markdown
|
||||
|
||||
---
|
||||
title: Font Family
|
||||
---
|
||||
|
||||
| Class | Properties |
|
||||
| ----------- | ------------------------ |
|
||||
| font-sans | ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
||||
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' |
|
||||
| font-serif | font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif |
|
||||
| font-mono | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
||||
'Liberation Mono', 'Courier New', monospace |
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
.font-sans {
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
||||
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
}
|
||||
|
||||
.font-serif {
|
||||
font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
||||
}
|
||||
|
||||
.font-mono {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
||||
'Liberation Mono', 'Courier New', monospace;
|
||||
}
|
Loading…
Reference in New Issue
Block a user