@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.
Files changed (186) hide show
  1. package/CHANGELOG.md +166 -3
  2. package/CONTRIBUTING.md +6 -4
  3. package/DEVELOP.md +26 -21
  4. package/README.md +2 -2
  5. package/actionlist/action-list-item-divider.scss +8 -2
  6. package/actionlist/action-list-item.scss +214 -130
  7. package/actionlist/action-list-tree.scss +118 -0
  8. package/actionlist/action-list.scss +29 -0
  9. package/actionlist/index.scss +1 -0
  10. package/alerts/flash.scss +6 -2
  11. package/autocomplete/autocomplete.scss +51 -2
  12. package/avatars/avatar-stack.scss +1 -0
  13. package/base/base.scss +64 -3
  14. package/base/index.scss +0 -1
  15. package/base/kbd.scss +0 -1
  16. package/base/normalize.scss +13 -53
  17. package/base/typography-base.scss +3 -2
  18. package/blankslate/blankslate.scss +20 -1
  19. package/blankslate/index.scss +0 -1
  20. package/box/box.scss +0 -3
  21. package/branch-name/branch-name.scss +1 -0
  22. package/breadcrumb/breadcrumb.scss +1 -1
  23. package/buttons/button-group.scss +3 -2
  24. package/buttons/button.scss +64 -36
  25. package/buttons/misc.scss +30 -25
  26. package/color-modes/index.scss +2 -0
  27. package/color-modes/native.scss +12 -0
  28. package/color-modes/themes/dark.scss +0 -1
  29. package/color-modes/themes/dark_colorblind.scss +0 -1
  30. package/color-modes/themes/dark_dimmed.scss +0 -1
  31. package/color-modes/themes/dark_high_contrast.scss +0 -1
  32. package/color-modes/themes/dark_tritanopia.scss +6 -0
  33. package/color-modes/themes/light.scss +0 -1
  34. package/color-modes/themes/light_colorblind.scss +0 -1
  35. package/color-modes/themes/light_high_contrast.scss +0 -1
  36. package/color-modes/themes/light_tritanopia.scss +6 -0
  37. package/dist/actionlist.css +1 -1
  38. package/dist/actionlist.css.map +1 -1
  39. package/dist/alerts.css +1 -1
  40. package/dist/alerts.css.map +1 -1
  41. package/dist/autocomplete.css +1 -1
  42. package/dist/autocomplete.css.map +1 -1
  43. package/dist/avatars.css +1 -1
  44. package/dist/avatars.css.map +1 -1
  45. package/dist/base.css +1 -1
  46. package/dist/base.css.map +1 -1
  47. package/dist/blankslate.css +1 -1
  48. package/dist/blankslate.css.map +1 -1
  49. package/dist/box.css.map +1 -1
  50. package/dist/branch-name.css +1 -1
  51. package/dist/branch-name.css.map +1 -1
  52. package/dist/breadcrumb.css.map +1 -1
  53. package/dist/buttons.css +1 -1
  54. package/dist/buttons.css.map +1 -1
  55. package/dist/color-modes.css +1 -1
  56. package/dist/color-modes.css.map +1 -1
  57. package/dist/core.css +1 -1
  58. package/dist/core.css.map +1 -1
  59. package/dist/dropdown.css +1 -1
  60. package/dist/dropdown.css.map +1 -1
  61. package/dist/forms.css +1 -1
  62. package/dist/forms.css.map +1 -1
  63. package/dist/header.css.map +1 -1
  64. package/dist/labels.css +1 -1
  65. package/dist/labels.css.map +1 -1
  66. package/dist/layout.css +1 -1
  67. package/dist/layout.css.map +1 -1
  68. package/dist/links.css +1 -1
  69. package/dist/links.css.map +1 -1
  70. package/dist/loaders.css.map +1 -1
  71. package/dist/markdown.css +1 -1
  72. package/dist/markdown.css.map +1 -1
  73. package/dist/marketing-buttons.css +1 -1
  74. package/dist/marketing-buttons.css.map +1 -1
  75. package/dist/marketing-links.css +1 -1
  76. package/dist/marketing-links.css.map +1 -1
  77. package/dist/marketing-type.css.map +1 -1
  78. package/dist/marketing-utilities.css.map +1 -1
  79. package/dist/marketing.css +1 -1
  80. package/dist/marketing.css.map +1 -1
  81. package/dist/meta.json +73 -73
  82. package/dist/navigation.css +1 -1
  83. package/dist/navigation.css.map +1 -1
  84. package/dist/pagination.css +1 -1
  85. package/dist/pagination.css.map +1 -1
  86. package/dist/popover.css +1 -1
  87. package/dist/popover.css.map +1 -1
  88. package/dist/primer.css +4 -4
  89. package/dist/primer.css.map +1 -1
  90. package/dist/product.css +1 -1
  91. package/dist/product.css.map +1 -1
  92. package/dist/progress.css.map +1 -1
  93. package/dist/select-menu.css.map +1 -1
  94. package/dist/stats/actionlist.json +1 -1
  95. package/dist/stats/alerts.json +1 -1
  96. package/dist/stats/autocomplete.json +1 -1
  97. package/dist/stats/avatars.json +1 -1
  98. package/dist/stats/base.json +1 -1
  99. package/dist/stats/blankslate.json +1 -1
  100. package/dist/stats/branch-name.json +1 -1
  101. package/dist/stats/buttons.json +1 -1
  102. package/dist/stats/color-modes.json +1 -1
  103. package/dist/stats/core.json +1 -1
  104. package/dist/stats/dropdown.json +1 -1
  105. package/dist/stats/forms.json +1 -1
  106. package/dist/stats/labels.json +1 -1
  107. package/dist/stats/layout.json +1 -1
  108. package/dist/stats/links.json +1 -1
  109. package/dist/stats/markdown.json +1 -1
  110. package/dist/stats/marketing-buttons.json +1 -1
  111. package/dist/stats/marketing-links.json +1 -1
  112. package/dist/stats/marketing.json +1 -1
  113. package/dist/stats/navigation.json +1 -1
  114. package/dist/stats/pagination.json +1 -1
  115. package/dist/stats/popover.json +1 -1
  116. package/dist/stats/primer.json +1 -1
  117. package/dist/stats/product.json +1 -1
  118. package/dist/stats/subhead.json +1 -1
  119. package/dist/stats/toasts.json +1 -1
  120. package/dist/stats/tooltips.json +1 -1
  121. package/dist/stats/utilities.json +1 -1
  122. package/dist/subhead.css +1 -1
  123. package/dist/subhead.css.map +1 -1
  124. package/dist/table-object.css.map +1 -1
  125. package/dist/timeline.css.map +1 -1
  126. package/dist/toasts.css +1 -1
  127. package/dist/toasts.css.map +1 -1
  128. package/dist/tooltips.css +1 -1
  129. package/dist/tooltips.css.map +1 -1
  130. package/dist/truncate.css.map +1 -1
  131. package/dist/utilities.css +1 -1
  132. package/dist/utilities.css.map +1 -1
  133. package/dist/variables.json +7 -7
  134. package/dropdown/dropdown.scss +0 -2
  135. package/forms/form-control.scss +26 -5
  136. package/forms/form-group.scss +47 -13
  137. package/forms/form-validation.scss +1 -1
  138. package/forms/input-group.scss +18 -0
  139. package/labels/counters.scss +1 -1
  140. package/labels/index.scss +0 -1
  141. package/labels/labels.scss +12 -1
  142. package/labels/mixins.scss +7 -2
  143. package/labels/states.scss +2 -2
  144. package/layout/grid-offset.scss +1 -0
  145. package/layout/grid.scss +1 -0
  146. package/layout/index.scss +1 -1
  147. package/layout/layout.scss +8 -11
  148. package/layout/mixins.scss +30 -4
  149. package/layout/page-layout.scss +384 -0
  150. package/links/link.scss +6 -1
  151. package/markdown/code.scss +5 -0
  152. package/markdown/footnotes.scss +38 -26
  153. package/markdown/headings.scss +17 -0
  154. package/markdown/images.scss +3 -3
  155. package/markdown/markdown-body.scss +0 -8
  156. package/marketing/buttons/button.scss +32 -26
  157. package/marketing/links/link.scss +5 -5
  158. package/marketing/type/typography.scss +3 -0
  159. package/marketing/utilities/layout.scss +1 -0
  160. package/navigation/filter-list.scss +20 -2
  161. package/navigation/menu.scss +8 -10
  162. package/navigation/sidenav.scss +3 -12
  163. package/navigation/subnav.scss +20 -2
  164. package/navigation/tabnav.scss +9 -4
  165. package/navigation/underline-nav.scss +79 -28
  166. package/package.json +32 -26
  167. package/pagination/pagination.scss +65 -7
  168. package/popover/popover.scss +1 -2
  169. package/select-menu/select-menu.scss +3 -3
  170. package/stylelint.config.cjs +2 -11
  171. package/subhead/subhead.scss +3 -0
  172. package/support/mixins/color-modes.scss +3 -0
  173. package/support/mixins/misc.scss +48 -1
  174. package/support/mixins/typography.scss +3 -2
  175. package/support/variables/layout.scss +2 -3
  176. package/table-object/table-object.scss +3 -0
  177. package/timeline/timeline-item.scss +0 -1
  178. package/toasts/toasts.scss +7 -4
  179. package/tooltips/tooltips.scss +0 -7
  180. package/utilities/colors.scss +16 -0
  181. package/utilities/details.scss +81 -4
  182. package/utilities/layout.scss +1 -1
  183. package/utilities/margin.scss +4 -1
  184. package/utilities/padding.scss +3 -1
  185. package/utilities/visibility-display.scss +52 -3
  186. 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
  }
