@primer/css 0.0.0-20220208213807 → 0.0.0-20220209182055

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 (82) hide show
  1. package/CHANGELOG.md +5 -21
  2. package/actionlist/action-list-item-divider.scss +9 -0
  3. package/actionlist/action-list-item.scss +128 -122
  4. package/actionlist/action-list-tree.scss +105 -0
  5. package/actionlist/action-list.scss +5 -0
  6. package/base/kbd.scss +1 -0
  7. package/base/normalize.scss +1 -1
  8. package/base/typography-base.scss +2 -3
  9. package/blankslate/blankslate.scss +1 -20
  10. package/box/box.scss +3 -0
  11. package/buttons/button.scss +0 -1
  12. package/dist/actionlist.css +1 -1
  13. package/dist/actionlist.css.map +1 -1
  14. package/dist/alerts.css.map +1 -1
  15. package/dist/autocomplete.css.map +1 -1
  16. package/dist/avatars.css.map +1 -1
  17. package/dist/base.css +1 -1
  18. package/dist/base.css.map +1 -1
  19. package/dist/blankslate.css +1 -1
  20. package/dist/blankslate.css.map +1 -1
  21. package/dist/box.css.map +1 -1
  22. package/dist/branch-name.css.map +1 -1
  23. package/dist/breadcrumb.css.map +1 -1
  24. package/dist/buttons.css.map +1 -1
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.map +1 -1
  27. package/dist/dropdown.css.map +1 -1
  28. package/dist/forms.css.map +1 -1
  29. package/dist/header.css.map +1 -1
  30. package/dist/labels.css +1 -1
  31. package/dist/labels.css.map +1 -1
  32. package/dist/layout.css.map +1 -1
  33. package/dist/links.css.map +1 -1
  34. package/dist/loaders.css.map +1 -1
  35. package/dist/markdown.css +1 -1
  36. package/dist/markdown.css.map +1 -1
  37. package/dist/marketing-buttons.css.map +1 -1
  38. package/dist/marketing-links.css.map +1 -1
  39. package/dist/marketing-type.css.map +1 -1
  40. package/dist/marketing-utilities.css.map +1 -1
  41. package/dist/meta.json +44 -44
  42. package/dist/navigation.css.map +1 -1
  43. package/dist/pagination.css.map +1 -1
  44. package/dist/popover.css.map +1 -1
  45. package/dist/primer.css +2 -2
  46. package/dist/primer.css.map +1 -1
  47. package/dist/product.css +1 -1
  48. package/dist/product.css.map +1 -1
  49. package/dist/progress.css.map +1 -1
  50. package/dist/select-menu.css.map +1 -1
  51. package/dist/stats/actionlist.json +1 -1
  52. package/dist/stats/base.json +1 -1
  53. package/dist/stats/blankslate.json +1 -1
  54. package/dist/stats/core.json +1 -1
  55. package/dist/stats/labels.json +1 -1
  56. package/dist/stats/markdown.json +1 -1
  57. package/dist/stats/primer.json +1 -1
  58. package/dist/stats/product.json +1 -1
  59. package/dist/subhead.css.map +1 -1
  60. package/dist/timeline.css.map +1 -1
  61. package/dist/toasts.css.map +1 -1
  62. package/dist/tooltips.css.map +1 -1
  63. package/dist/truncate.css.map +1 -1
  64. package/dist/utilities.css.map +1 -1
  65. package/dist/variables.json +7 -7
  66. package/forms/form-control.scss +0 -1
  67. package/forms/form-group.scss +0 -1
  68. package/forms/radio-group.scss +1 -0
  69. package/labels/mixins.scss +2 -6
  70. package/layout/grid-offset.scss +0 -1
  71. package/layout/grid.scss +0 -1
  72. package/layout/page-layout.scss +4 -2
  73. package/markdown/code.scss +0 -5
  74. package/markdown/footnotes.scss +26 -38
  75. package/markdown/markdown-body.scss +8 -0
  76. package/marketing/type/typography.scss +0 -3
  77. package/package.json +15 -18
  78. package/popover/popover.scss +1 -0
  79. package/support/mixins/misc.scss +0 -1
  80. package/timeline/timeline-item.scss +1 -0
  81. package/utilities/margin.scss +1 -4
  82. package/utilities/padding.scss +1 -3
