github-docs 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +11 -4
  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} +18 -15
  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 +2 -2
  30. metadata +27 -43
  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,18 +0,0 @@
1
- // stylelint-disable selector-max-type
2
- .details-overlay[open] > summary::before {
3
- position: fixed;
4
- top: 0;
5
- right: 0;
6
- bottom: 0;
7
- left: 0;
8
- z-index: 80;
9
- display: block;
10
- cursor: default;
11
- content: " ";
12
- background: transparent;
13
- }
14
-
15
- .details-overlay-dark[open] > summary::before {
16
- z-index: 99;
17
- background: $black-fade-50;
18
- }
@@ -1,52 +0,0 @@
1
- // Flex utility classes
2
- // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before
3
- // stylelint-disable comment-empty-line-before
4
-
5
- @each $breakpoint, $variant in $responsive-variants {
6
- @include breakpoint($breakpoint) {
7
- // Flexbox classes
8
- // Container
9
- .flex#{$variant}-row { flex-direction: row !important; }
10
- .flex#{$variant}-row-reverse { flex-direction: row-reverse !important; }
11
- .flex#{$variant}-column { flex-direction: column !important; }
12
-
13
- .flex#{$variant}-wrap { flex-wrap: wrap !important; }
14
- .flex#{$variant}-nowrap { flex-wrap: nowrap !important; }
15
-
16
- .flex#{$variant}-justify-start { justify-content: flex-start !important; }
17
- .flex#{$variant}-justify-end { justify-content: flex-end !important; }
18
- .flex#{$variant}-justify-center { justify-content: center !important; }
19
- .flex#{$variant}-justify-between { justify-content: space-between !important; }
20
- .flex#{$variant}-justify-around { justify-content: space-around !important; }
21
-
22
- .flex#{$variant}-items-start { align-items: flex-start !important; }
23
- .flex#{$variant}-items-end { align-items: flex-end !important; }
24
- .flex#{$variant}-items-center { align-items: center !important; }
25
- .flex#{$variant}-items-baseline { align-items: baseline !important; }
26
- .flex#{$variant}-items-stretch { align-items: stretch !important; }
27
-
28
- .flex#{$variant}-content-start { align-content: flex-start !important; }
29
- .flex#{$variant}-content-end { align-content: flex-end !important; }
30
- .flex#{$variant}-content-center { align-content: center !important; }
31
- .flex#{$variant}-content-between { align-content: space-between !important; }
32
- .flex#{$variant}-content-around { align-content: space-around !important; }
33
- .flex#{$variant}-content-stretch { align-content: stretch !important; }
34
-
35
- // Item
36
- .flex#{$variant}-auto { flex: 1 1 auto !important; }
37
- .flex#{$variant}-shrink-0 { flex-shrink: 0 !important; }
38
-
39
- .flex#{$variant}-self-auto { align-self: auto !important; }
40
- .flex#{$variant}-self-start { align-self: flex-start !important; }
41
- .flex#{$variant}-self-end { align-self: flex-end !important; }
42
- .flex#{$variant}-self-center { align-self: center !important; }
43
- .flex#{$variant}-self-baseline { align-self: baseline !important; }
44
- .flex#{$variant}-self-stretch { align-self: stretch !important; }
45
-
46
- // Shorthand for equal width and height cols
47
- .flex#{$variant}-item-equal {
48
- flex-grow: 1;
49
- flex-basis: 0;
50
- }
51
- }
52
- }
@@ -1,13 +0,0 @@
1
- // utilities
2
- @import "./animations.scss";
3
- @import "./borders.scss";
4
- @import "./box-shadow.scss";
5
- @import "./colors.scss";
6
- @import "./details.scss";
7
- @import "./flexbox.scss";
8
- @import "./layout.scss";
9
- @import "./margin.scss";
10
- @import "./padding.scss";
11
- @import "./typography.scss";
12
- // Visibility and display should always come last in the imports so that they override other utilities with !important
13
- @import "./visibility-display.scss";
@@ -1,85 +0,0 @@
1
- // Layout
2
- // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, primer/selector-no-utility
3
- // stylelint-disable comment-empty-line-before
4
-
5
- /* Set position to static */
6
- .position-static { position: static !important; }
7
- /* Set position to relative */
8
- .position-relative { position: relative !important; }
9
- /* Set position to absolute */
10
- .position-absolute { position: absolute !important; }
11
- /* Set position to fixed */
12
- .position-fixed { position: fixed !important; }
13
-
14
- /* Set top 0 */
15
- .top-0 { top: 0 !important; }
16
- /* Set right 0 */
17
- .right-0 { right: 0 !important; }
18
- /* Set bottom 0 */
19
- .bottom-0 { bottom: 0 !important; }
20
- /* Set left 0 */
21
- .left-0 { left: 0 !important; }
22
-
23
- /* Vertical align middle */
24
- .v-align-middle { vertical-align: middle !important; }
25
- /* Vertical align top */
26
- .v-align-top { vertical-align: top !important; }
27
- /* Vertical align bottom */
28
- .v-align-bottom { vertical-align: bottom !important; }
29
- /* Vertical align to the top of the text */
30
- .v-align-text-top { vertical-align: text-top !important; }
31
- /* Vertical align to the bottom of the text */
32
- .v-align-text-bottom { vertical-align: text-bottom !important; }
33
- /* Vertical align to the parent's baseline */
34
- .v-align-baseline { vertical-align: baseline !important; }
35
-
36
- // Overflow utilities
37
- // overflow-hidden can also be used to create a new
38
- // block formatting context or clear floats.
39
- /* Set the overflow hidden */
40
- .overflow-hidden { overflow: hidden !important; }
41
- /* Set the overflow scroll */
42
- .overflow-scroll { overflow: scroll !important; }
43
- /* Set the overflow auto */
44
- .overflow-auto { overflow: auto !important; }
45
-
46
- // Clear floats
47
- /* Clear floats around the element */
48
- .clearfix {
49
- @include clearfix;
50
- }
51
-
52
- // Floats
53
- @each $breakpoint, $variant in $responsive-variants {
54
- @include breakpoint($breakpoint) {
55
- /* Float to the left */
56
- .float#{$variant}-left { float: left !important; }
57
- /* Float to the right */
58
- .float#{$variant}-right { float: right !important; }
59
- /* No float */
60
- .float#{$variant}-none { float: none !important; }
61
- }
62
- }
63
-
64
- // Width and height utilities, helpful in combination
65
- // with display-table utilities and images
66
- /* Max width 100% */
67
- .width-fit { max-width: 100% !important; }
68
- /* Set the width to 100% */
69
- .width-full { width: 100% !important; }
70
- /* Max height 100% */
71
- .height-fit { max-height: 100% !important; }
72
- /* Set the height to 100% */
73
- .height-full { height: 100% !important; }
74
-
75
- /* Remove min-width from element */
76
- .min-width-0 { min-width: 0 !important; }
77
-
78
- @each $breakpoint, $variant in $responsive-variants {
79
- @include breakpoint($breakpoint) {
80
- /* Set the direction to rtl */
81
- .direction#{$variant}-rtl { direction: rtl !important; }
82
- /* Set the direction to ltr */
83
- .direction#{$variant}-ltr { direction: ltr !important; }
84
- }
85
- }
@@ -1,53 +0,0 @@
1
- // Margin spacer utilities
2
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, primer/selector-no-utility, comment-empty-line-before
3
-
4
- // Loop through the breakpoint values
5
- @each $breakpoint, $variant in $responsive-variants {
6
- @include breakpoint($breakpoint) {
7
- // Loop through the spacer values
8
- @for $i from 1 through length($spacers) {
9
- $size: nth($spacers, $i); // sm, md, lg, xl
10
- $scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
11
-
12
- /* Set a $size margin to all sides at $breakpoint */
13
- .m#{$variant}-#{$scale} { margin: $size !important; }
14
- /* Set a $size margin on the top at $breakpoint */
15
- .mt#{$variant}-#{$scale} { margin-top: $size !important; }
16
- /* Set a $size margin on the right at $breakpoint */
17
- .mr#{$variant}-#{$scale} { margin-right: $size !important; }
18
- /* Set a $size margin on the bottom at $breakpoint */
19
- .mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
20
- /* Set a $size margin on the left at $breakpoint */
21
- .ml#{$variant}-#{$scale} { margin-left: $size !important; }
22
-
23
- @if ($size != 0) {
24
- /* Set a negative $size margin on top at $breakpoint */
25
- .mt#{$variant}-n#{$scale} { margin-top : -$size !important; }
26
- /* Set a negative $size margin on the right at $breakpoint */
27
- .mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
28
- /* Set a negative $size margin on the bottom at $breakpoint */
29
- .mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; }
30
- /* Set a negative $size margin on the left at $breakpoint */
31
- .ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
32
- }
33
-
34
- /* Set a $size margin on the left & right at $breakpoint */
35
- .mx#{$variant}-#{$scale} {
36
- margin-right: $size !important;
37
- margin-left: $size !important;
38
- }
39
-
40
- /* Set a $size margin on the top & bottom at $breakpoint */
41
- .my#{$variant}-#{$scale} {
42
- margin-top: $size !important;
43
- margin-bottom: $size !important;
44
- }
45
- }
46
-
47
- /* responsive horizontal auto margins */
48
- .mx#{$variant}-auto {
49
- margin-right: auto !important;
50
- margin-left: auto !important;
51
- }
52
- }
53
- }
@@ -1,54 +0,0 @@
1
- // Padding spacer utilities
2
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before
3
- // stylelint-disable comment-empty-line-before
4
-
5
- // Responsive padding spacer utilities
6
- @each $breakpoint, $variant in $responsive-variants {
7
- @include breakpoint($breakpoint) {
8
- // Loop through the spacer values
9
- @for $i from 1 through length($spacers) {
10
- $size: nth($spacers, $i); // xs, sm, md, lg, xl
11
- $scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
12
-
13
- /* Set a $size padding to all sides at $breakpoint */
14
- .p#{$variant}-#{$scale} { padding: $size !important; }
15
- /* Set a $size padding to the top at $breakpoint */
16
- .pt#{$variant}-#{$scale} { padding-top: $size !important; }
17
- /* Set a $size padding to the right at $breakpoint */
18
- .pr#{$variant}-#{$scale} { padding-right: $size !important; }
19
- /* Set a $size padding to the bottom at $breakpoint */
20
- .pb#{$variant}-#{$scale} { padding-bottom: $size !important; }
21
- /* Set a $size padding to the left at $breakpoint */
22
- .pl#{$variant}-#{$scale} { padding-left: $size !important; }
23
-
24
- /* Set a $size padding to the left & right at $breakpoint */
25
- .px#{$variant}-#{$scale} {
26
- padding-right: $size !important;
27
- padding-left: $size !important;
28
- }
29
-
30
- /* Set a $size padding to the top & bottom at $breakpoint */
31
- .py#{$variant}-#{$scale} {
32
- padding-top: $size !important;
33
- padding-bottom: $size !important;
34
- }
35
- }
36
- }
37
- }
38
-
39
- // responsive padding for containers
40
- // stylelint-disable-next-line primer/selector-no-utility
41
- .p-responsive {
42
- padding-right: $spacer-3 !important;
43
- padding-left: $spacer-3 !important;
44
-
45
- @include breakpoint(sm) {
46
- padding-right: $spacer-6 !important;
47
- padding-left: $spacer-6 !important;
48
- }
49
-
50
- @include breakpoint(lg) {
51
- padding-right: $spacer-3 !important;
52
- padding-left: $spacer-3 !important;
53
- }
54
- }
@@ -1,215 +0,0 @@
1
- // stylelint-disable block-closing-brace-space-before, primer/selector-no-utility, selector-list-comma-newline-after
2
- // stylelint-disable comment-empty-line-before
3
- // Type scale variables found in primer-support/lib/variables.scss
4
- // $h00-size-mobile: 40px;
5
- // $h0-size-mobile: 32px;
6
- // $h1-size-mobile: 26px;
7
- // $h2-size-mobile: 22px;
8
- // $h3-size-mobile: 18px;
9
- // $h00-size: 48px;
10
- // $h0-size: 40px;
11
- // $h1-size: 32px;
12
- // $h2-size: 24px;
13
- // $h3-size: 20px;
14
- // $h4-size: 16px;
15
- // $h5-size: 14px;
16
- // $h6-size: 12px;
17
-
18
- /* Set the font size to 26px */
19
- .h1 {
20
- font-size: $h1-size-mobile !important;
21
-
22
- @include breakpoint(md) { font-size: $h1-size !important; }
23
- }
24
-
25
- /* Set the font size to 22px */
26
- .h2 {
27
- font-size: $h2-size-mobile !important;
28
-
29
- @include breakpoint(md) { font-size: $h2-size !important; }
30
- }
31
-
32
- /* Set the font size to 18px */
33
- .h3 {
34
- font-size: $h3-size-mobile !important;
35
-
36
- @include breakpoint(md) { font-size: $h3-size !important; }
37
- }
38
-
39
- /* Set the font size to #{$h4-size} */
40
- .h4 {
41
- font-size: $h4-size !important;
42
- }
43
-
44
- /* Set the font size to #{$h5-size} */
45
- .h5 { font-size: $h5-size !important; }
46
-
47
- // Does not include color property like typography base
48
- // styles, color should be applied with color utilities.
49
- /* Set the font size to #{$h6-size} */
50
- .h6 { font-size: $h6-size !important; }
51
-
52
- // Heading utilities
53
- .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: $font-weight-bold !important; }
54
-
55
- // Type utilities that match type sale
56
- /* Set the font size to 26px */
57
- .f1 {
58
- font-size: $h1-size-mobile !important;
59
-
60
- @include breakpoint(md) { font-size: $h1-size !important; }
61
- }
62
-
63
- /* Set the font size to 22px */
64
- .f2 {
65
- font-size: $h2-size-mobile !important;
66
-
67
- @include breakpoint(md) { font-size: $h2-size !important; }
68
- }
69
-
70
- /* Set the font size to 18px */
71
- .f3 {
72
- font-size: $h3-size-mobile !important;
73
-
74
- @include breakpoint(md) { font-size: $h3-size !important; }
75
- }
76
-
77
- /* Set the font size to #{$h4-size} */
78
- .f4 {
79
- font-size: $h4-size !important;
80
-
81
- @include breakpoint(md) { font-size: $h4-size !important; }
82
- }
83
-
84
- /* Set the font size to #{$h5-size} */
85
- .f5 { font-size: $h5-size !important; }
86
- /* Set the font size to #{$h6-size} */
87
- .f6 { font-size: $h6-size !important; }
88
-
89
- // Type utils with light weight that match type scale
90
- /* Set the font size to 40px and weight to light */
91
- .f00-light {
92
- font-size: $h00-size-mobile !important;
93
- font-weight: $font-weight-light !important;
94
-
95
- @include breakpoint(md) { font-size: $h00-size !important; }
96
- }
97
-
98
- /* Set the font size to 32px and weight to light */
99
- .f0-light {
100
- font-size: $h0-size-mobile !important;
101
- font-weight: $font-weight-light !important;
102
-
103
- @include breakpoint(md) { font-size: $h0-size !important; }
104
- }
105
-
106
- /* Set the font size to 26px and weight to light */
107
- .f1-light {
108
- font-size: $h1-size-mobile !important;
109
- font-weight: $font-weight-light !important;
110
-
111
- @include breakpoint(md) { font-size: $h1-size !important; }
112
- }
113
-
114
- /* Set the font size to 22px and weight to light */
115
- .f2-light {
116
- font-size: $h2-size-mobile !important;
117
- font-weight: $font-weight-light !important;
118
-
119
- @include breakpoint(md) { font-size: $h2-size !important; }
120
- }
121
-
122
- // Same size and weight as .lead but without color property
123
- /* Set the font size to 18px and weight to light */
124
- .f3-light {
125
- font-size: $h3-size-mobile !important;
126
- font-weight: $font-weight-light !important;
127
-
128
- @include breakpoint(md) { font-size: $h3-size !important; }
129
- }
130
-
131
- // Smallest text size
132
- /* Set the font size to ${#h6-size} */
133
- .text-small { font-size: $h6-size !important; } // 12px
134
-
135
- /* Large leading paragraphs */
136
- .lead {
137
- margin-bottom: 30px;
138
- font-size: $h3-size;
139
- font-weight: $font-weight-light;
140
- color: $gray-600;
141
- }
142
-
143
- // Line-height variations
144
- // Close to commonly used line-heights. Most line-heights
145
- // combined with type size equate to whole pixels.
146
- // Will be improved with future typography scale updates.
147
- /* Set the line height to ultra condensed */
148
- .lh-condensed-ultra { line-height: $lh-condensed-ultra !important; }
149
- /* Set the line height to condensed */
150
- .lh-condensed { line-height: $lh-condensed !important; }
151
- /* Set the line height to default */
152
- .lh-default { line-height: $lh-default !important; }
153
- /* Set the line height to zero */
154
- .lh-0 { line-height: 0 !important; }
155
-
156
- // Text alignments
157
- // Responsive text alignment
158
- @each $breakpoint, $variant in $responsive-variants {
159
- @include breakpoint($breakpoint) {
160
- /* Text align to the right */
161
- .text#{$variant}-right { text-align: right !important; }
162
- /* Text align to the left */
163
- .text#{$variant}-left { text-align: left !important; }
164
- /* Text align to the center */
165
- .text#{$variant}-center { text-align: center !important; }
166
- }
167
- }
168
-
169
- // Text styles
170
- /* Set the font weight to normal */
171
- .text-normal { font-weight: $font-weight-normal !important; }
172
- /* Set the font weight to bold */
173
- .text-bold { font-weight: $font-weight-bold !important;}
174
- /* Set the font to italic */
175
- .text-italic { font-style: italic !important; }
176
- /* Make text uppercase */
177
- .text-uppercase { text-transform: uppercase !important; }
178
- /* Underline text */
179
- .text-underline { text-decoration: underline !important; }
180
- /* Don't underline text */
181
- .no-underline { text-decoration: none !important; }
182
- /* Don't wrap white space */
183
- .no-wrap { white-space: nowrap !important; }
184
- /* Normal white space */
185
- .ws-normal { white-space: normal !important; }
186
- /* Allow long lines with no spaces to line break */
187
- .wb-break-all { word-break: break-all !important; }
188
-
189
- .text-emphasized {
190
- font-weight: $font-weight-bold;
191
- color: $text-gray-dark;
192
- }
193
-
194
- // List styles
195
- .list-style-none { list-style: none !important; }
196
-
197
- // Text Shadows
198
- /* Add a dark text shadow */
199
- .text-shadow-dark {
200
- text-shadow: 0 1px 1px rgba($black, 0.25), 0 1px 25px rgba($black, 0.75);
201
- }
202
- /* Add a light text shadow */
203
- .text-shadow-light {
204
- text-shadow: 0 1px 0 rgba($white, 0.5);
205
- }
206
-
207
- /* Set to monospace font */
208
- .text-mono {
209
- font-family: $mono-font;
210
- }
211
-
212
- /* Disallow user from selecting text */
213
- .user-select-none {
214
- user-select: none !important;
215
- }