@papillonarts/css 0.6.0 → 0.7.0
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.
- package/LICENSE +1 -1
- package/build/primer/autocomplete/README.md +20 -0
- package/build/primer/autocomplete/index.scss +3 -0
- package/build/primer/autocomplete/suggester.scss +101 -0
- package/build/primer/avatars/README.md +20 -0
- package/build/primer/avatars/avatar-parent-child.scss +17 -0
- package/build/primer/avatars/circle-badge.scss +55 -0
- package/build/primer/avatars/index.scss +5 -0
- package/build/primer/base/README.md +20 -0
- package/build/primer/base/base.scss +9 -17
- package/build/primer/base/index.scss +1 -0
- package/build/primer/base/kbd.scss +8 -10
- package/build/primer/{color-modes/native.scss → base/native-colors.scss} +4 -2
- package/build/primer/base/normalize.scss +4 -3
- package/build/primer/base/typography-base.scss +4 -3
- package/build/primer/box/README.md +20 -0
- package/build/primer/box/box-overlay.scss +45 -0
- package/build/primer/box/index.scss +2 -0
- package/build/primer/branch-name/README.md +20 -0
- package/build/primer/branch-name/branch-name.scss +33 -0
- package/build/primer/branch-name/index.scss +3 -0
- package/build/primer/buttons/README.md +20 -0
- package/build/primer/buttons/button-group.scss +104 -0
- package/build/primer/buttons/button.scss +347 -0
- package/build/primer/buttons/index.scss +4 -0
- package/build/primer/buttons/misc.scss +244 -0
- package/build/primer/color-modes/index.scss +0 -1
- package/build/primer/color-modes/themes/dark.scss +1 -6
- package/build/primer/color-modes/themes/dark_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/dark_dimmed.scss +1 -6
- package/build/primer/color-modes/themes/dark_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/dark_tritanopia.scss +1 -6
- package/build/primer/color-modes/themes/light.scss +1 -6
- package/build/primer/color-modes/themes/light_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/light_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/light_tritanopia.scss +1 -6
- package/build/primer/core/README.md +20 -0
- package/build/primer/core/index.scss +18 -0
- package/build/primer/docs.scss +7 -0
- package/build/primer/forms/README.md +20 -0
- package/build/primer/forms/form-control.scss +286 -0
- package/build/primer/forms/form-group.scss +297 -0
- package/build/primer/forms/form-select.scss +47 -0
- package/build/primer/forms/index.scss +6 -0
- package/build/primer/forms/input-group.scss +81 -0
- package/build/primer/forms/radio-group.scss +68 -0
- package/build/primer/header/README.md +20 -0
- package/build/primer/header/header.scss +51 -0
- package/build/primer/header/index.scss +2 -0
- package/build/primer/index.scss +8 -3
- package/build/primer/labels/README.md +20 -0
- package/build/primer/labels/index.scss +3 -0
- package/build/primer/labels/issue-labels.scss +26 -0
- package/build/primer/labels/mixins.scss +44 -0
- package/build/primer/layout/README.md +20 -0
- package/build/primer/layout/app-frame.scss +156 -0
- package/build/primer/layout/container.scss +30 -0
- package/build/primer/layout/grid-offset.scss +19 -0
- package/build/primer/layout/grid.scss +77 -0
- package/build/primer/layout/index.scss +7 -0
- package/build/primer/layout/page-layout.scss +417 -0
- package/build/primer/layout/stack.scss +220 -0
- package/build/primer/loaders/README.md +20 -0
- package/build/primer/loaders/index.scss +2 -0
- package/build/primer/loaders/loaders.scss +19 -0
- package/build/primer/markdown/README.md +20 -0
- package/build/primer/markdown/blob-csv.scss +32 -0
- package/build/primer/markdown/code.scss +79 -0
- package/build/primer/markdown/footnotes.scss +59 -0
- package/build/primer/markdown/headings.scss +101 -0
- package/build/primer/markdown/images.scss +130 -0
- package/build/primer/markdown/index.scss +9 -0
- package/build/primer/markdown/lists.scss +101 -0
- package/build/primer/markdown/markdown-body.scss +101 -0
- package/build/primer/markdown/tables.scss +46 -0
- package/build/primer/marketing/README.md +20 -0
- package/build/primer/marketing/buttons/button.scss +171 -0
- package/build/primer/marketing/buttons/index.scss +3 -0
- package/build/primer/marketing/index.scss +8 -0
- package/build/primer/marketing/links/index.scss +3 -0
- package/build/primer/marketing/links/link.scss +51 -0
- package/build/primer/marketing/support/index.scss +2 -0
- package/build/primer/marketing/support/variables.scss +140 -0
- package/build/primer/marketing/type/index.scss +3 -0
- package/build/primer/marketing/type/typography.scss +140 -0
- package/build/primer/marketing/utilities/animations.scss +52 -0
- package/build/primer/marketing/utilities/borders.scss +4 -0
- package/build/primer/marketing/utilities/filters.scss +3 -0
- package/build/primer/marketing/utilities/index.scss +6 -0
- package/build/primer/marketing/utilities/layout.scss +58 -0
- package/build/primer/navigation/README.md +20 -0
- package/build/primer/navigation/filter-list.scss +86 -0
- package/build/primer/navigation/index.scss +5 -0
- package/build/primer/navigation/sidenav.scss +102 -0
- package/build/primer/navigation/subnav.scss +154 -0
- package/build/primer/pagination/README.md +20 -0
- package/build/primer/pagination/index.scss +3 -0
- package/build/primer/pagination/pagination.scss +157 -0
- package/build/primer/primitives/index.scss +10 -0
- package/build/primer/primitives/temp-typography-tokens.scss +22 -0
- package/build/primer/product/README.md +20 -0
- package/build/primer/product/index.scss +13 -0
- package/build/primer/select-menu/README.md +20 -0
- package/build/primer/select-menu/index.scss +3 -0
- package/build/primer/select-menu/select-menu.scss +486 -0
- package/build/primer/support/README.md +20 -0
- package/build/primer/support/mixins/color-modes.scss +89 -3
- package/build/primer/support/mixins/layout.scss +1 -2
- package/build/primer/support/mixins/misc.scss +15 -9
- package/build/primer/support/mixins/typography.scss +21 -2
- package/build/primer/support/variables/misc.scss +2 -2
- package/build/primer/support/variables/typography.scss +2 -2
- package/build/primer/table-object/index.scss +1 -0
- package/build/primer/table-object/table-object.scss +23 -0
- package/build/primer/toasts/README.md +20 -0
- package/build/primer/toasts/index.scss +2 -0
- package/build/primer/toasts/toasts.scss +129 -0
- package/build/primer/tooltips/README.md +20 -0
- package/build/primer/tooltips/index.scss +2 -0
- package/build/primer/tooltips/tooltips.scss +228 -0
- package/build/primer/truncate/truncate.scss +2 -66
- package/build/primer/utilities/README.md +20 -0
- package/build/primer/utilities/borders.scss +30 -21
- package/build/primer/utilities/box-shadow.scss +8 -6
- package/build/primer/utilities/colors.scss +59 -60
- package/build/primer/utilities/details.scss +2 -2
- package/build/primer/utilities/flexbox.scss +2 -2
- package/build/primer/utilities/layout.scss +8 -6
- package/build/primer/utilities/margin.scss +2 -5
- package/build/primer/utilities/padding.scss +8 -10
- package/build/primer/utilities/typography.scss +12 -11
- package/build/primer/utilities/visibility-display.scss +14 -12
- package/package.json +2 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// stylelint-disable selector-max-type
|
|
2
|
+
.markdown-body .csv-data {
|
|
3
|
+
td,
|
|
4
|
+
th {
|
|
5
|
+
// stylelint-disable-next-line primer/spacing
|
|
6
|
+
padding: 5px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
// stylelint-disable-next-line primer/typography
|
|
9
|
+
font-size: $font-size-small;
|
|
10
|
+
// stylelint-disable-next-line primer/typography
|
|
11
|
+
line-height: $lh-condensed-ultra;
|
|
12
|
+
text-align: left;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.blob-num {
|
|
17
|
+
// stylelint-disable-next-line primer/spacing
|
|
18
|
+
padding: 10px var(--base-size-8) 9px;
|
|
19
|
+
text-align: right;
|
|
20
|
+
background: var(--bgColor-default, var(--color-canvas-default));
|
|
21
|
+
border: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
tr { border-top: 0; }
|
|
25
|
+
|
|
26
|
+
th {
|
|
27
|
+
// stylelint-disable-next-line primer/typography
|
|
28
|
+
font-weight: $font-weight-bold;
|
|
29
|
+
background: var(--bgColor-muted, var(--color-canvas-subtle));
|
|
30
|
+
border-top: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// stylelint-disable selector-max-type
|
|
2
|
+
.markdown-body {
|
|
3
|
+
// Inline code snippets
|
|
4
|
+
code,
|
|
5
|
+
tt {
|
|
6
|
+
// stylelint-disable-next-line primer/spacing
|
|
7
|
+
padding: 0.2em 0.4em;
|
|
8
|
+
margin: 0;
|
|
9
|
+
// stylelint-disable-next-line primer/typography
|
|
10
|
+
font-size: 85%;
|
|
11
|
+
white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines
|
|
12
|
+
background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted));
|
|
13
|
+
// stylelint-disable-next-line primer/borders
|
|
14
|
+
border-radius: $border-radius;
|
|
15
|
+
|
|
16
|
+
br { display: none; }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
del code { text-decoration: inherit; }
|
|
20
|
+
|
|
21
|
+
samp {
|
|
22
|
+
// stylelint-disable-next-line primer/typography
|
|
23
|
+
font-size: 85%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
pre {
|
|
27
|
+
word-wrap: normal;
|
|
28
|
+
|
|
29
|
+
code {
|
|
30
|
+
// stylelint-disable-next-line primer/typography
|
|
31
|
+
font-size: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Code tags within code blocks (<pre>s)
|
|
35
|
+
> code {
|
|
36
|
+
padding: 0;
|
|
37
|
+
margin: 0;
|
|
38
|
+
word-break: normal;
|
|
39
|
+
white-space: pre;
|
|
40
|
+
background: transparent;
|
|
41
|
+
border: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.highlight {
|
|
46
|
+
margin-bottom: var(--base-size-16);
|
|
47
|
+
|
|
48
|
+
pre {
|
|
49
|
+
margin-bottom: 0;
|
|
50
|
+
word-break: normal;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.highlight pre,
|
|
55
|
+
pre {
|
|
56
|
+
padding: var(--base-size-16);
|
|
57
|
+
overflow: auto;
|
|
58
|
+
// stylelint-disable-next-line primer/typography
|
|
59
|
+
font-size: 85%;
|
|
60
|
+
// stylelint-disable-next-line primer/typography
|
|
61
|
+
line-height: 1.45;
|
|
62
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
63
|
+
background-color: var(--bgColor-muted, var(--color-canvas-subtle));
|
|
64
|
+
// stylelint-disable-next-line primer/borders
|
|
65
|
+
border-radius: $border-radius;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
pre code,
|
|
69
|
+
pre tt {
|
|
70
|
+
display: inline;
|
|
71
|
+
padding: 0;
|
|
72
|
+
margin: 0;
|
|
73
|
+
overflow: visible;
|
|
74
|
+
line-height: inherit;
|
|
75
|
+
word-wrap: normal;
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
border: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// stylelint-disable selector-max-type
|
|
2
|
+
// stylelint-disable selector-max-compound-selectors
|
|
3
|
+
|
|
4
|
+
.markdown-body {
|
|
5
|
+
[data-footnote-ref] {
|
|
6
|
+
&::before {
|
|
7
|
+
content: '[';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::after {
|
|
11
|
+
content: ']';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.footnotes {
|
|
16
|
+
// stylelint-disable-next-line primer/typography
|
|
17
|
+
font-size: $h6-size;
|
|
18
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
19
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
20
|
+
border-top: $border;
|
|
21
|
+
|
|
22
|
+
ol {
|
|
23
|
+
padding-left: var(--base-size-16);
|
|
24
|
+
|
|
25
|
+
ul {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
padding-left: var(--base-size-16);
|
|
28
|
+
margin-top: var(--base-size-16);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
li {
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
li:target::before {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: calc(var(--base-size-8) * -1);
|
|
39
|
+
right: calc(var(--base-size-8) * -1);
|
|
40
|
+
bottom: calc(var(--base-size-8) * -1);
|
|
41
|
+
left: calc(var(--base-size-24) * -1);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
content: '';
|
|
44
|
+
// stylelint-disable-next-line primer/borders, primer/colors, declaration-property-value-no-unknown
|
|
45
|
+
border: 2px $border-style var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
|
|
46
|
+
// stylelint-disable-next-line primer/borders
|
|
47
|
+
border-radius: $border-radius;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
li:target {
|
|
51
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.data-footnote-backref g-emoji {
|
|
55
|
+
// stylelint-disable-next-line primer/typography
|
|
56
|
+
font-family: monospace;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Needs refactoring
|
|
2
|
+
// stylelint-disable selector-max-compound-selectors, selector-max-specificity
|
|
3
|
+
// stylelint-disable selector-max-type
|
|
4
|
+
.markdown-body {
|
|
5
|
+
// Headings
|
|
6
|
+
h1,
|
|
7
|
+
h2,
|
|
8
|
+
h3,
|
|
9
|
+
h4,
|
|
10
|
+
h5,
|
|
11
|
+
h6 {
|
|
12
|
+
margin-top: var(--base-size-24);
|
|
13
|
+
margin-bottom: var(--base-size-16);
|
|
14
|
+
// stylelint-disable-next-line primer/typography
|
|
15
|
+
font-weight: $font-weight-bold;
|
|
16
|
+
// stylelint-disable-next-line primer/typography
|
|
17
|
+
line-height: $lh-condensed;
|
|
18
|
+
|
|
19
|
+
.octicon-link {
|
|
20
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
21
|
+
vertical-align: middle;
|
|
22
|
+
visibility: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover .anchor {
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
|
|
28
|
+
.octicon-link {
|
|
29
|
+
visibility: visible;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
tt,
|
|
34
|
+
code {
|
|
35
|
+
// stylelint-disable-next-line primer/spacing
|
|
36
|
+
padding: 0 0.2em;
|
|
37
|
+
font-size: inherit;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
h1 {
|
|
42
|
+
// stylelint-disable-next-line primer/spacing
|
|
43
|
+
padding-bottom: 0.3em;
|
|
44
|
+
// stylelint-disable-next-line primer/typography
|
|
45
|
+
font-size: 2em;
|
|
46
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
47
|
+
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h2 {
|
|
51
|
+
// stylelint-disable-next-line primer/spacing
|
|
52
|
+
padding-bottom: 0.3em;
|
|
53
|
+
// stylelint-disable-next-line primer/typography
|
|
54
|
+
font-size: 1.5em;
|
|
55
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
56
|
+
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
h3 {
|
|
60
|
+
// stylelint-disable-next-line primer/typography
|
|
61
|
+
font-size: 1.25em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h4 {
|
|
65
|
+
// stylelint-disable-next-line primer/typography
|
|
66
|
+
font-size: 1em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
h5 {
|
|
70
|
+
// stylelint-disable-next-line primer/typography
|
|
71
|
+
font-size: 0.875em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
h6 {
|
|
75
|
+
// stylelint-disable-next-line primer/typography
|
|
76
|
+
font-size: 0.85em;
|
|
77
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
summary {
|
|
81
|
+
h1,
|
|
82
|
+
h2,
|
|
83
|
+
h3,
|
|
84
|
+
h4,
|
|
85
|
+
h5,
|
|
86
|
+
h6 {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
|
|
89
|
+
.anchor {
|
|
90
|
+
// stylelint-disable-next-line primer/spacing
|
|
91
|
+
margin-left: -40px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
h1,
|
|
96
|
+
h2 {
|
|
97
|
+
padding-bottom: 0;
|
|
98
|
+
border-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Need to target base styles
|
|
2
|
+
// stylelint-disable selector-max-compound-selectors, selector-no-qualifying-type
|
|
3
|
+
// stylelint-disable selector-max-type
|
|
4
|
+
.markdown-body {
|
|
5
|
+
// Images & Stuff
|
|
6
|
+
img {
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
// because we put padding on the images to hide header lines, and some people
|
|
9
|
+
// specify the width of their images in their markdown.
|
|
10
|
+
box-sizing: content-box;
|
|
11
|
+
|
|
12
|
+
&[align='right'] {
|
|
13
|
+
// stylelint-disable-next-line primer/spacing
|
|
14
|
+
padding-left: 20px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[align='left'] {
|
|
18
|
+
// stylelint-disable-next-line primer/spacing
|
|
19
|
+
padding-right: 20px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.emoji {
|
|
24
|
+
max-width: none;
|
|
25
|
+
vertical-align: text-top;
|
|
26
|
+
// Override `<img>` styles so Emojis don't clash with zebra striping in our tables
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Gollum Image Tags
|
|
31
|
+
|
|
32
|
+
// Framed
|
|
33
|
+
span.frame {
|
|
34
|
+
display: block;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
|
|
37
|
+
> span {
|
|
38
|
+
display: block;
|
|
39
|
+
float: left;
|
|
40
|
+
width: auto;
|
|
41
|
+
// stylelint-disable-next-line primer/spacing
|
|
42
|
+
padding: 7px;
|
|
43
|
+
// stylelint-disable-next-line primer/spacing
|
|
44
|
+
margin: 13px 0 0;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
47
|
+
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
span img {
|
|
51
|
+
display: block;
|
|
52
|
+
float: left;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
span span {
|
|
56
|
+
display: block;
|
|
57
|
+
// stylelint-disable-next-line primer/spacing
|
|
58
|
+
padding: 5px 0 0;
|
|
59
|
+
clear: both;
|
|
60
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
span.align-center {
|
|
65
|
+
display: block;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
clear: both;
|
|
68
|
+
|
|
69
|
+
> span {
|
|
70
|
+
display: block;
|
|
71
|
+
// stylelint-disable-next-line primer/spacing
|
|
72
|
+
margin: 13px auto 0;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
span img {
|
|
78
|
+
margin: 0 auto;
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
span.align-right {
|
|
84
|
+
display: block;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
clear: both;
|
|
87
|
+
|
|
88
|
+
> span {
|
|
89
|
+
display: block;
|
|
90
|
+
// stylelint-disable-next-line primer/spacing
|
|
91
|
+
margin: 13px 0 0;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-align: right;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
span img {
|
|
97
|
+
margin: 0;
|
|
98
|
+
text-align: right;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
span.float-left {
|
|
103
|
+
display: block;
|
|
104
|
+
float: left;
|
|
105
|
+
// stylelint-disable-next-line primer/spacing
|
|
106
|
+
margin-right: 13px;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
|
|
109
|
+
span {
|
|
110
|
+
// stylelint-disable-next-line primer/spacing
|
|
111
|
+
margin: 13px 0 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
span.float-right {
|
|
116
|
+
display: block;
|
|
117
|
+
float: right;
|
|
118
|
+
// stylelint-disable-next-line primer/spacing
|
|
119
|
+
margin-left: 13px;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
|
|
122
|
+
> span {
|
|
123
|
+
display: block;
|
|
124
|
+
// stylelint-disable-next-line primer/spacing
|
|
125
|
+
margin: 13px auto 0;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
text-align: right;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Base styles
|
|
2
|
+
// stylelint-disable selector-no-qualifying-type
|
|
3
|
+
// stylelint-disable selector-max-type
|
|
4
|
+
.markdown-body {
|
|
5
|
+
// Lists, Blockquotes & Such
|
|
6
|
+
ul,
|
|
7
|
+
ol {
|
|
8
|
+
// stylelint-disable-next-line primer/spacing
|
|
9
|
+
padding-left: 2em;
|
|
10
|
+
|
|
11
|
+
&.no-list {
|
|
12
|
+
padding: 0;
|
|
13
|
+
list-style-type: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ol[type='a s'] {
|
|
18
|
+
list-style-type: lower-alpha;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ol[type='A s'] {
|
|
22
|
+
list-style-type: upper-alpha;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
ol[type='i s'] {
|
|
26
|
+
list-style-type: lower-roman;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
ol[type='I s'] {
|
|
30
|
+
list-style-type: upper-roman;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
ol[type='1'] {
|
|
34
|
+
list-style-type: decimal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Reset <ol> style to decimal (HTML default) specifically for AsciiDoc
|
|
38
|
+
// <div><ol> construction (doesn't affect MarkDown)
|
|
39
|
+
div > ol:not([type]) {
|
|
40
|
+
list-style-type: decimal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Did someone complain about list spacing? Encourage them
|
|
44
|
+
// to create the spacing with their markdown formatting.
|
|
45
|
+
// List behavior should be controled by the markup, not the css.
|
|
46
|
+
//
|
|
47
|
+
// For lists with padding between items, use blank
|
|
48
|
+
// lines between items. This will generate paragraphs with
|
|
49
|
+
// padding to space things out.
|
|
50
|
+
//
|
|
51
|
+
// - item
|
|
52
|
+
//
|
|
53
|
+
// - item
|
|
54
|
+
//
|
|
55
|
+
// - item
|
|
56
|
+
//
|
|
57
|
+
// For list without padding, don't use blank lines.
|
|
58
|
+
//
|
|
59
|
+
// - item
|
|
60
|
+
// - item
|
|
61
|
+
// - item
|
|
62
|
+
//
|
|
63
|
+
// Modifying the css to emulate these behaviors merely brakes
|
|
64
|
+
// one case in the process of solving another. Don't change
|
|
65
|
+
// this unless it's really really a bug.
|
|
66
|
+
ul ul,
|
|
67
|
+
ul ol,
|
|
68
|
+
ol ol,
|
|
69
|
+
ol ul {
|
|
70
|
+
margin-top: 0;
|
|
71
|
+
margin-bottom: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
li > p {
|
|
75
|
+
margin-top: var(--base-size-16);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
li + li {
|
|
79
|
+
// stylelint-disable-next-line primer/spacing
|
|
80
|
+
margin-top: $em-spacer-3;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
dl {
|
|
84
|
+
padding: 0;
|
|
85
|
+
|
|
86
|
+
dt {
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin-top: var(--base-size-16);
|
|
89
|
+
// stylelint-disable-next-line primer/typography
|
|
90
|
+
font-size: 1em;
|
|
91
|
+
font-style: italic;
|
|
92
|
+
// stylelint-disable-next-line primer/typography
|
|
93
|
+
font-weight: $font-weight-bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
dd {
|
|
97
|
+
padding: 0 var(--base-size-16);
|
|
98
|
+
margin-bottom: var(--base-size-16);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
// stylelint-disable-next-line primer/typography
|
|
9
|
+
font-family: $body-font;
|
|
10
|
+
// stylelint-disable-next-line primer/typography
|
|
11
|
+
font-size: $h4-size;
|
|
12
|
+
// stylelint-disable-next-line primer/typography
|
|
13
|
+
line-height: $body-line-height;
|
|
14
|
+
word-wrap: break-word;
|
|
15
|
+
|
|
16
|
+
// Clearfix on the markdown body
|
|
17
|
+
&::before {
|
|
18
|
+
display: table;
|
|
19
|
+
content: '';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&::after {
|
|
23
|
+
display: table;
|
|
24
|
+
clear: both;
|
|
25
|
+
content: '';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> *:first-child {
|
|
29
|
+
margin-top: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> *:last-child {
|
|
33
|
+
margin-bottom: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Anchors like <a name="examples">. These sometimes end up wrapped around
|
|
37
|
+
// text when users mistakenly forget to close the tag or use self-closing tag
|
|
38
|
+
// syntax. We don't want them to appear like links.
|
|
39
|
+
// FIXME: a:not(:link):not(:visited) would be a little clearer here (and
|
|
40
|
+
// possibly faster to match), but it breaks styling of <a href> elements due
|
|
41
|
+
// to https://bugs.webkit.org/show_bug.cgi?id=142737.
|
|
42
|
+
a:not([href]) {
|
|
43
|
+
color: inherit;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Link Colors
|
|
48
|
+
.absent {
|
|
49
|
+
color: var(--fgColor-danger, var(--color-danger-fg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.anchor {
|
|
53
|
+
float: left;
|
|
54
|
+
padding-right: var(--base-size-4);
|
|
55
|
+
// stylelint-disable-next-line primer/spacing
|
|
56
|
+
margin-left: -20px;
|
|
57
|
+
// stylelint-disable-next-line primer/typography
|
|
58
|
+
line-height: $lh-condensed-ultra;
|
|
59
|
+
|
|
60
|
+
&:focus {
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
p,
|
|
66
|
+
blockquote,
|
|
67
|
+
ul,
|
|
68
|
+
ol,
|
|
69
|
+
dl,
|
|
70
|
+
table,
|
|
71
|
+
pre,
|
|
72
|
+
details {
|
|
73
|
+
margin-top: 0;
|
|
74
|
+
margin-bottom: var(--base-size-16);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
hr {
|
|
78
|
+
height: $em-spacer-3;
|
|
79
|
+
padding: 0;
|
|
80
|
+
margin: var(--base-size-24) 0;
|
|
81
|
+
// stylelint-disable-next-line primer/colors
|
|
82
|
+
background-color: var(--borderColor-default, var(--color-border-default));
|
|
83
|
+
border: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
blockquote {
|
|
87
|
+
// stylelint-disable-next-line primer/spacing
|
|
88
|
+
padding: 0 1em;
|
|
89
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
90
|
+
// stylelint-disable-next-line primer/borders, primer/colors, declaration-property-value-no-unknown
|
|
91
|
+
border-left: 0.25em $border-style var(--borderColor-default, var(--color-border-default));
|
|
92
|
+
|
|
93
|
+
> :first-child {
|
|
94
|
+
margin-top: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
> :last-child {
|
|
98
|
+
margin-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Needs refactoring
|
|
2
|
+
// stylelint-disable selector-max-type, selector-max-compound-selectors
|
|
3
|
+
.markdown-body {
|
|
4
|
+
// Tables
|
|
5
|
+
table {
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%; // keep for backwards compatibility
|
|
8
|
+
width: max-content;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
font-variant: tabular-nums;
|
|
12
|
+
|
|
13
|
+
th {
|
|
14
|
+
// stylelint-disable-next-line primer/typography
|
|
15
|
+
font-weight: $font-weight-bold;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
th,
|
|
19
|
+
td {
|
|
20
|
+
// stylelint-disable-next-line primer/spacing
|
|
21
|
+
padding: 6px 13px;
|
|
22
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
23
|
+
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
td {
|
|
27
|
+
> :last-child {
|
|
28
|
+
margin-bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
tr {
|
|
33
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
34
|
+
// stylelint-disable-next-line primer/borders, primer/colors
|
|
35
|
+
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
36
|
+
|
|
37
|
+
&:nth-child(2n) {
|
|
38
|
+
background-color: var(--bgColor-muted, var(--color-canvas-subtle));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
img {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
bundle: "marketing"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Primer CSS: `marketing` bundle
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
|
|
11
|
+
|
|
12
|
+
```scss
|
|
13
|
+
@import "@primer/css/marketing/index.scss";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Build
|
|
17
|
+
|
|
18
|
+
The `@primer/css` npm package includes a standalone CSS build of this module in `dist/marketing.css`.
|
|
19
|
+
|
|
20
|
+
[scss]: https://sass-lang.com/documentation/syntax#scss
|