github-docs 0.0.4 → 0.0.17
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.
- checksums.yaml +4 -4
- data/_layouts/default.html +17 -2
- data/assets/css/index.scss +9 -7
- data/readme.md +32 -25
- metadata +29 -62
- data/_sass/github-docs.scss +0 -227
- data/_sass/primer-base/base.scss +0 -84
- data/_sass/primer-base/index.scss +0 -3
- data/_sass/primer-base/normalize.scss +0 -421
- data/_sass/primer-base/typography-base.scss +0 -86
- data/_sass/primer-layout/columns.scss +0 -54
- data/_sass/primer-layout/container.scss +0 -30
- data/_sass/primer-layout/grid-offset.scss +0 -19
- data/_sass/primer-layout/grid.scss +0 -64
- data/_sass/primer-layout/index.scss +0 -4
- data/_sass/primer-markdown/blob-csv.scss +0 -27
- data/_sass/primer-markdown/code.scss +0 -63
- data/_sass/primer-markdown/headings.scss +0 -65
- data/_sass/primer-markdown/images.scss +0 -119
- data/_sass/primer-markdown/index.scss +0 -7
- data/_sass/primer-markdown/lists.scss +0 -76
- data/_sass/primer-markdown/markdown-body.scss +0 -106
- data/_sass/primer-markdown/tables.scss +0 -33
- data/_sass/primer-support/index.scss +0 -11
- data/_sass/primer-support/mixins/buttons.scss +0 -160
- data/_sass/primer-support/mixins/layout.scss +0 -58
- data/_sass/primer-support/mixins/misc.scss +0 -29
- data/_sass/primer-support/mixins/typography.scss +0 -84
- data/_sass/primer-support/variables/color-system.scss +0 -114
- data/_sass/primer-support/variables/colors.scss +0 -67
- data/_sass/primer-support/variables/layout.scss +0 -78
- data/_sass/primer-support/variables/misc.scss +0 -40
- data/_sass/primer-support/variables/typography.scss +0 -43
- data/_sass/primer-utilities/animations.scss +0 -184
- data/_sass/primer-utilities/borders.scss +0 -100
- data/_sass/primer-utilities/box-shadow.scss +0 -26
- data/_sass/primer-utilities/colors.scss +0 -106
- data/_sass/primer-utilities/details.scss +0 -18
- data/_sass/primer-utilities/flexbox.scss +0 -52
- data/_sass/primer-utilities/index.scss +0 -13
- data/_sass/primer-utilities/layout.scss +0 -85
- data/_sass/primer-utilities/margin.scss +0 -53
- data/_sass/primer-utilities/padding.scss +0 -54
- data/_sass/primer-utilities/typography.scss +0 -215
- data/_sass/primer-utilities/visibility-display.scss +0 -87
- data/_sass/rouge.scss +0 -209
@@ -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
|
-
}
|
@@ -1,106 +0,0 @@
|
|
1
|
-
// All of our block level items should have the same margin
|
2
|
-
// stylelint-disable selector-max-type
|
3
|
-
|
4
|
-
// This is styling for generic markdownized text. Anything you put in a
|
5
|
-
// container with .markdown-body on it should render generally well. It also
|
6
|
-
// includes some GitHub Flavored Markdown specific styling (like @mentions)
|
7
|
-
.markdown-body {
|
8
|
-
font-family: $body-font;
|
9
|
-
font-size: $h4-size;
|
10
|
-
line-height: $body-line-height;
|
11
|
-
word-wrap: break-word;
|
12
|
-
|
13
|
-
// Clearfix on the markdown body
|
14
|
-
&::before {
|
15
|
-
display: table;
|
16
|
-
content: "";
|
17
|
-
}
|
18
|
-
|
19
|
-
&::after {
|
20
|
-
display: table;
|
21
|
-
clear: both;
|
22
|
-
content: "";
|
23
|
-
}
|
24
|
-
|
25
|
-
> *:first-child {
|
26
|
-
margin-top: 0 !important;
|
27
|
-
}
|
28
|
-
|
29
|
-
> *:last-child {
|
30
|
-
margin-bottom: 0 !important;
|
31
|
-
}
|
32
|
-
|
33
|
-
// Anchors like <a name="examples">. These sometimes end up wrapped around
|
34
|
-
// text when users mistakenly forget to close the tag or use self-closing tag
|
35
|
-
// syntax. We don't want them to appear like links.
|
36
|
-
// FIXME: a:not(:link):not(:visited) would be a little clearer here (and
|
37
|
-
// possibly faster to match), but it breaks styling of <a href> elements due
|
38
|
-
// to https://bugs.webkit.org/show_bug.cgi?id=142737.
|
39
|
-
a:not([href]) {
|
40
|
-
color: inherit;
|
41
|
-
text-decoration: none;
|
42
|
-
}
|
43
|
-
|
44
|
-
// Link Colors
|
45
|
-
.absent {
|
46
|
-
color: $red-600;
|
47
|
-
}
|
48
|
-
|
49
|
-
.anchor {
|
50
|
-
float: left;
|
51
|
-
padding-right: $spacer-1;
|
52
|
-
margin-left: -20px;
|
53
|
-
line-height: $lh-condensed-ultra;
|
54
|
-
|
55
|
-
&:focus {
|
56
|
-
outline: none;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
p,
|
61
|
-
blockquote,
|
62
|
-
ul,
|
63
|
-
ol,
|
64
|
-
dl,
|
65
|
-
table,
|
66
|
-
pre {
|
67
|
-
margin-top: 0;
|
68
|
-
margin-bottom: $spacer-3;
|
69
|
-
}
|
70
|
-
|
71
|
-
hr {
|
72
|
-
height: $em-spacer-3;
|
73
|
-
padding: 0;
|
74
|
-
margin: $spacer-4 0;
|
75
|
-
background-color: $gray-200;
|
76
|
-
border: 0;
|
77
|
-
}
|
78
|
-
|
79
|
-
blockquote {
|
80
|
-
padding: 0 1em;
|
81
|
-
color: $gray-500;
|
82
|
-
border-left: 0.25em solid lighten($gray-300, 5%);
|
83
|
-
|
84
|
-
> :first-child {
|
85
|
-
margin-top: 0;
|
86
|
-
}
|
87
|
-
|
88
|
-
> :last-child {
|
89
|
-
margin-bottom: 0;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
kbd {
|
94
|
-
display: inline-block;
|
95
|
-
padding: 3px 5px;
|
96
|
-
font-size: 11px;
|
97
|
-
line-height: 10px;
|
98
|
-
color: $gray-700;
|
99
|
-
vertical-align: middle;
|
100
|
-
background-color: $gray-000;
|
101
|
-
border: solid 1px darken($gray-300, 4%);
|
102
|
-
border-bottom-color: $gray-400;
|
103
|
-
border-radius: 3px;
|
104
|
-
box-shadow: inset 0 -1px 0 $gray-400;
|
105
|
-
}
|
106
|
-
}
|
@@ -1,33 +0,0 @@
|
|
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
|
-
|
10
|
-
th {
|
11
|
-
font-weight: $font-weight-bold;
|
12
|
-
}
|
13
|
-
|
14
|
-
th,
|
15
|
-
td {
|
16
|
-
padding: 6px 13px;
|
17
|
-
border: 1px solid lighten($gray-300, 5%);
|
18
|
-
}
|
19
|
-
|
20
|
-
tr {
|
21
|
-
background-color: $bg-white;
|
22
|
-
border-top: 1px solid darken($gray-300, 4%);
|
23
|
-
|
24
|
-
&:nth-child(2n) {
|
25
|
-
background-color: $gray-100;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
img {
|
30
|
-
background-color: transparent;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
// variables
|
2
|
-
@import "./variables/typography.scss";
|
3
|
-
@import "./variables/colors.scss";
|
4
|
-
@import "./variables/layout.scss";
|
5
|
-
@import "./variables/misc.scss";
|
6
|
-
|
7
|
-
// mixins
|
8
|
-
@import "./mixins/typography.scss";
|
9
|
-
@import "./mixins/layout.scss";
|
10
|
-
@import "./mixins/buttons.scss";
|
11
|
-
@import "./mixins/misc.scss";
|
@@ -1,160 +0,0 @@
|
|
1
|
-
// stylelint-disable block-closing-brace-newline-after
|
2
|
-
|
3
|
-
// Button color generator for primary and themed buttons
|
4
|
-
|
5
|
-
// New button hotness
|
6
|
-
@mixin btn-solid($color, $bg, $bg2) {
|
7
|
-
color: $color;
|
8
|
-
background-color: $bg2;
|
9
|
-
background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
|
10
|
-
|
11
|
-
@if $bg == $gray-000 {
|
12
|
-
&:focus,
|
13
|
-
&.focus {
|
14
|
-
box-shadow: $btn-input-focus-shadow;
|
15
|
-
}
|
16
|
-
|
17
|
-
&:hover,
|
18
|
-
&.hover {
|
19
|
-
background-color: darken($bg2, 3%);
|
20
|
-
background-image: linear-gradient(-180deg, darken($bg, 3%) 0%, darken($bg2, 3%) 90%);
|
21
|
-
background-position: 0 -$em-spacer-5;
|
22
|
-
border-color: rgba($black, 0.35);
|
23
|
-
}
|
24
|
-
|
25
|
-
&:active,
|
26
|
-
&.selected,
|
27
|
-
[open] > & {
|
28
|
-
background-color: darken(desaturate($bg, 10%), 6%);
|
29
|
-
background-image: none;
|
30
|
-
border-color: rgba($black, 0.35); // repeat to avoid shift on click-drag off of button
|
31
|
-
box-shadow: $btn-active-shadow;
|
32
|
-
}
|
33
|
-
|
34
|
-
&:disabled,
|
35
|
-
&.disabled {
|
36
|
-
color: rgba($color, 0.4);
|
37
|
-
background-color: $bg2;
|
38
|
-
background-image: none;
|
39
|
-
border-color: transparentize($black, 0.8); // back to default .btn
|
40
|
-
box-shadow: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
} @else {
|
44
|
-
&:focus,
|
45
|
-
&.focus {
|
46
|
-
box-shadow: 0 0 0 0.2em rgba($bg, 0.4);
|
47
|
-
}
|
48
|
-
|
49
|
-
&:hover,
|
50
|
-
&.hover {
|
51
|
-
background-color: darken($bg2, 2%);
|
52
|
-
background-image: linear-gradient(-180deg, darken($bg, 2%) 0%, darken($bg2, 2%) 90%);
|
53
|
-
background-position: 0 -$em-spacer-5;
|
54
|
-
border-color: $black-fade-50;
|
55
|
-
}
|
56
|
-
|
57
|
-
&:active,
|
58
|
-
&.selected,
|
59
|
-
[open] > & {
|
60
|
-
background-color: darken(mix($bg, $bg2, 50%), 7%);
|
61
|
-
background-image: none;
|
62
|
-
border-color: $black-fade-50; // repeat to avoid shift on click-drag off of button
|
63
|
-
box-shadow: $btn-active-shadow;
|
64
|
-
}
|
65
|
-
|
66
|
-
&:disabled,
|
67
|
-
&.disabled {
|
68
|
-
color: rgba($color, 0.75);
|
69
|
-
background-color: mix($bg2, $white, 50%);
|
70
|
-
background-image: none;
|
71
|
-
border-color: transparentize($black, 0.8); // repeat .btn default to avoid shift on click-drag off of button
|
72
|
-
box-shadow: none;
|
73
|
-
}
|
74
|
-
|
75
|
-
.Counter {
|
76
|
-
color: darken($bg, 8%);
|
77
|
-
background-color: $white;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
// Inverse button hover style
|
83
|
-
@mixin btn-inverse($color, $bg, $bg2) {
|
84
|
-
color: $color;
|
85
|
-
background-color: $bg;
|
86
|
-
background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
|
87
|
-
|
88
|
-
&:focus {
|
89
|
-
box-shadow: 0 0 0 0.2em rgba($color, 0.4);
|
90
|
-
}
|
91
|
-
|
92
|
-
&:hover {
|
93
|
-
color: $text-white;
|
94
|
-
background-color: $color;
|
95
|
-
background-image: linear-gradient(-180deg, lighten($color, 10%) 0%, $color 90%);
|
96
|
-
border-color: $black-fade-50;
|
97
|
-
|
98
|
-
.Counter {
|
99
|
-
color: $text-white;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
&:active,
|
104
|
-
&.selected,
|
105
|
-
[open] > & {
|
106
|
-
color: $text-white;
|
107
|
-
background-color: darken($color, 5%);
|
108
|
-
background-image: none;
|
109
|
-
border-color: $black-fade-50;
|
110
|
-
box-shadow: $btn-active-shadow;
|
111
|
-
}
|
112
|
-
|
113
|
-
&:disabled,
|
114
|
-
&.disabled {
|
115
|
-
color: rgba($color, 0.4);
|
116
|
-
background-color: $bg2;
|
117
|
-
background-image: none;
|
118
|
-
border-color: transparentize($black, 0.8); // back to default .btn
|
119
|
-
box-shadow: none;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
// Outline color generator for btn-outline to make the hover state inverse the text and bg colors.
|
124
|
-
@mixin btn-outline($text-color: $text-blue, $bg-color: $bg-white) {
|
125
|
-
color: $text-color;
|
126
|
-
background-color: $bg-color;
|
127
|
-
background-image: none;
|
128
|
-
|
129
|
-
.Counter {
|
130
|
-
background-color: rgba($black, 0.07);
|
131
|
-
}
|
132
|
-
|
133
|
-
&:hover,
|
134
|
-
&:active,
|
135
|
-
&.selected,
|
136
|
-
[open] > & {
|
137
|
-
color: $bg-color;
|
138
|
-
background-color: $text-color;
|
139
|
-
background-image: none;
|
140
|
-
border-color: $text-color;
|
141
|
-
|
142
|
-
.Counter {
|
143
|
-
color: $text-color;
|
144
|
-
background-color: $bg-color;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
&:focus {
|
149
|
-
border-color: $text-color;
|
150
|
-
box-shadow: 0 0 0 0.2em rgba($text-color, 0.4);
|
151
|
-
}
|
152
|
-
|
153
|
-
&:disabled,
|
154
|
-
&.disabled {
|
155
|
-
color: $black-fade-30;
|
156
|
-
background-color: $bg-white;
|
157
|
-
border-color: $black-fade-15;
|
158
|
-
box-shadow: none;
|
159
|
-
}
|
160
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
// Responsive media queries
|
2
|
-
|
3
|
-
@mixin breakpoint($breakpoint) {
|
4
|
-
@if $breakpoint == "" {
|
5
|
-
@content;
|
6
|
-
}
|
7
|
-
|
8
|
-
@else {
|
9
|
-
// Retrieves the value from the key
|
10
|
-
$value: map-get($breakpoints, $breakpoint);
|
11
|
-
|
12
|
-
// If the key exists in the map
|
13
|
-
@if $value != null {
|
14
|
-
// Prints a media query based on the value
|
15
|
-
@media (min-width: $value) {
|
16
|
-
@content;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
// If the key doesn't exist in the map
|
21
|
-
@else {
|
22
|
-
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
|
23
|
-
+ "Please make sure it is defined in `$breakpoints` map.";
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
// Retina media query
|
29
|
-
|
30
|
-
@mixin retina-media-query {
|
31
|
-
@media
|
32
|
-
only screen and (-webkit-min-device-pixel-ratio: 2),
|
33
|
-
only screen and (min--moz-device-pixel-ratio: 2),
|
34
|
-
only screen and (-moz-min-device-pixel-ratio: 2),
|
35
|
-
only screen and (-o-min-device-pixel-ratio: 2/1),
|
36
|
-
only screen and (min-device-pixel-ratio: 2),
|
37
|
-
only screen and (min-resolution: 192dpi),
|
38
|
-
only screen and (min-resolution: 2dppx) {
|
39
|
-
@content;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
// Clearfix
|
44
|
-
//
|
45
|
-
// Clears floats via mixin.
|
46
|
-
|
47
|
-
@mixin clearfix {
|
48
|
-
&::before {
|
49
|
-
display: table;
|
50
|
-
content: "";
|
51
|
-
}
|
52
|
-
|
53
|
-
&::after {
|
54
|
-
display: table;
|
55
|
-
clear: both;
|
56
|
-
content: "";
|
57
|
-
}
|
58
|
-
}
|