@@ -8,6 +8,7 @@ $red: #C14566;
8
8
$green : #398277 ;
9
9
$purple : #403D58 ;
10
10
$yellow : #FFD45E ;
11
+ $border-radius : 4px ;
11
12
12
13
html {
13
14
font-size : 62.5%
@@ -41,6 +42,30 @@ code {
41
42
overflow : auto ;
42
43
}
43
44
45
+ @mixin code-space-full-width {
46
+ padding : 1rem 1.5rem ;
47
+ margin : 0 .2rem ;
48
+ }
49
+
50
+ @mixin code-space-inline {
51
+ padding : .2rem .5rem ;
52
+ margin : 0 .2rem ;
53
+ }
54
+
55
+ @mixin code-highlight-white {
56
+ color : white ;
57
+ background-color : rgba (white , 0.15 );
58
+ border : 1px solid #E1E1E1 ;
59
+ border-radius : $border-radius ;
60
+ }
61
+
62
+ @mixin code-highlight-black {
63
+ color : black ;
64
+ background-color : rgba (69 , 76 , 82 , 0.05 );
65
+ border : 1px solid rgba (69 , 76 , 82 , 0.25 );
66
+ border-radius : $border-radius ;
67
+ }
68
+
44
69
.button ,
45
70
button {
46
71
display : block ;
@@ -86,6 +111,23 @@ header h1 {
86
111
font-size : 8rem ;
87
112
margin-bottom : 0 ;
88
113
margin-top : 0 ;
114
+ line-height : 1.2 ;
115
+ font-weight : 300 ;
116
+ }
117
+
118
+ header h2 {
119
+ font-size : 4.2rem ;
120
+ line-height : 1.25 ;
121
+ font-weight : 300 ;
122
+ }
123
+
124
+ section h3 {
125
+ margin-top : 0 ;
126
+ line-height : 1.3 ;
127
+ }
128
+
129
+ section p , code {
130
+ line-height : 1.6 ;
89
131
}
90
132
91
133
header .button.button-download {
@@ -124,6 +166,11 @@ section {
124
166
letter-spacing : 1px ;
125
167
}
126
168
}
169
+
170
+ p {
171
+ margin-top : 0 ;
172
+ margin-bottom : 30px ;
173
+ }
127
174
}
128
175
129
176
ul {
@@ -205,9 +252,8 @@ a.brand {
205
252
}
206
253
}
207
254
code {
208
- color : white ;
209
- background-color : rgba (white , 0.15 );
210
- border : 1px solid rgba (white , 0.65 );
255
+ @include code-highlight-white ();
256
+ @include code-space-inline ();
211
257
}
212
258
}
213
259
@@ -229,11 +275,10 @@ a.brand {
229
275
& :hover , & :focus {
230
276
border-color : white ;
231
277
}
232
- }
278
+ }
233
279
code {
234
- color : white ;
235
- background-color : rgba (white , 0.15 );
236
- border : 1px solid rgba (white , 0.65 );
280
+ @include code-highlight-white ();
281
+ @include code-space-full-width ();
237
282
}
238
283
}
239
284
@@ -256,9 +301,8 @@ a.brand {
256
301
}
257
302
}
258
303
code {
259
- color : black ;
260
- background-color : rgba ($gray , 0.05 );
261
- border : 1px solid rgba ($gray , 0.25 );
304
+ @include code-highlight-black ();
305
+ @include code-space-inline ();
262
306
}
263
307
}
264
308
@@ -282,9 +326,8 @@ a.brand {
282
326
}
283
327
}
284
328
code {
285
- color : white ;
286
- background-color : rgba (white , 0.15 );
287
- border : 1px solid rgba (white , 0.65 );
329
+ @include code-highlight-white ();
330
+ @include code-space-inline ();
288
331
}
289
332
}
290
333
0 commit comments