@primer/css 0.0.0-1f49d76 → 0.0.0-20211010195643
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 +858 -133
- package/CONTRIBUTING.md +85 -0
- package/DEVELOP.md +4 -39
- package/LICENSE +1 -1
- package/README.md +13 -15
- package/RELEASING.md +5 -76
- package/actionlist/action-list-item-divider.scss +42 -0
- package/actionlist/action-list-item.scss +439 -0
- package/actionlist/action-list-variables.scss +8 -0
- package/actionlist/action-list.scss +33 -0
- package/actionlist/index.scss +5 -0
- package/alerts/README.md +1 -1
- package/alerts/flash.scss +32 -26
- package/alerts/index.scss +2 -2
- package/autocomplete/README.md +1 -1
- package/autocomplete/autocomplete.scss +18 -8
- package/autocomplete/index.scss +3 -3
- package/autocomplete/suggester.scss +27 -10
- package/avatars/README.md +1 -1
- package/avatars/avatar-parent-child.scss +2 -3
- package/avatars/avatar-stack.scss +12 -14
- package/avatars/avatar.scss +4 -0
- package/avatars/circle-badge.scss +4 -4
- package/avatars/index.scss +5 -5
- package/base/README.md +1 -1
- package/base/base.scss +39 -7
- package/base/index.scss +6 -5
- package/base/kbd.scss +5 -6
- package/base/normalize.scss +13 -53
- package/base/octicons.scss +6 -0
- package/blankslate/README.md +1 -1
- package/blankslate/blankslate.scss +7 -4
- package/blankslate/index.scss +2 -2
- package/box/README.md +1 -1
- package/box/box.scss +38 -38
- package/box/index.scss +2 -2
- package/branch-name/README.md +1 -1
- package/branch-name/branch-name.scss +15 -10
- package/branch-name/index.scss +2 -2
- package/breadcrumb/README.md +1 -1
- package/breadcrumb/breadcrumb.scss +12 -7
- package/breadcrumb/index.scss +2 -2
- package/buttons/README.md +1 -1
- package/buttons/button.scss +115 -121
- package/buttons/index.scss +4 -4
- package/buttons/misc.scss +52 -41
- package/color-modes/index.scss +9 -0
- package/color-modes/native.scss +10 -0
- package/color-modes/themes/dark.scss +7 -0
- package/color-modes/themes/dark_colorblind.scss +7 -0
- package/color-modes/themes/dark_dimmed.scss +7 -0
- package/color-modes/themes/dark_high_contrast.scss +7 -0
- package/color-modes/themes/light.scss +7 -0
- package/color-modes/themes/light_colorblind.scss +7 -0
- package/core/README.md +1 -1
- package/core/index.scss +17 -16
- package/deprecations.js +18 -200
- package/deprecations.json +539 -0
- package/dist/actionlist.css +2 -0
- package/dist/actionlist.css.map +1 -0
- package/dist/actionlist.js +1 -0
- package/dist/alerts.css +1 -2
- package/dist/alerts.css.map +1 -1
- package/dist/alerts.js +1 -1
- package/dist/autocomplete.css +1 -2
- package/dist/autocomplete.css.map +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatars.css +1 -2
- package/dist/avatars.css.map +1 -1
- package/dist/avatars.js +1 -1
- package/dist/base.css +1 -2
- package/dist/base.css.map +1 -1
- package/dist/base.js +1 -1
- package/dist/blankslate.css +1 -2
- package/dist/blankslate.css.map +1 -1
- package/dist/blankslate.js +1 -1
- package/dist/box.css +1 -2
- package/dist/box.css.map +1 -1
- package/dist/box.js +1 -1
- package/dist/branch-name.css +1 -2
- package/dist/branch-name.css.map +1 -1
- package/dist/branch-name.js +1 -1
- package/dist/breadcrumb.css +1 -2
- package/dist/breadcrumb.css.map +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/buttons.css +1 -2
- package/dist/buttons.css.map +1 -1
- package/dist/buttons.js +1 -1
- package/dist/color-modes.css +2 -0
- package/dist/color-modes.css.map +1 -0
- package/dist/color-modes.js +1 -0
- package/dist/core.css +1 -2
- package/dist/core.css.map +1 -1
- package/dist/core.js +1 -1
- package/dist/deprecations.json +534 -571
- package/dist/dropdown.css +1 -2
- package/dist/dropdown.css.map +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/forms.css +1 -2
- package/dist/forms.css.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/header.css +1 -2
- package/dist/header.css.map +1 -1
- package/dist/header.js +1 -1
- package/dist/labels.css +1 -2
- package/dist/labels.css.map +1 -1
- package/dist/labels.js +1 -1
- package/dist/layout.css +1 -2
- package/dist/layout.css.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/links.css +2 -0
- package/dist/links.css.map +1 -0
- package/dist/links.js +1 -0
- package/dist/loaders.css +0 -1
- package/dist/loaders.css.map +1 -1
- package/dist/loaders.js +1 -1
- package/dist/markdown.css +1 -2
- package/dist/markdown.css.map +1 -1
- package/dist/markdown.js +1 -1
- package/dist/marketing-buttons.css +1 -2
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-buttons.js +1 -1
- package/dist/marketing-support.css +1 -2
- package/dist/marketing-support.js +1 -1
- package/dist/marketing-type.css +1 -2
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-type.js +1 -1
- package/dist/marketing-utilities.css +1 -2
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing-utilities.js +1 -1
- package/dist/marketing.css +1 -2
- package/dist/marketing.css.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/meta.json +314 -369
- package/dist/navigation.css +1 -2
- package/dist/navigation.css.map +1 -1
- package/dist/navigation.js +1 -1
- package/dist/pagination.css +1 -2
- package/dist/pagination.css.map +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.css +1 -2
- package/dist/popover.css.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/primer.css +4 -5
- package/dist/primer.css.map +1 -1
- package/dist/primer.js +1 -1
- package/dist/product.css +1 -2
- package/dist/product.css.map +1 -1
- package/dist/product.js +1 -1
- package/dist/progress.css +1 -2
- package/dist/progress.css.map +1 -1
- package/dist/progress.js +1 -1
- package/dist/select-menu.css +1 -2
- package/dist/select-menu.css.map +1 -1
- package/dist/select-menu.js +1 -1
- package/dist/stats/actionlist.json +1 -0
- package/dist/stats/alerts.json +1 -1
- package/dist/stats/autocomplete.json +1 -1
- package/dist/stats/avatars.json +1 -1
- package/dist/stats/base.json +1 -1
- package/dist/stats/blankslate.json +1 -1
- package/dist/stats/box.json +1 -1
- package/dist/stats/branch-name.json +1 -1
- package/dist/stats/breadcrumb.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -0
- package/dist/stats/core.json +1 -1
- package/dist/stats/dropdown.json +1 -1
- package/dist/stats/forms.json +1 -1
- package/dist/stats/header.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/links.json +1 -0
- package/dist/stats/loaders.json +1 -1
- package/dist/stats/markdown.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing-support.json +1 -1
- package/dist/stats/marketing-type.json +1 -1
- package/dist/stats/marketing-utilities.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/navigation.json +1 -1
- package/dist/stats/pagination.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/progress.json +1 -1
- package/dist/stats/select-menu.json +1 -1
- package/dist/stats/subhead.json +1 -1
- package/dist/stats/support.json +1 -1
- package/dist/stats/table-object.json +1 -1
- package/dist/stats/timeline.json +1 -1
- package/dist/stats/toasts.json +1 -1
- package/dist/stats/tooltips.json +1 -1
- package/dist/stats/truncate.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css +1 -2
- package/dist/subhead.css.map +1 -1
- package/dist/subhead.js +1 -1
- package/dist/support.css +1 -1
- package/dist/support.js +1 -1
- package/dist/table-object.css +0 -1
- package/dist/table-object.css.map +1 -1
- package/dist/table-object.js +1 -1
- package/dist/timeline.css +1 -2
- package/dist/timeline.css.map +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toasts.css +1 -2
- package/dist/toasts.css.map +1 -1
- package/dist/toasts.js +1 -1
- package/dist/tooltips.css +1 -2
- package/dist/tooltips.css.map +1 -1
- package/dist/tooltips.js +1 -1
- package/dist/truncate.css +1 -2
- package/dist/truncate.css.map +1 -1
- package/dist/truncate.js +1 -1
- package/dist/utilities.css +1 -2
- package/dist/utilities.css.map +1 -1
- package/dist/utilities.js +1 -1
- package/dist/variables.json +630 -2274
- package/dropdown/README.md +1 -1
- package/dropdown/dropdown.scss +32 -88
- package/dropdown/index.scss +2 -2
- package/forms/README.md +1 -1
- package/forms/form-control.scss +39 -57
- package/forms/form-group.scss +31 -48
- package/forms/form-select.scss +12 -4
- package/forms/form-validation.scss +27 -32
- package/forms/index.scss +7 -7
- package/forms/input-group.scss +7 -0
- package/forms/radio-group.scss +22 -3
- package/header/README.md +1 -1
- package/header/header.scss +16 -6
- package/header/index.scss +2 -2
- package/index.scss +4 -1
- package/labels/README.md +1 -1
- package/labels/counters.scss +10 -11
- package/labels/diffstat.scss +8 -8
- package/labels/index.scss +7 -7
- package/labels/labels.scss +30 -41
- package/labels/states.scss +17 -16
- package/layout/README.md +1 -1
- package/layout/grid-offset.scss +11 -11
- package/layout/grid.scss +23 -23
- package/layout/index.scss +7 -4
- package/layout/layout.scss +185 -0
- package/layout/mixins.scss +79 -0
- package/{README.template.md → links/README.md} +5 -5
- package/links/index.scss +3 -0
- package/links/link.scss +55 -0
- package/loaders/README.md +1 -1
- package/loaders/index.scss +2 -2
- package/loaders/loaders.scss +1 -1
- package/markdown/README.md +1 -1
- package/markdown/blob-csv.scss +2 -2
- package/markdown/code.scss +7 -5
- package/markdown/footnotes.scss +37 -0
- package/markdown/headings.scss +6 -4
- package/markdown/images.scss +3 -4
- package/markdown/index.scss +9 -8
- package/markdown/lists.scss +18 -5
- package/markdown/markdown-body.scss +14 -9
- package/markdown/tables.scss +7 -7
- package/marketing/README.md +1 -1
- package/marketing/buttons/button.scss +81 -75
- package/marketing/index.scss +4 -4
- package/marketing/support/index.scss +1 -0
- package/marketing/support/mixins.scss +66 -0
- package/marketing/support/variables.scss +109 -58
- package/marketing/type/typography.scss +100 -62
- package/marketing/utilities/animations.scss +9 -0
- package/marketing/utilities/index.scss +2 -3
- package/marketing/utilities/layout.scss +31 -10
- package/navigation/README.md +1 -1
- package/navigation/filter-list.scss +8 -9
- package/navigation/index.scss +7 -7
- package/navigation/menu.scss +22 -23
- package/navigation/sidenav.scss +19 -25
- package/navigation/subnav.scss +9 -13
- package/navigation/tabnav.scss +20 -10
- package/navigation/underline-nav.scss +19 -14
- package/package.json +75 -63
- package/pagination/README.md +1 -1
- package/pagination/index.scss +2 -2
- package/pagination/pagination.scss +8 -8
- package/popover/README.md +1 -1
- package/popover/index.scss +2 -2
- package/popover/popover.scss +14 -13
- package/postcss.config.cjs +22 -0
- package/prettier.config.cjs +1 -0
- package/product/README.md +1 -1
- package/product/index.scss +17 -17
- package/progress/README.md +1 -1
- package/progress/index.scss +2 -2
- package/progress/progress.scss +3 -4
- package/select-menu/README.md +1 -1
- package/select-menu/index.scss +2 -2
- package/select-menu/select-menu.scss +44 -46
- package/{stylelint.config.js → stylelint.config.cjs} +5 -6
- package/subhead/README.md +1 -1
- package/subhead/index.scss +2 -2
- package/subhead/subhead.scss +9 -3
- package/support/README.md +1 -1
- package/support/index.scss +7 -8
- package/support/mixins/color-modes.scss +106 -0
- package/support/mixins/misc.scss +19 -13
- package/support/variables/layout.scss +68 -9
- package/support/variables/misc.scss +2 -27
- package/support/variables/typography.scss +2 -1
- package/table-object/README.md +1 -1
- package/table-object/index.scss +1 -1
- package/timeline/README.md +1 -1
- package/timeline/index.scss +2 -2
- package/timeline/timeline-item.scss +18 -18
- package/toasts/README.md +1 -1
- package/toasts/index.scss +2 -2
- package/toasts/toasts.scss +45 -24
- package/tooltips/README.md +1 -1
- package/tooltips/index.scss +2 -2
- package/tooltips/tooltips.scss +8 -12
- package/truncate/README.md +1 -1
- package/truncate/index.scss +2 -1
- package/truncate/truncate.scss +30 -0
- package/utilities/README.md +1 -1
- package/utilities/animations.scss +14 -1
- package/utilities/borders.scss +5 -50
- package/utilities/box-shadow.scss +8 -8
- package/utilities/colors.scss +71 -107
- package/utilities/details.scss +18 -6
- package/utilities/flexbox.scss +4 -3
- package/utilities/index.scss +12 -12
- package/utilities/layout.scss +23 -14
- package/utilities/margin.scss +34 -16
- package/utilities/padding.scss +13 -8
- package/utilities/typography.scss +5 -15
- package/.browserslistrc +0 -6
- package/.eslintrc.json +0 -13
- package/.nowignore +0 -5
- package/MIGRATING.md +0 -74
- package/bin/primer-migrate +0 -86
- package/dist/marketing-support.css.map +0 -1
- package/dist/support.css.map +0 -1
- package/fonts/Inter-Bold.woff +0 -0
- package/fonts/Inter-Medium.woff +0 -0
- package/fonts/Inter-Regular.woff +0 -0
- package/marketing/utilities/margin.scss +0 -17
- package/marketing/utilities/padding.scss +0 -24
- package/postcss.config.js +0 -14
- package/prettier.config.js +0 -1
- package/release.config.js +0 -4
- package/support/mixins/buttons.scss +0 -172
- package/support/variables/color-system.scss +0 -243
- package/support/variables/colors.scss +0 -55
|
@@ -1,81 +1,119 @@
|
|
|
1
1
|
// Headings
|
|
2
|
-
|
|
3
|
-
.h000-mktg,
|
|
4
|
-
.h00-mktg,
|
|
5
2
|
.h0-mktg,
|
|
6
3
|
.h1-mktg,
|
|
7
4
|
.h2-mktg,
|
|
8
5
|
.h3-mktg,
|
|
9
6
|
.h4-mktg,
|
|
10
7
|
.h5-mktg,
|
|
11
|
-
.h6-mktg
|
|
12
|
-
.lead-mktg {
|
|
8
|
+
.h6-mktg {
|
|
13
9
|
font-family: $font-mktg;
|
|
14
|
-
font-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
font-size: $h000-size-mobile !important;
|
|
19
|
-
@include breakpoint(md) { font-size: $h000-size !important; }
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.h000-mktg { @include h000-mktg; }
|
|
23
|
-
|
|
24
|
-
@mixin h00-mktg {
|
|
25
|
-
font-size: $h00-size-mobile !important;
|
|
26
|
-
@include breakpoint(md) { font-size: $h00-size !important; }
|
|
10
|
+
font-feature-settings: $mktg-font-feature-settings;
|
|
11
|
+
// stylelint-disable-next-line primer/typography
|
|
12
|
+
font-weight: $mktg-header-weight-default !important;
|
|
13
|
+
letter-spacing: $mktg-header-spacing-default !important;
|
|
27
14
|
}
|
|
28
15
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
16
|
+
@each $header, $sizes in $mktg-headers {
|
|
17
|
+
.h#{$header}-mktg {
|
|
18
|
+
$pairing: map-get($mktg-header-pairings, nth($sizes, 1));
|
|
19
|
+
$pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
|
|
20
|
+
$pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
|
|
21
|
+
|
|
22
|
+
font-size: map-get($pairing, "size") !important;
|
|
23
|
+
line-height: map-get($pairing, "lh") !important;
|
|
24
|
+
@if (map-get($pairing, "size") >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
|
|
25
|
+
|
|
26
|
+
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
27
|
+
@include breakpoint(md) {
|
|
28
|
+
font-size: map-get($pairing-md, "size") !important;
|
|
29
|
+
line-height: map-get($pairing-md, "lh") !important;
|
|
30
|
+
|
|
31
|
+
@if (map-get($pairing-md, "size") >= $mktg-header-spacing-threshold and map-get($pairing, "size") < $mktg-header-spacing-threshold) {
|
|
32
|
+
letter-spacing: $mktg-header-spacing-large !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@if (map-get($pairing-md, "size") >= $mktg-header-weight-threshold and map-get($pairing, "size") < $mktg-header-weight-threshold) {
|
|
36
|
+
font-weight: $mktg-header-weight-large !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
42
|
+
@include breakpoint(lg) {
|
|
43
|
+
font-size: map-get($pairing-lg, "size") !important;
|
|
44
|
+
line-height: map-get($pairing-lg, "lh") !important;
|
|
45
|
+
|
|
46
|
+
@if (map-get($pairing-lg, "size") >= $mktg-header-spacing-threshold and map-get($pairing-md, "size") < $mktg-header-spacing-threshold) {
|
|
47
|
+
letter-spacing: $mktg-header-spacing-large !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@if (map-get($pairing-lg, "size") >= $mktg-header-weight-threshold and map-get($pairing-md, "size") < $mktg-header-weight-threshold) {
|
|
51
|
+
font-weight: $mktg-header-weight-large !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
61
56
|
}
|
|
62
57
|
|
|
63
|
-
.
|
|
64
|
-
|
|
58
|
+
.f0-mktg,
|
|
59
|
+
.f1-mktg,
|
|
60
|
+
.f2-mktg,
|
|
61
|
+
.f3-mktg,
|
|
62
|
+
.f4-mktg,
|
|
63
|
+
.f5-mktg,
|
|
64
|
+
.f6-mktg {
|
|
65
|
+
font-family: $font-mktg;
|
|
66
|
+
font-feature-settings: $mktg-font-feature-settings;
|
|
67
|
+
font-weight: $font-weight-normal;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
@each $body, $sizes in $mktg-bodies {
|
|
71
|
+
.f#{$body}-mktg {
|
|
72
|
+
$pairing: map-get($mktg-body-pairings, nth($sizes, 1));
|
|
73
|
+
$pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
|
|
74
|
+
$pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
|
|
75
|
+
|
|
76
|
+
font-size: map-get($pairing, "size") !important;
|
|
77
|
+
line-height: map-get($pairing, "lh") !important;
|
|
78
|
+
@if (map-get($pairing, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
|
|
79
|
+
@if (map-get($pairing, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
|
|
80
|
+
|
|
81
|
+
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
|
82
|
+
@include breakpoint(md) {
|
|
83
|
+
font-size: map-get($pairing-md, "size") !important;
|
|
84
|
+
line-height: map-get($pairing-md, "lh") !important;
|
|
85
|
+
|
|
86
|
+
@if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold and map-get($pairing, "size") < $mktg-body-spacing-threshold) {
|
|
87
|
+
letter-spacing: $mktg-body-spacing-large !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold and map-get($pairing, "size") < $mktg-body-weight-threshold) {
|
|
91
|
+
font-weight: $font-weight-medium;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
|
97
|
+
@include breakpoint(lg) {
|
|
98
|
+
font-size: map-get($pairing-lg, "size") !important;
|
|
99
|
+
line-height: map-get($pairing-lg, "lh") !important;
|
|
100
|
+
|
|
101
|
+
@if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold and map-get($pairing-md, "size") < $mktg-body-spacing-threshold) {
|
|
102
|
+
letter-spacing: $mktg-body-spacing-large !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold and map-get($pairing-md, "size") < $mktg-body-weight-threshold) {
|
|
106
|
+
font-weight: $font-weight-medium;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
69
111
|
}
|
|
70
112
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
font-size: $h3-size;
|
|
74
|
-
font-weight: $font-weight-normal;
|
|
113
|
+
.text-medium {
|
|
114
|
+
font-weight: $font-weight-medium !important;
|
|
75
115
|
}
|
|
76
116
|
|
|
77
|
-
.lead-mktg { @include lead-mktg; }
|
|
78
|
-
|
|
79
117
|
// Pullquote
|
|
80
118
|
|
|
81
119
|
@mixin pullquote {
|
|
@@ -86,8 +124,8 @@
|
|
|
86
124
|
font-family: $mono-font;
|
|
87
125
|
font-size: $h4-size;
|
|
88
126
|
line-height: 1.4;
|
|
89
|
-
color:
|
|
90
|
-
border-left: 3px solid
|
|
127
|
+
color: var(--color-color-text-secondary);
|
|
128
|
+
border-left: 3px solid var(--color-border-default);
|
|
91
129
|
|
|
92
130
|
@include breakpoint(md) {
|
|
93
131
|
padding-left: $spacer * 1.5;
|
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
// No utilities for sm and xl breakpoints
|
|
6
6
|
@each $breakpoint, $variant in $marketing-position-variants {
|
|
7
7
|
@include breakpoint($breakpoint) {
|
|
8
|
-
@each $scale, $size in $
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
@each $scale, $size in $spacer-map-extended {
|
|
9
|
+
@if ($size != 0 or $variant != "") {
|
|
10
|
+
.top#{$variant}-#{$scale} { top: $size !important; }
|
|
11
|
+
.right#{$variant}-#{$scale} { right: $size !important; }
|
|
12
|
+
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
|
13
|
+
.left#{$variant}-#{$scale} { left: $size !important; }
|
|
14
|
+
}
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
@if ($size != 0) {
|
|
17
|
+
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
|
18
|
+
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
|
19
|
+
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
|
20
|
+
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -23,7 +27,24 @@
|
|
|
23
27
|
@each $breakpoint, $variant in $responsive-variants {
|
|
24
28
|
@include breakpoint($breakpoint) {
|
|
25
29
|
@for $offset from 1 through 7 {
|
|
26
|
-
.offset#{$variant}-n#{$offset} { margin-left: -($offset
|
|
30
|
+
.offset#{$variant}-n#{$offset} { margin-left: -($offset * 0.0833333333 * 100%); }
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
34
|
+
|
|
35
|
+
// Width and height utilities, especially needed when the
|
|
36
|
+
// dimensions of an image are set in HTML
|
|
37
|
+
.width-auto { width: auto !important; }
|
|
38
|
+
.height-auto { height: auto !important; }
|
|
39
|
+
|
|
40
|
+
// Make an object fill its parent
|
|
41
|
+
.object-fit-cover { object-fit: cover !important; }
|
|
42
|
+
|
|
43
|
+
// Handling z-index
|
|
44
|
+
.z-1 { z-index: 1 !important; }
|
|
45
|
+
.z-2 { z-index: 2 !important; }
|
|
46
|
+
.z-3 { z-index: 3 !important; }
|
|
47
|
+
|
|
48
|
+
// Negative z-index
|
|
49
|
+
.z-n1 { z-index: -1 !important; }
|
|
50
|
+
.z-n2 { z-index: -2 !important; }
|
package/navigation/README.md
CHANGED
|
@@ -19,7 +19,7 @@ The `@primer/css` npm package includes a standalone CSS build of this module in
|
|
|
19
19
|
|
|
20
20
|
## License
|
|
21
21
|
|
|
22
|
-
[MIT](https://github.com/primer/css/blob/
|
|
22
|
+
[MIT](https://github.com/primer/css/blob/main/LICENSE) © [GitHub](https://github.com/)
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
[scss]: https://sass-lang.com/documentation/syntax#scss
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&.pjax-active .filter-item {
|
|
14
|
-
color:
|
|
14
|
+
color: var(--color-fg-muted);
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
|
|
17
17
|
&.pjax-active {
|
|
18
|
-
color:
|
|
19
|
-
background-color:
|
|
18
|
+
color: var(--color-fg-on-emphasis);
|
|
19
|
+
background-color: var(--color-accent-emphasis);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
margin-bottom: $spacer-1;
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
font-size: $h5-size;
|
|
31
|
-
color:
|
|
31
|
+
color: var(--color-fg-muted);
|
|
32
32
|
text-decoration: none;
|
|
33
33
|
text-overflow: ellipsis;
|
|
34
34
|
white-space: nowrap;
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
|
|
38
38
|
&:hover {
|
|
39
39
|
text-decoration: none;
|
|
40
|
-
background-color:
|
|
40
|
+
background-color: var(--color-canvas-subtle);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&.selected,
|
|
44
44
|
&[aria-selected=true],
|
|
45
45
|
&[aria-current]:not([aria-current=false]) {
|
|
46
|
-
color:
|
|
47
|
-
background-color:
|
|
46
|
+
color: var(--color-fg-on-emphasis);
|
|
47
|
+
background-color: var(--color-accent-emphasis);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.count {
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
bottom: 2px;
|
|
60
60
|
z-index: -1;
|
|
61
61
|
display: inline-block;
|
|
62
|
-
|
|
63
|
-
background-color: darken($gray-100, 2%);
|
|
62
|
+
background-color: var(--color-neutral-subtle);
|
|
64
63
|
}
|
|
65
64
|
}
|
package/navigation/index.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
2
|
// Navigation
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
3
|
+
@import './menu.scss';
|
|
4
|
+
@import './tabnav.scss';
|
|
5
|
+
@import './filter-list.scss';
|
|
6
|
+
@import './sidenav.scss';
|
|
7
|
+
@import './subnav.scss';
|
|
8
|
+
@import './underline-nav.scss';
|
package/navigation/menu.scss
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
.menu {
|
|
6
6
|
margin-bottom: $spacer-3;
|
|
7
7
|
list-style: none;
|
|
8
|
-
background-color:
|
|
9
|
-
border: $border;
|
|
8
|
+
background-color: var(--color-canvas-default);
|
|
9
|
+
border: $border-width $border-style var(--color-border-default);
|
|
10
10
|
border-radius: $border-radius;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
position: relative;
|
|
15
15
|
display: block;
|
|
16
16
|
padding: $spacer-2 $spacer-3;
|
|
17
|
-
color:
|
|
18
|
-
border-bottom: $border-width $border-style
|
|
17
|
+
color: var(--color-fg-default);
|
|
18
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
|
19
19
|
|
|
20
20
|
&:first-child {
|
|
21
21
|
border-top: 0;
|
|
22
22
|
border-top-left-radius: $border-radius;
|
|
23
23
|
border-top-right-radius: $border-radius;
|
|
24
24
|
|
|
25
|
-
&::before {
|
|
25
|
+
&::before {
|
|
26
|
+
border-top-left-radius: $border-radius;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
&:last-child {
|
|
@@ -30,25 +32,25 @@
|
|
|
30
32
|
border-bottom-right-radius: $border-radius;
|
|
31
33
|
border-bottom-left-radius: $border-radius;
|
|
32
34
|
|
|
33
|
-
&::before {
|
|
35
|
+
&::before {
|
|
36
|
+
border-bottom-left-radius: $border-radius;
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
&:focus,
|
|
37
40
|
&:hover {
|
|
38
41
|
text-decoration: none;
|
|
39
|
-
|
|
40
|
-
background-color: $gray-100;
|
|
41
|
-
outline: none;
|
|
42
|
+
background-color: var(--color-neutral-subtle);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
&:active {
|
|
45
|
-
background-color:
|
|
46
|
+
background-color: var(--color-canvas-subtle);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
&.selected,
|
|
49
|
-
&[aria-selected=true],
|
|
50
|
-
&[aria-current]:not([aria-current=false]) {
|
|
50
|
+
&[aria-selected='true'],
|
|
51
|
+
&[aria-current]:not([aria-current='false']) {
|
|
51
52
|
cursor: default;
|
|
53
|
+
background-color: var(--color-menu-bg-active);
|
|
52
54
|
|
|
53
55
|
&::before {
|
|
54
56
|
position: absolute;
|
|
@@ -56,17 +58,15 @@
|
|
|
56
58
|
bottom: 0;
|
|
57
59
|
left: 0;
|
|
58
60
|
width: 2px;
|
|
59
|
-
content:
|
|
60
|
-
|
|
61
|
-
background-color: #f9826c; // custom coral
|
|
61
|
+
content: '';
|
|
62
|
+
background-color: var(--color-primer-border-active);
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.octicon {
|
|
66
67
|
width: 16px;
|
|
67
68
|
margin-right: $spacer-2;
|
|
68
|
-
|
|
69
|
-
color: $gray-400;
|
|
69
|
+
color: var(--color-fg-muted);
|
|
70
70
|
text-align: center;
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
|
|
78
78
|
.menu-warning {
|
|
79
79
|
float: right;
|
|
80
|
-
|
|
81
|
-
color: $red-900;
|
|
80
|
+
color: var(--color-attention-fg);
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
.avatar {
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
|
|
89
88
|
&.alert {
|
|
90
89
|
.Counter {
|
|
91
|
-
color:
|
|
90
|
+
color: var(--color-danger-fg);
|
|
92
91
|
}
|
|
93
92
|
}
|
|
94
93
|
}
|
|
@@ -100,8 +99,8 @@
|
|
|
100
99
|
margin-bottom: 0;
|
|
101
100
|
font-size: inherit;
|
|
102
101
|
font-weight: $font-weight-bold;
|
|
103
|
-
color:
|
|
104
|
-
border-bottom: $border-width $border-style
|
|
102
|
+
color: var(--color-fg-default);
|
|
103
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
|
105
104
|
|
|
106
105
|
&:hover {
|
|
107
106
|
text-decoration: none;
|
package/navigation/sidenav.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// A vertical list of navigational links, typically used on the left side of a page.
|
|
4
4
|
|
|
5
5
|
.SideNav {
|
|
6
|
-
background-color:
|
|
6
|
+
background-color: var(--color-canvas-subtle);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.SideNav-item {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
// stylelint-disable-next-line primer/spacing
|
|
14
14
|
padding: 12px $spacer-3;
|
|
15
|
-
color:
|
|
15
|
+
color: var(--color-fg-default);
|
|
16
16
|
text-align: left;
|
|
17
17
|
background-color: transparent;
|
|
18
18
|
border: 0;
|
|
19
|
-
border-top: $border-width $border-style
|
|
19
|
+
border-top: $border-width $border-style var(--color-border-muted);
|
|
20
20
|
|
|
21
21
|
&:first-child {
|
|
22
22
|
border-top: 0;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
&:last-child {
|
|
26
26
|
// makes sure there is a "bottom border" in case the list is not long enough
|
|
27
27
|
// stylelint-disable-next-line primer/box-shadow
|
|
28
|
-
box-shadow: 0 $border-width 0
|
|
28
|
+
box-shadow: 0 $border-width 0 var(--color-border-default);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// Bar on the left
|
|
@@ -37,32 +37,28 @@
|
|
|
37
37
|
z-index: 1;
|
|
38
38
|
width: 2px;
|
|
39
39
|
pointer-events: none;
|
|
40
|
-
content:
|
|
40
|
+
content: '';
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// States
|
|
45
45
|
|
|
46
|
-
.SideNav-item:hover
|
|
47
|
-
.SideNav-item:focus {
|
|
46
|
+
.SideNav-item:hover {
|
|
48
47
|
text-decoration: none;
|
|
49
|
-
|
|
50
|
-
background-color: $gray-100;
|
|
51
|
-
outline: none;
|
|
48
|
+
background-color: var(--color-neutral-subtle);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
.SideNav-item:active {
|
|
55
|
-
background-color:
|
|
52
|
+
background-color: var(--color-canvas-subtle);
|
|
56
53
|
}
|
|
57
54
|
|
|
58
|
-
.SideNav-item[aria-current]:not([aria-current=false]),
|
|
59
|
-
.SideNav-item[aria-selected=
|
|
60
|
-
background-color:
|
|
55
|
+
.SideNav-item[aria-current]:not([aria-current='false']),
|
|
56
|
+
.SideNav-item[aria-selected='true'] {
|
|
57
|
+
background-color: var(--color-sidenav-selected-bg);
|
|
61
58
|
|
|
62
59
|
// Bar on the left
|
|
63
60
|
&::before {
|
|
64
|
-
|
|
65
|
-
background-color: #f9826c; // custom coral
|
|
61
|
+
background-color: var(--color-primer-border-active);
|
|
66
62
|
}
|
|
67
63
|
}
|
|
68
64
|
|
|
@@ -73,7 +69,7 @@
|
|
|
73
69
|
.SideNav-icon {
|
|
74
70
|
width: 16px;
|
|
75
71
|
margin-right: $spacer-2;
|
|
76
|
-
color:
|
|
72
|
+
color: var(--color-fg-muted);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
// Sub Nav
|
|
@@ -85,21 +81,19 @@
|
|
|
85
81
|
display: block;
|
|
86
82
|
width: 100%;
|
|
87
83
|
padding: $spacer-1 0;
|
|
88
|
-
color:
|
|
84
|
+
color: var(--color-accent-fg);
|
|
89
85
|
text-align: left;
|
|
90
86
|
background-color: transparent;
|
|
91
87
|
border: 0;
|
|
92
88
|
}
|
|
93
89
|
|
|
94
|
-
.SideNav-subItem:hover
|
|
95
|
-
|
|
96
|
-
color: $text-gray-dark;
|
|
90
|
+
.SideNav-subItem:hover {
|
|
91
|
+
color: var(--color-fg-default);
|
|
97
92
|
text-decoration: none;
|
|
98
|
-
outline: none;
|
|
99
93
|
}
|
|
100
94
|
|
|
101
|
-
.SideNav-subItem[aria-current]:not([aria-current=false]),
|
|
102
|
-
.SideNav-subItem[aria-selected=
|
|
95
|
+
.SideNav-subItem[aria-current]:not([aria-current='false']),
|
|
96
|
+
.SideNav-subItem[aria-selected='true'] {
|
|
103
97
|
font-weight: $font-weight-semibold;
|
|
104
|
-
color:
|
|
98
|
+
color: var(--color-fg-default);
|
|
105
99
|
}
|
package/navigation/subnav.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
.subnav-bordered {
|
|
11
11
|
// stylelint-disable-next-line primer/spacing
|
|
12
12
|
padding-bottom: 20px;
|
|
13
|
-
border-bottom: $border-width $border-style
|
|
13
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.subnav-flush {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
font-weight: $font-weight-semibold;
|
|
26
26
|
// stylelint-disable-next-line primer/typography
|
|
27
27
|
line-height: 20px;
|
|
28
|
-
color:
|
|
29
|
-
border: $border;
|
|
28
|
+
color: var(--color-fg-default);
|
|
29
|
+
border: $border-width $border-style var(--color-border-default);
|
|
30
30
|
|
|
31
31
|
+ .subnav-item {
|
|
32
32
|
// stylelint-disable-next-line primer/spacing
|
|
@@ -36,17 +36,16 @@
|
|
|
36
36
|
&:hover,
|
|
37
37
|
&:focus {
|
|
38
38
|
text-decoration: none;
|
|
39
|
-
background-color:
|
|
39
|
+
background-color: var(--color-canvas-subtle);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&.selected,
|
|
43
43
|
&[aria-selected=true],
|
|
44
44
|
&[aria-current]:not([aria-current=false]) {
|
|
45
45
|
z-index: 2;
|
|
46
|
-
color:
|
|
47
|
-
background-color:
|
|
48
|
-
|
|
49
|
-
border-color: $blue-600;
|
|
46
|
+
color: var(--color-fg-on-emphasis);
|
|
47
|
+
background-color: var(--color-accent-emphasis);
|
|
48
|
+
border-color: var(--color-accent-emphasis);
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
&:first-child {
|
|
@@ -69,7 +68,7 @@
|
|
|
69
68
|
.subnav-search-input {
|
|
70
69
|
width: 320px;
|
|
71
70
|
padding-left: $spacer-5;
|
|
72
|
-
color:
|
|
71
|
+
color: var(--color-fg-muted);
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
.subnav-search-input-wide {
|
|
@@ -81,16 +80,13 @@
|
|
|
81
80
|
top: 9px;
|
|
82
81
|
left: 8px;
|
|
83
82
|
display: block;
|
|
84
|
-
|
|
85
|
-
color: $gray-400;
|
|
83
|
+
color: var(--color-fg-muted);
|
|
86
84
|
text-align: center;
|
|
87
85
|
pointer-events: none;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
.subnav-search-context {
|
|
91
89
|
.btn {
|
|
92
|
-
// stylelint-disable-next-line primer/colors
|
|
93
|
-
color: $gray-700;
|
|
94
90
|
border-top-right-radius: 0;
|
|
95
91
|
border-bottom-right-radius: 0;
|
|
96
92
|
|