@primer/css 0.0.0-20220209182055 → 0.0.0-20220211100548

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 (84) hide show
  1. package/CHANGELOG.md +21 -5
  2. package/actionlist/action-list-item-divider.scss +0 -9
  3. package/actionlist/action-list-item.scss +122 -134
  4. package/actionlist/action-list-tree.scss +0 -105
  5. package/actionlist/action-list.scss +0 -5
  6. package/base/kbd.scss +0 -1
  7. package/base/normalize.scss +1 -1
  8. package/base/typography-base.scss +3 -2
  9. package/blankslate/blankslate.scss +20 -1
  10. package/box/box.scss +0 -3
  11. package/buttons/button.scss +1 -0
  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 +75 -75
  42. package/dist/navigation.css.map +1 -1
  43. package/dist/pagination.css.map +1 -1
  44. package/dist/popover.css +1 -1
  45. package/dist/popover.css.map +1 -1
  46. package/dist/primer.css +2 -2
  47. package/dist/primer.css.map +1 -1
  48. package/dist/product.css +1 -1
  49. package/dist/product.css.map +1 -1
  50. package/dist/progress.css.map +1 -1
  51. package/dist/select-menu.css.map +1 -1
  52. package/dist/stats/actionlist.json +1 -1
  53. package/dist/stats/base.json +1 -1
  54. package/dist/stats/blankslate.json +1 -1
  55. package/dist/stats/core.json +1 -1
  56. package/dist/stats/labels.json +1 -1
  57. package/dist/stats/markdown.json +1 -1
  58. package/dist/stats/popover.json +1 -1
  59. package/dist/stats/primer.json +1 -1
  60. package/dist/stats/product.json +1 -1
  61. package/dist/subhead.css.map +1 -1
  62. package/dist/timeline.css.map +1 -1
  63. package/dist/toasts.css.map +1 -1
  64. package/dist/tooltips.css.map +1 -1
  65. package/dist/truncate.css.map +1 -1
  66. package/dist/utilities.css.map +1 -1
  67. package/dist/variables.json +7 -7
  68. package/forms/form-control.scss +1 -0
  69. package/forms/form-group.scss +1 -0
  70. package/forms/radio-group.scss +0 -3
  71. package/labels/mixins.scss +6 -2
  72. package/layout/grid-offset.scss +1 -0
  73. package/layout/grid.scss +1 -0
  74. package/layout/page-layout.scss +0 -5
  75. package/markdown/code.scss +5 -0
  76. package/markdown/footnotes.scss +38 -26
  77. package/markdown/markdown-body.scss +0 -8
  78. package/marketing/type/typography.scss +3 -0
  79. package/package.json +14 -14
  80. package/popover/popover.scss +4 -1
  81. package/support/mixins/misc.scss +1 -0
  82. package/timeline/timeline-item.scss +0 -1
  83. package/utilities/margin.scss +4 -1
  84. package/utilities/padding.scss +3 -1
package/CHANGELOG.md CHANGED
@@ -1,18 +1,34 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-20220209182055
3
+ ## 0.0.0-20220211100548
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
4
18
 
5
19
  ### Patch Changes
6
20
 
