-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglobal-styles.ts
63 lines (61 loc) · 1.08 KB
/
global-styles.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export const globalStyles = {
'html, body': {
color: 'bodyText',
bg: 'bodyBg',
fontFamily: 'body !important'
},
table: {
width: '100%',
marginY: '8',
th: {
bg: 'gray.100'
},
'th, td': {
borderWidth: '1px',
py: '3',
px: '5',
textAlign: 'start'
}
},
mark: {
bg: 'transparent'
},
'.chakra-prose': {
output: {
fontFeatureSettings: 'tnum',
fontVariantNumeric: 'tabular-nums'
},
'li:not([role])': {
marginY: '1'
},
'ol:not([role]), ul:not([role])': {
marginY: '5',
paddingLeft: '4'
},
'h2,h3,h4': {
scrollMarginTop: '24',
'&:hover': {
'a.anchor': { opacity: 1 }
},
'a:focus': { opacity: 1 }
},
'p, li:not([role])': {
lineHeight: 'tall'
},
'p + p': {
marginTop: '6'
},
'a.anchor': {
opacity: 0,
color: 'green.400',
transition: 'opacity 0.2s ease-in-out',
marginX: '3',
'&:before': {
content: '"#"'
},
'&:hover': {
opacity: '1'
}
}
}
};