general mechanism for default css
This commit is contained in:
parent
ec1b23d67a
commit
fc227bf519
4 changed files with 126 additions and 40 deletions
|
|
@ -43,9 +43,27 @@ export const ELEMENT_DEFAULTS = Object.freeze({
|
|||
textUnderlineOffset: Object.freeze({ value: 1, unit: 'px' }),
|
||||
});
|
||||
|
||||
export const HEADING_DEFAULTS = Object.freeze({
|
||||
h1: Object.freeze({
|
||||
fontSize: Object.freeze({ value: 38, unit: 'px' }),
|
||||
lineHeight: Object.freeze({ value: 38, unit: 'px' }),
|
||||
background: 'rgba(255, 255, 255, 0.521)',
|
||||
padding: Object.freeze({
|
||||
top: Object.freeze({ value: 10, unit: 'px' }),
|
||||
right: Object.freeze({ value: 20, unit: 'px' }),
|
||||
bottom: Object.freeze({ value: 10, unit: 'px' }),
|
||||
left: Object.freeze({ value: 20, unit: 'px' }),
|
||||
}),
|
||||
margin: Object.freeze({
|
||||
top: Object.freeze({ value: 60, unit: 'px' }),
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
export const INLINE_DEFAULTS = Object.freeze({
|
||||
em: Object.freeze({ fontStyle: 'italic' }),
|
||||
i: Object.freeze({ fontStyle: 'italic' }),
|
||||
strong: Object.freeze({ fontWeight: 'bold' }),
|
||||
b: Object.freeze({ fontWeight: 'bold' }),
|
||||
a: Object.freeze({ color: '#0000EE', textDecorationLine: 'underline' }),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue