@primer/css 0.0.0-1ea75fe → 0.0.0-202110118627
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 +1225 -132
- package/CODE_OF_CONDUCT.md +1 -1
- package/CONTRIBUTING.md +85 -0
- package/DEVELOP.md +11 -69
- package/LICENSE +1 -1
- package/README.md +13 -15
- package/RELEASING.md +5 -72
- package/actionlist/action-list-item-divider.scss +42 -0
- package/actionlist/action-list-item.scss +444 -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 +11 -22
- package/alerts/flash.scss +91 -21
- package/alerts/index.scss +2 -2
- package/autocomplete/README.md +25 -0
- package/autocomplete/autocomplete.scss +58 -0
- package/autocomplete/index.scss +4 -0
- package/autocomplete/suggester.scss +92 -0
- package/avatars/README.md +11 -23
- package/avatars/avatar-parent-child.scss +4 -3
- package/avatars/avatar-stack.scss +21 -13
- package/avatars/avatar.scss +31 -3
- package/avatars/circle-badge.scss +5 -4
- package/avatars/index.scss +5 -5
- package/base/README.md +11 -22
- package/base/base.scss +5 -4
- package/base/index.scss +6 -4
- package/base/kbd.scss +20 -0
- package/base/normalize.scss +5 -5
- package/base/octicons.scss +6 -0
- package/base/typography-base.scss +2 -0
- package/blankslate/README.md +11 -23
- package/blankslate/blankslate.scss +25 -12
- package/blankslate/index.scss +2 -2
- package/box/README.md +11 -23
- package/box/box.scss +52 -44
- package/box/index.scss +2 -2
- package/branch-name/README.md +11 -23
- package/branch-name/branch-name.scss +18 -8
- package/branch-name/index.scss +2 -2
- package/breadcrumb/README.md +17 -13
- package/breadcrumb/breadcrumb.scss +15 -5
- package/breadcrumb/index.scss +2 -2
- package/buttons/README.md +11 -23
- package/buttons/button-group.scss +2 -0
- package/buttons/button.scss +243 -143
- package/buttons/index.scss +4 -3
- package/buttons/misc.scss +222 -0
- 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 +11 -23
- package/core/index.scss +19 -20
- package/deprecations.js +24 -0
- 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 +2 -0
- package/dist/autocomplete.css.map +1 -0
- package/dist/autocomplete.js +1 -0
- 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 +3 -4
- package/dist/core.css.map +1 -1
- package/dist/core.js +1 -1
- package/dist/deprecations.json +539 -0
- package/dist/dropdown.css +2 -0
- package/dist/dropdown.css.map +1 -0
- package/dist/dropdown.js +1 -0
- package/dist/forms.css +1 -2
- package/dist/forms.css.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/header.css +2 -0
- package/dist/header.css.map +1 -0
- package/dist/header.js +1 -0
- 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 +2 -0
- package/dist/loaders.css.map +1 -0
- package/dist/loaders.js +1 -0
- 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 +3 -4
- package/dist/marketing.css.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/meta.json +317 -274
- 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 +13 -14
- package/dist/primer.css.map +1 -1
- package/dist/primer.js +1 -1
- package/dist/product.css +3 -4
- 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 +2 -0
- package/dist/select-menu.css.map +1 -0
- package/dist/select-menu.js +1 -0
- package/dist/stats/actionlist.json +1 -0
- package/dist/stats/alerts.json +1 -1
- package/dist/stats/autocomplete.json +1 -0
- 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 -0
- package/dist/stats/forms.json +1 -1
- package/dist/stats/header.json +1 -0
- 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 -0
- 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 -0
- 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 -0
- package/dist/stats/toasts.json +1 -0
- 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 +2 -0
- package/dist/timeline.css.map +1 -0
- package/dist/timeline.js +1 -0
- package/dist/toasts.css +2 -0
- package/dist/toasts.css.map +1 -0
- package/dist/toasts.js +1 -0
- 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 +1352 -0
- package/dropdown/README.md +25 -0
- package/dropdown/dropdown.scss +272 -0
- package/dropdown/index.scss +2 -0
- package/forms/README.md +11 -23
- package/forms/form-control.scss +76 -32
- package/forms/form-group.scss +83 -46
- package/forms/form-select.scss +17 -5
- package/forms/form-validation.scss +51 -32
- package/forms/index.scss +7 -6
- package/forms/input-group.scss +2 -0
- package/forms/radio-group.scss +62 -0
- package/header/README.md +25 -0
- package/header/header.scss +47 -0
- package/header/index.scss +2 -0
- package/index.scss +7 -4
- package/labels/README.md +11 -23
- package/labels/counters.scss +24 -13
- package/labels/diffstat.scss +37 -0
- package/labels/index.scss +8 -4
- package/labels/issue-labels.scss +23 -0
- package/labels/labels.scss +59 -40
- package/labels/mixins.scss +32 -0
- package/labels/states.scss +40 -19
- package/layout/README.md +11 -23
- package/layout/container.scss +0 -8
- package/layout/grid-offset.scss +11 -11
- package/layout/grid.scss +23 -23
- package/layout/index.scss +7 -5
- package/layout/layout.scss +185 -0
- package/layout/mixins.scss +79 -0
- package/links/README.md +25 -0
- package/links/index.scss +3 -0
- package/links/link.scss +55 -0
- package/loaders/README.md +25 -0
- package/loaders/index.scss +2 -0
- package/loaders/loaders.scss +19 -0
- package/markdown/README.md +11 -23
- package/markdown/blob-csv.scss +4 -2
- package/markdown/code.scss +11 -3
- package/markdown/footnotes.scss +37 -0
- package/markdown/headings.scss +13 -4
- package/markdown/images.scss +15 -4
- package/markdown/index.scss +9 -8
- package/markdown/lists.scss +19 -5
- package/markdown/markdown-body.scss +15 -18
- package/markdown/tables.scss +8 -5
- package/marketing/README.md +11 -23
- package/marketing/buttons/button.scss +82 -61
- package/marketing/index.scss +6 -11
- package/marketing/support/index.scss +1 -0
- package/marketing/support/mixins.scss +66 -0
- package/marketing/support/variables.scss +110 -51
- package/marketing/type/typography.scss +100 -62
- package/marketing/utilities/animations.scss +9 -0
- package/marketing/utilities/filters.scss +0 -1
- package/marketing/utilities/index.scss +2 -3
- package/marketing/utilities/layout.scss +32 -11
- package/navigation/README.md +11 -23
- package/navigation/filter-list.scss +16 -14
- package/navigation/index.scss +7 -6
- package/navigation/menu.scss +44 -35
- package/navigation/sidenav.scss +108 -0
- package/navigation/subnav.scss +28 -21
- package/navigation/tabnav.scss +45 -21
- package/navigation/underline-nav.scss +36 -22
- package/package.json +78 -107
- package/pagination/README.md +12 -14
- package/pagination/index.scss +2 -2
- package/pagination/pagination.scss +61 -37
- package/popover/README.md +11 -24
- package/popover/index.scss +2 -2
- package/popover/popover.scss +18 -9
- package/postcss.config.cjs +22 -0
- package/prettier.config.cjs +1 -0
- package/product/README.md +11 -23
- package/product/index.scss +19 -17
- package/progress/README.md +11 -23
- package/progress/index.scss +2 -2
- package/progress/progress.scss +11 -1
- package/select-menu/README.md +25 -0
- package/select-menu/index.scss +3 -0
- package/select-menu/select-menu.scss +464 -0
- package/stylelint.config.cjs +16 -0
- package/subhead/README.md +11 -25
- package/subhead/index.scss +2 -2
- package/subhead/subhead.scss +10 -4
- package/support/README.md +12 -18
- package/support/index.scss +7 -8
- package/support/mixins/color-modes.scss +106 -0
- package/support/mixins/misc.scss +9 -12
- package/support/mixins/typography.scss +1 -1
- package/support/variables/layout.scss +106 -11
- package/support/variables/misc.scss +7 -30
- package/support/variables/typography.scss +4 -4
- package/table-object/README.md +11 -24
- package/table-object/index.scss +1 -1
- package/timeline/README.md +25 -0
- package/timeline/index.scss +2 -0
- package/timeline/timeline-item.scss +95 -0
- package/toasts/README.md +25 -0
- package/toasts/index.scss +2 -0
- package/toasts/toasts.scss +124 -0
- package/tooltips/README.md +11 -24
- package/tooltips/index.scss +2 -2
- package/tooltips/tooltips.scss +17 -8
- package/truncate/README.md +11 -24
- package/truncate/index.scss +2 -1
- package/truncate/truncate.scss +41 -7
- package/utilities/README.md +11 -23
- package/utilities/animations.scss +14 -2
- package/utilities/borders.scss +29 -65
- package/utilities/box-shadow.scss +8 -9
- package/utilities/colors.scss +71 -110
- package/utilities/details.scss +12 -4
- package/utilities/flexbox.scss +14 -14
- package/utilities/index.scss +12 -12
- package/utilities/layout.scss +28 -22
- package/utilities/margin.scss +34 -17
- package/utilities/padding.scss +13 -9
- package/utilities/typography.scss +54 -25
- package/utilities/visibility-display.scss +0 -13
- package/.browserslistrc +0 -6
- package/.eslintrc.json +0 -13
- package/.stylelintrc.json +0 -9
- package/MIGRATING.md +0 -70
- package/bin/primer-migrate +0 -86
- package/build/build.css +0 -23
- package/build/build.json +0 -1
- package/build/index.js +0 -1
- package/dist/marketing-support.css.map +0 -1
- package/dist/support.css.map +0 -1
- package/fonts/Inter-Medium.woff +0 -0
- package/fonts/Inter-Regular.woff +0 -0
- package/layout/columns.scss +0 -56
- package/marketing/buttons/README.md +0 -39
- package/marketing/support/README.md +0 -31
- package/marketing/type/README.md +0 -39
- package/marketing/utilities/README.md +0 -36
- package/marketing/utilities/margin.scss +0 -18
- package/marketing/utilities/padding.scss +0 -28
- package/postcss.config.js +0 -14
- package/prettier.config.js +0 -1
- package/support/mixins/buttons.scss +0 -160
- package/support/variables/color-system.scss +0 -243
- package/support/variables/colors.scss +0 -70
package/utilities/colors.scss
CHANGED
|
@@ -1,118 +1,79 @@
|
|
|
1
|
-
//
|
|
2
|
-
// stylelint-disable primer/selector-no-utility
|
|
3
|
-
// stylelint-disable block-opening-brace-space-before, comment-empty-line-before
|
|
4
|
-
|
|
5
|
-
// background colors
|
|
6
|
-
/* Set the background to $bg-white */
|
|
7
|
-
.bg-white { background-color: $bg-white !important; }
|
|
8
|
-
/* Set the background to $bg-blue */
|
|
9
|
-
.bg-blue { background-color: $bg-blue !important; }
|
|
10
|
-
/* Set the background to $bg-blue-light */
|
|
11
|
-
.bg-blue-light { background-color: $bg-blue-light !important; }
|
|
12
|
-
/* Set the background to $bg-gray-dark */
|
|
13
|
-
.bg-gray-dark { background-color: $bg-gray-dark !important; }
|
|
14
|
-
/* Set the background to $bg-gray */
|
|
15
|
-
.bg-gray { background-color: $bg-gray !important; }
|
|
16
|
-
/* Set the background to $bg-gray-light */
|
|
17
|
-
.bg-gray-light { background-color: $bg-gray-light !important; }
|
|
18
|
-
/* Set the background to $bg-green */
|
|
19
|
-
.bg-green { background-color: $bg-green !important; }
|
|
20
|
-
/* Set the background to $bg-green-light */
|
|
21
|
-
.bg-green-light { background-color: $bg-green-light !important; }
|
|
22
|
-
/* Set the background to $bg-red */
|
|
23
|
-
.bg-red { background-color: $bg-red !important; }
|
|
24
|
-
/* Set the background to $bg-red-light */
|
|
25
|
-
.bg-red-light { background-color: $bg-red-light !important; }
|
|
26
|
-
/* Set the background to $bg-yellow */
|
|
27
|
-
.bg-yellow { background-color: $bg-yellow !important; }
|
|
28
|
-
/* Set the background to $bg-yellow-light */
|
|
29
|
-
.bg-yellow-light { background-color: $bg-yellow-light !important; }
|
|
30
|
-
/* Set the background to $bg-purple */
|
|
31
|
-
.bg-purple { background-color: $bg-purple !important; }
|
|
32
|
-
/* Set the background to $bg-pink */
|
|
33
|
-
.bg-pink { background-color: $bg-pink !important; }
|
|
34
|
-
/* Set the background to $bg-purple-light */
|
|
35
|
-
.bg-purple-light { background-color: $bg-purple-light !important; }
|
|
36
|
-
|
|
37
|
-
// Generate a foreground and background utility for every shade of every hue
|
|
38
|
-
@each $hue, $shades in $hue-maps {
|
|
39
|
-
@each $index, $color in $shades {
|
|
40
|
-
.color-#{$hue}-#{$index} { color: $color !important; }
|
|
41
|
-
.bg-#{$hue}-#{$index} { background-color: $color !important; }
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
// stylelint-disable block-opening-brace-space-before
|
|
44
2
|
|
|
45
|
-
|
|
46
|
-
background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
|
|
47
|
-
background-repeat: no-repeat !important;
|
|
48
|
-
background-size: 100% 200px !important;
|
|
49
|
-
}
|
|
3
|
+
// Foreground
|
|
50
4
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.
|
|
54
|
-
/* Set the text color to $text-red */
|
|
55
|
-
.text-red { color: $text-red !important; }
|
|
56
|
-
/* Set the text color to $text-gray-light */
|
|
57
|
-
.text-gray-light { color: $text-gray-light !important; }
|
|
58
|
-
/* Set the text color to $text-gray */
|
|
59
|
-
.text-gray { color: $text-gray !important; }
|
|
60
|
-
/* Set the text color to $text-gray-dark */
|
|
61
|
-
.text-gray-dark { color: $text-gray-dark !important; }
|
|
62
|
-
/* Set the text color to $text-green */
|
|
63
|
-
.text-green { color: $text-green !important; }
|
|
64
|
-
/* Set the text color to $text-orange */
|
|
65
|
-
.text-orange { color: $text-orange !important; }
|
|
66
|
-
/* Set the text color to $text-orange-light */
|
|
67
|
-
.text-orange-light { color: $text-orange-light !important; }
|
|
68
|
-
/* Set the text color to $text-purple */
|
|
69
|
-
.text-purple { color: $text-purple !important; }
|
|
70
|
-
/* Set the text color to $text-pink */
|
|
71
|
-
.text-pink { color: $text-pink !important; }
|
|
72
|
-
/* Set the text color to $text-white */
|
|
73
|
-
.text-white { color: $text-white !important; }
|
|
74
|
-
/* Set the text color to inherit */
|
|
75
|
-
.text-inherit { color: inherit !important; }
|
|
76
|
-
|
|
77
|
-
// Text states
|
|
78
|
-
// These can probably all be regular utilities
|
|
79
|
-
.text-pending { color: $yellow-800 !important; }
|
|
80
|
-
// Separate text and background colors in future to improve a11y
|
|
81
|
-
.bg-pending { color: $yellow-700 !important; }
|
|
82
|
-
|
|
83
|
-
// Link colors
|
|
84
|
-
// Sets the links color to $text-gray and $text-blue on hover
|
|
85
|
-
.link-gray {
|
|
86
|
-
color: $text-gray !important;
|
|
87
|
-
|
|
88
|
-
&:hover {
|
|
89
|
-
color: $text-blue !important;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
5
|
+
.color-fg-default { color: var(--color-fg-default) !important; }
|
|
6
|
+
.color-fg-muted { color: var(--color-fg-muted) !important; }
|
|
7
|
+
.color-fg-subtle { color: var(--color-fg-subtle) !important; }
|
|
92
8
|
|
|
93
|
-
|
|
94
|
-
.
|
|
95
|
-
|
|
9
|
+
.color-fg-accent { color: var(--color-accent-fg) !important; }
|
|
10
|
+
.color-fg-success { color: var(--color-success-fg) !important; }
|
|
11
|
+
.color-fg-attention { color: var(--color-attention-fg) !important; }
|
|
12
|
+
.color-fg-severe { color: var(--color-severe-fg) !important; }
|
|
13
|
+
.color-fg-danger { color: var(--color-danger-fg) !important; }
|
|
14
|
+
.color-fg-done { color: var(--color-done-fg) !important; }
|
|
15
|
+
.color-fg-sponsors { color: var(--color-sponsors-fg) !important; }
|
|
96
16
|
|
|
97
|
-
|
|
98
|
-
color: $text-blue !important;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
17
|
+
.color-fg-on-emphasis { color: var(--color-fg-on-emphasis) !important; }
|
|
101
18
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
color:
|
|
107
|
-
|
|
108
|
-
}
|
|
19
|
+
// Background
|
|
20
|
+
|
|
21
|
+
.color-bg-default { background-color: var(--color-canvas-default) !important; }
|
|
22
|
+
.color-bg-overlay { background-color: var(--color-canvas-overlay) !important; }
|
|
23
|
+
.color-bg-inset { background-color: var(--color-canvas-inset) !important; }
|
|
24
|
+
.color-bg-subtle { background-color: var(--color-canvas-subtle) !important; }
|
|
25
|
+
.color-bg-emphasis { background-color: var(--color-neutral-emphasis-plus) !important; }
|
|
26
|
+
|
|
27
|
+
.color-bg-accent { background-color: var(--color-accent-subtle) !important; }
|
|
28
|
+
.color-bg-accent-emphasis { background-color: var(--color-accent-emphasis) !important; }
|
|
29
|
+
|
|
30
|
+
.color-bg-success { background-color: var(--color-success-subtle) !important; }
|
|
31
|
+
.color-bg-success-emphasis { background-color: var(--color-success-emphasis) !important; }
|
|
32
|
+
|
|
33
|
+
.color-bg-attention { background-color: var(--color-attention-subtle) !important; }
|
|
34
|
+
.color-bg-attention-emphasis { background-color: var(--color-attention-emphasis) !important; }
|
|
35
|
+
|
|
36
|
+
.color-bg-severe { background-color: var(--color-severe-subtle) !important; }
|
|
37
|
+
.color-bg-severe-emphasis { background-color: var(--color-severe-emphasis) !important; }
|
|
38
|
+
|
|
39
|
+
.color-bg-danger { background-color: var(--color-danger-subtle) !important; }
|
|
40
|
+
.color-bg-danger-emphasis { background-color: var(--color-danger-emphasis) !important; }
|
|
41
|
+
|
|
42
|
+
.color-bg-done { background-color: var(--color-done-subtle) !important; }
|
|
43
|
+
.color-bg-done-emphasis { background-color: var(--color-done-emphasis) !important; }
|
|
44
|
+
|
|
45
|
+
.color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
|
|
46
|
+
.color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }
|
|
47
|
+
|
|
48
|
+
// Border
|
|
49
|
+
|
|
50
|
+
.color-border-default { border-color: var(--color-border-default) !important; }
|
|
51
|
+
.color-border-muted { border-color: var(--color-border-muted) !important; }
|
|
52
|
+
.color-border-subtle { border-color: var(--color-border-subtle) !important; }
|
|
53
|
+
|
|
54
|
+
.color-border-accent { border-color: var(--color-accent-muted) !important; }
|
|
55
|
+
.color-border-accent-emphasis { border-color: var(--color-accent-emphasis) !important; }
|
|
56
|
+
|
|
57
|
+
.color-border-success { border-color: var(--color-success-muted) !important; }
|
|
58
|
+
.color-border-success-emphasis { border-color: var(--color-success-emphasis) !important; }
|
|
59
|
+
|
|
60
|
+
.color-border-attention { border-color: var(--color-attention-muted) !important; }
|
|
61
|
+
.color-border-attention-emphasis { border-color: var(--color-attention-emphasis) !important; }
|
|
62
|
+
|
|
63
|
+
.color-border-severe { border-color: var(--color-severe-muted) !important; }
|
|
64
|
+
.color-border-severe-emphasis { border-color: var(--color-severe-emphasis) !important; }
|
|
65
|
+
|
|
66
|
+
.color-border-danger { border-color: var(--color-danger-muted) !important; }
|
|
67
|
+
.color-border-danger-emphasis { border-color: var(--color-danger-emphasis) !important; }
|
|
68
|
+
|
|
69
|
+
.color-border-done { border-color: var(--color-done-muted) !important; }
|
|
70
|
+
.color-border-done-emphasis { border-color: var(--color-done-emphasis) !important; }
|
|
71
|
+
|
|
72
|
+
.color-border-sponsors { border-color: var(--color-sponsors-muted) !important; }
|
|
73
|
+
.color-border-sponsors-emphasis { border-color: var(--color-sponsors-emphasis) !important; }
|
|
109
74
|
|
|
110
|
-
|
|
111
|
-
.muted-link {
|
|
112
|
-
color: $text-gray !important;
|
|
75
|
+
// Misc
|
|
113
76
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
text-decoration: none;
|
|
117
|
-
}
|
|
77
|
+
.color-fg-inherit {
|
|
78
|
+
color: inherit !important;
|
|
118
79
|
}
|
package/utilities/details.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// stylelint-disable primer/selector-no-utility
|
|
2
1
|
// stylelint-disable selector-max-type
|
|
3
2
|
|
|
4
3
|
.details-overlay[open] > summary::before {
|
|
@@ -10,11 +9,20 @@
|
|
|
10
9
|
z-index: 80;
|
|
11
10
|
display: block;
|
|
12
11
|
cursor: default;
|
|
13
|
-
content:
|
|
12
|
+
content: ' ';
|
|
14
13
|
background: transparent;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
.details-overlay-dark[open] > summary::before {
|
|
18
|
-
z-index:
|
|
19
|
-
background:
|
|
17
|
+
z-index: 111;
|
|
18
|
+
background: var(--color-primer-canvas-backdrop);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.details-reset {
|
|
22
|
+
// Remove marker added by the display: list-item browser default
|
|
23
|
+
> summary { list-style: none; }
|
|
24
|
+
// Remove marker added by details polyfill
|
|
25
|
+
> summary::before { display: none; }
|
|
26
|
+
// Remove marker added by Chrome
|
|
27
|
+
> summary::-webkit-details-marker { display: none; }
|
|
20
28
|
}
|
package/utilities/flexbox.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// Flex utility classes
|
|
2
|
-
// stylelint-disable
|
|
3
|
-
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
|
|
4
|
-
|
|
2
|
+
// stylelint-disable block-opening-brace-space-before
|
|
5
3
|
@each $breakpoint, $variant in $responsive-variants {
|
|
6
4
|
@include breakpoint($breakpoint) {
|
|
7
5
|
// Flexbox classes
|
|
8
6
|
// Container
|
|
9
|
-
.flex#{$variant}-row
|
|
10
|
-
.flex#{$variant}-row-reverse
|
|
11
|
-
.flex#{$variant}-column
|
|
7
|
+
.flex#{$variant}-row { flex-direction: row !important; }
|
|
8
|
+
.flex#{$variant}-row-reverse { flex-direction: row-reverse !important; }
|
|
9
|
+
.flex#{$variant}-column { flex-direction: column !important; }
|
|
10
|
+
.flex#{$variant}-column-reverse { flex-direction: column-reverse !important; }
|
|
12
11
|
|
|
13
|
-
.flex#{$variant}-wrap
|
|
14
|
-
.flex#{$variant}-nowrap
|
|
12
|
+
.flex#{$variant}-wrap { flex-wrap: wrap !important; }
|
|
13
|
+
.flex#{$variant}-nowrap { flex-wrap: nowrap !important; }
|
|
14
|
+
.flex#{$variant}-wrap-reverse { flex-wrap: wrap-reverse !important; }
|
|
15
15
|
|
|
16
16
|
.flex#{$variant}-justify-start { justify-content: flex-start !important; }
|
|
17
17
|
.flex#{$variant}-justify-end { justify-content: flex-end !important; }
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
.flex#{$variant}-content-stretch { align-content: stretch !important; }
|
|
34
34
|
|
|
35
35
|
// Item
|
|
36
|
-
.flex#{$variant}-
|
|
36
|
+
.flex#{$variant}-1 { flex: 1 !important; }
|
|
37
|
+
.flex#{$variant}-auto { flex: auto !important; }
|
|
38
|
+
.flex#{$variant}-grow-0 { flex-grow: 0 !important; }
|
|
37
39
|
.flex#{$variant}-shrink-0 { flex-shrink: 0 !important; }
|
|
38
40
|
|
|
39
41
|
.flex#{$variant}-self-auto { align-self: auto !important; }
|
|
@@ -43,10 +45,8 @@
|
|
|
43
45
|
.flex#{$variant}-self-baseline { align-self: baseline !important; }
|
|
44
46
|
.flex#{$variant}-self-stretch { align-self: stretch !important; }
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
.flex#{$variant}-
|
|
48
|
-
|
|
49
|
-
flex-basis: 0;
|
|
50
|
-
}
|
|
48
|
+
.flex#{$variant}-order-1 { order: 1 !important; }
|
|
49
|
+
.flex#{$variant}-order-2 { order: 2 !important; }
|
|
50
|
+
.flex#{$variant}-order-none { order: inherit !important; }
|
|
51
51
|
}
|
|
52
52
|
}
|
package/utilities/index.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
2
|
// utilities
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
3
|
+
@import './animations.scss';
|
|
4
|
+
@import './borders.scss';
|
|
5
|
+
@import './box-shadow.scss';
|
|
6
|
+
@import './colors.scss';
|
|
7
|
+
@import './details.scss';
|
|
8
|
+
@import './flexbox.scss';
|
|
9
|
+
@import './layout.scss';
|
|
10
|
+
@import './margin.scss';
|
|
11
|
+
@import './padding.scss';
|
|
12
|
+
@import './typography.scss';
|
|
13
13
|
// Visibility and display should always come last in the imports so that they override other utilities with !important
|
|
14
|
-
@import
|
|
14
|
+
@import './visibility-display.scss';
|
package/utilities/layout.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Layout
|
|
2
|
-
// stylelint-disable
|
|
3
|
-
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
|
|
2
|
+
// stylelint-disable block-opening-brace-space-before, comment-empty-line-before
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
/* Position */
|
|
6
5
|
@each $breakpoint, $variant in $responsive-variants {
|
|
7
6
|
@include breakpoint($breakpoint) {
|
|
8
7
|
@each $position in $responsive-positions {
|
|
@@ -13,14 +12,19 @@
|
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
/*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.
|
|
20
|
-
|
|
21
|
-
.bottom-0 { bottom: 0 !important; }
|
|
22
|
-
|
|
23
|
-
.
|
|
15
|
+
/* Final position */
|
|
16
|
+
@each $breakpoint, $variant in $responsive-variants {
|
|
17
|
+
@include breakpoint($breakpoint) {
|
|
18
|
+
.top#{$variant}-0 { top: 0 !important; }
|
|
19
|
+
.right#{$variant}-0 { right: 0 !important; }
|
|
20
|
+
.bottom#{$variant}-0 { bottom: 0 !important; }
|
|
21
|
+
.left#{$variant}-0 { left: 0 !important; }
|
|
22
|
+
.top#{$variant}-auto { top: auto !important; }
|
|
23
|
+
.right#{$variant}-auto { right: auto !important; }
|
|
24
|
+
.bottom#{$variant}-auto { bottom: auto !important; }
|
|
25
|
+
.left#{$variant}-auto { left: auto !important; }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
24
28
|
|
|
25
29
|
/* Vertical align middle */
|
|
26
30
|
.v-align-middle { vertical-align: middle !important; }
|
|
@@ -36,17 +40,15 @@
|
|
|
36
40
|
.v-align-baseline { vertical-align: baseline !important; }
|
|
37
41
|
|
|
38
42
|
// Overflow utilities
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
.overflow-
|
|
44
|
-
.overflow-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.overflow-x-scroll { overflow-x: scroll !important; }
|
|
49
|
-
.overflow-y-scroll { overflow-y: scroll !important; }
|
|
43
|
+
@each $breakpoint, $variant in $responsive-variants {
|
|
44
|
+
@include breakpoint($breakpoint) {
|
|
45
|
+
@each $overflow in (visible, hidden, auto, scroll) {
|
|
46
|
+
.overflow#{$variant}-#{$overflow} { overflow: $overflow !important; }
|
|
47
|
+
.overflow#{$variant}-x-#{$overflow} { overflow-x: $overflow !important; }
|
|
48
|
+
.overflow#{$variant}-y-#{$overflow} { overflow-y: $overflow !important; }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
50
52
|
|
|
51
53
|
// Clear floats
|
|
52
54
|
/* Clear floats around the element */
|
|
@@ -82,6 +84,10 @@
|
|
|
82
84
|
|
|
83
85
|
@each $breakpoint, $variant in $responsive-variants {
|
|
84
86
|
@include breakpoint($breakpoint) {
|
|
87
|
+
|
|
88
|
+
// Auto varients
|
|
89
|
+
.width#{$variant}-auto { width: auto !important; }
|
|
90
|
+
|
|
85
91
|
/* Set the direction to rtl */
|
|
86
92
|
.direction#{$variant}-rtl { direction: rtl !important; }
|
|
87
93
|
/* Set the direction to ltr */
|
package/utilities/margin.scss
CHANGED
|
@@ -1,38 +1,48 @@
|
|
|
1
1
|
// Margin spacer utilities
|
|
2
|
-
// stylelint-disable primer/selector-no-utility
|
|
3
2
|
// stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, comment-empty-line-before
|
|
4
3
|
|
|
5
4
|
// Loop through the breakpoint values
|
|
6
5
|
@each $breakpoint, $variant in $responsive-variants {
|
|
7
6
|
@include breakpoint($breakpoint) {
|
|
8
7
|
// Loop through the spacer values
|
|
9
|
-
@each $scale, $size in $spacer-map {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
@each $scale, $size in $spacer-map-extended {
|
|
9
|
+
@if ($scale < length($spacer-map)) {
|
|
10
|
+
/* Set a $size margin to all sides at $breakpoint */
|
|
11
|
+
.m#{$variant}-#{$scale} { margin: $size !important; }
|
|
12
|
+
}
|
|
13
|
+
|
|
12
14
|
/* Set a $size margin on the top at $breakpoint */
|
|
13
15
|
.mt#{$variant}-#{$scale} { margin-top: $size !important; }
|
|
14
|
-
/* Set a $size margin on the right at $breakpoint */
|
|
15
|
-
.mr#{$variant}-#{$scale} { margin-right: $size !important; }
|
|
16
16
|
/* Set a $size margin on the bottom at $breakpoint */
|
|
17
17
|
.mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
@if ($scale < length($spacer-map)) {
|
|
20
|
+
/* Set a $size margin on the right at $breakpoint */
|
|
21
|
+
.mr#{$variant}-#{$scale} { margin-right: $size !important; }
|
|
22
|
+
/* Set a $size margin on the left at $breakpoint */
|
|
23
|
+
.ml#{$variant}-#{$scale} { margin-left: $size !important; }
|
|
24
|
+
}
|
|
20
25
|
|
|
21
26
|
@if ($size != 0) {
|
|
22
27
|
/* Set a negative $size margin on top at $breakpoint */
|
|
23
|
-
.mt#{$variant}-n#{$scale} { margin-top
|
|
24
|
-
/* Set a negative $size margin on the right at $breakpoint */
|
|
25
|
-
.mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
|
|
28
|
+
.mt#{$variant}-n#{$scale} { margin-top: -$size !important; }
|
|
26
29
|
/* Set a negative $size margin on the bottom at $breakpoint */
|
|
27
30
|
.mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; }
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
@if ($scale < length($spacer-map)) {
|
|
33
|
+
/* Set a negative $size margin on the right at $breakpoint */
|
|
34
|
+
.mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
|
|
35
|
+
/* Set a negative $size margin on the left at $breakpoint */
|
|
36
|
+
.ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
@if ($scale < length($spacer-map)) {
|
|
41
|
+
/* Set a $size margin on the left & right at $breakpoint */
|
|
42
|
+
.mx#{$variant}-#{$scale} {
|
|
43
|
+
margin-right: $size !important;
|
|
44
|
+
margin-left: $size !important;
|
|
45
|
+
}
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
/* Set a $size margin on the top & bottom at $breakpoint */
|
|
@@ -49,3 +59,10 @@
|
|
|
49
59
|
}
|
|
50
60
|
}
|
|
51
61
|
}
|
|
62
|
+
|
|
63
|
+
.m-auto { margin: auto !important; }
|
|
64
|
+
|
|
65
|
+
.mt-auto { margin-top: auto !important; }
|
|
66
|
+
.mr-auto { margin-right: auto !important; }
|
|
67
|
+
.mb-auto { margin-bottom: auto !important; }
|
|
68
|
+
.ml-auto { margin-left: auto !important; }
|
package/utilities/padding.scss
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// Padding spacer utilities
|
|
2
|
-
// stylelint-disable
|
|
3
|
-
// stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, comment-empty-line-before
|
|
2
|
+
// stylelint-disable block-opening-brace-space-before, comment-empty-line-before
|
|
4
3
|
|
|
5
4
|
// Responsive padding spacer utilities
|
|
6
5
|
@each $breakpoint, $variant in $responsive-variants {
|
|
7
6
|
@include breakpoint($breakpoint) {
|
|
8
7
|
// Loop through the spacer values
|
|
9
|
-
@each $scale, $size in $spacer-map {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
@each $scale, $size in $spacer-map-extended {
|
|
9
|
+
@if ($scale < length($spacer-map)) {
|
|
10
|
+
/* Set a $size padding to all sides at $breakpoint */
|
|
11
|
+
.p#{$variant}-#{$scale} { padding: $size !important; }
|
|
12
|
+
}
|
|
13
|
+
|
|
12
14
|
/* Set a $size padding to the top at $breakpoint */
|
|
13
15
|
.pt#{$variant}-#{$scale} { padding-top: $size !important; }
|
|
14
16
|
/* Set a $size padding to the right at $breakpoint */
|
|
@@ -18,10 +20,12 @@
|
|
|
18
20
|
/* Set a $size padding to the left at $breakpoint */
|
|
19
21
|
.pl#{$variant}-#{$scale} { padding-left: $size !important; }
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
@if ($scale < length($spacer-map)) {
|
|
24
|
+
/* Set a $size padding to the left & right at $breakpoint */
|
|
25
|
+
.px#{$variant}-#{$scale} {
|
|
26
|
+
padding-right: $size !important;
|
|
27
|
+
padding-left: $size !important;
|
|
28
|
+
}
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
/* Set a $size padding to the top & bottom at $breakpoint */
|