@@ -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%
@@ -43,6 +44,30 @@ code {
43
44
overflow : auto ;
44
45
}
45
46
47
+ @mixin code-space-full-width {
48
+ padding : 1rem 1.5rem ;
49
+ margin : 0 .2rem ;
50
+ }
51
+
52
+ @mixin code-space-inline {
53
+ padding : .2rem .5rem ;
54
+ margin : 0 .2rem ;
55
+ }
56
+
57
+ @mixin code-highlight-white {
58
+ color : white ;
59
+ background-color : rgba (white , 0.15 );
60
+ border : 1px solid #E1E1E1 ;
61
+ border-radius : $border-radius ;
62
+ }
63
+
64
+ @mixin code-highlight-black {
65
+ color : black ;
66
+ background-color : rgba (69 , 76 , 82 , 0.05 );
67
+ border : 1px solid rgba (69 , 76 , 82 , 0.25 );
68
+ border-radius : $border-radius ;
69
+ }
70
+
46
71
.button ,
47
72
button {
48
73
display : block ;
@@ -94,7 +119,23 @@ header h1 {
94
119
font-size : 8rem ;
95
120
margin-bottom : 0 ;
96
121
margin-top : 0 ;
97
- line-height : 1.2
122
+ line-height : 1.2 ;
123
+ font-weight : 300 ;
124
+ }
125
+
126
+ header h2 {
127
+ font-size : 4.2rem ;
128
+ line-height : 1.25 ;
129
+ font-weight : 300 ;
130
+ }
131
+
132
+ section h3 {
133
+ margin-top : 0 ;
134
+ line-height : 1.3 ;
135
+ }
136
+
137
+ section p , code {
138
+ line-height : 1.6 ;
98
139
}
99
140
100
141
header .button.button-download {
@@ -135,6 +176,11 @@ section {
135
176
line-height : 1.25 ;
136
177
}
137
178
}
179
+
180
+ p {
181
+ margin-top : 0 ;
182
+ margin-bottom : 30px ;
183
+ }
138
184
}
139
185
140
186
ul {
@@ -216,9 +262,8 @@ a.brand {
216
262
}
217
263
}
218
264
code {
219
- color : white ;
220
- background-color : rgba (white , 0.15 );
221
- border : 1px solid rgba (white , 0.65 );
265
+ @include code-highlight-white ();
266
+ @include code-space-inline ();
222
267
}
223
268
}
224
269
@@ -240,11 +285,10 @@ a.brand {
240
285
& :hover , & :focus {
241
286
border-color : white ;
242
287
}
243
- }
288
+ }
244
289
code {
245
- color : white ;
246
- background-color : rgba (white , 0.15 );
247
- border : 1px solid rgba (white , 0.65 );
290
+ @include code-highlight-white ();
291
+ @include code-space-full-width ();
248
292
}
249
293
}
250
294
@@ -267,9 +311,8 @@ a.brand {
267
311
}
268
312
}
269
313
code {
270
- color : black ;
271
- background-color : rgba ($gray , 0.05 );
272
- border : 1px solid rgba ($gray , 0.25 );
314
+ @include code-highlight-black ();
315
+ @include code-space-inline ();
273
316
}
274
317
}
275
318
@@ -293,9 +336,8 @@ a.brand {
293
336
}
294
337
}
295
338
code {
296
- color : white ;
297
- background-color : rgba (white , 0.15 );
298
- border : 1px solid rgba (white , 0.65 );
339
+ @include code-highlight-white ();
340
+ @include code-space-inline ();
299
341
}
300
342
}
301
343
0 commit comments