truesight-rtd-theme 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +100 -0
  4. data/_includes/README.md +9 -0
  5. data/_includes/common/assets/data.liquid +3 -0
  6. data/_includes/common/assets/robots.liquid +4 -0
  7. data/_includes/common/assets/sitemap.liquid +12 -0
  8. data/_includes/common/assets/sw.caches.js +39 -0
  9. data/_includes/common/core/_list.liquid +15 -0
  10. data/_includes/common/core/list.liquid +10 -0
  11. data/_includes/common/google_adsense.liquid +3 -0
  12. data/_includes/common/google_gtag.liquid +11 -0
  13. data/_includes/common/links.liquid +26 -0
  14. data/_includes/common/mathjax.liquid +6 -0
  15. data/_includes/common/mermaid.liquid +10 -0
  16. data/_includes/common/metadata.liquid +12 -0
  17. data/_includes/common/opengraph.liquid +8 -0
  18. data/_includes/common/rest/content.liquid +6 -0
  19. data/_includes/common/rest/defaults.liquid +7 -0
  20. data/_includes/common/rest/description.liquid +6 -0
  21. data/_includes/common/rest/i18n.liquid +1 -0
  22. data/_includes/common/rest/nav.liquid +20 -0
  23. data/_includes/common/rest/site_pages.liquid +8 -0
  24. data/_includes/common/rest/tabs.liquid +2 -0
  25. data/_includes/common/rest/title.liquid +18 -0
  26. data/_includes/common/rest/variables.liquid +41 -0
  27. data/_includes/common/rest/workdir.liquid +19 -0
  28. data/_includes/common/schema.liquid +27 -0
  29. data/_includes/common/script.liquid +11 -0
  30. data/_includes/common/title.liquid +1 -0
  31. data/_includes/common/twitter_cards.liquid +6 -0
  32. data/_includes/extra/body.html +0 -0
  33. data/_includes/extra/head.html +0 -0
  34. data/_includes/extra/script.js +0 -0
  35. data/_includes/extra/styles.scss +0 -0
  36. data/_includes/list.liquid +1 -0
  37. data/_includes/rest/defaults.liquid +2 -0
  38. data/_includes/rest/script.liquid +7 -0
  39. data/_includes/rest/styles.liquid +5 -0
  40. data/_includes/shortcodes/danger.liquid +9 -0
  41. data/_includes/shortcodes/mermaid.liquid +3 -0
  42. data/_includes/shortcodes/note.liquid +9 -0
  43. data/_includes/shortcodes/tip.liquid +9 -0
  44. data/_includes/shortcodes/warning.liquid +9 -0
  45. data/_includes/templates/_toctree.liquid +41 -0
  46. data/_includes/templates/addons.liquid +43 -0
  47. data/_includes/templates/breadcrumbs.liquid +33 -0
  48. data/_includes/templates/content.liquid +20 -0
  49. data/_includes/templates/footer.liquid +54 -0
  50. data/_includes/templates/sidebar.liquid +18 -0
  51. data/_includes/templates/toctree.liquid +23 -0
  52. data/_layouts/default.liquid +32 -0
  53. data/_layouts/tasks/compress.liquid +21 -0
  54. data/_layouts/tasks/shortcodes.liquid +33 -0
  55. data/_sass/_direction.scss +107 -0
  56. data/_sass/_font-face.scss +66 -0
  57. data/_sass/_layout.scss +76 -0
  58. data/_sass/_rest.scss +26 -0
  59. data/_sass/_root.scss +9 -0
  60. data/_sass/_variables.scss +34 -0
  61. data/_sass/core/addons.scss +39 -0
  62. data/_sass/core/container.scss +11 -0
  63. data/_sass/core/content.scss +4 -0
  64. data/_sass/core/header.scss +10 -0
  65. data/_sass/core/markdown.scss +113 -0
  66. data/_sass/core/sidebar.scss +100 -0
  67. data/_sass/core/title.scss +12 -0
  68. data/_sass/core/toasts.scss +53 -0
  69. data/_sass/lib/@primer/css/base/README.md +24 -0
  70. data/_sass/lib/@primer/css/base/base.scss +90 -0
  71. data/_sass/lib/@primer/css/base/index.scss +6 -0
  72. data/_sass/lib/@primer/css/base/kbd.scss +21 -0
  73. data/_sass/lib/@primer/css/base/normalize.scss +424 -0
  74. data/_sass/lib/@primer/css/base/typography-base.scss +100 -0
  75. data/_sass/lib/@primer/css/breadcrumb/README.md +24 -0
  76. data/_sass/lib/@primer/css/breadcrumb/breadcrumb.scss +28 -0
  77. data/_sass/lib/@primer/css/breadcrumb/index.scss +3 -0
  78. data/_sass/lib/@primer/css/buttons/README.md +24 -0
  79. data/_sass/lib/@primer/css/buttons/button-group.scss +91 -0
  80. data/_sass/lib/@primer/css/buttons/button.scss +296 -0
  81. data/_sass/lib/@primer/css/buttons/index.scss +4 -0
  82. data/_sass/lib/@primer/css/buttons/misc.scss +205 -0
  83. data/_sass/lib/@primer/css/forms/README.md +24 -0
  84. data/_sass/lib/@primer/css/forms/form-control.scss +281 -0
  85. data/_sass/lib/@primer/css/forms/form-group.scss +279 -0
  86. data/_sass/lib/@primer/css/forms/form-select.scss +38 -0
  87. data/_sass/lib/@primer/css/forms/form-validation.scss +369 -0
  88. data/_sass/lib/@primer/css/forms/index.scss +7 -0
  89. data/_sass/lib/@primer/css/forms/input-group.scss +53 -0
  90. data/_sass/lib/@primer/css/forms/radio-group.scss +43 -0
  91. data/_sass/lib/@primer/css/loaders/README.md +24 -0
  92. data/_sass/lib/@primer/css/loaders/index.scss +2 -0
  93. data/_sass/lib/@primer/css/loaders/loaders.scss +21 -0
  94. data/_sass/lib/@primer/css/markdown/README.md +24 -0
  95. data/_sass/lib/@primer/css/markdown/blob-csv.scss +31 -0
  96. data/_sass/lib/@primer/css/markdown/code.scss +73 -0
  97. data/_sass/lib/@primer/css/markdown/headings.scss +72 -0
  98. data/_sass/lib/@primer/css/markdown/images.scss +131 -0
  99. data/_sass/lib/@primer/css/markdown/index.scss +8 -0
  100. data/_sass/lib/@primer/css/markdown/lists.scss +77 -0
  101. data/_sass/lib/@primer/css/markdown/markdown-body.scss +99 -0
  102. data/_sass/lib/@primer/css/markdown/tables.scss +38 -0
  103. data/_sass/lib/@primer/css/support/README.md +24 -0
  104. data/_sass/lib/@primer/css/support/index.scss +11 -0
  105. data/_sass/lib/@primer/css/support/mixins/buttons.scss +184 -0
  106. data/_sass/lib/@primer/css/support/mixins/layout.scss +55 -0
  107. data/_sass/lib/@primer/css/support/mixins/misc.scss +32 -0
  108. data/_sass/lib/@primer/css/support/mixins/typography.scss +88 -0
  109. data/_sass/lib/@primer/css/support/variables/color-system.scss +243 -0
  110. data/_sass/lib/@primer/css/support/variables/colors.scss +55 -0
  111. data/_sass/lib/@primer/css/support/variables/layout.scss +149 -0
  112. data/_sass/lib/@primer/css/support/variables/misc.scss +43 -0
  113. data/_sass/lib/@primer/css/support/variables/typography.scss +43 -0
  114. data/_sass/lib/@primer/css/utilities/README.md +24 -0
  115. data/_sass/lib/@primer/css/utilities/animations.scss +187 -0
  116. data/_sass/lib/@primer/css/utilities/borders.scss +187 -0
  117. data/_sass/lib/@primer/css/utilities/box-shadow.scss +25 -0
  118. data/_sass/lib/@primer/css/utilities/colors.scss +185 -0
  119. data/_sass/lib/@primer/css/utilities/details.scss +34 -0
  120. data/_sass/lib/@primer/css/utilities/flexbox.scss +124 -0
  121. data/_sass/lib/@primer/css/utilities/index.scss +14 -0
  122. data/_sass/lib/@primer/css/utilities/layout.scss +151 -0
  123. data/_sass/lib/@primer/css/utilities/margin.scss +68 -0
  124. data/_sass/lib/@primer/css/utilities/padding.scss +59 -0
  125. data/_sass/lib/@primer/css/utilities/typography.scss +325 -0
  126. data/_sass/lib/@primer/css/utilities/visibility-display.scss +82 -0
  127. data/_sass/lib/font-awesome/_icons.scss +2139 -0
  128. data/_sass/lib/font-awesome/_variables.scss +799 -0
  129. data/_sass/lib/material-design-lite/_color-definitions.scss +378 -0
  130. data/_sass/lib/material-design-lite/_functions.scss +19 -0
  131. data/_sass/lib/material-design-lite/_mixins.scss +301 -0
  132. data/_sass/lib/material-design-lite/_variables.scss +612 -0
  133. data/_sass/lib/rouge/github.scss +214 -0
  134. data/_sass/theme.scss +37 -0
  135. data/assets/404.liquid +9 -0
  136. data/assets/css/fonts/Roboto-Slab-Bold.woff +0 -0
  137. data/assets/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  138. data/assets/css/fonts/Roboto-Slab-Regular.woff +0 -0
  139. data/assets/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  140. data/assets/css/fonts/fontawesome-webfont.eot +0 -0
  141. data/assets/css/fonts/fontawesome-webfont.svg +2671 -0
  142. data/assets/css/fonts/fontawesome-webfont.ttf +0 -0
  143. data/assets/css/fonts/fontawesome-webfont.woff +0 -0
  144. data/assets/css/fonts/fontawesome-webfont.woff2 +0 -0
  145. data/assets/css/fonts/lato-bold-italic.woff +0 -0
  146. data/assets/css/fonts/lato-bold-italic.woff2 +0 -0
  147. data/assets/css/fonts/lato-bold.woff +0 -0
  148. data/assets/css/fonts/lato-bold.woff2 +0 -0
  149. data/assets/css/fonts/lato-normal-italic.woff +0 -0
  150. data/assets/css/fonts/lato-normal-italic.woff2 +0 -0
  151. data/assets/css/fonts/lato-normal.woff +0 -0
  152. data/assets/css/fonts/lato-normal.woff2 +0 -0
  153. data/assets/css/theme.min.css +1 -0
  154. data/assets/css/theme.scss +4 -0
  155. data/assets/data.liquid +6 -0
  156. data/assets/images/apple-touch-icon-300x300.jpg +0 -0
  157. data/assets/images/favicon-16x16.png +0 -0
  158. data/assets/images/favicon-32x32.png +0 -0
  159. data/assets/images/favicon-96x96.png +0 -0
  160. data/assets/images/favicon.liquid +13 -0
  161. data/assets/js/jquery.min.js +2 -0
  162. data/assets/js/mermaid.min.js +31 -0
  163. data/assets/js/theme.js +287 -0
  164. data/assets/js/theme.min.js +1 -0
  165. data/assets/robots.liquid +6 -0
  166. data/assets/search.liquid +12 -0
  167. data/assets/sitemap.liquid +6 -0
  168. data/assets/sw.caches.liquid +8 -0
  169. metadata +224 -0
