github-docs 0.0.3 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +17 -3
  3. data/assets/css/cherry/_base-normalize.scss +274 -0
  4. data/assets/css/cherry/_buttons.scss +305 -0
  5. data/assets/css/cherry/_columns.scss +220 -0
  6. data/assets/css/cherry/_elements.scss +339 -0
  7. data/assets/css/cherry/_forms-vue-select.scss +250 -0
  8. data/assets/css/cherry/_forms.scss +567 -0
  9. data/assets/css/cherry/_functions.scss +201 -0
  10. data/assets/css/cherry/_index.scss +14 -0
  11. data/assets/css/cherry/_layout.scss +207 -0
  12. data/assets/css/cherry/_modal.scss +82 -0
  13. data/assets/css/cherry/_spacing.scss +56 -0
  14. data/assets/css/cherry/_tooltips.scss +113 -0
  15. data/assets/css/cherry/_typography.scss +90 -0
  16. data/assets/css/cherry/_utilities.scss +552 -0
  17. data/assets/css/cherry/_variables-computed.scss +79 -0
  18. data/assets/css/cherry/_variables.scss +48 -0
  19. data/assets/css/index.scss +9 -7
  20. data/{_sass/github-docs.scss → assets/css/main.scss} +41 -12
  21. data/assets/css/primer-markdown/blob-csv.scss +25 -0
  22. data/assets/css/primer-markdown/code.scss +49 -0
  23. data/{_sass → assets/css}/primer-markdown/headings.scss +5 -19
  24. data/{_sass → assets/css}/primer-markdown/images.scss +1 -19
  25. data/{_sass/primer-markdown/markdown-body.scss → assets/css/primer-markdown/index.scss} +66 -55
  26. data/assets/css/primer-markdown/lists.scss +42 -0
  27. data/{_sass → assets/css}/primer-markdown/tables.scss +4 -9
  28. data/{_sass → assets/css}/rouge.scss +16 -8
  29. data/readme.md +24 -25
  30. metadata +43 -65
  31. data/_sass/primer-base/base.scss +0 -84
  32. data/_sass/primer-base/index.scss +0 -3
  33. data/_sass/primer-base/normalize.scss +0 -421
  34. data/_sass/primer-base/typography-base.scss +0 -86
  35. data/_sass/primer-layout/columns.scss +0 -54
  36. data/_sass/primer-layout/container.scss +0 -30
  37. data/_sass/primer-layout/grid-offset.scss +0 -19
  38. data/_sass/primer-layout/grid.scss +0 -64
  39. data/_sass/primer-layout/index.scss +0 -4
  40. data/_sass/primer-markdown/blob-csv.scss +0 -27
  41. data/_sass/primer-markdown/code.scss +0 -63
  42. data/_sass/primer-markdown/index.scss +0 -7
  43. data/_sass/primer-markdown/lists.scss +0 -76
  44. data/_sass/primer-support/index.scss +0 -11
  45. data/_sass/primer-support/mixins/buttons.scss +0 -160
  46. data/_sass/primer-support/mixins/layout.scss +0 -58
  47. data/_sass/primer-support/mixins/misc.scss +0 -29
  48. data/_sass/primer-support/mixins/typography.scss +0 -84
  49. data/_sass/primer-support/variables/color-system.scss +0 -114
  50. data/_sass/primer-support/variables/colors.scss +0 -67
  51. data/_sass/primer-support/variables/layout.scss +0 -78
  52. data/_sass/primer-support/variables/misc.scss +0 -40
  53. data/_sass/primer-support/variables/typography.scss +0 -43
  54. data/_sass/primer-utilities/animations.scss +0 -184
  55. data/_sass/primer-utilities/borders.scss +0 -100
  56. data/_sass/primer-utilities/box-shadow.scss +0 -26
  57. data/_sass/primer-utilities/colors.scss +0 -106
  58. data/_sass/primer-utilities/details.scss +0 -18
  59. data/_sass/primer-utilities/flexbox.scss +0 -52
  60. data/_sass/primer-utilities/index.scss +0 -13
  61. data/_sass/primer-utilities/layout.scss +0 -85
  62. data/_sass/primer-utilities/margin.scss +0 -53
  63. data/_sass/primer-utilities/padding.scss +0 -54
  64. data/_sass/primer-utilities/typography.scss +0 -215
  65. data/_sass/primer-utilities/visibility-display.scss +0 -87
