-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.js
131 lines (108 loc) · 2.57 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
125
126
127
128
129
130
131
import css from 'styled-jsx/css'
import theme from '../styles/theme'
export default css`
html {
box-sizing: border-box;
font-size: ${theme.typography.rootFontSize};
/* Changes the default tap highlight to be completely transparent in iOS. */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
background: ${theme.colors.backgroundColor};
color: ${theme.typography.baseFontColor};
font-size: ${theme.typography.baseFontSize};
line-height: ${theme.typography.baseLineHeight};
font-family: ${theme.typography.baseFontFamily};
font-weight: ${theme.typography.baseFontWeight};
font-style: ${theme.typography.baseFontStyle};
min-width: ${theme.layout.rowMinWidth};
}
.app-container {
overflow: hidden;
}
.page-layout {
display: grid;
position: relative;
grid-template-columns: 100%;
grid-template-rows: 5rem 1fr 6rem;
grid-template-areas:
'header'
'main'
'footer';
height: 100vh;
overflow-x: hidden;
}
.inner {
margin: 0 auto;
width: 100%;
max-width: ${theme.layout.rowMaxWidth};
padding: 0 ${theme.layout.globalSpacing};
}
/* Typography
========================================================================== */
h1, h2, h3 {
font-family: ${theme.typography.headingFontFamily};
font-weight: ${theme.typography.baseFontWeight};
color: ${theme.colors.primaryColor};
margin-top: 0;
}
h1 {
font-size: 2.827rem;
}
h2 {
font-size: 1.999rem;
}
h3 {
font-size: 1.414rem;
}
/* Links
========================================================================== */
a {
cursor: pointer;
color: ${theme.colors.linkColor};
text-decoration: none;
transition: opacity 0.24s ease 0s;
}
a:visited {
color: ${theme.colors.linkColor};
}
a:hover {
opacity: 0.64;
}
a:active {
transform: translate(0, 1px);
}
/* Forms
========================================================================== */
.form-control {
margin-bottom: 1rem;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.form-control :global(label) {
font-size: 0.875rem;
margin-bottom: 0.5rem;
}
/* Tether element */
.tether-element {
z-index: 1000;
}
p {
margin: 0 0 ${theme.layout.globalSpacing} 0;
}
::selection {
color: ${theme.colors.backgroundColor};
background-color: ${theme.colors.primaryColor};
}
.hidden {
display: none;
}
`