@@ -15,7 +15,8 @@
15
15
  }
16
16
 
17
17
  &::after {
18
- margin-left: 1px;
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
- // responive utility position values
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: 344px
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.
@@ -67,7 +67,6 @@
67
67
  height: $spacer-4;
68
68
  margin: 0;
69
69
  margin-bottom: -$spacer-3;
70
- // stylelint-disable-next-line primer/spacing
71
70
  margin-left: -($spacer-6 + $spacer-3);
72
71
  background-color: var(--color-canvas-default);
73
72
  border: 0;
@@ -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 { transform: rotate(0deg); }
123
- to { transform: rotate(360deg); }
120
+ from {
121
+ transform: rotate(0deg);
122
+ }
123
+
124
+ to {
125
+ transform: rotate(360deg);
126
+ }
124
127
  }
@@ -264,13 +264,6 @@
264
264
  }
265
265
  }
266
266
 
267
- @media screen and (min-width: 0\0) {
268
- // IE11
269
- .tooltipped-multiline::after {
270
- width: $tooltip-max-width;
271
- }
272
- }
273
-
274
267
  // Sticky tooltips
275
268
  //
276
269
  // Always show the tooltip.
@@ -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
 
@@ -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 { list-style: none; }
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 { display: none; }
61
+ > summary::before {
62
+ display: none;
63
+ }
26
64
  // Remove marker added by Chrome
27
- > summary::-webkit-details-marker { display: none; }
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
  }
@@ -85,7 +85,7 @@
85
85
  @each $breakpoint, $variant in $responsive-variants {
86
86
  @include breakpoint($breakpoint) {
87
87
 
88
- // Auto varients
88
+ // Auto variants
89
89
  .width#{$variant}-auto { width: auto !important; }
90
90
 
91
91
  /* Set the direction to rtl */
@@ -1,5 +1,8 @@
1
1
  // Margin spacer utilities
2
- // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, comment-empty-line-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 {
@@ -1,5 +1,7 @@
1
1
  // Padding spacer utilities
2
- // stylelint-disable block-opening-brace-space-before, comment-empty-line-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 - 1px) {
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 - 1px) {
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 - 1px) {
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
 
@@ -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