package/CHANGELOG.md CHANGED
@@ -1,34 +1,18 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-20220208213807
4
-
5
- ### Patch Changes
6
-
7
- - Fake entry to force publishing
8
-
9
- * [#1928](https://github.com/primer/css/pull/1928) [`0fb67895`](https://github.com/primer/css/commit/0fb6789555652860cfa5178b60433eb2c3d2575c) Thanks [@simurai](https://github.com/simurai)! - Fix `<sup><a>` from getting wrapped with `[ ]`
10
-
11
- ## 19.3.0
12
-
13
- ### Minor Changes
14
-
15
- - [#1876](https://github.com/primer/css/pull/1876) [`bcf447ab`](https://github.com/primer/css/commit/bcf447ab226e6043dd47c1fcc395ba104af866d4) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Add mono font stack to <samp> tag
16
-
17
- * [#1919](https://github.com/primer/css/pull/1919) [`21085f5c`](https://github.com/primer/css/commit/21085f5c6cc538b5014a47de76642554a4291cc6) Thanks [@hectahertz](https://github.com/hectahertz)! - Add blankslate classes to replace utilities
3
+ ## 0.0.0-20220209182055
18
4
 
19
5
  ### Patch Changes
20
6
 
21
7
  - [#1892](https://github.com/primer/css/pull/1892) [`55bd498b`](https://github.com/primer/css/commit/55bd498b7357e86659ac574f0f745f7b420fb6d3) Thanks [@langermank](https://github.com/langermank)! - Patch: Fix ActionList--divided for label with inline description scenarios
22
8
 
23
- * [#1906](https://github.com/primer/css/pull/1906) [`f02d9a3e`](https://github.com/primer/css/commit/f02d9a3e4e86c2659a9f507995bcb90c5226e34e) Thanks [@jonrohan](https://github.com/jonrohan)! - Upgrading @primer/stylelint-config@12.3.0 and fixing violations
24
-
25
- - [#1908](https://github.com/primer/css/pull/1908) [`84581e96`](https://github.com/primer/css/commit/84581e96aee50ff3883907dfe1069701edd1c24a) Thanks [@simurai](https://github.com/simurai)! - Reduce size of `Label--inline`
9
+ * Fake entry to force publishing
26
10
 
27
- * [#1890](https://github.com/primer/css/pull/1890) [`74d0438b`](https://github.com/primer/css/commit/74d0438bd4dbaed447b553c5d3c8b945da282836) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
11
+ - [#1890](https://github.com/primer/css/pull/1890) [`74d0438b`](https://github.com/primer/css/commit/74d0438bd4dbaed447b553c5d3c8b945da282836) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
28
12
 
29
- - [#1882](https://github.com/primer/css/pull/1882) [`4a06aba1`](https://github.com/primer/css/commit/4a06aba1d3f80bcc228ff4360d0e02d5ace158ff) Thanks [@tqwewe](https://github.com/tqwewe)! - Fix layout gutter none styles
13
+ * [#1882](https://github.com/primer/css/pull/1882) [`4a06aba1`](https://github.com/primer/css/commit/4a06aba1d3f80bcc228ff4360d0e02d5ace158ff) Thanks [@tqwewe](https://github.com/tqwewe)! - Fix layout gutter none styles
30
14
 
31
- * [#1894](https://github.com/primer/css/pull/1894) [`d1adf595`](https://github.com/primer/css/commit/d1adf595308afb97f83c5ca172222944189a5961) Thanks [@simurai](https://github.com/simurai)! - Make `pagination` responsive by default
15
+ - [#1894](https://github.com/primer/css/pull/1894) [`d1adf595`](https://github.com/primer/css/commit/d1adf595308afb97f83c5ca172222944189a5961) Thanks [@simurai](https://github.com/simurai)! - Make `pagination` responsive by default
32
16
 
33
17
  ## 19.2.0
34
18
 
@@ -4,6 +4,7 @@
4
4
  // has children
5
5
  &:not(:empty) {
6
6
  display: flex;
7
+ // stylelint-disable-next-line primer/spacing
7
8
  padding: ($spacer-1 * 1.5) $spacer-2;
8
9
  font-size: $font-size-small;
9
10
  font-weight: $font-weight-bold;
@@ -13,13 +14,21 @@
13
14
 
14
15
  // no children
15
16
  &:empty {
17
+ display: block;
16
18
  height: 1px;
17
19
  padding: 0;
20
+ // stylelint-disable-next-line primer/spacing
18
21
  margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
19
22
  list-style: none;
20
23
  background: var(--color-action-list-item-inline-divider);
21
24
  border: 0;
22
25
  }
26
+
27
+ .ActionList-sectionDivider-title {
28
+ font-size: $font-size-small;
29
+ font-weight: $font-weight-bold;
30
+ color: var(--color-fg-muted);
31
+ }
23
32
  }
24
33
 
25
34
  .ActionList-sectionDivider--filled {
@@ -24,17 +24,10 @@
24
24
  list-style: none;
25
25
  background-color: transparent;
26
26
  border-radius: $border-radius;
27
- touch-action: manipulation;
28
- -webkit-tap-highlight-color: transparent;
29
27
 
30
28
  &:hover,
31
29
  &:active {
32
30
  cursor: pointer;
33
-
34
- // a href
35
- .ActionList-content {
36
- text-decoration: none;
37
- }
38
31
  }
39
32
 
40
33
  // only hover li without list as children
@@ -157,98 +150,6 @@
157
150
  }
158
151
  }
159
152
 
160
- // collapsible item [aria-expanded]
161
-
162
- // nesting (single level)
163
- // target items inside expanded subgroups
164
- &[aria-expanded] {
165
- .ActionList--subGroup {
166
- @media screen and (prefers-reduced-motion: no-preference) {
167
- transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
168
- }
169
-
170
- .ActionList-content {
171
- padding-left: $spacer-4;
172
- }
173
- }
174
-
175
- // has 16px leading visual
176
- .ActionList-content--visual16 + .ActionList--subGroup {
177
- .ActionList-content {
178
- padding-left: $spacer-5;
179
- }
180
- }
181
-
182
- // has 20px leading visual
183
- .ActionList-content--visual20 + .ActionList--subGroup {
184
- .ActionList-content {
185
- padding-left: $spacer-2 * 4.5; // 36px
186
- }
187
- }
188
-
189
- // has 24px leading visual
190
- .ActionList-content--visual24 + .ActionList--subGroup {
191
- .ActionList-content {
192
- padding-left: $spacer-6;
193
- }
194
- }
195
- }
196
-
197
- &[aria-expanded='true'] {
198
- .ActionList-item-collapseIcon {
199
- transition: transform 120ms linear;
200
- transform: scaleY(-1);
201
- }
202
-
203
- .ActionList--subGroup {
204
- height: auto;
205
- overflow: visible;
206
- visibility: visible;
207
- opacity: 1;
208
- transform: translateY(0);
209
- }
210
-
211
- &.ActionList-item--hasActiveSubItem {
212
- > .ActionList-content > .ActionList-item-label {
213
- font-weight: $font-weight-bold;
214
- }
215
- }
216
- }
217
-
218
- &[aria-expanded='false'] {
219
- .ActionList-item-collapseIcon {
220
- transition: transform 120ms linear;
221
- transform: scaleY(1);
222
- }
223
-
224
- .ActionList--subGroup {
225
- height: 0;
226
- overflow: hidden;
227
- visibility: hidden;
228
- opacity: 0;
229
- transform: translateY(-$spacer-3);
230
- }
231
-
232
- // show active indicator on parent collapse if child is active
233
- &.ActionList-item--hasActiveSubItem {
234
- background: var(--color-action-list-item-default-selected-bg);
235
-
236
- .ActionList-item-label {
237
- font-weight: $font-weight-bold;
238
- }
239
-
240
- &::before,
241
- + .ActionList-item::before {
242
- visibility: hidden;
243
- }
244
-
245
- // blue accent line
246
- &::after {
247
- @include activeIndicatorLine;
248
- }
249
- }
250
- }
251
-
252
153
  // checkbox item [aria-checked]
253
154
  // listbox [aria-selected]
254
155
 
@@ -290,8 +191,7 @@
290
191
  .ActionList-item-multiSelectCheckmark {
291
192
  visibility: hidden;
292
193
  opacity: 0;
293
- transition:
294
- visibility 0 linear $actionList-item-checkmark-transition-timing,
194
+ transition: visibility 0 linear $actionList-item-checkmark-transition-timing,
295
195
  opacity $actionList-item-checkmark-transition-timing;
296
196
  }
297
197
 
@@ -363,26 +263,9 @@
363
263
  }
364
264
  }
365
265
 
366
- &:active {
367
- background: var(--color-action-list-item-danger-active-bg);
368
- }
369
- }
370
-
371
- // disabled
372
- &[aria-disabled='true'] {
373
- .ActionList-item-label,
374
- .ActionList-item-description {
375
- color: var(--color-primer-fg-disabled);
376
- }
377
-
378
- .ActionList-item-visual {
379
- fill: var(--color-primer-fg-disabled);
380
- }
381
-
382
- @media (hover: hover) {
383
- &:hover {
384
- cursor: not-allowed;
385
- background-color: transparent;
266
+ .ActionList-content {
267
+ &:active {
268
+ background: var(--color-action-list-item-danger-active-bg);
386
269
  }
387
270
  }
388
271
  }
@@ -394,8 +277,10 @@
394
277
  }
395
278
  }
396
279
 
397
- // span or a href
280
+ // button or a href
398
281
  .ActionList-content {
282
+ border: none;
283
+ background-color: transparent;
399
284
  position: relative;
400
285
  display: grid;
401
286
  // stylelint-disable-next-line primer/spacing
@@ -407,20 +292,141 @@
407
292
  touch-action: manipulation;
408
293
  border-radius: $border-radius;
409
294
  transition: $actionList-item-bg-transition;
295
+ touch-action: manipulation;
296
+ -webkit-tap-highlight-color: transparent;
410
297
  grid-template-rows: min-content;
411
298
  grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
412
299
  grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
413
300
  align-items: start;
301
+ width: 100%;
302
+ text-align: left;
414
303
 
415
304
  // column-gap persists with empty grid-areas, margin applies only when children exist
416
305
  > :not(:last-child) {
417
306
  margin-right: $spacer-2;
418
307
  }
419
308
 
309
+ // state
310
+
311
+ &:hover {
312
+ text-decoration: none;
313
+ }
314
+
420
315
  &:focus-visible {
421
316
  @include focusOutline;
422
317
  }
423
318
 
319
+ // disabled
320
+ &[aria-disabled='true'] {
321
+ .ActionList-item-label,
322
+ .ActionList-item-description {
323
+ color: var(--color-primer-fg-disabled);
324
+ }
325
+
326
+ .ActionList-item-visual {
327
+ fill: var(--color-primer-fg-disabled);
328
+ }
329
+
330
+ @media (hover: hover) {
331
+ &:hover {
332
+ cursor: not-allowed;
333
+ background-color: transparent;
334
+ }
335
+ }
336
+ }
337
+
338
+ // collapsible item [aria-expanded]
339
+
340
+ // nesting (single level)
341
+ // target items inside expanded subgroups
342
+ &[aria-expanded] {
343
+ + .ActionList--subGroup {
344
+ @media screen and (prefers-reduced-motion: no-preference) {
345
+ transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
346
+ }
347
+
348
+ .ActionList-content {
349
+ padding-left: $spacer-4;
350
+ }
351
+ }
352
+
353
+ // has 16px leading visual
354
+ &.ActionList-content--visual16 + .ActionList--subGroup {
355
+ .ActionList-content {
356
+ padding-left: $spacer-5;
357
+ }
358
+ }
359
+
360
+ // has 20px leading visual
361
+ &.ActionList-content--visual20 + .ActionList--subGroup {
362
+ .ActionList-content {
363
+ padding-left: $spacer-2 * 4.5; // 36px
364
+ }
365
+ }
366
+
367
+ // has 24px leading visual
368
+ &.ActionList-content--visual24 + .ActionList--subGroup {
369
+ .ActionList-content {
370
+ padding-left: $spacer-6;
371
+ }
372
+ }
373
+ }
374
+
375
+ &[aria-expanded='true'] {
376
+ .ActionList-item-collapseIcon {
377
+ transition: transform 120ms linear;
378
+ transform: scaleY(-1);
379
+ }
380
+
381
+ + .ActionList--subGroup {
382
+ height: auto;
383
+ overflow: visible;
384
+ visibility: visible;
385
+ opacity: 1;
386
+ transform: translateY(0);
387
+ }
388
+
389
+ &.ActionList-content--hasActiveSubItem {
390
+ > .ActionList-item-label {
391
+ font-weight: $font-weight-bold;
392
+ }
393
+ }
394
+ }
395
+
396
+ &[aria-expanded='false'] {
397
+ .ActionList-item-collapseIcon {
398
+ transition: transform 120ms linear;
399
+ transform: scaleY(1);
400
+ }
401
+
402
+ + .ActionList--subGroup {
403
+ height: 0;
404
+ overflow: hidden;
405
+ visibility: hidden;
406
+ opacity: 0;
407
+ transform: translateY(-$spacer-3);
408
+ }
409
+
410
+ // show active indicator on parent collapse if child is active
411
+ &.ActionList-content--hasActiveSubItem {
412
+ background: var(--color-action-list-item-default-selected-bg);
413
+
414
+ .ActionList-item-label {
415
+ font-weight: $font-weight-bold;
416
+ }
417
+
418
+ &::before,
419
+ + .ActionList-item::before {
420
+ visibility: hidden;
421
+ }
422
+
423
+ // blue accent line
424
+ &::after {
425
+ @include activeIndicatorLine;
426
+ }
427
+ }
428
+ }
429
+
424
430
  // sizes
425
431
 
426
432
  &.ActionList-content--sizeMedium {
@@ -4,6 +4,17 @@
4
4
  // connecting vertical lines between collapse groups
5
5
  // consistent font-size between nested groups
6
6
 
7
+ @mixin activeIndicatorLine {
8
+ position: absolute;
9
+ top: calc(50% - 12px);
10
+ left: -$actionList-item-padding-horizontal;
11
+ width: $spacer-1;
12
+ height: $spacer-4;
13
+ content: '';
14
+ background: var(--color-accent-fg);
15
+ border-radius: $border-radius;
16
+ }
17
+
7
18
  @mixin treeConnectingLine($left) {
8
19
  position: absolute;
9
20
  left: $left;
@@ -21,6 +32,99 @@
21
32
  }
22
33
 
23
34
  .ActionList-item {
35
+ // collapsible item [aria-expanded]
36
+
37
+ // nesting (single level)
38
+ // target items inside expanded subgroups
39
+ &[aria-expanded] {
40
+ .ActionList--subGroup {
41
+ @media screen and (prefers-reduced-motion: no-preference) {
42
+ transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
43
+ }
44
+
45
+ .ActionList-content {
46
+ padding-left: $spacer-4;
47
+ }
48
+ }
49
+
50
+ // has 16px leading visual
51
+ .ActionList-content--visual16 + .ActionList--subGroup {
52
+ .ActionList-content {
53
+ padding-left: $spacer-5;
54
+ }
55
+ }
56
+
57
+ // has 20px leading visual
58
+ .ActionList-content--visual20 + .ActionList--subGroup {
59
+ .ActionList-content {
60
+ padding-left: $spacer-2 * 4.5; // 36px
61
+ }
62
+ }
63
+
64
+ // has 24px leading visual
65
+ .ActionList-content--visual24 + .ActionList--subGroup {
66
+ .ActionList-content {
67
+ padding-left: $spacer-6;
68
+ }
69
+ }
70
+ }
71
+
72
+ &[aria-expanded='true'] {
73
+ .ActionList-item-collapseIcon {
74
+ transition: transform 120ms linear;
75
+ transform: scaleY(-1);
76
+ }
77
+
78
+ .ActionList--subGroup {
79
+ height: auto;
80
+ overflow: visible;
81
+ visibility: visible;
82
+ opacity: 1;
83
+ transform: translateY(0);
84
+ }
85
+
86
+ &.ActionList-item--hasActiveSubItem {
87
+ > .ActionList-content > .ActionList-item-label {
88
+ font-weight: $font-weight-bold;
89
+ }
90
+ }
91
+ }
92
+
93
+ &[aria-expanded='false'] {
94
+ .ActionList-item-collapseIcon {
95
+ transition: transform 120ms linear;
96
+ transform: scaleY(1);
97
+ }
98
+
99
+ .ActionList--subGroup {
100
+ height: 0;
101
+ overflow: hidden;
102
+ visibility: hidden;
103
+ opacity: 0;
104
+ transform: translateY(-$spacer-3);
105
+ }
106
+
107
+ // show active indicator on parent collapse if child is active
108
+ // this class has changed in non tree ActionList. Leaving for now until we hear about their a11y audit (if markup needs to change)
109
+ &.ActionList-item--hasActiveSubItem {
110
+ background: var(--color-action-list-item-default-selected-bg);
111
+
112
+ .ActionList-item-label {
113
+ font-weight: $font-weight-bold;
114
+ }
115
+
116
+ &::before,
117
+ + .ActionList-item::before {
118
+ visibility: hidden;
119
+ }
120
+
121
+ // blue accent line
122
+ &::after {
123
+ @include activeIndicatorLine;
124
+ }
125
+ }
126
+ }
127
+
24
128
  // nesting (infinate levels)
25
129
  // target items inside expanded subgroup
26
130
  &[aria-expanded] {
@@ -30,6 +134,7 @@
30
134
  // --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
31
135
  // stylelint-disable-next-line selector-max-specificity, max-nesting-depth, selector-max-compound-selectors
32
136
  .ActionList-content {
137
+ // stylelint-disable-next-line primer/spacing
33
138
  padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
34
139
  }
35
140
  }
@@ -8,6 +8,11 @@
8
8
  padding: 0;
9
9
  }
10
10
 
11
+ // nested list within main ActionList
12
+ .ActionList--subGroup {
13
+ padding: 0;
14
+ }
15
+
11
16
  // dividers
12
17
 
13
18
  .ActionList--divided {
package/base/kbd.scss CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  kbd {
5
5
  display: inline-block;
6
+ // stylelint-disable-next-line primer/spacing
6
7
  padding: ($spacer-1 - 1) ($spacer-1 + 1);
7
8
  font: 11px $mono-font;
8
9
  // stylelint-disable-next-line primer/typography
@@ -225,7 +225,7 @@ code,
225
225
  kbd,
226
226
  pre,
227
227
  samp {
228
- font-family: monospace; /* 1 */
228
+ font-family: monospace, monospace; /* 1 */
229
229
  font-size: 1em; /* 2 */
230
230
  }
231
231
 
@@ -62,12 +62,11 @@ dd {
62
62
  margin-left: 0;
63
63
  }
64
64
 
65
- // Monospaced
65
+ // Code
66
66
  // --------------------------------------------------
67
67
 
68
68
  tt,
69
- code,
70
- samp {
69
+ code {
71
70
  font-family: $mono-font;
72
71
  font-size: $font-size-small;
73
72
  }
@@ -30,31 +30,12 @@
30
30
  color: var(--color-fg-muted);
31
31
  }
32
32
 
33
- .blankslate-image {
34
- margin-bottom: $spacer-3;
35
- }
36
-
37
- .blankslate-heading {
38
- margin-bottom: $spacer-1;
39
- }
40
-
41
- .blankslate-action {
42
- margin-top: $spacer-3;
43
-
44
- &:first-of-type {
45
- margin-top: $spacer-4;
46
- }
47
-
48
- &:last-of-type {
49
- margin-bottom: $spacer-2;
50
- }
51
- }
52
-
53
33
  .blankslate-capped {
54
34
  border-radius: 0 0 $border-radius $border-radius;
55
35
  }
56
36
 
57
37
  .blankslate-spacious {
38
+ // stylelint-disable-next-line primer/spacing
58
39
  padding: ($spacer-6 * 2) $spacer-6;
59
40
  }
60
41
 
package/box/box.scss CHANGED
@@ -28,6 +28,7 @@
28
28
  .Box-btn-octicon {
29
29
  &.btn-octicon {
30
30
  padding: $spacer-2 $spacer-3;
31
+ // stylelint-disable-next-line primer/spacing
31
32
  margin: (-$spacer-2) (-$spacer-3);
32
33
  line-height: $lh-condensed;
33
34
  }
@@ -59,6 +60,7 @@
59
60
  .Box-btn-octicon {
60
61
  &.btn-octicon {
61
62
  padding: $spacer-4;
63
+ // stylelint-disable-next-line primer/spacing
62
64
  margin: (-$spacer-4) (-$spacer-4);
63
65
  }
64
66
  }
@@ -283,6 +285,7 @@
283
285
  // Increase specificity when btn-octicon is used because comes after .Box in the cascade
284
286
  &.btn-octicon {
285
287
  padding: $spacer-3 $spacer-3;
288
+ // stylelint-disable-next-line primer/spacing
286
289
  margin: (-$spacer-3) (-$spacer-3);
287
290
  line-height: $lh-default; // override btn-octicon line-height
288
291
  }
@@ -294,7 +294,6 @@
294
294
 
295
295
  // Large button adds more padding around text. Use font-size utils to increase font-size.. e.g, <p class="text-gamma"><button class="btn btn-large btn-primary" type="button">Big green button</button></p>
296
296
  .btn-large {
297
- // stylelint-disable-next-line primer/spacing
298
297
  padding: $em-spacer-6 1.5em;
299
298
  font-size: inherit;
300
299
  line-height: $lh-default;