jekyll-rtd-theme 1.1.8 → 2.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +23 -65
  4. data/_includes/addons/analytics.liquid +4 -4
  5. data/_includes/addons/github.liquid +7 -10
  6. data/_includes/breadcrumbs.liquid +27 -0
  7. data/_includes/extend/list.liquid +2 -2
  8. data/_includes/{reset → extend}/tabs.liquid +0 -0
  9. data/_includes/extend/toctree.liquid +6 -5
  10. data/_includes/footer.liquid +36 -0
  11. data/_includes/reset/defaults.liquid +25 -60
  12. data/_includes/reset/workdir.liquid +1 -0
  13. data/_includes/safe/shortcodes.liquid +9 -0
  14. data/_includes/shortcodes/danger.liquid +3 -2
  15. data/_includes/shortcodes/note.liquid +3 -2
  16. data/_includes/shortcodes/tip.liquid +3 -2
  17. data/_includes/shortcodes/warning.liquid +3 -2
  18. data/_includes/{class/_toctree.liquid → toctree.liquid} +2 -2
  19. data/_layouts/default.liquid +182 -23
  20. data/_layouts/plugins/extension.liquid +6 -8
  21. data/_sass/@primer/base/base.scss +90 -0
  22. data/_sass/@primer/base/index.scss +6 -0
  23. data/_sass/@primer/base/kbd.scss +21 -0
  24. data/_sass/@primer/base/normalize.scss +423 -0
  25. data/_sass/@primer/base/typography-base.scss +100 -0
  26. data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
  27. data/_sass/@primer/breadcrumb/index.scss +3 -0
  28. data/_sass/@primer/buttons/button-group.scss +91 -0
  29. data/_sass/@primer/buttons/button.scss +296 -0
  30. data/_sass/@primer/buttons/index.scss +4 -0
  31. data/_sass/@primer/buttons/misc.scss +205 -0
  32. data/_sass/@primer/forms/form-control.scss +278 -0
  33. data/_sass/@primer/forms/form-group.scss +279 -0
  34. data/_sass/@primer/forms/form-select.scss +38 -0
  35. data/_sass/@primer/forms/form-validation.scss +369 -0
  36. data/_sass/@primer/forms/index.scss +7 -0
  37. data/_sass/@primer/forms/input-group.scss +53 -0
  38. data/_sass/@primer/forms/radio-group.scss +43 -0
  39. data/_sass/@primer/markdown/blob-csv.scss +31 -0
  40. data/_sass/@primer/markdown/code.scss +73 -0
  41. data/_sass/@primer/markdown/headings.scss +72 -0
  42. data/_sass/@primer/markdown/images.scss +131 -0
  43. data/_sass/@primer/markdown/index.scss +8 -0
  44. data/_sass/@primer/markdown/lists.scss +76 -0
  45. data/_sass/@primer/markdown/markdown-body.scss +99 -0
  46. data/_sass/@primer/markdown/tables.scss +38 -0
  47. data/_sass/@primer/support/index.scss +11 -0
  48. data/_sass/@primer/support/mixins/buttons.scss +184 -0
  49. data/_sass/@primer/support/mixins/layout.scss +55 -0
  50. data/_sass/@primer/support/mixins/misc.scss +32 -0
  51. data/_sass/@primer/support/mixins/typography.scss +88 -0
  52. data/_sass/@primer/support/variables/color-system.scss +243 -0
  53. data/_sass/@primer/support/variables/colors.scss +55 -0
  54. data/_sass/@primer/support/variables/layout.scss +149 -0
  55. data/_sass/@primer/support/variables/misc.scss +42 -0
  56. data/_sass/@primer/support/variables/typography.scss +43 -0
  57. data/_sass/@primer/utilities/animations.scss +187 -0
  58. data/_sass/@primer/utilities/borders.scss +184 -0
  59. data/_sass/@primer/utilities/box-shadow.scss +25 -0
  60. data/_sass/@primer/utilities/colors.scss +185 -0
  61. data/_sass/@primer/utilities/details.scss +34 -0
  62. data/_sass/@primer/utilities/flexbox.scss +121 -0
  63. data/_sass/@primer/utilities/index.scss +14 -0
  64. data/_sass/@primer/utilities/layout.scss +134 -0
  65. data/_sass/@primer/utilities/margin.scss +68 -0
  66. data/_sass/@primer/utilities/padding.scss +59 -0
  67. data/_sass/@primer/utilities/typography.scss +325 -0
  68. data/_sass/@primer/utilities/visibility-display.scss +82 -0
  69. data/_sass/_font-face.scss +65 -0
  70. data/_sass/_icons.scss +53 -0
  71. data/_sass/_layout.scss +76 -0
  72. data/_sass/_reset.scss +21 -0
  73. data/_sass/_root.scss +9 -0
  74. data/_sass/_variables.scss +29 -0
  75. data/_sass/class/addons-wrap.scss +39 -0
  76. data/_sass/class/container.scss +11 -0
  77. data/_sass/class/content-wrap.scss +4 -0
  78. data/_sass/class/header.scss +10 -0
  79. data/_sass/{highlight.scss → class/highlight.scss} +0 -0
  80. data/_sass/class/markdown-body.scss +49 -0
  81. data/_sass/class/sidebar-wrap.scss +72 -0
  82. data/_sass/class/title.scss +13 -0
  83. data/_sass/theme.scss +26 -12
  84. data/assets/404.liquid +1 -3
  85. data/assets/css/theme.min.css +1 -4
  86. data/assets/css/theme.scss +4 -0
  87. data/assets/js/mermaid.min.js +6 -5
  88. data/assets/js/search.js +90 -0
  89. data/assets/js/theme.js +55 -121
  90. data/assets/js/theme.min.js +1 -1
  91. data/assets/search.liquid +9 -1
  92. metadata +74 -25
  93. data/_includes/assets/custom.js +0 -0
  94. data/_includes/assets/custom.scss +0 -0
  95. data/_includes/class/_breadcrumbs.liquid +0 -28
  96. data/_includes/class/_footer.liquid +0 -38
  97. data/_includes/class/rst-versions.liquid +0 -22
  98. data/_includes/class/wy-nav-content.liquid +0 -15
  99. data/_includes/class/wy-nav-side.liquid +0 -18
  100. data/_includes/class/wy-nav-top.liquid +0 -8
  101. data/_includes/extra/footer.html +0 -0
  102. data/_includes/extra/head.html +0 -0
  103. data/_includes/node/links.liquid +0 -24
  104. data/_includes/node/metadata.liquid +0 -21
  105. data/_includes/node/script.extension.liquid +0 -29
  106. data/_includes/node/script.liquid +0 -20
  107. data/_includes/node/script.schema.liquid +0 -27
  108. data/_includes/node/title.liquid +0 -1
  109. data/_includes/reset/i18n.liquid +0 -1
