@primer/css 20.0.0-rc.8702fd9a → 20.0.0-rc.e6f567ec
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 +166 -3
- package/CONTRIBUTING.md +6 -4
- package/DEVELOP.md +26 -21
- package/README.md +2 -2
- package/actionlist/action-list-item-divider.scss +8 -2
- package/actionlist/action-list-item.scss +214 -130
- package/actionlist/action-list-tree.scss +118 -0
- package/actionlist/action-list.scss +29 -0
- package/actionlist/index.scss +1 -0
- package/alerts/flash.scss +6 -2
- package/autocomplete/autocomplete.scss +51 -2
- package/avatars/avatar-stack.scss +1 -0
- package/base/base.scss +64 -3
- package/base/index.scss +0 -1
- package/base/kbd.scss +0 -1
- package/base/normalize.scss +13 -53
- package/base/typography-base.scss +3 -2
- package/blankslate/blankslate.scss +20 -1
- package/blankslate/index.scss +0 -1
- package/box/box.scss +0 -3
- package/branch-name/branch-name.scss +1 -0
- package/breadcrumb/breadcrumb.scss +1 -1
- package/buttons/button-group.scss +3 -2
- package/buttons/button.scss +64 -36
- package/buttons/misc.scss +30 -25
- package/color-modes/index.scss +2 -0
- package/color-modes/native.scss +12 -0
- package/color-modes/themes/dark.scss +0 -1
- package/color-modes/themes/dark_colorblind.scss +0 -1
- package/color-modes/themes/dark_dimmed.scss +0 -1
- package/color-modes/themes/dark_high_contrast.scss +0 -1
- package/color-modes/themes/dark_tritanopia.scss +6 -0
- package/color-modes/themes/light.scss +0 -1
- package/color-modes/themes/light_colorblind.scss +0 -1
- package/color-modes/themes/light_high_contrast.scss +0 -1
- package/color-modes/themes/light_tritanopia.scss +6 -0
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css +1 -1
- 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/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +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 +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/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css +1 -1
- package/dist/marketing-links.css.map +1 -1
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +73 -73
- package/dist/navigation.css +1 -1
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css +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 +4 -4
- package/dist/primer.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/actionlist.json +1 -1
- 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/branch-name.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/dropdown.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/marketing-buttons.json +1 -1
- package/dist/stats/marketing-links.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/subhead.json +1 -1
- package/dist/stats/toasts.json +1 -1
- package/dist/stats/tooltips.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/table-object.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/dist/variables.json +7 -7
- package/dropdown/dropdown.scss +0 -2
- package/forms/form-control.scss +26 -5
- package/forms/form-group.scss +47 -13
- package/forms/form-validation.scss +1 -1
- package/forms/input-group.scss +18 -0
- package/labels/counters.scss +1 -1
- package/labels/index.scss +0 -1
- package/labels/labels.scss +12 -1
- package/labels/mixins.scss +7 -2
- package/labels/states.scss +2 -2
- package/layout/grid-offset.scss +1 -0
- package/layout/grid.scss +1 -0
- package/layout/index.scss +1 -1
- package/layout/layout.scss +8 -11
- package/layout/mixins.scss +30 -4
- package/layout/page-layout.scss +384 -0
- package/links/link.scss +6 -1
- package/markdown/code.scss +5 -0
- package/markdown/footnotes.scss +38 -26
- package/markdown/headings.scss +17 -0
- package/markdown/images.scss +3 -3
- package/markdown/markdown-body.scss +0 -8
- package/marketing/buttons/button.scss +32 -26
- package/marketing/links/link.scss +5 -5
- package/marketing/type/typography.scss +3 -0
- package/marketing/utilities/layout.scss +1 -0
- package/navigation/filter-list.scss +20 -2
- package/navigation/menu.scss +8 -10
- package/navigation/sidenav.scss +3 -12
- package/navigation/subnav.scss +20 -2
- package/navigation/tabnav.scss +9 -4
- package/navigation/underline-nav.scss +79 -28
- package/package.json +32 -26
- package/pagination/pagination.scss +65 -7
- package/popover/popover.scss +1 -2
- package/select-menu/select-menu.scss +3 -3
- package/stylelint.config.cjs +2 -11
- package/subhead/subhead.scss +3 -0
- package/support/mixins/color-modes.scss +3 -0
- package/support/mixins/misc.scss +48 -1
- package/support/mixins/typography.scss +3 -2
- package/support/variables/layout.scss +2 -3
- package/table-object/table-object.scss +3 -0
- package/timeline/timeline-item.scss +0 -1
- package/toasts/toasts.scss +7 -4
- package/tooltips/tooltips.scss +0 -7
- package/utilities/colors.scss +16 -0
- package/utilities/details.scss +81 -4
- package/utilities/layout.scss +1 -1
- package/utilities/margin.scss +4 -1
- package/utilities/padding.scss +3 -1
- package/utilities/visibility-display.scss +52 -3
- package/table-object/README.md +0 -25
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
/*! */ // This is a fix for a cssstats bug see https://github.com/cssstats/cssstats/issues/331
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
11
12
|
@else {
|
|
12
13
|
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
|
|
13
14
|
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
@content;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
|
|
39
41
|
@else {
|
|
40
42
|
[data-color-mode="light"][data-light-theme*="#{$mode}"],
|
|
41
43
|
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
@if $type == dark {
|
|
85
87
|
$dark-colors: append($dark-colors, (--color-#{$name}, #{$color}));
|
|
86
88
|
}
|
|
89
|
+
|
|
87
90
|
@else {
|
|
88
91
|
$light-colors: append($light-colors, (--color-#{$name}, #{$color}));
|
|
89
92
|
}
|
package/support/mixins/misc.scss
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&::after {
|
|
18
|
-
|
|
18
|
+
// stylelint-disable-next-line primer/spacing
|
|
19
|
+
margin-left: 2px;
|
|
19
20
|
background-color: var(--color-canvas-default);
|
|
20
21
|
background-image: linear-gradient($background, $background);
|
|
21
22
|
}
|
|
@@ -24,3 +25,49 @@
|
|
|
24
25
|
background-color: $border;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
|
|
29
|
+
// global focus styles
|
|
30
|
+
|
|
31
|
+
// inset box-shadow for form controls
|
|
32
|
+
@mixin focusBoxShadowInset($outlineWidth: 1px, $outlineColor: var(--color-accent-fg)) {
|
|
33
|
+
border-color: var(--color-accent-fg);
|
|
34
|
+
outline: none;
|
|
35
|
+
box-shadow: inset 0 0 0 $outlineWidth $outlineColor;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// box-shadow for :target styles (no inset)
|
|
39
|
+
// !important to override PCSS utilities
|
|
40
|
+
@mixin targetBoxShadow($outlineWidth: 2px, $outlineColor: var(--color-accent-fg)) {
|
|
41
|
+
outline: none !important;
|
|
42
|
+
box-shadow: 0 0 0 $outlineWidth $outlineColor !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// outline
|
|
46
|
+
@mixin focusOutline($outlineOffset: -2px, $outlineColor: var(--color-accent-fg)) {
|
|
47
|
+
outline: 2px solid $outlineColor;
|
|
48
|
+
outline-offset: $outlineOffset;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// outline with fg box-shadow for buttons
|
|
53
|
+
@mixin focusOutlineOnEmphasis($outlineOffset: -2px, $outlineColor: var(--color-accent-fg)) {
|
|
54
|
+
outline: 2px solid $outlineColor;
|
|
55
|
+
outline-offset: $outlineOffset;
|
|
56
|
+
box-shadow: inset 0 0 0 3px var(--color-fg-on-emphasis);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// if min-width is undefined, return only min-height
|
|
60
|
+
@mixin minTouchTarget($min-height: 32px, $min-width: '') {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 50%;
|
|
63
|
+
left: 50%;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
min-height: $min-height;
|
|
67
|
+
content: '';
|
|
68
|
+
transform: translateX(-50%) translateY(-50%);
|
|
69
|
+
|
|
70
|
+
@if $min-width != '' {
|
|
71
|
+
min-width: $min-width;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
|
|
48
48
|
// 32px on desktop
|
|
49
49
|
@include breakpoint(md) { font-size: $h1-size; }
|
|
50
|
-
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
@mixin f2-responsive {
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
|
|
63
62
|
// 20px on desktop
|
|
64
63
|
@include breakpoint(md) { font-size: $h3-size; }
|
|
65
|
-
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
// These use the mixins from above for responsive heading sizes.
|
|
@@ -70,15 +68,18 @@
|
|
|
70
68
|
// couple the responsive font-size with the font-weight.
|
|
71
69
|
@mixin h1-responsive {
|
|
72
70
|
@include f1-responsive;
|
|
71
|
+
|
|
73
72
|
font-weight: $font-weight-bold;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
@mixin h2-responsive {
|
|
77
76
|
@include f2-responsive;
|
|
77
|
+
|
|
78
78
|
font-weight: $font-weight-bold;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
@mixin h3-responsive {
|
|
82
82
|
@include f3-responsive;
|
|
83
|
+
|
|
83
84
|
font-weight: $font-weight-bold;
|
|
84
85
|
}
|
|
@@ -157,7 +157,7 @@ $responsive-variants: (
|
|
|
157
157
|
xl: '-xl',
|
|
158
158
|
) !default;
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// responsive utility position values
|
|
161
161
|
$responsive-positions: (
|
|
162
162
|
static,
|
|
163
163
|
relative,
|
|
@@ -178,9 +178,8 @@ $sidebar-narrow-width: (
|
|
|
178
178
|
) !default;
|
|
179
179
|
|
|
180
180
|
$sidebar-wide-width: (
|
|
181
|
-
md: 296px,
|
|
182
181
|
lg: 320px,
|
|
183
|
-
xl:
|
|
182
|
+
xl: 336px
|
|
184
183
|
) !default;
|
|
185
184
|
|
|
186
185
|
$gutter: (
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Deprecated
|
|
2
|
+
// TODO: Replace TableObject with flexbox or a new Table component
|
|
3
|
+
|
|
1
4
|
// TableObject is a module for creating dynamically resizable elements that
|
|
2
5
|
// always sit on the same horizontal line (e.g., they never wrap). Using
|
|
3
6
|
// tables means it's cross browser friendly.
|
package/toasts/toasts.scss
CHANGED
|
@@ -40,9 +40,7 @@
|
|
|
40
40
|
background-color: transparent;
|
|
41
41
|
border: 0;
|
|
42
42
|
|
|
43
|
-
&:focus,
|
|
44
43
|
&:hover {
|
|
45
|
-
outline: none;
|
|
46
44
|
opacity: 0.7;
|
|
47
45
|
}
|
|
48
46
|
|
|
@@ -119,6 +117,11 @@
|
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
@keyframes Toast--spinner {
|
|
122
|
-
from {
|
|
123
|
-
|
|
120
|
+
from {
|
|
121
|
+
transform: rotate(0deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
to {
|
|
125
|
+
transform: rotate(360deg);
|
|
126
|
+
}
|
|
124
127
|
}
|
package/tooltips/tooltips.scss
CHANGED
package/utilities/colors.scss
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
.color-fg-attention { color: var(--color-attention-fg) !important; }
|
|
12
12
|
.color-fg-severe { color: var(--color-severe-fg) !important; }
|
|
13
13
|
.color-fg-danger { color: var(--color-danger-fg) !important; }
|
|
14
|
+
.color-fg-open { color: var(--color-open-fg) !important; }
|
|
15
|
+
.color-fg-closed { color: var(--color-closed-fg) !important; }
|
|
14
16
|
.color-fg-done { color: var(--color-done-fg) !important; }
|
|
15
17
|
.color-fg-sponsors { color: var(--color-sponsors-fg) !important; }
|
|
16
18
|
|
|
@@ -39,12 +41,20 @@
|
|
|
39
41
|
.color-bg-danger { background-color: var(--color-danger-subtle) !important; }
|
|
40
42
|
.color-bg-danger-emphasis { background-color: var(--color-danger-emphasis) !important; }
|
|
41
43
|
|
|
44
|
+
.color-bg-open { background-color: var(--color-open-subtle) !important; }
|
|
45
|
+
.color-bg-open-emphasis { background-color: var(--color-open-emphasis) !important; }
|
|
46
|
+
|
|
47
|
+
.color-bg-closed { background-color: var(--color-closed-subtle) !important; }
|
|
48
|
+
.color-bg-closed-emphasis { background-color: var(--color-closed-emphasis) !important; }
|
|
49
|
+
|
|
42
50
|
.color-bg-done { background-color: var(--color-done-subtle) !important; }
|
|
43
51
|
.color-bg-done-emphasis { background-color: var(--color-done-emphasis) !important; }
|
|
44
52
|
|
|
45
53
|
.color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
|
|
46
54
|
.color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }
|
|
47
55
|
|
|
56
|
+
.color-bg-transparent { background-color: transparent !important; }
|
|
57
|
+
|
|
48
58
|
// Border
|
|
49
59
|
|
|
50
60
|
.color-border-default { border-color: var(--color-border-default) !important; }
|
|
@@ -66,6 +76,12 @@
|
|
|
66
76
|
.color-border-danger { border-color: var(--color-danger-muted) !important; }
|
|
67
77
|
.color-border-danger-emphasis { border-color: var(--color-danger-emphasis) !important; }
|
|
68
78
|
|
|
79
|
+
.color-border-open { border-color: var(--color-open-muted) !important; }
|
|
80
|
+
.color-border-open-emphasis { border-color: var(--color-open-emphasis) !important; }
|
|
81
|
+
|
|
82
|
+
.color-border-closed { border-color: var(--color-closed-muted) !important; }
|
|
83
|
+
.color-border-closed-emphasis { border-color: var(--color-closed-emphasis) !important; }
|
|
84
|
+
|
|
69
85
|
.color-border-done { border-color: var(--color-done-muted) !important; }
|
|
70
86
|
.color-border-done-emphasis { border-color: var(--color-done-emphasis) !important; }
|
|
71
87
|
|
package/utilities/details.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// stylelint-disable selector-max-type
|
|
1
|
+
// stylelint-disable selector-max-type, selector-max-specificity, max-nesting-depth, selector-no-qualifying-type
|
|
2
2
|
|
|
3
3
|
.details-overlay[open] > summary::before {
|
|
4
4
|
position: fixed;
|
|
@@ -20,9 +20,86 @@
|
|
|
20
20
|
|
|
21
21
|
.details-reset {
|
|
22
22
|
// Remove marker added by the display: list-item browser default
|
|
23
|
-
> summary {
|
|
23
|
+
> summary {
|
|
24
|
+
list-style: none;
|
|
25
|
+
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
|
|
26
|
+
transition-property: color, background-color, box-shadow, border-color;
|
|
27
|
+
// fallback :focus state
|
|
28
|
+
&:focus {
|
|
29
|
+
@include focusOutline;
|
|
30
|
+
|
|
31
|
+
// remove fallback :focus if :focus-visible is supported
|
|
32
|
+
&:not(:focus-visible) {
|
|
33
|
+
outline: solid 1px transparent;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// default focus state
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
@include focusOutline;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.btn-primary {
|
|
43
|
+
// fallback :focus state
|
|
44
|
+
&:focus {
|
|
45
|
+
@include focusOutlineOnEmphasis;
|
|
46
|
+
|
|
47
|
+
// remove fallback :focus if :focus-visible is supported
|
|
48
|
+
&:not(:focus-visible) {
|
|
49
|
+
outline: solid 1px transparent;
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// default focus state
|
|
55
|
+
&:focus-visible {
|
|
56
|
+
@include focusOutlineOnEmphasis;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
24
60
|
// Remove marker added by details polyfill
|
|
25
|
-
> summary::before {
|
|
61
|
+
> summary::before {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
26
64
|
// Remove marker added by Chrome
|
|
27
|
-
> summary::-webkit-details-marker {
|
|
65
|
+
> summary::-webkit-details-marker {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.details-overlay > summary {
|
|
71
|
+
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
|
|
72
|
+
transition-property: color, background-color, box-shadow, border-color;
|
|
73
|
+
// fallback :focus state
|
|
74
|
+
&:focus {
|
|
75
|
+
@include focusOutline;
|
|
76
|
+
|
|
77
|
+
// remove fallback :focus if :focus-visible is supported
|
|
78
|
+
&:not(:focus-visible) {
|
|
79
|
+
outline: solid 1px transparent;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// default focus state
|
|
84
|
+
&:focus-visible {
|
|
85
|
+
@include focusOutline;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.btn-primary {
|
|
89
|
+
// fallback :focus state
|
|
90
|
+
&:focus {
|
|
91
|
+
@include focusOutlineOnEmphasis;
|
|
92
|
+
|
|
93
|
+
// remove fallback :focus if :focus-visible is supported
|
|
94
|
+
&:not(:focus-visible) {
|
|
95
|
+
outline: solid 1px transparent;
|
|
96
|
+
box-shadow: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// default focus state
|
|
101
|
+
&:focus-visible {
|
|
102
|
+
@include focusOutlineOnEmphasis;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
28
105
|
}
|
package/utilities/layout.scss
CHANGED
package/utilities/margin.scss
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Margin spacer utilities
|
|
2
|
-
// stylelint-disable block-opening-brace-space-before
|
|
2
|
+
// stylelint-disable block-opening-brace-space-before
|
|
3
|
+
// stylelint-disable declaration-colon-space-before
|
|
4
|
+
// stylelint-disable comment-empty-line-before
|
|
5
|
+
// stylelint-disable primer/spacing
|
|
3
6
|
|
|
4
7
|
// Loop through the breakpoint values
|
|
5
8
|
@each $breakpoint, $variant in $responsive-variants {
|
package/utilities/padding.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Padding spacer utilities
|
|
2
|
-
// stylelint-disable block-opening-brace-space-before
|
|
2
|
+
// stylelint-disable block-opening-brace-space-before
|
|
3
|
+
// stylelint-disable comment-empty-line-before
|
|
4
|
+
// stylelint-disable primer/spacing
|
|
3
5
|
|
|
4
6
|
// Responsive padding spacer utilities
|
|
5
7
|
@each $breakpoint, $variant in $responsive-variants {
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
// Hide utilities for each breakpoint
|
|
16
16
|
// Each hide utility only applies to one breakpoint range.
|
|
17
|
-
@media (max-width: $width-sm -
|
|
17
|
+
@media (max-width: $width-sm - 0.02px) {
|
|
18
18
|
.hide-sm {
|
|
19
19
|
display: none !important;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@media (min-width: $width-sm) and (max-width: $width-md -
|
|
23
|
+
@media (min-width: $width-sm) and (max-width: $width-md - 0.02px) {
|
|
24
24
|
.hide-md {
|
|
25
25
|
display: none !important;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@media (min-width: $width-md) and (max-width: $width-lg -
|
|
29
|
+
@media (min-width: $width-md) and (max-width: $width-lg - 0.02px) {
|
|
30
30
|
.hide-lg {
|
|
31
31
|
display: none !important;
|
|
32
32
|
}
|
|
@@ -38,6 +38,55 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
// Show/Hide Viewport range utilities
|
|
42
|
+
|
|
43
|
+
.show-whenNarrow,
|
|
44
|
+
.show-whenRegular,
|
|
45
|
+
.show-whenWide,
|
|
46
|
+
.show-whenRegular.hide-whenWide {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.hide-whenNarrow,
|
|
51
|
+
.hide-whenRegular,
|
|
52
|
+
.hide-whenWide {
|
|
53
|
+
display: block !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (max-width: $width-md - 0.02px) {
|
|
57
|
+
.show-whenNarrow {
|
|
58
|
+
display: block !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hide-whenNarrow {
|
|
62
|
+
display: none !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (min-width: $width-md) {
|
|
67
|
+
.show-whenRegular,
|
|
68
|
+
.show-whenRegular.hide-whenWide {
|
|
69
|
+
display: block !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.hide-whenRegular {
|
|
73
|
+
display: none !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// The width of a `wide` viewport range may change as we're finalizing
|
|
78
|
+
// the Primer primitives viewport ranges proposal
|
|
79
|
+
@media (min-width: $width-xl) {
|
|
80
|
+
.show-whenWide {
|
|
81
|
+
display: block !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.hide-whenWide,
|
|
85
|
+
.show-whenRegular.hide-whenWide {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
41
90
|
/* Set the table-layout to fixed */
|
|
42
91
|
.table-fixed { table-layout: fixed !important; }
|
|
43
92
|
|
package/table-object/README.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
bundle: "table-object"
|
|
3
|
-
generated: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Primer CSS: `table-object` bundle
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
|
|
11
|
-
|
|
12
|
-
```scss
|
|
13
|
-
@import "@primer/css/table-object/index.scss";
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Build
|
|
17
|
-
|
|
18
|
-
The `@primer/css` npm package includes a standalone CSS build of this module in `dist/table-object.css`.
|
|
19
|
-
|
|
20
|
-
## License
|
|
21
|
-
|
|
22
|
-
[MIT](https://github.com/primer/css/blob/main/LICENSE) © [GitHub](https://github.com/)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[scss]: https://sass-lang.com/documentation/syntax#scss
|