jekyll-theme-amp 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/_includes/extend/image.liquid +10 -0
- data/_includes/image +1 -0
- data/_layouts/default.liquid +93 -0
- data/_layouts/plugins/compress.liquid +14 -0
- data/_sass/_rouge.scss +209 -0
- data/_sass/_variables.scss +2 -0
- data/_sass/amp.noscript.scss +6 -0
- data/_sass/amp.scss +51 -0
- data/_sass/custom.scss +16 -0
- data/_sass/primer/base/base.scss +86 -0
- data/_sass/primer/base/index.scss +6 -0
- data/_sass/primer/base/kbd.scss +21 -0
- data/_sass/primer/base/normalize.scss +418 -0
- data/_sass/primer/base/typography-base.scss +88 -0
- data/_sass/primer/markdown/blob-csv.scss +29 -0
- data/_sass/primer/markdown/code.scss +69 -0
- data/_sass/primer/markdown/headings.scss +72 -0
- data/_sass/primer/markdown/images.scss +131 -0
- data/_sass/primer/markdown/index.scss +8 -0
- data/_sass/primer/markdown/lists.scss +77 -0
- data/_sass/primer/markdown/markdown-body.scss +99 -0
- data/_sass/primer/markdown/tables.scss +38 -0
- data/_sass/primer/support/index.scss +11 -0
- data/_sass/primer/support/mixins/buttons.scss +172 -0
- data/_sass/primer/support/mixins/layout.scss +58 -0
- data/_sass/primer/support/mixins/misc.scss +29 -0
- data/_sass/primer/support/mixins/typography.scss +84 -0
- data/_sass/primer/support/variables/color-system.scss +243 -0
- data/_sass/primer/support/variables/colors.scss +55 -0
- data/_sass/primer/support/variables/layout.scss +143 -0
- data/_sass/primer/support/variables/misc.scss +42 -0
- data/_sass/primer/support/variables/typography.scss +42 -0
- data/assets/404.liquid +6 -0
- data/assets/favicon.liquid +9 -0
- data/assets/robots.liquid +9 -0
- data/assets/schema.600x60.png +0 -0
- data/assets/sitemap.liquid +17 -0
- metadata +96 -0
data/_sass/custom.scss
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
@import "variables";
|
2
|
+
@import "primer/support";
|
3
|
+
@import "primer/base";
|
4
|
+
|
5
|
+
.container {
|
6
|
+
max-width: 1024px;
|
7
|
+
margin: auto;
|
8
|
+
padding: 10px;
|
9
|
+
}
|
10
|
+
@import "primer/markdown";
|
11
|
+
@import "rouge";
|
12
|
+
|
13
|
+
// from https://search.google.com/test/rich-results
|
14
|
+
amp-img {
|
15
|
+
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
|
16
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// stylelint-disable selector-max-type
|
2
|
+
* {
|
3
|
+
box-sizing: border-box;
|
4
|
+
}
|
5
|
+
|
6
|
+
input,
|
7
|
+
select,
|
8
|
+
textarea,
|
9
|
+
button {
|
10
|
+
font-family: inherit;
|
11
|
+
font-size: inherit;
|
12
|
+
line-height: inherit;
|
13
|
+
}
|
14
|
+
|
15
|
+
body {
|
16
|
+
font-family: $body-font;
|
17
|
+
font-size: $body-font-size;
|
18
|
+
line-height: $body-line-height;
|
19
|
+
color: $text-gray-dark;
|
20
|
+
background-color: $bg-white;
|
21
|
+
}
|
22
|
+
|
23
|
+
a {
|
24
|
+
color: $text-blue;
|
25
|
+
text-decoration: none;
|
26
|
+
|
27
|
+
&:hover {
|
28
|
+
text-decoration: underline;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
b,
|
33
|
+
strong {
|
34
|
+
font-weight: $font-weight-bold;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Horizontal lines
|
38
|
+
//
|
39
|
+
// TODO-MDO: Remove `.rule` from everywhere and replace with `<hr>`s
|
40
|
+
hr,
|
41
|
+
.rule {
|
42
|
+
height: 0;
|
43
|
+
// stylelint-disable-next-line primer/spacing
|
44
|
+
margin: 15px 0;
|
45
|
+
overflow: hidden;
|
46
|
+
background: transparent;
|
47
|
+
border: 0;
|
48
|
+
// stylelint-disable-next-line primer/borders
|
49
|
+
border-bottom: $border-width $border-style lighten($gray-300, 5%);
|
50
|
+
@include clearfix();
|
51
|
+
}
|
52
|
+
|
53
|
+
//
|
54
|
+
// Remove most spacing between table cells.
|
55
|
+
//
|
56
|
+
|
57
|
+
table {
|
58
|
+
border-spacing: 0;
|
59
|
+
border-collapse: collapse;
|
60
|
+
}
|
61
|
+
|
62
|
+
td,
|
63
|
+
th {
|
64
|
+
padding: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
button {
|
68
|
+
cursor: pointer;
|
69
|
+
// Remove border radius added by Chrome macOS
|
70
|
+
border-radius: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
// increase the selector specificity for [hidden]
|
74
|
+
// so that it always overrides utility classes (.d-block, etc.)
|
75
|
+
[hidden][hidden] {
|
76
|
+
display: none !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
details {
|
80
|
+
summary { cursor: pointer; }
|
81
|
+
|
82
|
+
&:not([open]) {
|
83
|
+
// Set details content hidden by default for browsers that don't do this
|
84
|
+
> *:not(summary) { display: none !important; }
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Keyboard shortcuts
|
2
|
+
// stylelint-disable selector-max-type
|
3
|
+
|
4
|
+
kbd {
|
5
|
+
display: inline-block;
|
6
|
+
// stylelint-disable-next-line primer/spacing
|
7
|
+
padding: ($spacer-1 - 1) ($spacer-1 + 1);
|
8
|
+
font: 11px $mono-font;
|
9
|
+
// stylelint-disable-next-line primer/typography
|
10
|
+
line-height: 10px;
|
11
|
+
// stylelint-disable-next-line primer/colors
|
12
|
+
color: $gray-700;
|
13
|
+
vertical-align: middle;
|
14
|
+
background-color: $bg-gray-light;
|
15
|
+
// stylelint-disable-next-line primer/borders
|
16
|
+
border: $border-style $border-width $border-gray-dark;
|
17
|
+
border-bottom-color: $border-gray-dark;
|
18
|
+
border-radius: $border-radius;
|
19
|
+
// stylelint-disable-next-line primer/box-shadow
|
20
|
+
box-shadow: inset 0 -1px 0 $border-gray-dark;
|
21
|
+
}
|
@@ -0,0 +1,418 @@
|
|
1
|
+
/**
|
2
|
+
* 1. Change the default font family in all browsers (opinionated).
|
3
|
+
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
|
4
|
+
*/
|
5
|
+
|
6
|
+
html {
|
7
|
+
font-family: sans-serif; /* 1 */
|
8
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
9
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Remove the margin in all browsers (opinionated).
|
14
|
+
*/
|
15
|
+
|
16
|
+
body {
|
17
|
+
margin: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* HTML5 display definitions
|
21
|
+
========================================================================== */
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Add the correct display in IE 9-.
|
25
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
26
|
+
* 2. Add the correct display in IE.
|
27
|
+
*/
|
28
|
+
|
29
|
+
article,
|
30
|
+
aside,
|
31
|
+
details, /* 1 */
|
32
|
+
figcaption,
|
33
|
+
figure,
|
34
|
+
footer,
|
35
|
+
header,
|
36
|
+
main, /* 2 */
|
37
|
+
menu,
|
38
|
+
nav,
|
39
|
+
section { /* 1 */
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
|
43
|
+
summary {
|
44
|
+
display: list-item;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Add the correct display in IE 9-.
|
49
|
+
*/
|
50
|
+
|
51
|
+
audio,
|
52
|
+
canvas,
|
53
|
+
progress,
|
54
|
+
video {
|
55
|
+
display: inline-block;
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Add the correct display in iOS 4-7.
|
60
|
+
*/
|
61
|
+
|
62
|
+
audio:not([controls]) {
|
63
|
+
display: none;
|
64
|
+
height: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
69
|
+
*/
|
70
|
+
|
71
|
+
progress {
|
72
|
+
vertical-align: baseline;
|
73
|
+
}
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Add the correct display in IE 10-.
|
77
|
+
* 1. Add the correct display in IE.
|
78
|
+
*/
|
79
|
+
|
80
|
+
template, /* 1 */
|
81
|
+
[hidden] {
|
82
|
+
display: none !important;
|
83
|
+
}
|
84
|
+
|
85
|
+
/* Links
|
86
|
+
========================================================================== */
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Remove the gray background on active links in IE 10.
|
90
|
+
*/
|
91
|
+
|
92
|
+
a {
|
93
|
+
background-color: transparent; /* 1 */
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Remove the outline on focused links when they are also active or hovered
|
98
|
+
* in all browsers (opinionated).
|
99
|
+
*/
|
100
|
+
|
101
|
+
a:active,
|
102
|
+
a:hover {
|
103
|
+
outline-width: 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
/* Text-level semantics
|
107
|
+
========================================================================== */
|
108
|
+
|
109
|
+
/**
|
110
|
+
* 1. Remove the bottom border in Firefox 39-.
|
111
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
112
|
+
*/
|
113
|
+
|
114
|
+
abbr[title] {
|
115
|
+
border-bottom: none; /* 1 */
|
116
|
+
text-decoration: underline; /* 2 */
|
117
|
+
text-decoration: underline dotted; /* 2 */
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
122
|
+
*/
|
123
|
+
|
124
|
+
b,
|
125
|
+
strong {
|
126
|
+
font-weight: inherit;
|
127
|
+
}
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
131
|
+
*/
|
132
|
+
|
133
|
+
b,
|
134
|
+
strong {
|
135
|
+
font-weight: bolder;
|
136
|
+
}
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Add the correct font style in Android 4.3-.
|
140
|
+
*/
|
141
|
+
|
142
|
+
dfn {
|
143
|
+
font-style: italic;
|
144
|
+
}
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
148
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
149
|
+
*/
|
150
|
+
|
151
|
+
h1 {
|
152
|
+
font-size: 2em;
|
153
|
+
margin: 0.67em 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Add the correct background and color in IE 9-.
|
158
|
+
*/
|
159
|
+
|
160
|
+
mark {
|
161
|
+
background-color: #ff0;
|
162
|
+
color: $text-black;
|
163
|
+
}
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Add the correct font size in all browsers.
|
167
|
+
*/
|
168
|
+
|
169
|
+
small {
|
170
|
+
font-size: 80%;
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
175
|
+
* all browsers.
|
176
|
+
*/
|
177
|
+
|
178
|
+
sub,
|
179
|
+
sup {
|
180
|
+
font-size: 75%;
|
181
|
+
line-height: 0;
|
182
|
+
position: relative;
|
183
|
+
vertical-align: baseline;
|
184
|
+
}
|
185
|
+
|
186
|
+
sub {
|
187
|
+
bottom: -0.25em;
|
188
|
+
}
|
189
|
+
|
190
|
+
sup {
|
191
|
+
top: -0.5em;
|
192
|
+
}
|
193
|
+
|
194
|
+
/* Embedded content
|
195
|
+
========================================================================== */
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Remove the border on images inside links in IE 10-.
|
199
|
+
*/
|
200
|
+
|
201
|
+
img {
|
202
|
+
border-style: none;
|
203
|
+
}
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Hide the overflow in IE.
|
207
|
+
*/
|
208
|
+
|
209
|
+
svg:not(:root) {
|
210
|
+
overflow: hidden;
|
211
|
+
}
|
212
|
+
|
213
|
+
/* Grouping content
|
214
|
+
========================================================================== */
|
215
|
+
|
216
|
+
/**
|
217
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
218
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
219
|
+
*/
|
220
|
+
|
221
|
+
code,
|
222
|
+
kbd,
|
223
|
+
pre,
|
224
|
+
samp {
|
225
|
+
font-family: monospace, monospace; /* 1 */
|
226
|
+
font-size: 1em; /* 2 */
|
227
|
+
}
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Add the correct margin in IE 8.
|
231
|
+
*/
|
232
|
+
|
233
|
+
figure {
|
234
|
+
margin: 1em $spacer-6;
|
235
|
+
}
|
236
|
+
|
237
|
+
/**
|
238
|
+
* 1. Add the correct box sizing in Firefox.
|
239
|
+
* 2. Show the overflow in Edge and IE.
|
240
|
+
*/
|
241
|
+
|
242
|
+
hr {
|
243
|
+
box-sizing: content-box; /* 1 */
|
244
|
+
height: 0; /* 1 */
|
245
|
+
overflow: visible; /* 2 */
|
246
|
+
}
|
247
|
+
|
248
|
+
/* Forms
|
249
|
+
========================================================================== */
|
250
|
+
|
251
|
+
/**
|
252
|
+
* 1. Change font properties to `inherit` in all browsers (opinionated).
|
253
|
+
* 2. Remove the margin in Firefox and Safari.
|
254
|
+
*/
|
255
|
+
|
256
|
+
button,
|
257
|
+
input,
|
258
|
+
select,
|
259
|
+
textarea {
|
260
|
+
font: inherit; /* 1 */
|
261
|
+
margin: 0; /* 2 */
|
262
|
+
}
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Restore the font weight unset by the previous rule.
|
266
|
+
*/
|
267
|
+
|
268
|
+
optgroup {
|
269
|
+
font-weight: $font-weight-bold;
|
270
|
+
}
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Show the overflow in IE.
|
274
|
+
* 1. Show the overflow in Edge.
|
275
|
+
*/
|
276
|
+
|
277
|
+
button,
|
278
|
+
input { /* 1 */
|
279
|
+
overflow: visible;
|
280
|
+
}
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
284
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
285
|
+
*/
|
286
|
+
|
287
|
+
button,
|
288
|
+
select { /* 1 */
|
289
|
+
text-transform: none;
|
290
|
+
}
|
291
|
+
|
292
|
+
/**
|
293
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
294
|
+
* controls in Android 4.
|
295
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
296
|
+
*/
|
297
|
+
|
298
|
+
button,
|
299
|
+
html [type="button"], /* 1 */
|
300
|
+
[type="reset"],
|
301
|
+
[type="submit"] {
|
302
|
+
-webkit-appearance: button; /* 2 */
|
303
|
+
}
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Remove the inner border and padding in Firefox.
|
307
|
+
*/
|
308
|
+
|
309
|
+
button::-moz-focus-inner,
|
310
|
+
[type="button"]::-moz-focus-inner,
|
311
|
+
[type="reset"]::-moz-focus-inner,
|
312
|
+
[type="submit"]::-moz-focus-inner {
|
313
|
+
border-style: none;
|
314
|
+
padding: 0;
|
315
|
+
}
|
316
|
+
|
317
|
+
/**
|
318
|
+
* Restore the focus styles unset by the previous rule.
|
319
|
+
*/
|
320
|
+
|
321
|
+
button:-moz-focusring,
|
322
|
+
[type="button"]:-moz-focusring,
|
323
|
+
[type="reset"]:-moz-focusring,
|
324
|
+
[type="submit"]:-moz-focusring {
|
325
|
+
outline: 1px dotted ButtonText;
|
326
|
+
}
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
330
|
+
*/
|
331
|
+
|
332
|
+
fieldset {
|
333
|
+
border: $border-width $border-style #c0c0c0;
|
334
|
+
margin: 0 2px;
|
335
|
+
padding: 0.35em 0.625em $em-spacer-6;
|
336
|
+
}
|
337
|
+
|
338
|
+
/**
|
339
|
+
* 1. Correct the text wrapping in Edge and IE.
|
340
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
341
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
342
|
+
* `fieldset` elements in all browsers.
|
343
|
+
*/
|
344
|
+
|
345
|
+
legend {
|
346
|
+
box-sizing: border-box; /* 1 */
|
347
|
+
color: inherit; /* 2 */
|
348
|
+
display: table; /* 1 */
|
349
|
+
max-width: 100%; /* 1 */
|
350
|
+
padding: 0; /* 3 */
|
351
|
+
white-space: normal; /* 1 */
|
352
|
+
}
|
353
|
+
|
354
|
+
/**
|
355
|
+
* Remove the default vertical scrollbar in IE.
|
356
|
+
*/
|
357
|
+
|
358
|
+
textarea {
|
359
|
+
overflow: auto;
|
360
|
+
}
|
361
|
+
|
362
|
+
/**
|
363
|
+
* 1. Add the correct box sizing in IE 10-.
|
364
|
+
* 2. Remove the padding in IE 10-.
|
365
|
+
*/
|
366
|
+
|
367
|
+
[type="checkbox"],
|
368
|
+
[type="radio"] {
|
369
|
+
box-sizing: border-box; /* 1 */
|
370
|
+
padding: 0; /* 2 */
|
371
|
+
}
|
372
|
+
|
373
|
+
/**
|
374
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
375
|
+
*/
|
376
|
+
|
377
|
+
[type="number"]::-webkit-inner-spin-button,
|
378
|
+
[type="number"]::-webkit-outer-spin-button {
|
379
|
+
height: auto;
|
380
|
+
}
|
381
|
+
|
382
|
+
/**
|
383
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
384
|
+
* 2. Correct the outline style in Safari.
|
385
|
+
*/
|
386
|
+
|
387
|
+
[type="search"] {
|
388
|
+
-webkit-appearance: textfield; /* 1 */
|
389
|
+
outline-offset: -2px; /* 2 */
|
390
|
+
}
|
391
|
+
|
392
|
+
/**
|
393
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
|
394
|
+
*/
|
395
|
+
|
396
|
+
[type="search"]::-webkit-search-cancel-button,
|
397
|
+
[type="search"]::-webkit-search-decoration {
|
398
|
+
-webkit-appearance: none;
|
399
|
+
}
|
400
|
+
|
401
|
+
/**
|
402
|
+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
403
|
+
*/
|
404
|
+
|
405
|
+
::-webkit-input-placeholder {
|
406
|
+
color: inherit;
|
407
|
+
opacity: 0.54;
|
408
|
+
}
|
409
|
+
|
410
|
+
/**
|
411
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
412
|
+
* 2. Change font properties to `inherit` in Safari.
|
413
|
+
*/
|
414
|
+
|
415
|
+
::-webkit-file-upload-button {
|
416
|
+
-webkit-appearance: button; /* 1 */
|
417
|
+
font: inherit; /* 2 */
|
418
|
+
}
|