@@ -1,86 +0,0 @@
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 { @include h1; }
15
- h2 { @include h2; }
16
- h3 { @include h3; }
17
- h4 { @include h4; }
18
- h5 { @include h5; }
19
- h6 { @include h6; }
20
-
21
- // Body text
22
- // --------------------------------------------------
23
-
24
- p {
25
- margin-top: 0;
26
- margin-bottom: 10px;
27
- }
28
-
29
- small {
30
- font-size: 90%;
31
- }
32
-
33
- blockquote {
34
- margin: 0;
35
- }
36
-
37
- // Lists
38
- // --------------------------------------------------
39
-
40
- ul,
41
- ol {
42
- padding-left: 0;
43
- margin-top: 0;
44
- margin-bottom: 0;
45
- }
46
-
47
- ol ol,
48
- ul ol {
49
- list-style-type: lower-roman;
50
- }
51
-
52
- ul ul ol,
53
- ul ol ol,
54
- ol ul ol,
55
- ol ol ol {
56
- list-style-type: lower-alpha;
57
- }
58
-
59
- dd {
60
- margin-left: 0;
61
- }
62
-
63
- // Code
64
- // --------------------------------------------------
65
-
66
- tt,
67
- code {
68
- font-family: $mono-font;
69
- font-size: $font-size-small;
70
- }
71
-
72
- pre {
73
- margin-top: 0;
74
- margin-bottom: 0;
75
- font-family: $mono-font;
76
- font-size: $font-size-small;
77
- }
78
-
79
- // Octicons
80
- // --------------------------------------------------
81
-
82
- // Move this over here as a temporary override to the octicons source repo
83
- // instead of updating that upstream.
84
- .octicon {
85
- vertical-align: text-bottom;
86
- }
@@ -1,54 +0,0 @@
1
- // Grid system
2
- //
3
- // Create rows with `.columns` to clear the floated columns and outdent the
4
- // padding on `.column`s with negative margin for alignment.
5
-
6
- .columns {
7
- margin-right: -$grid-gutter;
8
- margin-left: -$grid-gutter;
9
- @include clearfix;
10
- }
11
-
12
- // Base class for every column (requires a column width from below)
13
- .column {
14
- float: left;
15
- padding-right: $grid-gutter;
16
- padding-left: $grid-gutter;
17
- }
18
-
19
- // Column widths
20
- .one-third {
21
- width: 33.333333%;
22
- }
23
-
24
- .two-thirds {
25
- width: 66.666667%;
26
- }
27
-
28
- .one-fourth {
29
- width: 25%;
30
- }
31
-
32
- .one-half {
33
- width: 50%;
34
- }
35
-
36
- .three-fourths {
37
- width: 75%;
38
- }
39
-
40
- .one-fifth {
41
- width: 20%;
42
- }
43
-
44
- .four-fifths {
45
- width: 80%;
46
- }
47
-
48
- // Centers content horizontally. Can be used inside or outside the grid.
49
- .centered {
50
- display: block;
51
- float: none;
52
- margin-right: auto;
53
- margin-left: auto;
54
- }
@@ -1,30 +0,0 @@
1
- // Fixed-width, centered column for site content.
2
- // This will be deprecated and replaced with container-lg in future
3
- .container {
4
- width: $container-width;
5
- margin-right: auto;
6
- margin-left: auto;
7
- @include clearfix;
8
- }
9
-
10
- // Handy container styles that match our breakpoints
11
- // 768px
12
- .container-md {
13
- max-width: $container-md;
14
- margin-right: auto;
15
- margin-left: auto;
16
- }
17
-
18
- // 1004px - this matches the current fixed width: 980px + padding: px-3
19
- .container-lg {
20
- max-width: $container-lg;
21
- margin-right: auto;
22
- margin-left: auto;
23
- }
24
-
25
- // 1280px
26
- .container-xl {
27
- max-width: $container-xl;
28
- margin-right: auto;
29
- margin-left: auto;
30
- }
@@ -1,19 +0,0 @@
1
- // Optional offset options to work with grid.scss
2
-
3
- // Offset Columns
4
-
5
- @each $breakpoint, $variant in $responsive-variants {
6
- @include breakpoint($breakpoint) {
7
- .offset#{$variant}-1 { margin-left: (1 / 12 * 100%) !important; }
8
- .offset#{$variant}-2 { margin-left: (2 / 12 * 100%) !important; }
9
- .offset#{$variant}-3 { margin-left: (3 / 12 * 100%) !important; }
10
- .offset#{$variant}-4 { margin-left: (4 / 12 * 100%) !important; }
11
- .offset#{$variant}-5 { margin-left: (5 / 12 * 100%) !important; }
12
- .offset#{$variant}-6 { margin-left: (6 / 12 * 100%) !important; }
13
- .offset#{$variant}-7 { margin-left: (7 / 12 * 100%) !important; }
14
- .offset#{$variant}-8 { margin-left: (8 / 12 * 100%) !important; }
15
- .offset#{$variant}-9 { margin-left: (9 / 12 * 100%) !important; }
16
- .offset#{$variant}-10 { margin-left: (10 / 12 * 100%) !important; }
17
- .offset#{$variant}-11 { margin-left: (11 / 12 * 100%) !important; }
18
- }
19
- }
@@ -1,64 +0,0 @@
1
- // GRID
2
-
3
- // Columns
4
- .col-1 { width: (1 / 12 * 100%); }
5
- .col-2 { width: (2 / 12 * 100%); }
6
- .col-3 { width: (3 / 12 * 100%); }
7
- .col-4 { width: (4 / 12 * 100%); }
8
- .col-5 { width: (5 / 12 * 100%); }
9
- .col-6 { width: (6 / 12 * 100%); }
10
- .col-7 { width: (7 / 12 * 100%); }
11
- .col-8 { width: (8 / 12 * 100%); }
12
- .col-9 { width: (9 / 12 * 100%); }
13
- .col-10 { width: (10 / 12 * 100%); }
14
- .col-11 { width: (11 / 12 * 100%); }
15
- .col-12 { width: 100%; }
16
-
17
- @each $breakpoint in map-keys($breakpoints) {
18
- @include breakpoint($breakpoint) {
19
- .col-#{$breakpoint}-1 { width: ( 1 / 12 * 100%); }
20
- .col-#{$breakpoint}-2 { width: ( 2 / 12 * 100%); }
21
- .col-#{$breakpoint}-3 { width: ( 3 / 12 * 100%); }
22
- .col-#{$breakpoint}-4 { width: ( 4 / 12 * 100%); }
23
- .col-#{$breakpoint}-5 { width: ( 5 / 12 * 100%); }
24
- .col-#{$breakpoint}-6 { width: ( 6 / 12 * 100%); }
25
- .col-#{$breakpoint}-7 { width: ( 7 / 12 * 100%); }
26
- .col-#{$breakpoint}-8 { width: ( 8 / 12 * 100%); }
27
- .col-#{$breakpoint}-9 { width: ( 9 / 12 * 100%); }
28
- .col-#{$breakpoint}-10 { width: ( 10 / 12 * 100%); }
29
- .col-#{$breakpoint}-11 { width: ( 11 / 12 * 100%); }
30
- .col-#{$breakpoint}-12 { width: 100%; }
31
- }
32
- }
33
-
34
- // Gutters
35
- // Apply padding and a negative margin to the outside of the container
36
- @mixin gutters ($gutter-width: $spacer-3) {
37
- margin-right: -$gutter-width;
38
- margin-left: -$gutter-width;
39
-
40
- > [class*="col-"] {
41
- padding-right: $gutter-width !important;
42
- padding-left: $gutter-width !important;
43
- }
44
- }
45
-
46
- .gutter {
47
- @include gutters($spacer-3);
48
- }
49
-
50
- .gutter-condensed {
51
- @include gutters($spacer-2);
52
- }
53
-
54
- .gutter-spacious {
55
- @include gutters($spacer-4);
56
- }
57
-
58
- @each $breakpoint in map-keys($breakpoints) {
59
- @include breakpoint($breakpoint) {
60
- .gutter-#{$breakpoint} { @include gutters($spacer-3); }
61
- .gutter-#{$breakpoint}-condensed { @include gutters($spacer-2); }
62
- .gutter-#{$breakpoint}-spacious { @include gutters($spacer-4); }
63
- }
64
- }
@@ -1,4 +0,0 @@
1
- @import "./container.scss";
2
- @import "./columns.scss";
3
- @import "./grid.scss";
4
- @import "./grid-offset.scss";
@@ -1,27 +0,0 @@
1
- // stylelint-disable selector-max-type
2
- .markdown-body .csv-data {
3
- td,
4
- th {
5
- padding: 5px;
6
- overflow: hidden;
7
- font-size: $font-size-small;
8
- line-height: $lh-condensed-ultra;
9
- text-align: left;
10
- white-space: nowrap;
11
- }
12
-
13
- .blob-num {
14
- padding: 10px $spacer-2 9px;
15
- text-align: right;
16
- background: $bg-white;
17
- border: 0;
18
- }
19
-
20
- tr { border-top: 0; }
21
-
22
- th {
23
- font-weight: $font-weight-bold;
24
- background: $gray-100;
25
- border-top: 0;
26
- }
27
- }
@@ -1,63 +0,0 @@
1
- // stylelint-disable selector-max-type
2
- .markdown-body {
3
- // Inline code snippets
4
- code,
5
- tt {
6
- padding: 0.2em 0.4em;
7
- margin: 0;
8
- font-size: 85%;
9
- background-color: rgba($black, 0.05);
10
- border-radius: $border-radius;
11
-
12
- br { display: none; }
13
- }
14
-
15
- del code { text-decoration: inherit; }
16
-
17
- pre {
18
- word-wrap: normal;
19
-
20
- // Code tags within code blocks (<pre>s)
21
- > code {
22
- padding: 0;
23
- margin: 0;
24
- font-size: 100%;
25
- word-break: normal;
26
- white-space: pre;
27
- background: transparent;
28
- border: 0;
29
- }
30
- }
31
-
32
- .highlight {
33
- margin-bottom: $spacer-3;
34
-
35
- pre {
36
- margin-bottom: 0;
37
- word-break: normal;
38
- }
39
- }
40
-
41
- .highlight pre,
42
- pre {
43
- padding: $spacer-3;
44
- overflow: auto;
45
- font-size: 85%;
46
- line-height: 1.45;
47
- background-color: $gray-100;
48
- border-radius: $border-radius;
49
- }
50
-
51
- pre code,
52
- pre tt {
53
- display: inline;
54
- max-width: auto;
55
- padding: 0;
56
- margin: 0;
57
- overflow: visible;
58
- line-height: inherit;
59
- word-wrap: normal;
60
- background-color: transparent;
61
- border: 0;
62
- }
63
- }
@@ -1,7 +0,0 @@
1
- @import "./markdown-body.scss";
2
- @import "./headings.scss";
3
- @import "./lists.scss";
4
- @import "./tables.scss";
5
- @import "./images.scss";
6
- @import "./code.scss";
7
- @import "./blob-csv.scss";
@@ -1,76 +0,0 @@
1
- // Base styles
2
- // stylelint-disable selector-no-qualifying-type
3
- // stylelint-disable selector-max-type
4
- .markdown-body {
5
-
6
- // Lists, Blockquotes & Such
7
- ul,
8
- ol {
9
- padding-left: 2em;
10
-
11
- &.no-list {
12
- padding: 0;
13
- list-style-type: none;
14
- }
15
- }
16
-
17
- // Did someone complain about list spacing? Encourage them
18
- // to create the spacing with their markdown formatting.
19
- // List behavior should be controled by the markup, not the css.
20
- //
21
- // For lists with padding between items, use blank
22
- // lines between items. This will generate paragraphs with
23
- // padding to space things out.
24
- //
25
- // - item
26
- //
27
- // - item
28
- //
29
- // - item
30
- //
31
- // For list without padding, don't use blank lines.
32
- //
33
- // - item
34
- // - item
35
- // - item
36
- //
37
- // Modifying the css to emulate these behaviors merely brakes
38
- // one case in the process of solving another. Don't change
39
- // this unless it's really really a bug.
40
- ul ul,
41
- ul ol,
42
- ol ol,
43
- ol ul {
44
- margin-top: 0;
45
- margin-bottom: 0;
46
- }
47
-
48
- li {
49
- word-wrap: break-all;
50
- }
51
-
52
- li > p {
53
- margin-top: $spacer-3;
54
- }
55
-
56
- li + li {
57
- margin-top: $em-spacer-3;
58
- }
59
-
60
- dl {
61
- padding: 0;
62
-
63
- dt {
64
- padding: 0;
65
- margin-top: $spacer-3;
66
- font-size: 1em;
67
- font-style: italic;
68
- font-weight: $font-weight-bold;
69
- }
70
-
71
- dd {
72
- padding: 0 $spacer-3;
73
- margin-bottom: $spacer-3;
74
- }
75
- }
76
- }