github-docs 0.0.17 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,48 @@
1
+ @import "functions.scss";
2
+
3
+ // Base colors
4
+ $black: hsl(0, 0%, 0%) !default;
5
+ $black-light: hsl(0, 0%, 7%) !default;
6
+ $black-lighter: hsl(0, 0%, 13%) !default;
7
+ $black-lightest: hsl(0, 0%, 17%) !default;
8
+
9
+ $grey: hsl(0, 0%, 27%) !default;
10
+ $grey-light: hsl(0, 0%, 47%) !default;
11
+ $grey-lighter: hsl(0, 0%, 73%) !default;
12
+ $grey-lightest: hsl(0, 0%, 91%) !default;
13
+
14
+ $white-darkest: hsl(0, 0%, 94%) !default;
15
+ $white-darker: hsl(0, 0%, 96%) !default;
16
+ $white-dark: hsl(0, 0%, 98%) !default;
17
+ $white: hsl(0, 0%, 100%) !default;
18
+
19
+ $orange: hsl(14, 100%, 53%) !default;
20
+ $yellow: hsl(48, 100%, 67%) !default;
21
+ $green: hsl(141, 53%, 53%) !default;
22
+ $turquoise: hsl(171, 100%, 41%) !default;
23
+ $cyan: hsl(204, 71%, 53%) !default;
24
+ $blue: hsl(217, 71%, 53%) !default;
25
+ $violet: hsl(259, 100%, 67%) !default;
26
+ $purple: hsl(271, 100%, 71%) !default;
27
+ $red: hsl(348, 86%, 61%) !default;
28
+
29
+ // App colors
30
+ $primary: $violet !default;
31
+ $secondary: $blue !default;
32
+ $success: $green !default;
33
+ $info: $blue !default;
34
+ $warning: $yellow !default;
35
+ $danger: $red !default;
36
+ $text: $black-light !default;
37
+ $text-light: $grey !default;
38
+ $text-lighter: $grey-light !default;
39
+ $text-strong: $black !default;
40
+ $link: $black-light !default;
41
+ $link--hover: $blue !default;
42
+ $link--focus: $blue !default;
43
+
44
+ // Breakpoints
45
+ $breakpoint-lg: 1023px !default; /*desktop*/
46
+ $breakpoint-md: 768px !default; /*tablet*/
47
+ $breakpoint-sm: 590px !default; /*mobile*/
48
+ $breakpoint-xs: 589px !default; /*mobile*/
data/_sass/main.scss ADDED
@@ -0,0 +1,256 @@
1
+ $sidebar-width: 250px;
2
+ $sidebar-bg: #f8f8fb; //rgba(#f5f5fa, 0.7);
3
+ $sidebar-heading-height: 80px;
4
+ $menu-color: #483973;
5
+
6
+ /* --- Main -------------------------- */
7
+
8
+ .docs {
9
+ max-width: 1400px;
10
+ margin: 0 auto;
11
+ }
12
+ .main {
13
+ display: block;
14
+ margin-left: $sidebar-width;
15
+ }
16
+ .main-body {
17
+ display: block;
18
+ max-width: 910px;
19
+ margin: 0 auto;
20
+ padding: 40px;
21
+ padding-top: 50px;
22
+ padding-bottom: 60px;
23
+ }
24
+ .main-edit-pencil {
25
+ float: right;
26
+ display: block;
27
+ margin-top: 24px !important;
28
+ padding: 10px;
29
+ line-height: 0em;
30
+ border-radius: 6px;
31
+ color: #6a737d;
32
+ background: transparent;
33
+ transition: .2s cubic-bezier(.3,0,.5,1);
34
+ transition-property: color,background-color,border-color;
35
+ svg {
36
+ fill: #6a737d;
37
+ }
38
+ &:hover,
39
+ &:focus,
40
+ &:active {
41
+ background-color: #F3F4F6;
42
+ border-color: #1b1f2326;
43
+ transition-duration: .1s;
44
+ }
45
+ }
46
+ .markdown-body {
47
+ > .main-edit-pencil + * {
48
+ margin-top: 0 !important;
49
+ }
50
+ }
51
+ .main-heading {
52
+ display: block;
53
+ }
54
+ @media (max-width: 800px) {
55
+ .main {
56
+ margin-left: 0;
57
+ }
58
+ }
59
+
60
+ /* --- Sidebar ----------------------- */
61
+
62
+ .sidebar {
63
+ position: fixed;
64
+ top: 0;
65
+ width: $sidebar-width;
66
+ height: 100vh;
67
+ background: $sidebar-bg;
68
+ border-right: 1px solid darken($sidebar-bg, 3%);
69
+ z-index: 2;
70
+ }
71
+ .sidebar:after {
72
+ content: "";
73
+ position: absolute;
74
+ top: 0;
75
+ left: -10000px;
76
+ right: 100%;
77
+ bottom: 0;
78
+ background: $sidebar-bg;
79
+ }
80
+ .sidebar-heading {
81
+ height: $sidebar-heading-height;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: space-between;
85
+ border-bottom: 1px solid #eee;
86
+ font-family: 'Roboto', sans-serif;
87
+ font-size: 1.5em;
88
+ font-weight: 900;
89
+ letter-spacing: -0.5px;
90
+ }
91
+ .sidebar-heading a {
92
+ color: #232035;
93
+ text-decoration: none;
94
+ }
95
+ .sidebar-heading button {
96
+ flex: 0;
97
+ padding: 9px 25px;
98
+ font-size: 14px;
99
+ font-weight: 600;
100
+ line-height: 1.5em;
101
+ color: #fff;
102
+ background-color: #483973;
103
+ border-radius: 3px;
104
+ border: 0;
105
+ box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08);
106
+ transition: box-shadow 0.2s ease;
107
+ cursor: pointer;
108
+ }
109
+ .sidebar-heading button:hover {
110
+ box-shadow: 0 4px 6px rgba(50,50,93,0.3), 0 1px 3px rgba(0,0,0,0.3);
111
+ }
112
+ .sidebar-close,
113
+ .sidebar-heading,
114
+ .navigation-list-link {
115
+ padding-left: 30px;
116
+ padding-right: 30px;
117
+ }
118
+ .sidebar-nav {
119
+ position: relative;
120
+ z-index: 11;
121
+ padding: 0px 1px;
122
+ }
123
+
124
+ /* sidebar heading mobile */
125
+
126
+ .sidebar-heading-mobile {
127
+ border-bottom: 1px solid #eee;
128
+ }
129
+ .sidebar-close {
130
+ display: flex;
131
+ align-items: center;
132
+ height: $sidebar-heading-height - 10px;
133
+ cursor: pointer;
134
+ padding: 0 25px;
135
+ }
136
+ .sidebar-close img {
137
+ width: 22px;
138
+ margin-left: -2px;
139
+ }
140
+ @media (max-width: 800px) {
141
+ .sidebar {
142
+ position: static;
143
+ top: auto;
144
+ width: 100%;
145
+ height: auto;
146
+ background: none;
147
+ }
148
+ .sidebar-nav {
149
+ position: fixed;
150
+ left: -$sidebar-width;
151
+ top: 0;
152
+ width: $sidebar-width;
153
+ height: 100vh;
154
+ background: $sidebar-bg;
155
+ border-right: 1px solid darken($sidebar-bg, 3%);
156
+ box-shadow: rgba(0, 0, 0, 0.14) 0px 0px 4px, rgba(0, 0, 0, 0.28) 0px 4px 8px;
157
+ transition: transform 400ms cubic-bezier(0.4, 0, 0, 1);
158
+ transform: translate(0, 0);
159
+ }
160
+ .sidebar-heading,
161
+ .sidebar-close,
162
+ .navigation-list-link {
163
+ padding-left: 40px;
164
+ padding-right: 40px;
165
+ }
166
+ .sidebar-overlay {
167
+ position: fixed;
168
+ top: 0;
169
+ left: 0;
170
+ right: 100%;
171
+ bottom: 0;
172
+ z-index: 0;
173
+ opacity: 0;
174
+ background-color: rgba(24, 48, 85, 0.3);
175
+ transition: opacity 250ms ease-in-out, right 0s 250ms;
176
+ }
177
+ .nav-open .sidebar-nav {
178
+ transform: translate($sidebar-width, 0);
179
+ }
180
+ .nav-open .sidebar-overlay {
181
+ transition: opacity 250ms ease-in-out;
182
+ right: 0;
183
+ opacity: 1;
184
+ }
185
+ }
186
+ @media (min-width: 801px) {
187
+ .mobile-only {
188
+ display: none;
189
+ }
190
+ .sidebar-overlay {
191
+ display: none;
192
+ }
193
+ }
194
+
195
+ /* --- Navigation -------------------- */
196
+
197
+ .navigation-list {
198
+ padding: 20px 0;
199
+ display: block;
200
+ list-style: none;
201
+ }
202
+ .navigation-list-link {
203
+ position: relative;
204
+ display: block;
205
+ padding-top: 5px;
206
+ padding-bottom: 5px;
207
+ color: $menu-color;
208
+ font-size: 1.1em;
209
+ text-decoration: none !important;
210
+ }
211
+ .navigation-list-link.active,
212
+ .navigation-list-link:hover {
213
+ text-decoration: none !important;
214
+ color: darken($menu-color, 40%);
215
+ }
216
+ .navigation-list-link:before {
217
+ content: "";
218
+ position: absolute;
219
+ display: block;
220
+ top: 50%;
221
+ left: 0;
222
+ height: 18px;
223
+ width: 4px;
224
+ margin-top: -9px;
225
+ background-color: transparent;
226
+ border-radius: 3px;
227
+ transform: translateX(-3px);
228
+ transition: all 0.2s ease;
229
+ }
230
+ .navigation-list-link.active:before,
231
+ .navigation-list-link:hover:before {
232
+ background-color: $menu-color;
233
+ transform: translateX(0);
234
+ }
235
+
236
+ /* submenu */
237
+
238
+ .navigation-list ul {
239
+ padding-left: 0;
240
+ display: block;
241
+ list-style: none;
242
+ }
243
+ .navigation-list ul .navigation-list-link {
244
+ padding-left: 50px;
245
+ }
246
+
247
+ /* aux navigation */
248
+
249
+ .navigation-list-aux {
250
+ padding: 0 0 20px;
251
+ display: block;
252
+ list-style: none;
253
+ }
254
+ .navigation-list-aux .navigation-list-link:before {
255
+ display: none;
256
+ }
@@ -0,0 +1,25 @@
1
+ .markdown-body {
2
+ .csv-data {
3
+ td,
4
+ th {
5
+ padding: 5px;
6
+ overflow: hidden;
7
+ font-size: $markdown-font-size-small;
8
+ line-height: 1em;
9
+ text-align: left;
10
+ white-space: nowrap;
11
+ }
12
+ .blob-num {
13
+ padding: 10px $markdown-spacer-2 9px;
14
+ text-align: right;
15
+ background: #fff;
16
+ border: 0;
17
+ }
18
+ tr { border-top: 0; }
19
+ th {
20
+ font-weight: $markdown-font-weight-bold;
21
+ background: $gray-100;
22
+ border-top: 0;
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,49 @@
1
+ .markdown-body {
2
+ // Inline code snippets
3
+ code,
4
+ tt {
5
+ font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
6
+ // font-size: 85%;
7
+ padding: 0.2em 0.4em;
8
+ margin: 0;
9
+ background-color: rgba(#000, 0.05);
10
+ border-radius: 4px;
11
+ br { display: none; }
12
+ }
13
+ // Code blocks
14
+ pre {
15
+ padding: $markdown-spacer-3;
16
+ overflow: auto;
17
+ font-size: 85%;
18
+ line-height: 1.4;
19
+ background-color: $gray-100;
20
+ border-radius: 6px;
21
+ word-wrap: normal;
22
+ // Code tags within code blocks
23
+ > code {
24
+ padding: 0;
25
+ margin: 0;
26
+ font-size: 100%;
27
+ word-break: normal;
28
+ white-space: pre;
29
+ background: transparent;
30
+ border: 0;
31
+ }
32
+ code,
33
+ tt {
34
+ display: inline;
35
+ max-width: auto;
36
+ padding: 0;
37
+ margin: 0;
38
+ overflow: visible;
39
+ line-height: inherit;
40
+ word-wrap: normal;
41
+ background-color: transparent;
42
+ border: 0;
43
+ }
44
+ }
45
+ .highlight pre {
46
+ margin-bottom: 0;
47
+ word-break: normal;
48
+ }
49
+ }
@@ -0,0 +1,51 @@
1
+ .markdown-body {
2
+ h1,
3
+ h2,
4
+ h3,
5
+ h4,
6
+ h5,
7
+ h6 {
8
+ margin-top: $markdown-spacer-4;
9
+ margin-bottom: $markdown-spacer-3;
10
+ font-weight: $markdown-font-weight-bold;
11
+ line-height: 1.25em;
12
+ .octicon-link {
13
+ color: #000;
14
+ vertical-align: middle;
15
+ visibility: hidden;
16
+ }
17
+ &:hover .anchor {
18
+ text-decoration: none;
19
+ .octicon-link {
20
+ visibility: visible;
21
+ }
22
+ }
23
+ tt,
24
+ code {
25
+ font-size: inherit;
26
+ }
27
+ }
28
+ h1 {
29
+ padding-bottom: 0.3em;
30
+ font-size: 2em;
31
+ border-bottom: 1px solid lighten($gray-200, 3%);
32
+ }
33
+ h2 {
34
+ padding-bottom: 0.3em;
35
+ font-size: 1.5em;
36
+ border-bottom: 1px solid lighten($gray-200, 3%);
37
+ }
38
+ h3 {
39
+ font-size: 1.25em;
40
+ }
41
+ h4 {
42
+ font-size: 1em;
43
+ }
44
+ h5 {
45
+ font-size: 0.875em;
46
+ }
47
+ h6 {
48
+ font-size: 0.85em;
49
+ color: $gray-500;
50
+ }
51
+ }
@@ -0,0 +1,101 @@
1
+ .markdown-body {
2
+ // Images & Stuff
3
+ img {
4
+ max-width: 100%;
5
+ // because we put padding on the images to hide header lines, and some people
6
+ // specify the width of their images in their markdown.
7
+ box-sizing: content-box;
8
+ background-color: #fff;
9
+
10
+ &[align=right] {
11
+ padding-left: 20px;
12
+ }
13
+
14
+ &[align=left] {
15
+ padding-right: 20px;
16
+ }
17
+ }
18
+ .emoji {
19
+ max-width: none;
20
+ vertical-align: text-top;
21
+ // Override `<img>` styles so Emjois don't clash with zebra striping in our tables
22
+ background-color: transparent;
23
+ }
24
+
25
+ // Gollum Image Tags
26
+
27
+ // Framed
28
+ span.frame {
29
+ display: block;
30
+ overflow: hidden;
31
+ > span {
32
+ display: block;
33
+ float: left;
34
+ width: auto;
35
+ padding: 7px;
36
+ margin: 13px 0 0;
37
+ overflow: hidden;
38
+ border: 1px solid lighten($gray-300, 5%);
39
+ }
40
+ span img {
41
+ display: block;
42
+ float: left;
43
+ }
44
+ span span {
45
+ display: block;
46
+ padding: 5px 0 0;
47
+ clear: both;
48
+ }
49
+ }
50
+ span.align-center {
51
+ display: block;
52
+ overflow: hidden;
53
+ clear: both;
54
+ > span {
55
+ display: block;
56
+ margin: 13px auto 0;
57
+ overflow: hidden;
58
+ text-align: center;
59
+ }
60
+ span img {
61
+ margin: 0 auto;
62
+ text-align: center;
63
+ }
64
+ }
65
+ span.align-right {
66
+ display: block;
67
+ overflow: hidden;
68
+ clear: both;
69
+ > span {
70
+ display: block;
71
+ margin: 13px 0 0;
72
+ overflow: hidden;
73
+ text-align: right;
74
+ }
75
+ span img {
76
+ margin: 0;
77
+ text-align: right;
78
+ }
79
+ }
80
+ span.float-left {
81
+ display: block;
82
+ float: left;
83
+ margin-right: 13px;
84
+ overflow: hidden;
85
+ span {
86
+ margin: 13px 0 0;
87
+ }
88
+ }
89
+ span.float-right {
90
+ display: block;
91
+ float: right;
92
+ margin-left: 13px;
93
+ overflow: hidden;
94
+ > span {
95
+ display: block;
96
+ margin: 13px auto 0;
97
+ overflow: hidden;
98
+ text-align: right;
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,118 @@
1
+
2
+ $markdown-line-height: 1.5em;
3
+ $markdown-spacer-1: 4px;
4
+ $markdown-spacer-2: 8px;
5
+ $markdown-spacer-3: 16px;
6
+ $markdown-spacer-4: 24px;
7
+ $markdown-font-size-small: 12px;
8
+ $markdown-font-weight-bold: 600;
9
+
10
+ $gray-000: #fafbfc;
11
+ $gray-100: #f6f8fa;
12
+ $gray-200: #e1e4e8;
13
+ $gray-300: #d1d5da;
14
+ $gray-400: #959da5;
15
+ $gray-500: #6a737d;
16
+ $gray-700: #444d56;
17
+
18
+ .markdown-body {
19
+ font-size: 16px;
20
+ line-height: $markdown-line-height;
21
+ word-wrap: break-word;
22
+ color: #24292e;
23
+ &::after {
24
+ display: block;
25
+ clear: both;
26
+ content: "";
27
+ }
28
+ > *:first-child {
29
+ margin-top: 0 !important;
30
+ }
31
+ > *:last-child {
32
+ margin-bottom: 0 !important;
33
+ }
34
+ // Blocks
35
+ p,
36
+ blockquote,
37
+ ul,
38
+ ol,
39
+ dl,
40
+ table,
41
+ pre,
42
+ .highlight {
43
+ margin-top: 0;
44
+ margin-bottom: $markdown-spacer-3;
45
+ }
46
+ hr {
47
+ height: 0.25em;
48
+ padding: 0;
49
+ margin: $markdown-spacer-4 0;
50
+ background-color: $gray-200;
51
+ border: 0;
52
+ }
53
+ blockquote {
54
+ margin-left: 0;
55
+ margin-right: 0;
56
+ padding: 0 1em;
57
+ color: $gray-500;
58
+ border-left: 0.25em solid lighten($gray-300, 5%);
59
+ > :first-child {
60
+ margin-top: 0;
61
+ }
62
+ > :last-child {
63
+ margin-bottom: 0;
64
+ }
65
+ }
66
+ kbd {
67
+ display: inline-block;
68
+ padding: 3px 5px;
69
+ font-size: 11px;
70
+ line-height: 10px;
71
+ color: $gray-700;
72
+ vertical-align: middle;
73
+ background-color: $gray-000;
74
+ border: solid 1px darken($gray-300, 4%);
75
+ border-bottom-color: $gray-400;
76
+ border-radius: 3px;
77
+ box-shadow: inset 0 -1px 0 $gray-400;
78
+ }
79
+ // Anchors like <a name="examples">. These sometimes end up wrapped around
80
+ // text when users mistakenly forget to close the tag or use self-closing tag
81
+ // syntax. We don't want them to appear like links.
82
+ a {
83
+ color: #0366d6;
84
+ text-decoration: none;
85
+ &:hover,
86
+ &:focus {
87
+ text-decoration: underline;
88
+ }
89
+ }
90
+ a:not([href]) {
91
+ color: inherit;
92
+ text-decoration: none;
93
+ }
94
+ // Links
95
+ .absent {
96
+ color: #cb2431;
97
+ }
98
+ .anchor,
99
+ .anchorjs-link {
100
+ float: left;
101
+ line-height: 1em;
102
+ font-size: 1.1em !important;
103
+ padding-right: 10px !important;
104
+ //margin-left: calc(-1em - 10px) !important;/////////////////////////////////////
105
+ &:hover,
106
+ &:focus {
107
+ outline: none;
108
+ text-decoration: none;
109
+ }
110
+ }
111
+ }
112
+
113
+ @import "./headings.scss";
114
+ @import "./lists.scss";
115
+ @import "./tables.scss";
116
+ @import "./images.scss";
117
+ @import "./code.scss";
118
+ @import "./blob-csv.scss";
@@ -0,0 +1,42 @@
1
+ .markdown-body {
2
+ ul,
3
+ ol {
4
+ padding-left: 2em;
5
+ &.no-list {
6
+ padding: 0;
7
+ list-style-type: none;
8
+ }
9
+ }
10
+ ul ul,
11
+ ul ol,
12
+ ol ol,
13
+ ol ul {
14
+ margin-top: 0;
15
+ margin-bottom: 0;
16
+ }
17
+ li {
18
+ word-wrap: break-all;
19
+ }
20
+ li > p {
21
+ margin-top: $markdown-spacer-3;
22
+ }
23
+ li + li {
24
+ margin-top: 0.25em;
25
+ }
26
+ dl {
27
+ padding: 0;
28
+ dt {
29
+ margin: 0;
30
+ padding: 0;
31
+ margin-top: $markdown-spacer-3;
32
+ font-size: 1em;
33
+ font-style: italic;
34
+ font-weight: $markdown-font-weight-bold;
35
+ }
36
+ dd {
37
+ margin: 0;
38
+ padding: 0 $markdown-spacer-3;
39
+ margin-bottom: $markdown-spacer-3;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,28 @@
1
+ // Needs refactoring
2
+ // stylelint-disable selector-max-type
3
+ .markdown-body {
4
+ // Tables
5
+ table {
6
+ display: block;
7
+ width: 100%;
8
+ overflow: auto;
9
+ th,
10
+ td {
11
+ padding: 6px 13px;
12
+ border: 1px solid lighten($gray-300, 5%);
13
+ }
14
+ th {
15
+ font-weight: $markdown-font-weight-bold;
16
+ }
17
+ tr {
18
+ background-color: #fff;
19
+ border-top: 1px solid darken($gray-300, 4%);
20
+ &:nth-child(2n) {
21
+ background-color: $gray-100;
22
+ }
23
+ }
24
+ img {
25
+ background-color: transparent;
26
+ }
27
+ }
28
+ }