@@ -0,0 +1,424 @@
1
+ // stylelint-disable
2
+ /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
3
+
4
+ /**
5
+ * 1. Change the default font family in all browsers (opinionated).
6
+ * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
7
+ */
8
+
9
+ html {
10
+ font-family: sans-serif; /* 1 */
11
+ -ms-text-size-adjust: 100%; /* 2 */
12
+ -webkit-text-size-adjust: 100%; /* 2 */
13
+ }
14
+
15
+ /**
16
+ * Remove the margin in all browsers (opinionated).
17
+ */
18
+
19
+ body {
20
+ margin: 0;
21
+ }
22
+
23
+ /* HTML5 display definitions
24
+ ========================================================================== */
25
+
26
+ /**
27
+ * Add the correct display in IE 9-.
28
+ * 1. Add the correct display in Edge, IE, and Firefox.
29
+ * 2. Add the correct display in IE.
30
+ */
31
+
32
+ article,
33
+ aside,
34
+ details, /* 1 */
35
+ figcaption,
36
+ figure,
37
+ footer,
38
+ header,
39
+ main, /* 2 */
40
+ menu,
41
+ nav,
42
+ section {
43
+ /* 1 */
44
+ display: block;
45
+ }
46
+
47
+ summary {
48
+ display: list-item;
49
+ }
50
+
51
+ /**
52
+ * Add the correct display in IE 9-.
53
+ */
54
+
55
+ audio,
56
+ canvas,
57
+ progress,
58
+ video {
59
+ display: inline-block;
60
+ }
61
+
62
+ /**
63
+ * Add the correct display in iOS 4-7.
64
+ */
65
+
66
+ audio:not([controls]) {
67
+ display: none;
68
+ height: 0;
69
+ }
70
+
71
+ /**
72
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
73
+ */
74
+
75
+ progress {
76
+ vertical-align: baseline;
77
+ }
78
+
79
+ /**
80
+ * Add the correct display in IE 10-.
81
+ * 1. Add the correct display in IE.
82
+ */
83
+
84
+ template, /* 1 */
85
+ [hidden] {
86
+ display: none !important;
87
+ }
88
+
89
+ /* Links
90
+ ========================================================================== */
91
+
92
+ /**
93
+ * Remove the gray background on active links in IE 10.
94
+ */
95
+
96
+ a {
97
+ background-color: transparent; /* 1 */
98
+ }
99
+
100
+ /**
101
+ * Remove the outline on focused links when they are also active or hovered
102
+ * in all browsers (opinionated).
103
+ */
104
+
105
+ a:active,
106
+ a:hover {
107
+ outline-width: 0;
108
+ }
109
+
110
+ /* Text-level semantics
111
+ ========================================================================== */
112
+
113
+ /**
114
+ * 1. Remove the bottom border in Firefox 39-.
115
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
116
+ */
117
+
118
+ abbr[title] {
119
+ border-bottom: none; /* 1 */
120
+ text-decoration: underline; /* 2 */
121
+ text-decoration: underline dotted; /* 2 */
122
+ }
123
+
124
+ /**
125
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
126
+ */
127
+
128
+ b,
129
+ strong {
130
+ font-weight: inherit;
131
+ }
132
+
133
+ /**
134
+ * Add the correct font weight in Chrome, Edge, and Safari.
135
+ */
136
+
137
+ b,
138
+ strong {
139
+ font-weight: bolder;
140
+ }
141
+
142
+ /**
143
+ * Add the correct font style in Android 4.3-.
144
+ */
145
+
146
+ dfn {
147
+ font-style: italic;
148
+ }
149
+
150
+ /**
151
+ * Correct the font size and margin on `h1` elements within `section` and
152
+ * `article` contexts in Chrome, Firefox, and Safari.
153
+ */
154
+
155
+ h1 {
156
+ font-size: 2em;
157
+ margin: 0.67em 0;
158
+ }
159
+
160
+ /**
161
+ * Add the correct background and color in IE 9-.
162
+ */
163
+
164
+ mark {
165
+ background-color: #ff0;
166
+ color: $text-black;
167
+ }
168
+
169
+ /**
170
+ * Add the correct font size in all browsers.
171
+ */
172
+
173
+ small {
174
+ font-size: 80%;
175
+ }
176
+
177
+ /**
178
+ * Prevent `sub` and `sup` elements from affecting the line height in
179
+ * all browsers.
180
+ */
181
+
182
+ sub,
183
+ sup {
184
+ font-size: 75%;
185
+ line-height: 0;
186
+ position: relative;
187
+ vertical-align: baseline;
188
+ }
189
+
190
+ sub {
191
+ bottom: -0.25em;
192
+ }
193
+
194
+ sup {
195
+ top: -0.5em;
196
+ }
197
+
198
+ /* Embedded content
199
+ ========================================================================== */
200
+
201
+ /**
202
+ * Remove the border on images inside links in IE 10-.
203
+ */
204
+
205
+ img {
206
+ border-style: none;
207
+ }
208
+
209
+ /**
210
+ * Hide the overflow in IE.
211
+ */
212
+
213
+ svg:not(:root) {
214
+ overflow: hidden;
215
+ }
216
+
217
+ /* Grouping content
218
+ ========================================================================== */
219
+
220
+ /**
221
+ * 1. Correct the inheritance and scaling of font size in all browsers.
222
+ * 2. Correct the odd `em` font sizing in all browsers.
223
+ */
224
+
225
+ code,
226
+ kbd,
227
+ pre,
228
+ samp {
229
+ font-family: monospace, monospace; /* 1 */
230
+ font-size: 1em; /* 2 */
231
+ }
232
+
233
+ /**
234
+ * Add the correct margin in IE 8.
235
+ */
236
+
237
+ figure {
238
+ margin: 1em $spacer-6;
239
+ }
240
+
241
+ /**
242
+ * 1. Add the correct box sizing in Firefox.
243
+ * 2. Show the overflow in Edge and IE.
244
+ */
245
+
246
+ hr {
247
+ box-sizing: content-box; /* 1 */
248
+ height: 0; /* 1 */
249
+ overflow: visible; /* 2 */
250
+ }
251
+
252
+ /* Forms
253
+ ========================================================================== */
254
+
255
+ /**
256
+ * 1. Change font properties to `inherit` in all browsers (opinionated).
257
+ * 2. Remove the margin in Firefox and Safari.
258
+ */
259
+
260
+ button,
261
+ input,
262
+ select,
263
+ textarea {
264
+ font: inherit; /* 1 */
265
+ margin: 0; /* 2 */
266
+ }
267
+
268
+ /**
269
+ * Restore the font weight unset by the previous rule.
270
+ */
271
+
272
+ optgroup {
273
+ font-weight: $font-weight-bold;
274
+ }
275
+
276
+ /**
277
+ * Show the overflow in IE.
278
+ * 1. Show the overflow in Edge.
279
+ */
280
+
281
+ button,
282
+ input {
283
+ /* 1 */
284
+ overflow: visible;
285
+ }
286
+
287
+ /**
288
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
289
+ * 1. Remove the inheritance of text transform in Firefox.
290
+ */
291
+
292
+ button,
293
+ select {
294
+ /* 1 */
295
+ text-transform: none;
296
+ }
297
+
298
+ /**
299
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
300
+ * controls in Android 4.
301
+ * 2. Correct the inability to style clickable types in iOS and Safari.
302
+ */
303
+
304
+ button,
305
+ html [type="button"], /* 1 */
306
+ [type="reset"],
307
+ [type="submit"] {
308
+ -webkit-appearance: button; /* 2 */
309
+ }
310
+
311
+ /**
312
+ * Remove the inner border and padding in Firefox.
313
+ */
314
+
315
+ button::-moz-focus-inner,
316
+ [type="button"]::-moz-focus-inner,
317
+ [type="reset"]::-moz-focus-inner,
318
+ [type="submit"]::-moz-focus-inner {
319
+ border-style: none;
320
+ padding: 0;
321
+ }
322
+
323
+ /**
324
+ * Restore the focus styles unset by the previous rule.
325
+ */
326
+
327
+ button:-moz-focusring,
328
+ [type="button"]:-moz-focusring,
329
+ [type="reset"]:-moz-focusring,
330
+ [type="submit"]:-moz-focusring {
331
+ outline: 1px dotted ButtonText;
332
+ }
333
+
334
+ /**
335
+ * Change the border, margin, and padding in all browsers (opinionated).
336
+ */
337
+
338
+ fieldset {
339
+ border: $border-width $border-style #c0c0c0;
340
+ margin: 0 2px;
341
+ padding: 0.35em 0.625em $em-spacer-6;
342
+ }
343
+
344
+ /**
345
+ * 1. Correct the text wrapping in Edge and IE.
346
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
347
+ * 3. Remove the padding so developers are not caught out when they zero out
348
+ * `fieldset` elements in all browsers.
349
+ */
350
+
351
+ legend {
352
+ box-sizing: border-box; /* 1 */
353
+ color: inherit; /* 2 */
354
+ display: table; /* 1 */
355
+ max-width: 100%; /* 1 */
356
+ padding: 0; /* 3 */
357
+ white-space: normal; /* 1 */
358
+ }
359
+
360
+ /**
361
+ * Remove the default vertical scrollbar in IE.
362
+ */
363
+
364
+ textarea {
365
+ overflow: auto;
366
+ }
367
+
368
+ /**
369
+ * 1. Add the correct box sizing in IE 10-.
370
+ * 2. Remove the padding in IE 10-.
371
+ */
372
+
373
+ [type="checkbox"],
374
+ [type="radio"] {
375
+ box-sizing: border-box; /* 1 */
376
+ padding: 0; /* 2 */
377
+ }
378
+
379
+ /**
380
+ * Correct the cursor style of increment and decrement buttons in Chrome.
381
+ */
382
+
383
+ [type="number"]::-webkit-inner-spin-button,
384
+ [type="number"]::-webkit-outer-spin-button {
385
+ height: auto;
386
+ }
387
+
388
+ /**
389
+ * 1. Correct the odd appearance in Chrome and Safari.
390
+ * 2. Correct the outline style in Safari.
391
+ */
392
+
393
+ [type="search"] {
394
+ -webkit-appearance: textfield; /* 1 */
395
+ outline-offset: -2px; /* 2 */
396
+ }
397
+
398
+ /**
399
+ * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
400
+ */
401
+
402
+ [type="search"]::-webkit-search-cancel-button,
403
+ [type="search"]::-webkit-search-decoration {
404
+ -webkit-appearance: none;
405
+ }
406
+
407
+ /**
408
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
409
+ */
410
+
411
+ ::-webkit-input-placeholder {
412
+ color: inherit;
413
+ opacity: 0.54;
414
+ }
415
+
416
+ /**
417
+ * 1. Correct the inability to style clickable types in iOS and Safari.
418
+ * 2. Change font properties to `inherit` in Safari.
419
+ */
420
+
421
+ ::-webkit-file-upload-button {
422
+ -webkit-appearance: button; /* 1 */
423
+ font: inherit; /* 2 */
424
+ }
@@ -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,24 @@
1
+ ---
2
+ bundle: "breadcrumb"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `breadcrumb` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/breadcrumb/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/breadcrumb.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -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,24 @@
1
+ ---
2
+ bundle: "buttons"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `buttons` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/buttons/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/buttons.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) © [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#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
+ }