-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathglobal.scss
128 lines (110 loc) · 1.81 KB
/
global.scss
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
@import './variables.scss';
@font-face {
font-family: 'HK Grotesk';
src: local('HK Grotesk'), local('HKGrotesk-Regular'),
url('/fonts/hkgrotesk-regular.woff2') format('woff2'),
url('/fonts/hkgrotesk-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'HK Grotesk';
src: local('HK Grotesk'), local('HKGrotesk-Bold'),
url('/fonts/hkgrotesk-bold.woff2') format('woff2'),
url('/fonts/hkgrotesk-bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}
html,
body {
padding: 0;
margin: 0;
font-family: $font-family;
color: $black;
}
main {
margin-top: $nav-height;
}
h1 {
font-size: 44px;
@include screen('tablet') {
font-size: $h1;
}
}
h2 {
font-size: $h3;
@include screen('tablet') {
font-size: $h2;
}
}
h3 {
font-size: $h4;
@include screen('tablet') {
font-size: $h3;
}
}
h4 {
font-size: $h4;
}
h1,
h2,
h3 {
font-weight: bold;
scroll-margin-top: $nav-height + 20px;
}
p {
line-height: 1.4;
font-size: $body;
}
* {
box-sizing: border-box;
position: relative;
}
a {
color: $accent;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
button {
font-family: inherit;
font-size: inherit;
background-color: transparent;
border: none;
cursor: pointer;
}
// Modal
[data-reach-dialog-content] {
width: calc(100% - 12px);
@include screen('tablet') {
width: 500px;
}
}
/* Utility Classes */
.contain {
@include container;
}
.center {
margin-left: auto;
margin-right: auto;
}
.row {
display: flex;
flex-direction: row;
&.spaced {
justify-content: space-between;
}
&.centered {
justify-content: center;
}
&.aligned {
align-items: center;
}
&.wrap {
flex-wrap: wrap;
}
}
[data-reach-disclosure-button] {
padding: 0;
}