@primer/css 21.3.6-rc.13cf9bf9 → 21.4.0-rc.264b5078
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/CHANGELOG.md +6 -0
- package/autocomplete/suggester.scss +9 -0
- package/base/base.scss +2 -0
- package/base/kbd.scss +2 -0
- package/base/typography-base.scss +4 -0
- package/box/box-overlay.scss +3 -0
- package/branch-name/branch-name.scss +2 -0
- package/buttons/button-group.scss +12 -0
- package/buttons/button.scss +7 -0
- package/buttons/misc.scss +12 -0
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/meta.json +53 -53
- package/dist/navigation.css +1 -1
- package/dist/navigation.css.map +1 -1
- package/dist/overlay.css +1 -1
- package/dist/overlay.css.map +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +3 -3
- package/dist/primer.css.map +1 -1
- package/dist/primitives.css +1 -1
- package/dist/primitives.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/autocomplete.json +1 -1
- package/dist/stats/avatars.json +1 -1
- package/dist/stats/box.json +1 -1
- package/dist/stats/breadcrumb.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/forms.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/links.json +1 -1
- package/dist/stats/markdown.json +1 -1
- package/dist/stats/navigation.json +1 -1
- package/dist/stats/overlay.json +1 -1
- package/dist/stats/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/toggle-switch.json +1 -1
- package/dist/stats/truncate.json +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/toggle-switch.css +1 -1
- package/dist/toggle-switch.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css.map +1 -1
- package/forms/form-control.scss +18 -0
- package/forms/form-group.scss +8 -0
- package/forms/form-select.scss +1 -0
- package/forms/radio-group.scss +6 -0
- package/header/header.scss +4 -0
- package/labels/issue-labels.scss +2 -0
- package/labels/mixins.scss +7 -0
- package/layout/app-frame.scss +0 -1
- package/layout/page-layout.scss +1 -0
- package/layout/stack.scss +2 -2
- package/markdown/blob-csv.scss +3 -0
- package/markdown/code.scss +2 -0
- package/markdown/footnotes.scss +4 -0
- package/markdown/headings.scss +5 -0
- package/markdown/images.scss +1 -1
- package/markdown/lists.scss +2 -0
- package/markdown/markdown-body.scss +4 -0
- package/markdown/tables.scss +3 -0
- package/marketing/buttons/button.scss +6 -0
- package/marketing/type/typography.scss +22 -0
- package/navigation/filter-list.scss +4 -0
- package/navigation/sidenav.scss +2 -0
- package/navigation/subnav.scss +7 -0
- package/package.json +4 -4
- package/pagination/pagination.scss +2 -0
- package/select-menu/select-menu.scss +23 -0
- package/support/mixins/misc.scss +3 -0
- package/support/mixins/typography.scss +21 -0
- package/toasts/toasts.scss +2 -0
- package/tooltips/tooltips.scss +1 -1
package/markdown/code.scss
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
font-size: 85%;
|
|
11
11
|
white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines
|
|
12
12
|
background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted));
|
|
13
|
+
// stylelint-disable-next-line primer/borders
|
|
13
14
|
border-radius: $border-radius;
|
|
14
15
|
|
|
15
16
|
br { display: none; }
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
line-height: 1.45;
|
|
61
62
|
color: var(--fgColor-default, var(--color-fg-default));
|
|
62
63
|
background-color: var(--bgColor-muted, var(--color-canvas-subtle));
|
|
64
|
+
// stylelint-disable-next-line primer/borders
|
|
63
65
|
border-radius: $border-radius;
|
|
64
66
|
}
|
|
65
67
|
|
package/markdown/footnotes.scss
CHANGED
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.footnotes {
|
|
16
|
+
// stylelint-disable-next-line primer/typography
|
|
16
17
|
font-size: $h6-size;
|
|
17
18
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
19
|
+
// stylelint-disable-next-line primer/borders
|
|
18
20
|
border-top: $border;
|
|
19
21
|
|
|
20
22
|
ol {
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
content: '';
|
|
42
44
|
// stylelint-disable-next-line primer/borders
|
|
43
45
|
border: 2px $border-style var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
|
|
46
|
+
// stylelint-disable-next-line primer/borders
|
|
44
47
|
border-radius: $border-radius;
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
.data-footnote-backref g-emoji {
|
|
55
|
+
// stylelint-disable-next-line primer/typography
|
|
52
56
|
font-family: monospace;
|
|
53
57
|
}
|
|
54
58
|
}
|
package/markdown/headings.scss
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
h6 {
|
|
12
12
|
margin-top: var(--base-size-24);
|
|
13
13
|
margin-bottom: var(--base-size-16);
|
|
14
|
+
// stylelint-disable-next-line primer/typography
|
|
14
15
|
font-weight: $font-weight-bold;
|
|
16
|
+
// stylelint-disable-next-line primer/typography
|
|
15
17
|
line-height: $lh-condensed;
|
|
16
18
|
|
|
17
19
|
.octicon-link {
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
padding-bottom: 0.3em;
|
|
42
44
|
// stylelint-disable-next-line primer/typography
|
|
43
45
|
font-size: 2em;
|
|
46
|
+
// stylelint-disable-next-line primer/borders
|
|
44
47
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
padding-bottom: 0.3em;
|
|
50
53
|
// stylelint-disable-next-line primer/typography
|
|
51
54
|
font-size: 1.5em;
|
|
55
|
+
// stylelint-disable-next-line primer/borders
|
|
52
56
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -58,6 +62,7 @@
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
h4 {
|
|
65
|
+
// stylelint-disable-next-line primer/typography
|
|
61
66
|
font-size: 1em;
|
|
62
67
|
}
|
|
63
68
|
|
package/markdown/images.scss
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
// because we put padding on the images to hide header lines, and some people
|
|
9
9
|
// specify the width of their images in their markdown.
|
|
10
10
|
box-sizing: content-box;
|
|
11
|
-
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
12
11
|
|
|
13
12
|
&[align='right'] {
|
|
14
13
|
// stylelint-disable-next-line primer/spacing
|
|
@@ -44,6 +43,7 @@
|
|
|
44
43
|
// stylelint-disable-next-line primer/spacing
|
|
45
44
|
margin: 13px 0 0;
|
|
46
45
|
overflow: hidden;
|
|
46
|
+
// stylelint-disable-next-line primer/borders
|
|
47
47
|
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
|
|
48
48
|
}
|
|
49
49
|
|
package/markdown/lists.scss
CHANGED
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
// container with .markdown-body on it should render generally well. It also
|
|
6
6
|
// includes some GitHub Flavored Markdown specific styling (like @mentions)
|
|
7
7
|
.markdown-body {
|
|
8
|
+
// stylelint-disable-next-line primer/typography
|
|
8
9
|
font-family: $body-font;
|
|
10
|
+
// stylelint-disable-next-line primer/typography
|
|
9
11
|
font-size: $h4-size;
|
|
12
|
+
// stylelint-disable-next-line primer/typography
|
|
10
13
|
line-height: $body-line-height;
|
|
11
14
|
word-wrap: break-word;
|
|
12
15
|
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
padding-right: var(--base-size-4);
|
|
52
55
|
// stylelint-disable-next-line primer/spacing
|
|
53
56
|
margin-left: -20px;
|
|
57
|
+
// stylelint-disable-next-line primer/typography
|
|
54
58
|
line-height: $lh-condensed-ultra;
|
|
55
59
|
|
|
56
60
|
&:focus {
|
package/markdown/tables.scss
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
overflow: auto;
|
|
11
11
|
|
|
12
12
|
th {
|
|
13
|
+
// stylelint-disable-next-line primer/typography
|
|
13
14
|
font-weight: $font-weight-bold;
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
td {
|
|
18
19
|
// stylelint-disable-next-line primer/spacing
|
|
19
20
|
padding: 6px 13px;
|
|
21
|
+
// stylelint-disable-next-line primer/borders
|
|
20
22
|
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
|
|
29
31
|
tr {
|
|
30
32
|
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
33
|
+
// stylelint-disable-next-line primer/borders
|
|
31
34
|
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
32
35
|
|
|
33
36
|
&:nth-child(2n) {
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
padding: 0.9rem 1.5rem 1.1rem;
|
|
7
7
|
// stylelint-disable-next-line primer/typography
|
|
8
8
|
font-size: 1rem;
|
|
9
|
+
// stylelint-disable-next-line primer/typography
|
|
9
10
|
font-weight: $font-weight-bold;
|
|
11
|
+
// stylelint-disable-next-line primer/typography
|
|
10
12
|
line-height: 1;
|
|
11
13
|
color: var(--bgColor-default, var(--color-canvas-default));
|
|
12
14
|
text-align: center;
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
|
|
42
44
|
&:hover {
|
|
43
45
|
text-decoration: none;
|
|
46
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
44
47
|
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
.btn-muted-mktg {
|
|
87
90
|
color: var(--fgColor-default, var(--color-fg-default)) !important;
|
|
88
91
|
background: none !important;
|
|
92
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
89
93
|
box-shadow: var(--color-mktg-btn-shadow-outline);
|
|
90
94
|
|
|
91
95
|
&::before {
|
|
@@ -93,6 +97,7 @@
|
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
&:hover {
|
|
100
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
96
101
|
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
|
97
102
|
}
|
|
98
103
|
|
|
@@ -117,6 +122,7 @@
|
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
&:hover {
|
|
125
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
120
126
|
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
|
121
127
|
}
|
|
122
128
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.h4-mktg,
|
|
7
7
|
.h5-mktg,
|
|
8
8
|
.h6-mktg {
|
|
9
|
+
// stylelint-disable-next-line primer/typography
|
|
9
10
|
font-family: $font-mktg;
|
|
10
11
|
font-feature-settings: $mktg-font-feature-settings;
|
|
11
12
|
// stylelint-disable-next-line primer/typography
|
|
@@ -19,14 +20,19 @@
|
|
|
19
20
|
$pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
|
|
20
21
|
$pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
|
|
21
22
|
|
|
23
|
+
// stylelint-disable-next-line primer/typography
|
|
22
24
|
font-size: map-get($pairing, 'size') !important;
|
|
25
|
+
// stylelint-disable-next-line primer/typography
|
|
23
26
|
line-height: map-get($pairing, 'lh') !important;
|
|
24
27
|
|
|
28
|
+
// stylelint-disable-next-line primer/typography
|
|
25
29
|
@if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
|
|
26
30
|
|
|
27
31
|
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
28
32
|
@include breakpoint(md) {
|
|
33
|
+
// stylelint-disable-next-line primer/typography
|
|
29
34
|
font-size: map-get($pairing-md, 'size') !important;
|
|
35
|
+
// stylelint-disable-next-line primer/typography
|
|
30
36
|
line-height: map-get($pairing-md, 'lh') !important;
|
|
31
37
|
|
|
32
38
|
@if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
|
|
@@ -34,6 +40,7 @@
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
|
|
43
|
+
// stylelint-disable-next-line primer/typography
|
|
37
44
|
font-weight: $mktg-header-weight-large !important;
|
|
38
45
|
}
|
|
39
46
|
}
|
|
@@ -41,7 +48,9 @@
|
|
|
41
48
|
|
|
42
49
|
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
43
50
|
@include breakpoint(lg) {
|
|
51
|
+
// stylelint-disable-next-line primer/typography
|
|
44
52
|
font-size: map-get($pairing-lg, 'size') !important;
|
|
53
|
+
// stylelint-disable-next-line primer/typography
|
|
45
54
|
line-height: map-get($pairing-lg, 'lh') !important;
|
|
46
55
|
|
|
47
56
|
@if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
|
|
@@ -49,6 +58,7 @@
|
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
@if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
|
|
61
|
+
// stylelint-disable-next-line primer/typography
|
|
52
62
|
font-weight: $mktg-header-weight-large !important;
|
|
53
63
|
}
|
|
54
64
|
}
|
|
@@ -63,8 +73,10 @@
|
|
|
63
73
|
.f4-mktg,
|
|
64
74
|
.f5-mktg,
|
|
65
75
|
.f6-mktg {
|
|
76
|
+
// stylelint-disable-next-line primer/typography
|
|
66
77
|
font-family: $font-mktg;
|
|
67
78
|
font-feature-settings: $mktg-font-feature-settings;
|
|
79
|
+
// stylelint-disable-next-line primer/typography
|
|
68
80
|
font-weight: $font-weight-normal;
|
|
69
81
|
}
|
|
70
82
|
|
|
@@ -74,16 +86,21 @@
|
|
|
74
86
|
$pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
|
|
75
87
|
$pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
|
|
76
88
|
|
|
89
|
+
// stylelint-disable-next-line primer/typography
|
|
77
90
|
font-size: map-get($pairing, 'size') !important;
|
|
91
|
+
// stylelint-disable-next-line primer/typography
|
|
78
92
|
line-height: map-get($pairing, 'lh') !important;
|
|
79
93
|
|
|
80
94
|
@if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large; }
|
|
81
95
|
|
|
96
|
+
// stylelint-disable-next-line primer/typography
|
|
82
97
|
@if (map-get($pairing, 'size') >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
|
|
83
98
|
|
|
84
99
|
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
85
100
|
@include breakpoint(md) {
|
|
101
|
+
// stylelint-disable-next-line primer/typography
|
|
86
102
|
font-size: map-get($pairing-md, 'size') !important;
|
|
103
|
+
// stylelint-disable-next-line primer/typography
|
|
87
104
|
line-height: map-get($pairing-md, 'lh') !important;
|
|
88
105
|
|
|
89
106
|
@if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
|
|
@@ -91,6 +108,7 @@
|
|
|
91
108
|
}
|
|
92
109
|
|
|
93
110
|
@if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
|
|
111
|
+
// stylelint-disable-next-line primer/typography
|
|
94
112
|
font-weight: $font-weight-medium;
|
|
95
113
|
}
|
|
96
114
|
}
|
|
@@ -98,7 +116,9 @@
|
|
|
98
116
|
|
|
99
117
|
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
100
118
|
@include breakpoint(lg) {
|
|
119
|
+
// stylelint-disable-next-line primer/typography
|
|
101
120
|
font-size: map-get($pairing-lg, 'size') !important;
|
|
121
|
+
// stylelint-disable-next-line primer/typography
|
|
102
122
|
line-height: map-get($pairing-lg, 'lh') !important;
|
|
103
123
|
|
|
104
124
|
@if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
|
|
@@ -106,6 +126,7 @@
|
|
|
106
126
|
}
|
|
107
127
|
|
|
108
128
|
@if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
|
|
129
|
+
// stylelint-disable-next-line primer/typography
|
|
109
130
|
font-weight: $font-weight-medium;
|
|
110
131
|
}
|
|
111
132
|
}
|
|
@@ -114,5 +135,6 @@
|
|
|
114
135
|
}
|
|
115
136
|
|
|
116
137
|
.text-medium {
|
|
138
|
+
// stylelint-disable-next-line primer/typography
|
|
117
139
|
font-weight: $font-weight-medium !important;
|
|
118
140
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
&.small .filter-item {
|
|
10
10
|
// stylelint-disable-next-line primer/spacing
|
|
11
11
|
padding: 6px 12px;
|
|
12
|
+
// stylelint-disable-next-line primer/typography
|
|
12
13
|
font-size: $font-size-small;
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -29,12 +30,14 @@
|
|
|
29
30
|
padding: var(--base-size-8) var(--base-size-16);
|
|
30
31
|
margin-bottom: var(--base-size-4);
|
|
31
32
|
overflow: hidden;
|
|
33
|
+
// stylelint-disable-next-line primer/typography
|
|
32
34
|
font-size: $h5-size;
|
|
33
35
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
34
36
|
text-decoration: none;
|
|
35
37
|
text-overflow: ellipsis;
|
|
36
38
|
white-space: nowrap;
|
|
37
39
|
cursor: pointer;
|
|
40
|
+
// stylelint-disable-next-line primer/borders
|
|
38
41
|
border-radius: $border-radius;
|
|
39
42
|
|
|
40
43
|
&:hover {
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
|
|
68
71
|
.count {
|
|
69
72
|
float: right;
|
|
73
|
+
// stylelint-disable-next-line primer/typography
|
|
70
74
|
font-weight: $font-weight-bold;
|
|
71
75
|
}
|
|
72
76
|
|
package/navigation/sidenav.scss
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
text-align: left;
|
|
17
17
|
background-color: transparent;
|
|
18
18
|
border: 0;
|
|
19
|
+
// stylelint-disable-next-line primer/borders
|
|
19
20
|
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
20
21
|
|
|
21
22
|
&:first-child {
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
|
|
95
96
|
.SideNav-subItem[aria-current]:not([aria-current='false']),
|
|
96
97
|
.SideNav-subItem[aria-selected='true'] {
|
|
98
|
+
// stylelint-disable-next-line primer/typography
|
|
97
99
|
font-weight: $font-weight-semibold;
|
|
98
100
|
color: var(--fgColor-default, var(--color-fg-default));
|
|
99
101
|
}
|
package/navigation/subnav.scss
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
.subnav-bordered {
|
|
13
13
|
// stylelint-disable-next-line primer/spacing
|
|
14
14
|
padding-bottom: 20px;
|
|
15
|
+
// stylelint-disable-next-line primer/borders
|
|
15
16
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -24,10 +25,12 @@
|
|
|
24
25
|
float: left;
|
|
25
26
|
// stylelint-disable-next-line primer/spacing
|
|
26
27
|
padding: 5px var(--base-size-16);
|
|
28
|
+
// stylelint-disable-next-line primer/typography
|
|
27
29
|
font-weight: $font-weight-semibold;
|
|
28
30
|
// stylelint-disable-next-line primer/typography
|
|
29
31
|
line-height: 20px;
|
|
30
32
|
color: var(--fgColor-default, var(--color-fg-default));
|
|
33
|
+
// stylelint-disable-next-line primer/borders
|
|
31
34
|
border: $border-width $border-style var(--control-borderColor-rest, var(--color-border-default));
|
|
32
35
|
|
|
33
36
|
+ .subnav-item {
|
|
@@ -67,12 +70,16 @@
|
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
&:first-child {
|
|
73
|
+
// stylelint-disable-next-line primer/borders
|
|
70
74
|
border-top-left-radius: $border-radius;
|
|
75
|
+
// stylelint-disable-next-line primer/borders
|
|
71
76
|
border-bottom-left-radius: $border-radius;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
&:last-child {
|
|
80
|
+
// stylelint-disable-next-line primer/borders
|
|
75
81
|
border-top-right-radius: $border-radius;
|
|
82
|
+
// stylelint-disable-next-line primer/borders
|
|
76
83
|
border-bottom-right-radius: $border-radius;
|
|
77
84
|
}
|
|
78
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/css",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.4.0-rc.264b5078",
|
|
4
4
|
"description": "The CSS implementation of GitHub's Primer Design System",
|
|
5
5
|
"homepage": "https://primer.style/css",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"build:storybook": "cd docs && npm i && npm run build:storybook"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@primer/primitives": "^
|
|
45
|
-
"@primer/view-components": "^0.
|
|
44
|
+
"@primer/primitives": "^9.0.3",
|
|
45
|
+
"@primer/view-components": "^0.34.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@changesets/changelog-github": "^0.5.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"postcss-simple-vars": "^7.0.1",
|
|
72
72
|
"prettier": "^3.2.5",
|
|
73
73
|
"semver": "^7.6.0",
|
|
74
|
-
"stylelint": "^16.
|
|
74
|
+
"stylelint": "^16.9.0",
|
|
75
75
|
"table": "^6.8.1"
|
|
76
76
|
},
|
|
77
77
|
"jest": {
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
vertical-align: middle;
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
user-select: none;
|
|
19
|
+
// stylelint-disable-next-line primer/borders
|
|
19
20
|
border: $border-width $border-style transparent;
|
|
21
|
+
// stylelint-disable-next-line primer/borders
|
|
20
22
|
border-radius: $border-radius;
|
|
21
23
|
transition: border-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
|
22
24
|
|
|
@@ -62,6 +62,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
62
62
|
pointer-events: auto;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
|
|
65
|
+
// stylelint-disable-next-line primer/borders
|
|
65
66
|
border: $border-width $border-style var(--selectMenu-borderColor, var(--color-select-menu-backdrop-border));
|
|
66
67
|
// stylelint-disable-next-line primer/borders
|
|
67
68
|
border-radius: $border-radius * 2;
|
|
@@ -87,8 +88,10 @@ $SelectMenu-max-height: 480px !default;
|
|
|
87
88
|
height: auto;
|
|
88
89
|
max-height: $SelectMenu-max-height;
|
|
89
90
|
margin: var(--base-size-8) 0 var(--base-size-16) 0;
|
|
91
|
+
// stylelint-disable-next-line primer/typography
|
|
90
92
|
font-size: $font-size-small;
|
|
91
93
|
border-color: var(--borderColor-default, var(--color-border-default));
|
|
94
|
+
// stylelint-disable-next-line primer/borders
|
|
92
95
|
border-radius: $border-radius;
|
|
93
96
|
box-shadow: var(--shadow-floating-legacy, var(--color-overlay-shadow));
|
|
94
97
|
animation-name: SelectMenu-modal-animation--sm;
|
|
@@ -104,6 +107,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
104
107
|
padding: var(--base-size-16);
|
|
105
108
|
flex: none; // fixes header from getting squeezed in Safari iOS
|
|
106
109
|
align-items: center;
|
|
110
|
+
// stylelint-disable-next-line primer/borders
|
|
107
111
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
108
112
|
|
|
109
113
|
@include breakpoint(sm) {
|
|
@@ -114,7 +118,9 @@ $SelectMenu-max-height: 480px !default;
|
|
|
114
118
|
|
|
115
119
|
.SelectMenu-title {
|
|
116
120
|
flex: 1;
|
|
121
|
+
// stylelint-disable-next-line primer/typography
|
|
117
122
|
font-size: $body-font-size;
|
|
123
|
+
// stylelint-disable-next-line primer/typography
|
|
118
124
|
font-weight: $font-weight-bold;
|
|
119
125
|
|
|
120
126
|
@include breakpoint(sm) {
|
|
@@ -125,6 +131,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
125
131
|
.SelectMenu-closeButton {
|
|
126
132
|
padding: var(--base-size-16);
|
|
127
133
|
margin: calc(var(--base-size-16) * -1);
|
|
134
|
+
// stylelint-disable-next-line primer/typography
|
|
128
135
|
line-height: 1;
|
|
129
136
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
130
137
|
background-color: transparent;
|
|
@@ -144,6 +151,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
144
151
|
.SelectMenu-filter {
|
|
145
152
|
padding: var(--base-size-16);
|
|
146
153
|
margin: 0;
|
|
154
|
+
// stylelint-disable-next-line primer/borders
|
|
147
155
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
148
156
|
|
|
149
157
|
@include breakpoint(sm) {
|
|
@@ -156,6 +164,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
156
164
|
width: 100%;
|
|
157
165
|
|
|
158
166
|
@include breakpoint(sm) {
|
|
167
|
+
// stylelint-disable-next-line primer/typography
|
|
159
168
|
font-size: $h5-size;
|
|
160
169
|
}
|
|
161
170
|
}
|
|
@@ -192,6 +201,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
192
201
|
cursor: pointer;
|
|
193
202
|
background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
|
|
194
203
|
border: 0;
|
|
204
|
+
// stylelint-disable-next-line primer/borders
|
|
195
205
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
196
206
|
|
|
197
207
|
@include breakpoint(sm) {
|
|
@@ -250,7 +260,9 @@ $SelectMenu-max-height: 480px !default;
|
|
|
250
260
|
.SelectMenu-tab {
|
|
251
261
|
flex: 1;
|
|
252
262
|
padding: var(--base-size-8) var(--base-size-16);
|
|
263
|
+
// stylelint-disable-next-line primer/typography
|
|
253
264
|
font-size: $font-size-small;
|
|
265
|
+
// stylelint-disable-next-line primer/typography
|
|
254
266
|
font-weight: $font-weight-semibold;
|
|
255
267
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
256
268
|
text-align: center;
|
|
@@ -262,9 +274,12 @@ $SelectMenu-max-height: 480px !default;
|
|
|
262
274
|
@include breakpoint(sm) {
|
|
263
275
|
flex: none;
|
|
264
276
|
padding: var(--base-size-4) var(--base-size-16);
|
|
277
|
+
// stylelint-disable-next-line primer/borders
|
|
265
278
|
border: $border-width $border-style transparent;
|
|
266
279
|
border-bottom-width: 0;
|
|
280
|
+
// stylelint-disable-next-line primer/borders
|
|
267
281
|
border-top-left-radius: $border-radius;
|
|
282
|
+
// stylelint-disable-next-line primer/borders
|
|
268
283
|
border-top-right-radius: $border-radius;
|
|
269
284
|
}
|
|
270
285
|
|
|
@@ -292,6 +307,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
292
307
|
padding: 7px var(--base-size-16);
|
|
293
308
|
text-align: center;
|
|
294
309
|
background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
|
|
310
|
+
// stylelint-disable-next-line primer/borders
|
|
295
311
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
296
312
|
}
|
|
297
313
|
|
|
@@ -313,14 +329,18 @@ $SelectMenu-max-height: 480px !default;
|
|
|
313
329
|
.SelectMenu-divider {
|
|
314
330
|
padding: var(--base-size-4) var(--base-size-16);
|
|
315
331
|
margin: 0;
|
|
332
|
+
// stylelint-disable-next-line primer/typography
|
|
316
333
|
font-size: $font-size-small;
|
|
334
|
+
// stylelint-disable-next-line primer/typography
|
|
317
335
|
font-weight: $font-weight-semibold;
|
|
318
336
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
319
337
|
background-color: var(--bgColor-muted, var(--color-canvas-subtle));
|
|
338
|
+
// stylelint-disable-next-line primer/borders
|
|
320
339
|
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
321
340
|
|
|
322
341
|
// Borderless
|
|
323
342
|
.SelectMenu-list--borderless & {
|
|
343
|
+
// stylelint-disable-next-line primer/borders
|
|
324
344
|
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
325
345
|
|
|
326
346
|
&:empty {
|
|
@@ -337,9 +357,11 @@ $SelectMenu-max-height: 480px !default;
|
|
|
337
357
|
.SelectMenu-footer {
|
|
338
358
|
z-index: 0; // Avoid top border from getting covered by the negative margin of the list
|
|
339
359
|
padding: var(--base-size-8) var(--base-size-16);
|
|
360
|
+
// stylelint-disable-next-line primer/typography
|
|
340
361
|
font-size: $font-size-small;
|
|
341
362
|
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
342
363
|
text-align: center;
|
|
364
|
+
// stylelint-disable-next-line primer/borders
|
|
343
365
|
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
|
|
344
366
|
|
|
345
367
|
@include breakpoint(sm) {
|
|
@@ -386,6 +408,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
386
408
|
// Visible when a user clicks/taps on a list item
|
|
387
409
|
|
|
388
410
|
.SelectMenu-item[aria-checked='true'] {
|
|
411
|
+
// stylelint-disable-next-line primer/typography
|
|
389
412
|
font-weight: $font-weight-semibold;
|
|
390
413
|
color: var(--fgColor-default, var(--color-fg-default));
|
|
391
414
|
|
package/support/mixins/misc.scss
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
@mixin focusBoxShadowInset($outlineWidth: 1px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
|
|
34
34
|
border-color: var(--focus-outlineColor, var(--color-accent-fg));
|
|
35
35
|
outline: none;
|
|
36
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
36
37
|
box-shadow: inset 0 0 0 $outlineWidth $outlineColor;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
// !important to override PCSS utilities
|
|
41
42
|
@mixin targetBoxShadow($outlineWidth: 2px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
|
|
42
43
|
outline: none !important;
|
|
44
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
43
45
|
box-shadow: 0 0 0 $outlineWidth $outlineColor !important;
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
@mixin focusOutlineOnEmphasis($outlineOffset: -2px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
|
|
55
57
|
outline: 2px solid $outlineColor;
|
|
56
58
|
outline-offset: $outlineOffset;
|
|
59
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
57
60
|
box-shadow: inset 0 0 0 3px var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
|
|
58
61
|
}
|
|
59
62
|
|