优化模版样式
This commit is contained in:
parent
a21bde97f9
commit
2b679383b5
@ -99,9 +99,16 @@ export default function WechatEditor() {
|
|||||||
h3: {
|
h3: {
|
||||||
...(template?.options?.block?.h3 || {}),
|
...(template?.options?.block?.h3 || {}),
|
||||||
...(styleOptions.block?.h3 || {}),
|
...(styleOptions.block?.h3 || {}),
|
||||||
fontSize: styleOptions.block?.h3?.fontSize || template?.options?.block?.h3?.fontSize || '18px',
|
fontSize: styleOptions.block?.h3?.fontSize || template?.options?.block?.h3?.fontSize || '1.1em',
|
||||||
color: styleOptions.base?.themeColor || template?.options?.base?.themeColor || '#1a1a1a',
|
color: styleOptions.base?.themeColor || template?.options?.base?.themeColor || '#1a1a1a',
|
||||||
borderLeft: `3px solid ${styleOptions.base?.themeColor || template?.options?.base?.themeColor || '#1a1a1a'}`
|
borderLeft: `3px solid ${styleOptions.base?.themeColor || template?.options?.base?.themeColor || '#1a1a1a'}`
|
||||||
|
},
|
||||||
|
p: {
|
||||||
|
...(template?.options?.block?.p || {}),
|
||||||
|
...(styleOptions.block?.p || {}),
|
||||||
|
fontSize: styleOptions.block?.p?.fontSize || template?.options?.block?.p?.fontSize || '15px',
|
||||||
|
lineHeight: styleOptions.block?.p?.lineHeight || template?.options?.block?.p?.lineHeight || 2,
|
||||||
|
letterSpacing: styleOptions.block?.p?.letterSpacing || template?.options?.block?.p?.letterSpacing || '0.1em'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
inline: {
|
inline: {
|
||||||
@ -216,7 +223,6 @@ export default function WechatEditor() {
|
|||||||
|
|
||||||
// 处理 CSS 变量
|
// 处理 CSS 变量
|
||||||
const cssVariables = {
|
const cssVariables = {
|
||||||
'--md-primary-color': styleOptions.base?.primaryColor || template?.options.base?.primaryColor || '#333333',
|
|
||||||
'--foreground': styleOptions.base?.themeColor || template?.options.base?.themeColor || '#1a1a1a',
|
'--foreground': styleOptions.base?.themeColor || template?.options.base?.themeColor || '#1a1a1a',
|
||||||
'--background': '#ffffff',
|
'--background': '#ffffff',
|
||||||
'--muted': '#f1f5f9',
|
'--muted': '#f1f5f9',
|
||||||
|
@ -17,8 +17,8 @@ export const templates: Template[] = [
|
|||||||
styles: '',
|
styles: '',
|
||||||
options: {
|
options: {
|
||||||
base: {
|
base: {
|
||||||
themeColor: '#16a34a',
|
themeColor: '#166534',
|
||||||
primaryColor: '#000000',
|
fontFamily: '-apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
lineHeight: '1.75',
|
lineHeight: '1.75',
|
||||||
padding: '1rem 1.5rem',
|
padding: '1rem 1.5rem',
|
||||||
@ -26,156 +26,262 @@ export const templates: Template[] = [
|
|||||||
margin: '0 auto',
|
margin: '0 auto',
|
||||||
wordBreak: 'break-word',
|
wordBreak: 'break-word',
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
fontSize: '15px',
|
fontSize: '14px',
|
||||||
color: '#333'
|
color: '#333'
|
||||||
},
|
},
|
||||||
block: {
|
block: { // 一级标题
|
||||||
h1: {
|
h1: {
|
||||||
display: 'table',
|
display: 'table',
|
||||||
padding: '0 1em',
|
padding: '0 1em',
|
||||||
borderBottom: '2px solid var(--md-primary-color)',
|
borderBottom: '2px solid var(--themeColor)',
|
||||||
margin: '2em auto 1em',
|
margin: '2em auto 1em',
|
||||||
color: 'hsl(var(--foreground))',
|
color: 'hsl(var(--foreground))',
|
||||||
fontSize: '1.2em',
|
fontSize: '1.2em',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
textAlign: 'center'
|
textAlign: 'center'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 二级标题
|
||||||
h2: {
|
h2: {
|
||||||
display: 'table',
|
display: 'table',
|
||||||
padding: '0 0.2em',
|
padding: '0 0.2em',
|
||||||
margin: '4em auto 2em',
|
margin: '4em auto 2em',
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
borderBottom: '2px solid var(--md-primary-color)',
|
background: 'var(--themeColor)',
|
||||||
fontSize: '1.2em',
|
fontSize: '1.2em',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
textAlign: 'center'
|
textAlign: 'center'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 三级标题
|
||||||
h3: {
|
h3: {
|
||||||
paddingLeft: '8px',
|
paddingLeft: '8px',
|
||||||
borderLeft: '3px solid var(--md-primary-color)',
|
borderLeft: '3px solid var(--themeColor)',
|
||||||
margin: '2em 8px 0.75em 0',
|
margin: '2em 8px 0.75em 0',
|
||||||
color: 'hsl(var(--foreground))',
|
color: 'hsl(var(--foreground))',
|
||||||
fontSize: '1.1em',
|
fontSize: '1.1em',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
lineHeight: 1.2
|
lineHeight: '1.2'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 四级标题
|
||||||
|
h4: {
|
||||||
|
'margin': `2em 8px 0.5em`,
|
||||||
|
'color': `var(--themeColor)`,
|
||||||
|
'fontSize': `1em`,
|
||||||
|
'fontWeight': `bold`,
|
||||||
|
},
|
||||||
|
|
||||||
|
// 五级标题
|
||||||
|
h5: {
|
||||||
|
'margin': `1.5em 8px 0.5em`,
|
||||||
|
'color': `var(--themeColor)`,
|
||||||
|
'fontSize': `1em`,
|
||||||
|
'fontWeight': `bold`,
|
||||||
|
},
|
||||||
|
|
||||||
|
// 六级标题
|
||||||
|
h6: {
|
||||||
|
'margin': `1.5em 8px 0.5em`,
|
||||||
|
'fontSize': `1em`,
|
||||||
|
'color': `var(--themeColor)`,
|
||||||
|
},
|
||||||
|
|
||||||
|
// 段落
|
||||||
p: {
|
p: {
|
||||||
fontSize: '15px',
|
'margin': `1.5em 8px`,
|
||||||
margin: '1.5em 8px',
|
'letterSpacing': `0.1em`,
|
||||||
lineHeight: 2,
|
'color': `hsl(var(--foreground))`,
|
||||||
letterSpacing: '0.1em',
|
'textAlign': `justify`,
|
||||||
color: 'hsl(var(--foreground))',
|
|
||||||
textAlign: 'justify'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 引用
|
||||||
blockquote: {
|
blockquote: {
|
||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
padding: '1em',
|
padding: '1em',
|
||||||
borderLeft: '4px solid var(--md-primary-color)',
|
borderLeft: '4px solid var(--themeColor)',
|
||||||
borderRadius: '6px',
|
borderRadius: '6px',
|
||||||
color: 'rgba(0,0,0,0.5)',
|
color: 'rgba(0,0,0,0.5)',
|
||||||
background: 'var(--blockquote-background)',
|
background: 'var(--blockquote-background)',
|
||||||
margin: '0 0 1em 0'
|
margin: '0 0 1em 0'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 引用内容
|
||||||
|
blockquote_p: {
|
||||||
|
'display': `block`,
|
||||||
|
'fontSize': `1em`,
|
||||||
|
'letterSpacing': `0.1em`,
|
||||||
|
'color': `hsl(var(--foreground))`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_note: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_tip: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_important: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_warning: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_caution: {
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
blockquote_title_note: {
|
||||||
|
color: `#478be6`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_title_tip: {
|
||||||
|
color: `#57ab5a`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_title_important: {
|
||||||
|
color: `#986ee2`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_title_warning: {
|
||||||
|
color: `#c69026`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_title_caution: {
|
||||||
|
color: `#e5534b`,
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_p_note: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_p_tip: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_p_important: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_p_warning: {
|
||||||
|
},
|
||||||
|
|
||||||
|
blockquote_p_caution: {
|
||||||
|
},
|
||||||
|
|
||||||
|
// 代码块
|
||||||
code_pre: {
|
code_pre: {
|
||||||
fontSize: '14px',
|
'fontSize': `14px`,
|
||||||
overflowX: 'auto',
|
'overflowX': `auto`,
|
||||||
borderRadius: '8px',
|
'borderRadius': `8px`,
|
||||||
padding: '1em',
|
'padding': `1em`,
|
||||||
lineHeight: 1.5,
|
'lineHeight': `1.5`,
|
||||||
margin: '10px 8px',
|
'margin': `10px 8px`,
|
||||||
background: '#f6f8fa',
|
|
||||||
border: '1px solid #e5e7eb',
|
|
||||||
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 行内代码
|
||||||
code: {
|
code: {
|
||||||
fontSize: '90%',
|
margin: '0',
|
||||||
background: 'rgba(27,31,35,.05)',
|
fontFamily: 'Menlo, Operator Mono, Consolas, Monaco, monospace'
|
||||||
padding: '3px 5px',
|
|
||||||
borderRadius: '4px',
|
|
||||||
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace'
|
|
||||||
},
|
|
||||||
ul: {
|
|
||||||
listStyle: 'disc',
|
|
||||||
paddingLeft: '2em',
|
|
||||||
margin: '1em 0',
|
|
||||||
color: 'rgba(0, 0, 0, 0.3)',
|
|
||||||
fontSize: '15px'
|
|
||||||
},
|
|
||||||
ol: {
|
|
||||||
listStyle: 'decimal',
|
|
||||||
paddingLeft: '2em',
|
|
||||||
margin: '1em 0',
|
|
||||||
color: 'hsl(var(--foreground))',
|
|
||||||
lineHeight: 1.75
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 图片
|
||||||
image: {
|
image: {
|
||||||
display: 'block',
|
'display': `block`,
|
||||||
width: '100%',
|
'width': `100% !important`,
|
||||||
margin: '0.1em auto 0.5em',
|
'margin': `0.1em auto 0.5em`,
|
||||||
borderRadius: '4px',
|
'borderRadius': `4px`,
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// 有序列表
|
||||||
|
ol: {
|
||||||
|
paddingLeft: '1em',
|
||||||
|
color: 'hsl(var(--foreground))'
|
||||||
|
},
|
||||||
|
|
||||||
|
// 无序列表
|
||||||
|
ul: {
|
||||||
|
listStyle: 'circle',
|
||||||
|
paddingLeft: '1em',
|
||||||
|
color: 'hsl(var(--foreground))'
|
||||||
|
},
|
||||||
|
|
||||||
|
footnotes: {
|
||||||
|
'margin': `0.5em 8px`,
|
||||||
|
'fontSize': `80%`,
|
||||||
|
'color': `hsl(var(--foreground))`,
|
||||||
|
},
|
||||||
|
|
||||||
|
figure: {
|
||||||
|
margin: `1.5em 8px`,
|
||||||
|
color: `hsl(var(--foreground))`,
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
inline: {
|
inline: {
|
||||||
strong: {
|
|
||||||
color: 'var(--md-primary-color)',
|
|
||||||
fontWeight: 'bold'
|
|
||||||
},
|
|
||||||
em: {
|
|
||||||
fontStyle: 'italic'
|
|
||||||
},
|
|
||||||
codespan: {
|
|
||||||
fontSize: '90%',
|
|
||||||
color: '#d14',
|
|
||||||
background: 'rgba(27,31,35,.05)',
|
|
||||||
padding: '3px 5px',
|
|
||||||
borderRadius: '4px'
|
|
||||||
},
|
|
||||||
link: {
|
|
||||||
fontSize: '15px',
|
|
||||||
color: '#576b95'
|
|
||||||
},
|
|
||||||
listitem: {
|
listitem: {
|
||||||
margin: '0.5em 0',
|
display: 'block',
|
||||||
lineHeight: 1.75,
|
margin: '0.2em 8px',
|
||||||
color: 'hsl(var(--foreground))'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
base: {
|
|
||||||
color: 'hsl(var(--foreground))'
|
color: 'hsl(var(--foreground))'
|
||||||
},
|
},
|
||||||
block: {
|
|
||||||
h1: { color: 'hsl(var(--foreground))' },
|
codespan: {
|
||||||
h2: { color: 'hsl(var(--foreground))' },
|
'fontSize': `90%`,
|
||||||
h3: { color: 'hsl(var(--foreground))' },
|
'color': `#d14`,
|
||||||
p: { color: 'hsl(var(--foreground))' },
|
'background': `rgba(27,31,35,.05)`,
|
||||||
ul: { color: 'hsl(var(--foreground))' },
|
'padding': `3px 5px`,
|
||||||
ol: { color: 'hsl(var(--foreground))' },
|
'borderRadius': `4px`,
|
||||||
pre: {
|
// 'word-break': `break-all`,
|
||||||
background: 'hsl(var(--muted))',
|
|
||||||
border: '1px solid hsl(var(--border))'
|
|
||||||
},
|
},
|
||||||
code: {
|
|
||||||
background: 'hsl(var(--muted))',
|
em: {
|
||||||
color: 'hsl(var(--accent-foreground))'
|
'fontStyle': `italic`,
|
||||||
|
'fontSize': `inherit`,
|
||||||
},
|
},
|
||||||
code_pre: {
|
|
||||||
background: 'hsl(var(--muted))',
|
link: {
|
||||||
border: '1px solid hsl(var(--border))',
|
color: `#576b95`,
|
||||||
|
},
|
||||||
|
|
||||||
|
wx_link: {
|
||||||
|
'color': `#576b95`,
|
||||||
|
'textDecoration': `none`,
|
||||||
|
},
|
||||||
|
|
||||||
|
// 字体加粗样式
|
||||||
|
strong: {
|
||||||
|
'color': `var(--themeColor)`,
|
||||||
|
'fontWeight': `bold`,
|
||||||
|
'fontSize': `inherit`,
|
||||||
|
},
|
||||||
|
|
||||||
|
table: {
|
||||||
|
textAlign: 'center',
|
||||||
|
margin: '1em 8px',
|
||||||
color: 'hsl(var(--foreground))'
|
color: 'hsl(var(--foreground))'
|
||||||
},
|
},
|
||||||
blockquote: {
|
|
||||||
background: 'hsl(var(--muted))',
|
thead: {
|
||||||
borderLeftColor: 'hsl(var(--primary))',
|
'background': `rgba(0, 0, 0, 0.05)`,
|
||||||
color: 'hsl(var(--muted-foreground))'
|
'fontWeight': `bold`,
|
||||||
|
'color': `hsl(var(--foreground))`,
|
||||||
},
|
},
|
||||||
image: {
|
|
||||||
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.3)'
|
td: {
|
||||||
}
|
border: '1px solid #dfdfdf',
|
||||||
|
padding: '0.25em 0.5em',
|
||||||
|
color: '#3f3f3f',
|
||||||
|
},
|
||||||
|
|
||||||
|
footnote: {
|
||||||
|
'fontSize': `12px`,
|
||||||
|
'color': `hsl(var(--foreground))`,
|
||||||
|
},
|
||||||
|
|
||||||
|
figcaption: {
|
||||||
|
'textAlign': `center`,
|
||||||
|
'color': `#888`,
|
||||||
|
'fontSize': `0.8em`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
transform: (html) => html
|
transform: (html: string) => html
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'elegant',
|
id: 'elegant',
|
||||||
@ -185,9 +291,15 @@ export const templates: Template[] = [
|
|||||||
options: {
|
options: {
|
||||||
base: {
|
base: {
|
||||||
themeColor: '#16a34a',
|
themeColor: '#16a34a',
|
||||||
primaryColor: '#16a34a',
|
textAlign: 'left',
|
||||||
textAlign: 'justify',
|
lineHeight: '1.75',
|
||||||
lineHeight: '1.8'
|
padding: '1rem 1.5rem',
|
||||||
|
maxWidth: '100%',
|
||||||
|
margin: '0 auto',
|
||||||
|
wordBreak: 'break-word',
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
fontSize: '15px',
|
||||||
|
color: '#333'
|
||||||
},
|
},
|
||||||
block: {
|
block: {
|
||||||
h1: {
|
h1: {
|
||||||
@ -210,7 +322,7 @@ export const templates: Template[] = [
|
|||||||
},
|
},
|
||||||
h3: {
|
h3: {
|
||||||
paddingLeft: '8px',
|
paddingLeft: '8px',
|
||||||
borderLeft: '3px solid var(--md-primary-color)',
|
borderLeft: '3px solid var(--themeColor)',
|
||||||
margin: '2em 8px 0.75em 0',
|
margin: '2em 8px 0.75em 0',
|
||||||
color: 'hsl(var(--foreground))',
|
color: 'hsl(var(--foreground))',
|
||||||
fontSize: '1.1em',
|
fontSize: '1.1em',
|
||||||
@ -218,6 +330,7 @@ export const templates: Template[] = [
|
|||||||
lineHeight: 1.2
|
lineHeight: 1.2
|
||||||
},
|
},
|
||||||
p: {
|
p: {
|
||||||
|
fontSize: '15px',
|
||||||
margin: '1.8em 8px',
|
margin: '1.8em 8px',
|
||||||
letterSpacing: '0.12em',
|
letterSpacing: '0.12em',
|
||||||
color: '#2c3e50',
|
color: '#2c3e50',
|
||||||
@ -240,7 +353,7 @@ export const templates: Template[] = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
transform: (html) => html
|
transform: (html: string) => html
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'creative',
|
id: 'creative',
|
||||||
@ -249,7 +362,7 @@ export const templates: Template[] = [
|
|||||||
styles: 'prose-creative',
|
styles: 'prose-creative',
|
||||||
options: {
|
options: {
|
||||||
base: {
|
base: {
|
||||||
primaryColor: '#4299e1',
|
themeColor: '#4299e1',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
lineHeight: '1.8',
|
lineHeight: '1.8',
|
||||||
fontSize: '15px'
|
fontSize: '15px'
|
||||||
@ -311,6 +424,6 @@ export const templates: Template[] = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
transform: (html) => html
|
transform: (html: string) => html
|
||||||
}
|
}
|
||||||
]
|
];
|
@ -284,6 +284,7 @@ export interface RendererOptions {
|
|||||||
wordBreak?: string
|
wordBreak?: string
|
||||||
whiteSpace?: string
|
whiteSpace?: string
|
||||||
color?: string
|
color?: string
|
||||||
|
fontFamily?: string
|
||||||
}
|
}
|
||||||
block?: {
|
block?: {
|
||||||
[key: string]: StyleOptions
|
[key: string]: StyleOptions
|
||||||
|
@ -2,31 +2,31 @@ import type { CSSProperties } from 'react'
|
|||||||
|
|
||||||
export interface RendererOptions {
|
export interface RendererOptions {
|
||||||
base?: {
|
base?: {
|
||||||
primaryColor?: string
|
themeColor?: string
|
||||||
textAlign?: string
|
textAlign?: string
|
||||||
lineHeight?: string
|
lineHeight?: string
|
||||||
}
|
}
|
||||||
block?: {
|
block?: {
|
||||||
h1?: CSSProperties
|
h1?: StyleOptions
|
||||||
h2?: CSSProperties
|
h2?: StyleOptions
|
||||||
h3?: CSSProperties
|
h3?: StyleOptions
|
||||||
h4?: CSSProperties
|
h4?: StyleOptions
|
||||||
h5?: CSSProperties
|
h5?: StyleOptions
|
||||||
h6?: CSSProperties
|
h6?: StyleOptions
|
||||||
p?: CSSProperties
|
p?: StyleOptions
|
||||||
blockquote?: CSSProperties
|
blockquote?: StyleOptions
|
||||||
code_pre?: CSSProperties
|
code_pre?: StyleOptions
|
||||||
code?: CSSProperties
|
code?: StyleOptions
|
||||||
image?: CSSProperties
|
image?: StyleOptions
|
||||||
ol?: CSSProperties
|
ol?: StyleOptions
|
||||||
ul?: CSSProperties
|
ul?: StyleOptions
|
||||||
}
|
}
|
||||||
inline?: {
|
inline?: {
|
||||||
strong?: CSSProperties
|
strong?: StyleOptions
|
||||||
em?: CSSProperties
|
em?: StyleOptions
|
||||||
codespan?: CSSProperties
|
codespan?: StyleOptions
|
||||||
link?: CSSProperties
|
link?: StyleOptions
|
||||||
listitem?: CSSProperties
|
listitem?: StyleOptions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,9 +34,42 @@ export interface StyleOptions {
|
|||||||
padding?: string
|
padding?: string
|
||||||
maxWidth?: string
|
maxWidth?: string
|
||||||
margin?: string
|
margin?: string
|
||||||
wordBreak?: string
|
wordBreak?: 'normal' | 'break-all' | 'keep-all' | 'break-word'
|
||||||
whiteSpace?: string
|
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces'
|
||||||
color?: string
|
color?: string
|
||||||
|
display?: string
|
||||||
|
fontSize?: string
|
||||||
|
fontWeight?: string
|
||||||
|
textAlign?: string
|
||||||
|
paddingLeft?: string
|
||||||
|
marginLeft?: string
|
||||||
|
borderLeft?: string
|
||||||
|
lineHeight?: string | number
|
||||||
|
letterSpacing?: string
|
||||||
|
fontStyle?: string
|
||||||
|
borderRadius?: string
|
||||||
|
background?: string
|
||||||
|
marginBottom?: string
|
||||||
|
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
|
||||||
|
gap?: string
|
||||||
|
overflowX?: string
|
||||||
|
fontFamily?: string
|
||||||
|
width?: string
|
||||||
|
listStyle?: string
|
||||||
|
borderStyle?: string
|
||||||
|
borderWidth?: string
|
||||||
|
borderColor?: string
|
||||||
|
WebkitTransformOrigin?: string
|
||||||
|
transformOrigin?: string
|
||||||
|
transform?: string
|
||||||
|
height?: string
|
||||||
|
textIndent?: string | number
|
||||||
|
borderCollapse?: 'collapse' | 'separate' | 'initial' | 'inherit'
|
||||||
|
border?: string
|
||||||
|
textDecoration?: string
|
||||||
|
borderBottom?: string
|
||||||
|
WebkitBackgroundClip?: string
|
||||||
|
WebkitTextFillColor?: string
|
||||||
'@media (max-width: 768px)'?: {
|
'@media (max-width: 768px)'?: {
|
||||||
margin?: string
|
margin?: string
|
||||||
padding?: string
|
padding?: string
|
||||||
|
Loading…
Reference in New Issue
Block a user