forked from coderplex-org/coderplex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal-styles.js
57 lines (56 loc) · 1.38 KB
/
global-styles.js
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
import React from 'react';
export default () => (
<div>
<style jsx global>{`
*,
*::after,
*::before {
box-sizing: border-box;
}
body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background: #fafafa;
font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
font-weight: 400;
color: #444;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: #d812c8;
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 4px;
}
/* Fancy blur effect */
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #d812c8, 0 0 5px #d812c8;
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);
}
.headroom--pinned header {
box-shadow: 0 2px 4px rgba(61, 71, 82, 0.1);
}
.headroom--scrolled {
z-index: 99999 !important;
}
`}</style>
</div>
);