@@ -0,0 +1,423 @@
1
+ // stylelint-disable
2
+
3
+ /**
4
+ * 1. Change the default font family in all browsers (opinionated).
5
+ * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
6
+ */
7
+
8
+ html {
9
+ font-family: sans-serif; /* 1 */
10
+ -ms-text-size-adjust: 100%; /* 2 */
11
+ -webkit-text-size-adjust: 100%; /* 2 */
12
+ }
13
+
14
+ /**
15
+ * Remove the margin in all browsers (opinionated).
16
+ */
17
+
18
+ body {
19
+ margin: 0;
20
+ }
21
+
22
+ /* HTML5 display definitions
23
+ ========================================================================== */
24
+
25
+ /**
26
+ * Add the correct display in IE 9-.
27
+ * 1. Add the correct display in Edge, IE, and Firefox.
28
+ * 2. Add the correct display in IE.
29
+ */
30
+
31
+ article,
32
+ aside,
33
+ details, /* 1 */
34
+ figcaption,
35
+ figure,
36
+ footer,
37
+ header,
38
+ main, /* 2 */
39
+ menu,
40
+ nav,
41
+ section {
42
+ /* 1 */
43
+ display: block;
44
+ }
45
+
46
+ summary {
47
+ display: list-item;
48
+ }
49
+
50
+ /**
51
+ * Add the correct display in IE 9-.
52
+ */
53
+
54
+ audio,
55
+ canvas,
56
+ progress,
57
+ video {
58
+ display: inline-block;
59
+ }
60
+
61
+ /**
62
+ * Add the correct display in iOS 4-7.
63
+ */
64
+
65
+ audio:not([controls]) {
66
+ display: none;
67
+ height: 0;
68
+ }
69
+
70
+ /**
71
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
72
+ */
73
+
74
+ progress {
75
+ vertical-align: baseline;
76
+ }
77
+
78
+ /**
79
+ * Add the correct display in IE 10-.
80
+ * 1. Add the correct display in IE.
81
+ */
82
+
83
+ template, /* 1 */
84
+ [hidden] {
85
+ display: none !important;
86
+ }
87
+
88
+ /* Links
89
+ ========================================================================== */
90
+
91
+ /**
92
+ * Remove the gray background on active links in IE 10.
93
+ */
94
+
95
+ a {
96
+ background-color: transparent; /* 1 */
97
+ }
98
+
99
+ /**
100
+ * Remove the outline on focused links when they are also active or hovered
101
+ * in all browsers (opinionated).
102
+ */
103
+
104
+ a:active,
105
+ a:hover {
106
+ outline-width: 0;
107
+ }
108
+
109
+ /* Text-level semantics
110
+ ========================================================================== */
111
+
112
+ /**
113
+ * 1. Remove the bottom border in Firefox 39-.
114
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
115
+ */
116
+
117
+ abbr[title] {
118
+ border-bottom: none; /* 1 */
119
+ text-decoration: underline; /* 2 */
120
+ text-decoration: underline dotted; /* 2 */
121
+ }
122
+
123
+ /**
124
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
125
+ */
126
+
127
+ b,
128
+ strong {
129
+ font-weight: inherit;
130
+ }
131
+
132
+ /**
133
+ * Add the correct font weight in Chrome, Edge, and Safari.
134
+ */
135
+
136
+ b,
137
+ strong {
138
+ font-weight: bolder;
139
+ }
140
+
141
+ /**
142
+ * Add the correct font style in Android 4.3-.
143
+ */
144
+
145
+ dfn {
146
+ font-style: italic;
147
+ }
148
+
149
+ /**
150
+ * Correct the font size and margin on `h1` elements within `section` and
151
+ * `article` contexts in Chrome, Firefox, and Safari.
152
+ */
153
+
154
+ h1 {
155
+ font-size: 2em;
156
+ margin: 0.67em 0;
157
+ }
158
+
159
+ /**
160
+ * Add the correct background and color in IE 9-.
161
+ */
162
+
163
+ mark {
164
+ background-color: #ff0;
165
+ color: $text-black;
166
+ }
167
+
168
+ /**
169
+ * Add the correct font size in all browsers.
170
+ */
171
+
172
+ small {
173
+ font-size: 80%;
174
+ }
175
+
176
+ /**
177
+ * Prevent `sub` and `sup` elements from affecting the line height in
178
+ * all browsers.
179
+ */
180
+
181
+ sub,
182
+ sup {
183
+ font-size: 75%;
184
+ line-height: 0;
185
+ position: relative;
186
+ vertical-align: baseline;
187
+ }
188
+
189
+ sub {
190
+ bottom: -0.25em;
191
+ }
192
+
193
+ sup {
194
+ top: -0.5em;
195
+ }
196
+
197
+ /* Embedded content
198
+ ========================================================================== */
199
+
200
+ /**
201
+ * Remove the border on images inside links in IE 10-.
202
+ */
203
+
204
+ img {
205
+ border-style: none;
206
+ }
207
+
208
+ /**
209
+ * Hide the overflow in IE.
210
+ */
211
+
212
+ svg:not(:root) {
213
+ overflow: hidden;
214
+ }
215
+
216
+ /* Grouping content
217
+ ========================================================================== */
218
+
219
+ /**
220
+ * 1. Correct the inheritance and scaling of font size in all browsers.
221
+ * 2. Correct the odd `em` font sizing in all browsers.
222
+ */
223
+
224
+ code,
225
+ kbd,
226
+ pre,
227
+ samp {
228
+ font-family: monospace, monospace; /* 1 */
229
+ font-size: 1em; /* 2 */
230
+ }
231
+
232
+ /**
233
+ * Add the correct margin in IE 8.
234
+ */
235
+
236
+ figure {
237
+ margin: 1em $spacer-6;
238
+ }
239
+
240
+ /**
241
+ * 1. Add the correct box sizing in Firefox.
242
+ * 2. Show the overflow in Edge and IE.
243
+ */
244
+
245
+ hr {
246
+ box-sizing: content-box; /* 1 */
247
+ height: 0; /* 1 */
248
+ overflow: visible; /* 2 */
249
+ }
250
+
251
+ /* Forms
252
+ ========================================================================== */
253
+
254
+ /**
255
+ * 1. Change font properties to `inherit` in all browsers (opinionated).
256
+ * 2. Remove the margin in Firefox and Safari.
257
+ */
258
+
259
+ button,
260
+ input,
261
+ select,
262
+ textarea {
263
+ font: inherit; /* 1 */
264
+ margin: 0; /* 2 */
265
+ }
266
+
267
+ /**
268
+ * Restore the font weight unset by the previous rule.
269
+ */
270
+
271
+ optgroup {
272
+ font-weight: $font-weight-bold;
273
+ }
274
+
275
+ /**
276
+ * Show the overflow in IE.
277
+ * 1. Show the overflow in Edge.
278
+ */
279
+
280
+ button,
281
+ input {
282
+ /* 1 */
283
+ overflow: visible;
284
+ }
285
+
286
+ /**
287
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
288
+ * 1. Remove the inheritance of text transform in Firefox.
289
+ */
290
+
291
+ button,
292
+ select {
293
+ /* 1 */
294
+ text-transform: none;
295
+ }
296
+
297
+ /**
298
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
299
+ * controls in Android 4.
300
+ * 2. Correct the inability to style clickable types in iOS and Safari.
301
+ */
302
+
303
+ button,
304
+ html [type="button"], /* 1 */
305
+ [type="reset"],
306
+ [type="submit"] {
307
+ -webkit-appearance: button; /* 2 */
308
+ }
309
+
310
+ /**
311
+ * Remove the inner border and padding in Firefox.
312
+ */
313
+
314
+ button::-moz-focus-inner,
315
+ [type="button"]::-moz-focus-inner,
316
+ [type="reset"]::-moz-focus-inner,
317
+ [type="submit"]::-moz-focus-inner {
318
+ border-style: none;
319
+ padding: 0;
320
+ }
321
+
322
+ /**
323
+ * Restore the focus styles unset by the previous rule.
324
+ */
325
+
326
+ button:-moz-focusring,
327
+ [type="button"]:-moz-focusring,
328
+ [type="reset"]:-moz-focusring,
329
+ [type="submit"]:-moz-focusring {
330
+ outline: 1px dotted ButtonText;
331
+ }
332
+
333
+ /**
334
+ * Change the border, margin, and padding in all browsers (opinionated).
335
+ */
336
+
337
+ fieldset {
338
+ border: $border-width $border-style #c0c0c0;
339
+ margin: 0 2px;
340
+ padding: 0.35em 0.625em $em-spacer-6;
341
+ }
342
+
343
+ /**
344
+ * 1. Correct the text wrapping in Edge and IE.
345
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
346
+ * 3. Remove the padding so developers are not caught out when they zero out
347
+ * `fieldset` elements in all browsers.
348
+ */
349
+
350
+ legend {
351
+ box-sizing: border-box; /* 1 */
352
+ color: inherit; /* 2 */
353
+ display: table; /* 1 */
354
+ max-width: 100%; /* 1 */
355
+ padding: 0; /* 3 */
356
+ white-space: normal; /* 1 */
357
+ }
358
+
359
+ /**
360
+ * Remove the default vertical scrollbar in IE.
361
+ */
362
+
363
+ textarea {
364
+ overflow: auto;
365
+ }
366
+
367
+ /**
368
+ * 1. Add the correct box sizing in IE 10-.
369
+ * 2. Remove the padding in IE 10-.
370
+ */
371
+
372
+ [type="checkbox"],
373
+ [type="radio"] {
374
+ box-sizing: border-box; /* 1 */
375
+ padding: 0; /* 2 */
376
+ }
377
+
378
+ /**
379
+ * Correct the cursor style of increment and decrement buttons in Chrome.
380
+ */
381
+
382
+ [type="number"]::-webkit-inner-spin-button,
383
+ [type="number"]::-webkit-outer-spin-button {
384
+ height: auto;
385
+ }
386
+
387
+ /**
388
+ * 1. Correct the odd appearance in Chrome and Safari.
389
+ * 2. Correct the outline style in Safari.
390
+ */
391
+
392
+ [type="search"] {
393
+ -webkit-appearance: textfield; /* 1 */
394
+ outline-offset: -2px; /* 2 */
395
+ }
396
+
397
+ /**
398
+ * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
399
+ */
400
+
401
+ [type="search"]::-webkit-search-cancel-button,
402
+ [type="search"]::-webkit-search-decoration {
403
+ -webkit-appearance: none;
404
+ }
405
+
406
+ /**
407
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
408
+ */
409
+
410
+ ::-webkit-input-placeholder {
411
+ color: inherit;
412
+ opacity: 0.54;
413
+ }
414
+
415
+ /**
416
+ * 1. Correct the inability to style clickable types in iOS and Safari.
417
+ * 2. Change font properties to `inherit` in Safari.
418
+ */
419
+
420
+ ::-webkit-file-upload-button {
421
+ -webkit-appearance: button; /* 1 */
422
+ font: inherit; /* 2 */
423
+ }
@@ -0,0 +1,100 @@
1
+ // Headings
2
+ // --------------------------------------------------
3
+ // stylelint-disable selector-max-type
4
+ h1,
5
+ h2,
6
+ h3,
7
+ h4,
8
+ h5,
9
+ h6 {
10
+ margin-top: 0;
11
+ margin-bottom: 0;
12
+ }
13
+
14
+ h1 {
15
+ @include h1;
16
+ }
17
+ h2 {
18
+ @include h2;
19
+ }
20
+ h3 {
21
+ @include h3;
22
+ }
23
+ h4 {
24
+ @include h4;
25
+ }
26
+ h5 {
27
+ @include h5;
28
+ }
29
+ h6 {
30
+ @include h6;
31
+ }
32
+
33
+ // Body text
34
+ // --------------------------------------------------
35
+
36
+ p {
37
+ margin-top: 0;
38
+ // stylelint-disable-next-line primer/spacing
39
+ margin-bottom: 10px;
40
+ }
41
+
42
+ small {
43
+ // stylelint-disable-next-line primer/typography
44
+ font-size: 90%;
45
+ }
46
+
47
+ blockquote {
48
+ margin: 0;
49
+ }
50
+
51
+ // Lists
52
+ // --------------------------------------------------
53
+
54
+ ul,
55
+ ol {
56
+ padding-left: 0;
57
+ margin-top: 0;
58
+ margin-bottom: 0;
59
+ }
60
+
61
+ ol ol,
62
+ ul ol {
63
+ list-style-type: lower-roman;
64
+ }
65
+
66
+ ul ul ol,
67
+ ul ol ol,
68
+ ol ul ol,
69
+ ol ol ol {
70
+ list-style-type: lower-alpha;
71
+ }
72
+
73
+ dd {
74
+ margin-left: 0;
75
+ }
76
+
77
+ // Code
78
+ // --------------------------------------------------
79
+
80
+ tt,
81
+ code {
82
+ font-family: $mono-font;
83
+ font-size: $font-size-small;
84
+ }
85
+
86
+ pre {
87
+ margin-top: 0;
88
+ margin-bottom: 0;
89
+ font-family: $mono-font;
90
+ font-size: $font-size-small;
91
+ }
92
+
93
+ // Octicons
94
+ // --------------------------------------------------
95
+
96
+ // Move this over here as a temporary override to the octicons source repo
97
+ // instead of updating that upstream.
98
+ .octicon {
99
+ vertical-align: text-bottom;
100
+ }
@@ -0,0 +1,28 @@
1
+ .breadcrumb-item {
2
+ display: inline-block;
3
+ // stylelint-disable-next-line primer/spacing
4
+ margin-left: -0.35em;
5
+ white-space: nowrap;
6
+ list-style: none;
7
+
8
+ &::after {
9
+ padding-right: $em-spacer-5;
10
+ padding-left: $em-spacer-5;
11
+ // stylelint-disable-next-line primer/colors
12
+ color: $border-gray;
13
+ content: "/";
14
+ }
15
+
16
+ &:first-child {
17
+ margin-left: 0;
18
+ }
19
+ }
20
+
21
+ .breadcrumb-item-selected,
22
+ .breadcrumb-item[aria-current]:not([aria-current="false"]) {
23
+ color: $text-gray;
24
+
25
+ &::after {
26
+ content: none;
27
+ }
28
+ }
@@ -0,0 +1,3 @@
1
+ // support files
2
+ @import "../support/index.scss";
3
+ @import "./breadcrumb.scss";
@@ -0,0 +1,91 @@
1
+ // Button group
2
+ //
3
+ // A button group is a series of buttons laid out next to each other, all part
4
+ // of one visual button, but separated by rules to be separate.
5
+
6
+ .BtnGroup {
7
+ display: inline-block;
8
+ vertical-align: middle;
9
+ @include clearfix();
10
+
11
+ // Proper spacing for multiple button groups (a la, gollum editor)
12
+ + .BtnGroup,
13
+ + .btn {
14
+ margin-left: $spacer-1;
15
+ }
16
+ }
17
+
18
+ .BtnGroup-item {
19
+ position: relative;
20
+ float: left;
21
+ border-right-width: 0;
22
+ border-radius: 0;
23
+
24
+ &:first-child {
25
+ border-top-left-radius: $border-radius;
26
+ border-bottom-left-radius: $border-radius;
27
+ }
28
+
29
+ &:last-child {
30
+ border-right-width: $border-width;
31
+ border-top-right-radius: $border-radius;
32
+ border-bottom-right-radius: $border-radius;
33
+ }
34
+
35
+ &.selected,
36
+ &[aria-selected="true"],
37
+ &:focus,
38
+ &:active,
39
+ &:hover {
40
+ border-right-width: $border-width;
41
+
42
+ + .BtnGroup-item,
43
+ + .BtnGroup-parent .BtnGroup-item {
44
+ border-left-width: 0;
45
+ }
46
+ }
47
+ }
48
+
49
+ .BtnGroup-parent {
50
+ float: left;
51
+
52
+ &:first-child .BtnGroup-item {
53
+ border-top-left-radius: $border-radius;
54
+ border-bottom-left-radius: $border-radius;
55
+ }
56
+
57
+ &:last-child .BtnGroup-item {
58
+ border-right-width: $border-width;
59
+ border-top-right-radius: $border-radius;
60
+ border-bottom-right-radius: $border-radius;
61
+ }
62
+
63
+ .BtnGroup-item {
64
+ border-right-width: 0;
65
+ border-radius: 0;
66
+ }
67
+
68
+ &.selected,
69
+ &[aria-selected="true"],
70
+ &:focus,
71
+ &:active,
72
+ &:hover {
73
+ .BtnGroup-item {
74
+ border-right-width: $border-width;
75
+ }
76
+
77
+ + .BtnGroup-item,
78
+ + .BtnGroup-parent .BtnGroup-item {
79
+ border-left-width: 0;
80
+ }
81
+ }
82
+ }
83
+
84
+ // ensure that the focus ring sits above the adjacent buttons
85
+ .BtnGroup-item,
86
+ .BtnGroup-parent {
87
+ &:focus,
88
+ &:active {
89
+ z-index: 1;
90
+ }
91
+ }