-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal-styles.ts
114 lines (112 loc) · 1.99 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import {CssStyles} from './types/global.types.js';
export const globalStyles = (): CssStyles => ({
':root': {
'font-size': '16px',
'line-height': 1.2
},
h1: {
'font-size': '2em',
'margin-top': '21.44px',
'margin-bottom': '21.44px',
'font-weight': 'bold'
},
h2: {
'font-size': '1.5em',
'margin-top': '19.92px',
'margin-bottom': '19.92px',
'font-weight': 'bold'
},
h3: {
'font-size': '1.17em',
'margin-top': '18.72px',
'margin-bottom': '18.72px',
'font-weight': 'bold'
},
h4: {
'margin-top': '21.28px',
'margin-bottom': '21.28px',
'font-weight': 'bold'
},
h5: {
'font-size': '.83em',
'margin-top': '22.17px',
'margin-bottom': '22.17px',
'font-weight': 'bold'
},
h6: {
'font-size': '.67em',
'margin-top': '24.97px',
'margin-bottom': '24.97px',
'font-weight': 'bold'
},
b: {
'font-weight': 'bold'
},
strong: {
'font-weight': 'bold'
},
i: {
'font-style': 'italic',
},
em: {
'font-style': 'italic'
},
s: {
'text-decoration': 'line-through'
},
del: {
'text-decoration': 'line-through'
},
sub: {
'font-size': '22px',
'vertical-align': 'sub'
},
sup: {
'font-size': '13px',
'vertical-align': 'super'
},
small: {
'font-size': '13px'
},
u: {
'text-decoration': 'underline'
},
ul: {
'margin-top': '16px',
'margin-bottom': '16px',
'padding-left': '20px'
},
ol: {
'margin-top': '16px',
'margin-bottom': '16px',
'padding-left': '20px'
},
p: {
'margin-top': '16px',
'margin-bottom': '16px'
},
figure: {
padding: '16px 40px'
},
tr: {
/* margin: '4px 0'*/
},
th: {
'font-weight': 'bold',
'text-align': 'center'
},
a: {
color: '#0000ee',
'text-decoration': 'underline'
},
hr: {
'border': '1px solid #9a9a9a',
'border-bottom': '0',
'border-left': '0',
'border-right': '0',
margin: '8px 0'
},
pre: {
'white-space': 'pre'
}
});