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,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; }
@@ -1,26 +0,0 @@
1
- // Box shadow utilities
2
- // stylelint-disable primer/selector-no-utility
3
-
4
- // Box shadows
5
-
6
- .box-shadow {
7
- box-shadow: $box-shadow !important;
8
- }
9
-
10
- .box-shadow-medium {
11
- box-shadow: $box-shadow-medium !important;
12
- }
13
-
14
- .box-shadow-large {
15
- box-shadow: $box-shadow-large !important;
16
- }
17
-
18
- .box-shadow-extra-large {
19
- box-shadow: $box-shadow-extra-large !important;
20
- }
21
-
22
- // Turn off box shadow
23
-
24
- .box-shadow-none {
25
- box-shadow: none !important;
26
- }
@@ -1,106 +0,0 @@
1
- // Color utilities
2
- // stylelint-disable block-opening-brace-space-before, primer/selector-no-utility
3
- // stylelint-disable comment-empty-line-before
4
-
5
- // background colors
6
- /* Set the background to $bg-white */
7
- .bg-white { background-color: $bg-white !important; }
8
- /* Set the background to $bg-blue */
9
- .bg-blue { background-color: $bg-blue !important; }
10
- /* Set the background to $bg-blue-light */
11
- .bg-blue-light { background-color: $bg-blue-light !important; }
12
- /* Set the background to $bg-gray-dark */
13
- .bg-gray-dark { background-color: $bg-gray-dark !important; }
14
- /* Set the background to $bg-gray */
15
- .bg-gray { background-color: $bg-gray !important; }
16
- /* Set the background to $bg-gray-light */
17
- .bg-gray-light { background-color: $bg-gray-light !important; }
18
- /* Set the background to $bg-green */
19
- .bg-green { background-color: $bg-green !important; }
20
- /* Set the background to $bg-green-light */
21
- .bg-green-light { background-color: $bg-green-light !important; }
22
- /* Set the background to $bg-red */
23
- .bg-red { background-color: $bg-red !important; }
24
- /* Set the background to $bg-red-light */
25
- .bg-red-light { background-color: $bg-red-light !important; }
26
- /* Set the background to $bg-yellow */
27
- .bg-yellow { background-color: $bg-yellow !important; }
28
- /* Set the background to $bg-yellow-light */
29
- .bg-yellow-light { background-color: $bg-yellow-light !important; }
30
- /* Set the background to $bg-purple */
31
- .bg-purple { background-color: $bg-purple !important; }
32
- /* Set the background to $bg-purple-light */
33
- .bg-purple-light { background-color: $bg-purple-light !important; }
34
-
35
- .bg-shade-gradient {
36
- background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
37
- background-repeat: no-repeat !important;
38
- background-size: 100% 200px !important;
39
- }
40
-
41
- // text colors
42
- /* Set the text color to $text-blue */
43
- .text-blue { color: $text-blue !important; }
44
- /* Set the text color to $text-red */
45
- .text-red { color: $text-red !important; }
46
- /* Set the text color to $text-gray-light */
47
- .text-gray-light { color: $text-gray-light !important; }
48
- /* Set the text color to $text-gray */
49
- .text-gray { color: $text-gray !important; }
50
- /* Set the text color to $text-gray-dark */
51
- .text-gray-dark { color: $text-gray-dark !important; }
52
- /* Set the text color to $text-green */
53
- .text-green { color: $text-green !important; }
54
- /* Set the text color to $text-orange */
55
- .text-orange { color: $text-orange !important; }
56
- /* Set the text color to $text-orange-light */
57
- .text-orange-light { color: $text-orange-light !important; }
58
- /* Set the text color to $text-purple */
59
- .text-purple { color: $text-purple !important; }
60
- /* Set the text color to $text-white */
61
- .text-white { color: $text-white !important; }
62
- /* Set the text color to inherit */
63
- .text-inherit { color: inherit !important; }
64
-
65
- // Text states
66
- // These can probably all be regular utilities
67
- .text-pending { color: $yellow-800 !important; }
68
- // Separate text and background colors in future to improve a11y
69
- .bg-pending { color: $yellow-700 !important; }
70
-
71
- // Link colors
72
- // Sets the links color to $text-gray and $text-blue on hover
73
- .link-gray {
74
- color: $text-gray !important;
75
-
76
- &:hover {
77
- color: $text-blue !important;
78
- }
79
- }
80
-
81
- // Sets the links color to $text-gray-dark and $text-blue on hover
82
- .link-gray-dark {
83
- color: $text-gray-dark !important;
84
-
85
- &:hover {
86
- color: $text-blue !important;
87
- }
88
- }
89
-
90
- /* Set the link color to $text-blue on hover
91
- Useful when you want only part of a link to turn blue on hover */
92
- .link-hover-blue {
93
- &:hover {
94
- color: $text-blue !important;
95
- }
96
- }
97
-
98
- /* Make a link $text-gray, then $text-blue on hover and removes the underline */
99
- .muted-link {
100
- color: $text-gray !important;
101
-
102
- &:hover {
103
- color: $text-blue !important;
104
- text-decoration: none;
105
- }
106
- }