github-docs 0.0.2 → 0.0.6

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 +54 -62
  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,67 +0,0 @@
1
- @import "color-system.scss";
2
- // Color variables
3
- // stylelint-disable declaration-bang-space-before
4
-
5
- // State indicators.
6
- $status-pending: desaturate($yellow-700, 15%) !default;
7
-
8
- // Repository type colors
9
- // Should be able to deprecate these in future
10
- $repo-private-text: $black-fade-70 !default;
11
- $repo-private-bg: $yellow-000 !default;
12
- $repo-private-icon: transparentize($yellow-900, 0.5) !default;
13
-
14
- // Highlight used for things like search
15
- $highlight-yellow: rgba(255, 247, 140, 0.5);
16
-
17
- // Border colors
18
- $border-black-fade: $black-fade-15 !default;
19
-
20
- $border-blue: $blue-500 !default;
21
- $border-blue-light: $blue-200 !default;
22
-
23
- $border-green: $green-400 !default;
24
- $border-green-light: desaturate($green-300, 40%) !default;
25
-
26
- $border-purple: $purple !default;
27
-
28
- $border-red: $red !default;
29
- $border-red-light: desaturate($red-300, 60%) !default;
30
-
31
- $border-purple: $purple !default;
32
-
33
- $border-yellow: desaturate($yellow-300, 60%) !default;
34
-
35
- $border-gray-dark: $gray-300 !default;
36
- $border-gray-darker: $gray-700 !default;
37
- $border-gray-light: lighten($gray-200, 3%) !default;
38
- $border-gray: $gray-200 !default;
39
-
40
- // Background colors
41
- $bg-blue-light: $blue-000 !default;
42
- $bg-blue: $blue-500 !default;
43
- $bg-gray-dark: $gray-900 !default;
44
- $bg-gray-light: $gray-000 !default;
45
- $bg-gray: $gray-100 !default;
46
- $bg-green: $green-500 !default;
47
- $bg-green-light: $green-100 !default;
48
- $bg-orange: $orange-700 !default;
49
- $bg-purple: $purple-500 !default;
50
- $bg-purple-light: $purple-000 !default;
51
- $bg-red: $red-500 !default;
52
- $bg-red-light: $red-100 !default;
53
- $bg-white: $white !default;
54
- $bg-yellow: $yellow-500 !default;
55
- $bg-yellow-light: $yellow-200 !default;
56
-
57
- // Text colors
58
- $text-blue: $blue-500 !default;
59
- $text-gray-dark: $gray-900 !default;
60
- $text-gray-light: $gray-500 !default;
61
- $text-gray: $gray-600 !default;
62
- $text-green: $green-500 !default;
63
- $text-orange: $orange-900 !default;
64
- $text-orange-light: $orange-600 !default;
65
- $text-purple: $purple !default;
66
- $text-red: $red-600 !default;
67
- $text-white: $white !default;
@@ -1,78 +0,0 @@
1
- // Layout variables
2
- // stylelint-disable declaration-bang-space-before
3
-
4
- // These are our margin and padding utility spacers. The default step size we
5
- // use is 8px. This gives us a key of:
6
- // 0 => 0px
7
- // 1 => 4px
8
- // 2 => 8px
9
- // 3 => 16px
10
- // 4 => 24px
11
- // 5 => 32px
12
- // 6 => 40px
13
- $spacer: 8px !default;
14
- $spacers: (
15
- 0,
16
- round($spacer / 2),
17
- $spacer,
18
- $spacer * 2,
19
- $spacer * 3,
20
- $spacer * 4,
21
- $spacer * 5,
22
- // $spacer * 6,
23
- // $spacer * 7
24
- ) !default;
25
-
26
- // Aliases for easy use
27
- $spacer-0: nth($spacers, 1) !default; // 0
28
- $spacer-1: nth($spacers, 2) !default; // 4px
29
- $spacer-2: nth($spacers, 3) !default; // 8px
30
- $spacer-3: nth($spacers, 4) !default; // 16px
31
- $spacer-4: nth($spacers, 5) !default; // 24px
32
- $spacer-5: nth($spacers, 6) !default; // 32px
33
- $spacer-6: nth($spacers, 7) !default; // 40px
34
- // $spacer-7: nth($spacers, 8) !default; // 40px
35
- // $spacer-8: nth($spacers, 9) !default; // 40px
36
-
37
- // Em spacer variables
38
- $em-spacer-1: 0.0625em !default; // 1/16
39
- $em-spacer-2: 0.125em !default; // 1/8
40
- $em-spacer-3: 0.25em !default; // 1/4
41
- $em-spacer-4: 0.375em !default; // 3/8
42
- $em-spacer-5: 0.5em !default; // 1/2
43
- $em-spacer-6: 0.75em !default; // 3/4
44
- // $em-spacer-7: 1.0em !default; // 1
45
- // $em-spacer-8: 1.25em !default; // 1.25
46
-
47
- // Fixed-width container variables
48
- $container-width: 980px !default;
49
- $grid-gutter: 10px !default;
50
-
51
- // Breakpoint widths
52
- $width-xs: 0;
53
- $width-sm: 544px;
54
- $width-md: 768px;
55
- $width-lg: 1012px;
56
- $width-xl: 1280px;
57
-
58
- // Responsive container widths
59
- $container-md: $width-md !default;
60
- $container-lg: $width-lg !default;
61
- $container-xl: $width-xl !default;
62
-
63
- // Breakpoints
64
- $breakpoints: (
65
- // Small screen / phone
66
- sm: $width-sm,
67
- // Medium screen / tablet
68
- md: $width-md,
69
- // Large screen / desktop (980 + (16 * 2)) <= container + gutters
70
- lg: $width-lg,
71
- // Extra large screen / wide desktop
72
- xl: $width-xl
73
- ) !default;
74
-
75
- $responsive-variants: ("": "");
76
- @each $key in map-keys($breakpoints) {
77
- $responsive-variants: map-merge($responsive-variants, ($key: "-#{$key}"));
78
- }
@@ -1,40 +0,0 @@
1
- // Miscellaneous variables
2
- // stylelint-disable declaration-bang-space-before
3
-
4
- // Border size
5
- $border-width: 1px !default;
6
- $border-color: $border-gray !default;
7
- $border-style: solid !default;
8
- $border: $border-width $border-color $border-style !default;
9
- $border-radius: 3px !default;
10
-
11
- // Custom explore grid border
12
- $exploregrid-item-border-radius: 4px;
13
-
14
- // Box shadow
15
- $box-shadow: 0 1px 1px rgba($black, 0.1) !default;
16
- $box-shadow-medium: 0 1px 5px $black-fade-15 !default;
17
- $box-shadow-large: 0 1px 15px $black-fade-15 !default;
18
- $box-shadow-extra-large: 0 10px 50px rgba($black, 0.07) !default;
19
-
20
- // Tooltips
21
- $tooltip-max-width: 250px !default;
22
- $tooltip-background-color: $black;
23
- $tooltip-text-color: $white !default;
24
- $tooltip-delay: 0.4s !default;
25
- $tooltip-duration: 0.1s !default;
26
-
27
- // Should be moved into custom github css
28
- $stats-switcher-py: 10px;
29
- // Future proof this `height` value by finding the computed line-height, then
30
- // adding the total value of the vertical padding. This var is used to toggle
31
- // between the stats bar and language breakdown.
32
- $stats-viewport-height: ($body-font-size * $body-line-height) + ($stats-switcher-py * 2);
33
-
34
- $min_tab_size: 1;
35
- $max_tab_size: 12;
36
-
37
- // Button and form variables
38
- $form-control-shadow: inset 0 1px 2px rgba($black, 0.075);
39
- $btn-input-focus-shadow: 0 0 0 0.2em rgba($blue, 0.3);
40
- $btn-active-shadow: inset 0 0.15em 0.3em $black-fade-15;
@@ -1,43 +0,0 @@
1
- // Typography variables
2
- // stylelint-disable declaration-bang-space-before
3
-
4
- // Heading sizes - mobile
5
- // h4—h6 remain the same size on both mobile & desktop
6
- $h00-size-mobile: 40px !default;
7
- $h0-size-mobile: 32px !default;
8
- $h1-size-mobile: 26px !default;
9
- $h2-size-mobile: 22px !default;
10
- $h3-size-mobile: 18px !default;
11
-
12
- // Heading sizes - desktop
13
- $h00-size: 48px !default;
14
- $h0-size: 40px !default;
15
- $h1-size: 32px !default;
16
- $h2-size: 24px !default;
17
- $h3-size: 20px !default;
18
- $h4-size: 16px !default;
19
- $h5-size: 14px !default;
20
- $h6-size: 12px !default;
21
-
22
- $font-size-small: 12px !default;
23
-
24
- // Font weights
25
- $font-weight-bold: 600 !default;
26
- $font-weight-semibold: 500 !default;
27
- $font-weight-normal: 400 !default;
28
- $font-weight-light: 300 !default;
29
-
30
- // Line heights
31
- $lh-condensed-ultra: 1 !default;
32
- $lh-condensed: 1.25 !default;
33
- $lh-default: 1.5 !default;
34
-
35
- // Font stacks
36
- $body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
37
-
38
- // Monospace font stack
39
- $mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
40
-
41
- // The base body size
42
- $body-font-size: 14px !default;
43
- $body-line-height: $lh-default !default;
@@ -1,184 +0,0 @@
1
- // This file contains reusable animations for github.
2
- // stylelint-disable primer/selector-no-utility
3
-
4
- /* Fade in an element */
5
- .anim-fade-in {
6
- animation-name: fade-in;
7
- animation-duration: 1s;
8
- animation-timing-function: ease-in-out;
9
-
10
- &.fast {
11
- animation-duration: 300ms;
12
- }
13
- }
14
-
15
- @keyframes fade-in {
16
- 0% {
17
- opacity: 0;
18
- }
19
-
20
- 100% {
21
- opacity: 1;
22
- }
23
- }
24
-
25
- /* Fade out an element */
26
- .anim-fade-out {
27
- animation-name: fade-out;
28
- animation-duration: 1s;
29
- animation-timing-function: ease-out;
30
-
31
- &.fast {
32
- animation-duration: 0.3s;
33
- }
34
- }
35
-
36
- @keyframes fade-out {
37
- 0% {
38
- opacity: 1;
39
- }
40
-
41
- 100% {
42
- opacity: 0;
43
- }
44
- }
45
-
46
- /* Fade in and slide up an element */
47
- .anim-fade-up {
48
- opacity: 0;
49
- animation-name: fade-up;
50
- animation-duration: 0.3s;
51
- animation-fill-mode: forwards;
52
- animation-timing-function: ease-out;
53
- animation-delay: 1s;
54
- }
55
-
56
- @keyframes fade-up {
57
- 0% {
58
- opacity: 0.8;
59
- transform: translateY(100%);
60
- }
61
-
62
- 100% {
63
- opacity: 1;
64
- transform: translateY(0);
65
- }
66
- }
67
-
68
- /* Fade an element out and slide down */
69
- .anim-fade-down {
70
- animation-name: fade-down;
71
- animation-duration: 0.3s;
72
- animation-fill-mode: forwards;
73
- animation-timing-function: ease-in;
74
- }
75
-
76
- @keyframes fade-down {
77
- 0% {
78
- opacity: 1;
79
- transform: translateY(0);
80
- }
81
-
82
- 100% {
83
- opacity: 0.5;
84
- transform: translateY(100%);
85
- }
86
- }
87
-
88
- /* Grow an element width from 0 to 100% */
89
- .anim-grow-x {
90
- width: 0%;
91
- animation-name: grow-x;
92
- animation-duration: 0.3s;
93
- animation-fill-mode: forwards;
94
- animation-timing-function: ease;
95
- animation-delay: 0.5s;
96
- }
97
-
98
- @keyframes grow-x {
99
- to { width: 100%; }
100
- }
101
-
102
- /* Shrink an element from 100% to 0% */
103
- .anim-shrink-x {
104
- animation-name: shrink-x;
105
- animation-duration: 0.3s;
106
- animation-fill-mode: forwards;
107
- animation-timing-function: ease-in-out;
108
- animation-delay: 0.5s;
109
- }
110
-
111
- @keyframes shrink-x {
112
- to { width: 0%; }
113
- }
114
-
115
- /* Fade in an element and scale it fast */
116
- .anim-scale-in {
117
- animation-name: scale-in;
118
- animation-duration: 0.15s;
119
- animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
120
- }
121
-
122
- @keyframes scale-in {
123
- 0% {
124
- opacity: 0;
125
- transform: scale(0.5);
126
- }
127
-
128
- 100% {
129
- opacity: 1;
130
- transform: scale(1);
131
- }
132
- }
133
-
134
- /* Pulse an element's opacity */
135
- .anim-pulse {
136
- animation-name: pulse;
137
- animation-duration: 2s;
138
- animation-timing-function: linear;
139
- animation-iteration-count: infinite;
140
- }
141
-
142
- @keyframes pulse {
143
- 0% {
144
- opacity: 0.3;
145
- }
146
-
147
- 10% {
148
- opacity: 1;
149
- }
150
-
151
- 100% {
152
- opacity: 0.3;
153
- }
154
- }
155
-
156
- /* Pulse in an element */
157
- .anim-pulse-in {
158
- animation-name: pulse-in;
159
- animation-duration: 0.5s;
160
- }
161
-
162
- @keyframes pulse-in {
163
- 0% {
164
- transform: scale3d(1, 1, 1);
165
- }
166
-
167
- 50% {
168
- transform: scale3d(1.1, 1.1, 1.1);
169
- }
170
-
171
- 100% {
172
- transform: scale3d(1, 1, 1);
173
- }
174
- }
175
-
176
- /* Increase scale of an element on hover */
177
- .hover-grow {
178
- transition: transform 0.3s;
179
- backface-visibility: hidden;
180
-
181
- &:hover {
182
- transform: scale(1.025);
183
- }
184
- }
@@ -1,100 +0,0 @@
1
- // Border utilities
2
- // stylelint-disable block-opening-brace-space-before, primer/selector-no-utility, comment-empty-line-before
3
-
4
- /* Add a gray border on all sides */
5
- .border { border: $border !important; }
6
-
7
- /* Add a gray border to the left and right */
8
- .border-y {
9
- border-top: $border !important;
10
- border-bottom: $border !important;
11
- }
12
-
13
- /* Remove borders from all sides */
14
- .border-0 { border: 0 !important; }
15
-
16
- .border-dashed { border-style: dashed !important; }
17
-
18
- /* Use with .border to turn the border blue */
19
- .border-blue { border-color: $border-blue !important; }
20
- /* Use with .border to turn the border blue-light */
21
- .border-blue-light { border-color: $border-blue-light !important; }
22
- /* Use with .border to turn the border green */
23
- .border-green { border-color: $border-green !important; }
24
- /* Use with .border to turn the border green light */
25
- .border-green-light { border-color: $border-green-light !important; }
26
- /* Use with .border to turn the border red */
27
- .border-red { border-color: $border-red !important; }
28
- /* Use with .border to turn the border red-light */
29
- .border-red-light { border-color: $border-red-light !important; }
30
- /* Use with .border to turn the border purple */
31
- .border-purple { border-color: $border-purple !important; }
32
- /* Use with .border to turn the border yellow */
33
- .border-yellow { border-color: $border-yellow !important; }
34
- /* Use with .border to turn the border gray-light */
35
- .border-gray-light { border-color: $border-gray-light !important; }
36
- /* Use with .border to turn the border gray-dark */
37
- .border-gray-dark { border-color: $border-gray-dark !important; }
38
- /* Use with .border to turn the border rgba black 0.15 */
39
- .border-black-fade { border-color: $border-black-fade !important; }
40
-
41
- $edges: (
42
- top: (top-left, top-right),
43
- right: (top-right, bottom-right),
44
- bottom: (bottom-right, bottom-left),
45
- left: (bottom-left, top-left)
46
- );
47
-
48
- @each $breakpoint, $variant in $responsive-variants {
49
- @include breakpoint($breakpoint) {
50
- /* Add a gray border */
51
- /* Add a gray border to the top */
52
- .border#{$variant}-top { border-top: $border !important; }
53
- /* Add a gray border to the right */
54
- .border#{$variant}-right { border-right: $border !important; }
55
- /* Add a gray border to the bottom */
56
- .border#{$variant}-bottom { border-bottom: $border !important; }
57
- /* Add a gray border to the left */
58
- .border#{$variant}-left { border-left: $border !important; }
59
-
60
- /* Remove the top border */
61
- .border#{$variant}-top-0 { border-top: 0 !important; }
62
- /* Remove the right border */
63
- .border#{$variant}-right-0 { border-right: 0 !important; }
64
- /* Remove the bottom border */
65
- .border#{$variant}-bottom-0 { border-bottom: 0 !important; }
66
- /* Remove the left border */
67
- .border#{$variant}-left-0 { border-left: 0 !important; }
68
-
69
- // Rounded corners
70
- /* Remove the border-radius */
71
- .rounded#{$variant}-0 { border-radius: 0 !important; }
72
- /* Add a border-radius to all corners */
73
- .rounded#{$variant}-1 { border-radius: $border-radius !important; }
74
- /* Add a 2x border-radius to all corners */
75
- .rounded#{$variant}-2 { border-radius: $border-radius * 2 !important; }
76
-
77
- @each $edge, $corners in $edges {
78
- .rounded#{$variant}-#{$edge}-0 {
79
- @each $corner in $corners {
80
- border-#{$corner}-radius: 0 !important;
81
- }
82
- }
83
-
84
- .rounded#{$variant}-#{$edge}-1 {
85
- @each $corner in $corners {
86
- border-#{$corner}-radius: $border-radius !important;
87
- }
88
- }
89
-
90
- .rounded#{$variant}-#{$edge}-2 {
91
- @each $corner in $corners {
92
- border-#{$corner}-radius: $border-radius * 2 !important;
93
- }
94
- }
95
- }
96
- }
97
- }
98
-
99
- /* Add a 50% border-radius to make something into a circle */
100
- .circle { border-radius: 50% !important; }