7
21
  - [#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
8
22
 
9
- * Fake entry to force publishing
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`
10
26
 
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
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
12
28
 
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
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
14
30
 
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
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
16
32
 
17
33
  ## 19.2.0
18
34
 
@@ -4,7 +4,6 @@
4
4
  // has children
5
5
  &:not(:empty) {
6
6
  display: flex;
7
- // stylelint-disable-next-line primer/spacing
8
7
  padding: ($spacer-1 * 1.5) $spacer-2;
9
8
  font-size: $font-size-small;
10
9
  font-weight: $font-weight-bold;
@@ -14,21 +13,13 @@
14
13
 
15
14
  // no children
16
15
  &:empty {
17
- display: block;
18
16
  height: 1px;
19
17
  padding: 0;
20
- // stylelint-disable-next-line primer/spacing
21
18
  margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
22
19
  list-style: none;
23
20
  background: var(--color-action-list-item-inline-divider);
24
21
  border: 0;
25
22
  }
26
-
27
- .ActionList-sectionDivider-title {
28
- font-size: $font-size-small;
29
- font-weight: $font-weight-bold;
30
- color: var(--color-fg-muted);
31
- }
32
23
  }
33
24
 
34
25
  .ActionList-sectionDivider--filled {
@@ -24,10 +24,17 @@
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;
27
29
 
28
30
  &:hover,
29
31
  &:active {
30
32
  cursor: pointer;
33
+
34
+ // a href
35
+ .ActionList-content {
36
+ text-decoration: none;
37
+ }
31
38
  }
32
39
 
33
40
  // only hover li without list as children
@@ -150,6 +157,98 @@
150
157
  }
151
158
  }
152
159
 
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
+
153
252
  // checkbox item [aria-checked]
154
253
  // listbox [aria-selected]
155
254
 
@@ -191,7 +290,8 @@
191
290
  .ActionList-item-multiSelectCheckmark {
192
291
  visibility: hidden;
193
292
  opacity: 0;
194
- transition: visibility 0 linear $actionList-item-checkmark-transition-timing,
293
+ transition:
294
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
195
295
  opacity $actionList-item-checkmark-transition-timing;
196
296
  }
197
297
 
@@ -263,27 +363,40 @@
263
363
  }
264
364
  }
265
365
 
266
- .ActionList-content {
267
- &:active {
268
- background: var(--color-action-list-item-danger-active-bg);
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;
269
386
  }
270
387
  }
271
388
  }
272
389
 
273
390
  // if nested list exists, remove default padding
274
391
  .ActionList {
275
- // stylelint-disable-next-line primer/spacing
276
392
  padding: unset;
277
393
  }
278
394
  }
279
395
 
280
- // button or a href
396
+ // span or a href
281
397
  .ActionList-content {
282
- border: none;
283
- background-color: transparent;
284
398
  position: relative;
285
399
  display: grid;
286
- // stylelint-disable-next-line primer/spacing
287
400
  padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
288
401
  font-size: $body-font-size;
289
402
  font-weight: $font-weight-normal;
@@ -292,152 +405,29 @@
292
405
  touch-action: manipulation;
293
406
  border-radius: $border-radius;
294
407
  transition: $actionList-item-bg-transition;
295
- touch-action: manipulation;
296
- -webkit-tap-highlight-color: transparent;
297
408
  grid-template-rows: min-content;
298
409
  grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
299
410
  grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
300
411
  align-items: start;
301
- width: 100%;
302
- text-align: left;
303
412
 
304
413
  // column-gap persists with empty grid-areas, margin applies only when children exist
305
414
  > :not(:last-child) {
306
415
  margin-right: $spacer-2;
307
416
  }
308
417
 
309
- // state
310
-
311
- &:hover {
312
- text-decoration: none;
313
- }
314
-
315
418
  &:focus-visible {
316
419
  @include focusOutline;
317
420
  }
318
421
 
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
-
430
422
  // sizes
431
423
 
432
424
  &.ActionList-content--sizeMedium {
433
425
  // 44px total height
434
- // stylelint-disable-next-line primer/spacing
435
426
  padding: $actionList-item-padding-vertical-md $actionList-item-padding-horizontal;
436
427
  }
437
428
 
438
429
  &.ActionList-content--sizeLarge {
439
430
  // 48px total height
440
- // stylelint-disable-next-line primer/spacing
441
431
  padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
442
432
  }
443
433
 
@@ -447,7 +437,6 @@
447
437
 
448
438
  // On pointer:coarse (mobile), all list items are large
449
439
  @media (pointer: coarse) {
450
- // stylelint-disable-next-line primer/spacing
451
440
  padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
452
441
  }
453
442
 
@@ -504,7 +493,6 @@
504
493
  align-items: baseline;
505
494
 
506
495
  .ActionList-item-description {
507
- // stylelint-disable-next-line primer/spacing
508
496
  margin-left: $actionList-item-padding-horizontal;
509
497
  }
510
498
  }
@@ -4,17 +4,6 @@
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
-
18
7
  @mixin treeConnectingLine($left) {
19
8
  position: absolute;
20
9
  left: $left;
@@ -32,99 +21,6 @@
32
21
  }
33
22
 
34
23
  .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
-
128
24
  // nesting (infinate levels)
129
25
  // target items inside expanded subgroup
130
26
  &[aria-expanded] {
@@ -134,7 +30,6 @@
134
30
  // --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
135
31
  // stylelint-disable-next-line selector-max-specificity, max-nesting-depth, selector-max-compound-selectors
136
32
  .ActionList-content {
137
- // stylelint-disable-next-line primer/spacing
138
33
  padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
139
34
  }
140
35
  }
@@ -8,11 +8,6 @@
8
8
  padding: 0;
9
9
  }
10
10
 
11
- // nested list within main ActionList
12
- .ActionList--subGroup {
13
- padding: 0;
14
- }
15
-
16
11
  // dividers
17
12
 
18
13
  .ActionList--divided {
package/base/kbd.scss CHANGED
@@ -3,7 +3,6 @@
3
3
 
4
4
  kbd {
5
5
  display: inline-block;
6
- // stylelint-disable-next-line primer/spacing
7
6
  padding: ($spacer-1 - 1) ($spacer-1 + 1);
8
7
  font: 11px $mono-font;
9
8
  // stylelint-disable-next-line primer/typography
@@ -225,7 +225,7 @@ code,
225
225
  kbd,
226
226
  pre,
227
227
  samp {
228
- font-family: monospace, monospace; /* 1 */
228
+ font-family: monospace; /* 1 */
229
229
  font-size: 1em; /* 2 */
230
230
  }
231
231
 
@@ -62,11 +62,12 @@ dd {
62
62
  margin-left: 0;
63
63
  }
64
64
 
65
- // Code
65
+ // Monospaced
66
66
  // --------------------------------------------------
67
67
 
68
68
  tt,
69
- code {
69
+ code,
70
+ samp {
70
71
  font-family: $mono-font;
71
72
  font-size: $font-size-small;
72
73
  }
@@ -30,12 +30,31 @@
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
+
33
53
  .blankslate-capped {
34
54
  border-radius: 0 0 $border-radius $border-radius;
35
55
  }
36
56
 
37
57
  .blankslate-spacious {
38
- // stylelint-disable-next-line primer/spacing
39
58
  padding: ($spacer-6 * 2) $spacer-6;
40
59
  }
41
60
 
package/box/box.scss CHANGED
@@ -28,7 +28,6 @@
28
28
  .Box-btn-octicon {
29
29
  &.btn-octicon {
30
30
  padding: $spacer-2 $spacer-3;
31
- // stylelint-disable-next-line primer/spacing
32
31
  margin: (-$spacer-2) (-$spacer-3);
33
32
  line-height: $lh-condensed;
34
33
  }
@@ -60,7 +59,6 @@
60
59
  .Box-btn-octicon {
61
60
  &.btn-octicon {
62
61
  padding: $spacer-4;
63
- // stylelint-disable-next-line primer/spacing
64
62
  margin: (-$spacer-4) (-$spacer-4);
65
63
  }
66
64
  }
@@ -285,7 +283,6 @@
285
283
  // Increase specificity when btn-octicon is used because comes after .Box in the cascade
286
284
  &.btn-octicon {
287
285
  padding: $spacer-3 $spacer-3;
288
- // stylelint-disable-next-line primer/spacing
289
286
  margin: (-$spacer-3) (-$spacer-3);
290
287
  line-height: $lh-default; // override btn-octicon line-height
291
288
  }
@@ -294,6 +294,7 @@
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
297
298
  padding: $em-spacer-6 1.5em;
298
299
  font-size: inherit;
299
300
  line-height: $lh-default;