-
Notifications
You must be signed in to change notification settings - Fork 585
/
global.js
124 lines (102 loc) · 2.08 KB
/
global.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
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
115
116
117
118
119
120
121
122
123
124
import { createGlobalStyle, css } from 'styled-components';
import { color, typography } from './styles';
export const bodyStyles = css`
font-family: ${typography.type.primary};
font-size: ${typography.size.s3}px;
color: ${color.darkest};
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
-webkit-overflow-scrolling: touch;
* {
box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: ${typography.weight.regular};
margin: 0;
padding: 0;
}
button,
input,
textarea,
select {
outline: none;
font-family: ${typography.type.primary};
}
sub,
sup {
font-size: 0.8em;
}
sub {
bottom: -0.2em;
}
sup {
top: -0.2em;
}
b,
em {
font-weight: ${typography.weight.bold};
}
hr {
border: none;
border-top: 1px solid ${color.border};
clear: both;
margin-bottom: 1.25rem;
}
code,
pre {
font-family: ${typography.type.code};
font-size: ${typography.size.s2 - 1}px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
display: inline-block;
padding-left: 2px;
padding-right: 2px;
vertical-align: baseline;
color: ${color.secondary};
}
pre {
line-height: 18px;
padding: 11px 1rem;
white-space: pre-wrap;
background: rgba(0, 0, 0, 0.05);
color: ${color.darkest};
border-radius: 3px;
margin: 1rem 0;
}
&.ReactModal__Body--open {
overflow: hidden;
&.hide-intercom #intercom-container {
display: none;
}
}
.ReactModalPortal > div {
opacity: 0;
}
.ReactModalPortal .ReactModal__Overlay {
transition: all 200ms ease-in;
&--after-open {
opacity: 1;
}
&--before-close {
opacity: 0;
}
}
`;
export const GlobalStyle = createGlobalStyle`
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,700,800,900');
body {
${bodyStyles}
margin: 0;
overflow-y: auto;
overflow-x: hidden;
}
`;