1
|
|
|
import React from 'react' |
2
|
|
|
import PropTypes from 'prop-types' |
3
|
|
|
|
4
|
2 |
|
const GlobalStyleCss = ({ theme }) => { |
5
|
3 |
|
return ( |
6
|
|
|
<style jsx global>{` |
7
|
|
|
html, |
8
|
|
|
body { |
9
|
|
|
color: ${theme.colors.colorDark}; |
10
|
|
|
} |
11
|
|
|
h1 { |
12
|
|
|
color: ${theme.colors.colorLight}; |
13
|
|
|
} |
14
|
|
|
a { |
15
|
|
|
color: ${theme.colors.colorDark}; |
16
|
|
|
border-bottom: 1px dashed ${theme.colors.colorDark}; |
17
|
|
|
} |
18
|
|
|
body:after { |
19
|
|
|
content: ''; |
20
|
|
|
position: fixed; |
21
|
|
|
top: 0; |
22
|
|
|
bottom: 0; |
23
|
|
|
width: 100%; |
24
|
|
|
height: 100%; |
25
|
|
|
opacity: ${theme.images.bgPatternOpacity}; |
26
|
|
|
z-index: -1; |
27
|
|
|
background: ${theme.colors.bgColor} url(${theme.images.bgPattern}); |
28
|
|
|
} |
29
|
|
|
*:selection { |
30
|
|
|
color: ${theme.colors.colorLight}; |
31
|
|
|
background-color: ${theme.colors.colorDarken}; |
32
|
|
|
} |
33
|
|
|
*::-moz-selection { |
34
|
|
|
color: ${theme.colors.colorLight}; |
35
|
|
|
background-color: ${theme.colors.colorDarken}; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
@font-face { |
39
|
|
|
font-family: 'ip'; |
40
|
|
|
src: url('/fonts/ip/font/ip.eot'); |
41
|
|
|
src: url('/fonts/ip/font/ip.eot#iefix') format('embedded-opentype'), |
42
|
|
|
url('/fonts/ip/font/ip.woff') format('woff'), |
43
|
|
|
url('/fonts/ip/font/ip.ttf') format('truetype'), |
44
|
|
|
url('/fonts/ip/font/ip.svg') format('svg'); |
45
|
|
|
font-weight: normal; |
46
|
|
|
font-style: normal; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
html, |
50
|
|
|
body, |
51
|
|
|
div, |
52
|
|
|
span, |
53
|
|
|
applet, |
54
|
|
|
object, |
55
|
|
|
iframe, |
56
|
|
|
h1, |
57
|
|
|
h2, |
58
|
|
|
h3, |
59
|
|
|
h4, |
60
|
|
|
h5, |
61
|
|
|
h6, |
62
|
|
|
p, |
63
|
|
|
blockquote, |
64
|
|
|
pre, |
65
|
|
|
a, |
66
|
|
|
abbr, |
67
|
|
|
acronym, |
68
|
|
|
address, |
69
|
|
|
big, |
70
|
|
|
cite, |
71
|
|
|
code, |
72
|
|
|
del, |
73
|
|
|
dfn, |
74
|
|
|
em, |
75
|
|
|
img, |
76
|
|
|
ins, |
77
|
|
|
kbd, |
78
|
|
|
q, |
79
|
|
|
s, |
80
|
|
|
samp, |
81
|
|
|
small, |
82
|
|
|
strike, |
83
|
|
|
strong, |
84
|
|
|
sub, |
85
|
|
|
sup, |
86
|
|
|
tt, |
87
|
|
|
var, |
88
|
|
|
b, |
89
|
|
|
u, |
90
|
|
|
i, |
91
|
|
|
center, |
92
|
|
|
dl, |
93
|
|
|
dt, |
94
|
|
|
dd, |
95
|
|
|
ol, |
96
|
|
|
ul, |
97
|
|
|
li, |
98
|
|
|
fieldset, |
99
|
|
|
form, |
100
|
|
|
input, |
101
|
|
|
label, |
102
|
|
|
legend, |
103
|
|
|
table, |
104
|
|
|
caption, |
105
|
|
|
tbody, |
106
|
|
|
tfoot, |
107
|
|
|
thead, |
108
|
|
|
tr, |
109
|
|
|
th, |
110
|
|
|
td, |
111
|
|
|
article, |
112
|
|
|
aside, |
113
|
|
|
canvas, |
114
|
|
|
details, |
115
|
|
|
embed, |
116
|
|
|
figure, |
117
|
|
|
figcaption, |
118
|
|
|
footer, |
119
|
|
|
header, |
120
|
|
|
hgroup, |
121
|
|
|
menu, |
122
|
|
|
nav, |
123
|
|
|
output, |
124
|
|
|
ruby, |
125
|
|
|
section, |
126
|
|
|
summary, |
127
|
|
|
time, |
128
|
|
|
mark, |
129
|
|
|
audio, |
130
|
|
|
video { |
131
|
|
|
margin: 0; |
132
|
|
|
padding: 0; |
133
|
|
|
border: 0; |
134
|
|
|
-moz-box-sizing: border-box; |
135
|
|
|
-webkit-box-sizing: border-box; |
136
|
|
|
box-sizing: border-box; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
article, |
140
|
|
|
aside, |
141
|
|
|
details, |
142
|
|
|
figcaption, |
143
|
|
|
figure, |
144
|
|
|
footer, |
145
|
|
|
header, |
146
|
|
|
hgroup, |
147
|
|
|
menu, |
148
|
|
|
nav, |
149
|
|
|
section { |
150
|
|
|
display: block; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
nav ol, |
154
|
|
|
nav ul { |
155
|
|
|
list-style: none; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
blockquote, |
159
|
|
|
q { |
160
|
|
|
quotes: none; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
blockquote cite { |
164
|
|
|
font-style: normal; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
blockquote:before, |
168
|
|
|
blockquote:after, |
169
|
|
|
q:before, |
170
|
|
|
q:after { |
171
|
|
|
content: ''; |
172
|
|
|
content: none; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
html, |
176
|
|
|
body { |
177
|
|
|
width: 100%; |
178
|
|
|
height: 100%; |
179
|
|
|
font-family: 'open sans', Tahoma, Verdana, Arial, sans-serif; |
180
|
|
|
line-height: 1.2; |
181
|
|
|
scroll-behavior: smooth; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
h1, |
185
|
|
|
h2, |
186
|
|
|
h3, |
187
|
|
|
h4, |
188
|
|
|
h5, |
189
|
|
|
h6 { |
190
|
|
|
font-weight: normal; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
h1 { |
194
|
|
|
font-size: 60px; |
195
|
|
|
font-family: Georgia, Times, 'Times New Roman', serif; |
196
|
|
|
} |
197
|
|
|
@media screen and (max-width: 1200px) { |
198
|
|
|
h1 { |
199
|
|
|
font-size: 55px; |
200
|
|
|
} |
201
|
|
|
} |
202
|
|
|
@media screen and (max-width: 800px) { |
203
|
|
|
h1 { |
204
|
|
|
font-size: 50px; |
205
|
|
|
} |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
h2 { |
209
|
|
|
font-family: Georgia, Times, 'Times New Roman', serif; |
210
|
|
|
font-size: 40px; |
211
|
|
|
} |
212
|
|
|
@media screen and (max-width: 1200px) { |
213
|
|
|
h2 { |
214
|
|
|
font-size: 35px; |
215
|
|
|
} |
216
|
|
|
} |
217
|
|
|
@media screen and (max-width: 800px) { |
218
|
|
|
h2 { |
219
|
|
|
font-size: 30px; |
220
|
|
|
} |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
h3 { |
224
|
|
|
font-size: 30px; |
225
|
|
|
} |
226
|
|
|
@media screen and (max-width: 1200px) { |
227
|
|
|
h3 { |
228
|
|
|
font-size: 25px; |
229
|
|
|
} |
230
|
|
|
} |
231
|
|
|
@media screen and (max-width: 800px) { |
232
|
|
|
h3 { |
233
|
|
|
font-size: 20px; |
234
|
|
|
} |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
h4 { |
238
|
|
|
font-size: 20px; |
239
|
|
|
} |
240
|
|
|
@media screen and (max-width: 1200px) { |
241
|
|
|
h4 { |
242
|
|
|
font-size: 18px; |
243
|
|
|
} |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
h5 { |
247
|
|
|
font-size: 18px; |
248
|
|
|
} |
249
|
|
|
@media screen and (max-width: 800px) { |
250
|
|
|
h5 { |
251
|
|
|
font-size: 16px; |
252
|
|
|
} |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
p { |
256
|
|
|
font-size: 16px; |
257
|
|
|
line-height: 1.5; |
258
|
|
|
} |
259
|
|
|
@media screen and (max-width: 800px) { |
260
|
|
|
p { |
261
|
|
|
font-size: 15px; |
262
|
|
|
} |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
li p { |
266
|
|
|
font-family: Georgia, Times, 'Times New Roman', serif; |
267
|
|
|
font-style: italic; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
a { |
271
|
|
|
font-family: 'open sans', Tahoma, Verdana, Arial, sans-serif; |
272
|
|
|
font-size: 16px; |
273
|
|
|
text-decoration: none; |
274
|
|
|
outline-style: none; |
275
|
|
|
} |
276
|
|
|
a:hover { |
277
|
|
|
border-bottom: none; |
278
|
|
|
} |
279
|
|
|
`}</style> |
280
|
|
|
) |
281
|
|
|
} |
282
|
|
|
|
283
|
2 |
|
GlobalStyleCss.propTypes = { |
284
|
|
|
theme: PropTypes.any |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
export default GlobalStyleCss |
288
|
|
|
|