@primer/css 0.0.0-202198211147 → 0.0.0-20220106235309

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 (211) hide show
  1. package/CHANGELOG.md +131 -6
  2. package/DEVELOP.md +15 -0
  3. package/actionlist/action-list-item-divider.scss +42 -0
  4. package/actionlist/action-list-item.scss +421 -194
  5. package/actionlist/action-list-tree.scss +92 -0
  6. package/actionlist/action-list-variables.scss +8 -0
  7. package/actionlist/action-list.scss +20 -38
  8. package/actionlist/index.scss +3 -1
  9. package/alerts/flash.scss +9 -0
  10. package/alerts/index.scss +2 -2
  11. package/autocomplete/autocomplete.scss +1 -1
  12. package/autocomplete/index.scss +3 -3
  13. package/autocomplete/suggester.scss +9 -1
  14. package/avatars/avatar-stack.scss +2 -1
  15. package/avatars/circle-badge.scss +1 -1
  16. package/avatars/index.scss +5 -5
  17. package/base/base.scss +1 -0
  18. package/base/index.scss +6 -7
  19. package/base/normalize.scss +1 -1
  20. package/blankslate/index.scss +2 -3
  21. package/box/box-overlay.scss +40 -0
  22. package/box/index.scss +3 -2
  23. package/branch-name/index.scss +2 -2
  24. package/breadcrumb/breadcrumb.scss +1 -1
  25. package/breadcrumb/index.scss +2 -2
  26. package/buttons/button-group.scss +3 -2
  27. package/buttons/button.scss +14 -14
  28. package/buttons/index.scss +4 -4
  29. package/buttons/misc.scss +14 -10
  30. package/color-modes/index.scss +8 -7
  31. package/color-modes/native.scss +1 -0
  32. package/color-modes/themes/dark.scss +2 -3
  33. package/color-modes/themes/dark_colorblind.scss +6 -0
  34. package/color-modes/themes/dark_dimmed.scss +2 -3
  35. package/color-modes/themes/dark_high_contrast.scss +2 -3
  36. package/color-modes/themes/light.scss +2 -3
  37. package/color-modes/themes/light_colorblind.scss +6 -0
  38. package/color-modes/themes/light_high_contrast.scss +6 -0
  39. package/deprecations.json +9 -7
  40. package/dist/actionlist.css +1 -1
  41. package/dist/actionlist.css.map +1 -1
  42. package/dist/alerts.css +1 -1
  43. package/dist/alerts.css.map +1 -1
  44. package/dist/autocomplete.css +1 -1
  45. package/dist/autocomplete.css.map +1 -1
  46. package/dist/avatars.css +1 -1
  47. package/dist/avatars.css.map +1 -1
  48. package/dist/base.css +1 -1
  49. package/dist/base.css.map +1 -1
  50. package/dist/blankslate.css.map +1 -1
  51. package/dist/box.css +1 -1
  52. package/dist/box.css.map +1 -1
  53. package/dist/branch-name.css.map +1 -1
  54. package/dist/breadcrumb.css.map +1 -1
  55. package/dist/buttons.css +1 -1
  56. package/dist/buttons.css.map +1 -1
  57. package/dist/color-modes.css +1 -1
  58. package/dist/color-modes.css.map +1 -1
  59. package/dist/core.css +1 -1
  60. package/dist/core.css.map +1 -1
  61. package/dist/deprecations.json +9 -7
  62. package/dist/dropdown.css.map +1 -1
  63. package/dist/forms.css +1 -1
  64. package/dist/forms.css.map +1 -1
  65. package/dist/header.css.map +1 -1
  66. package/dist/labels.css +1 -1
  67. package/dist/labels.css.map +1 -1
  68. package/dist/layout.css +1 -1
  69. package/dist/layout.css.map +1 -1
  70. package/dist/links.css.map +1 -1
  71. package/dist/loaders.css.map +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 +2 -0
  76. package/dist/marketing-links.css.map +1 -0
  77. package/dist/marketing-links.js +1 -0
  78. package/dist/marketing-type.css.map +1 -1
  79. package/dist/marketing-utilities.css +1 -1
  80. package/dist/marketing-utilities.css.map +1 -1
  81. package/dist/marketing.css +1 -1
  82. package/dist/marketing.css.map +1 -1
  83. package/dist/meta.json +113 -193
  84. package/dist/navigation.css.map +1 -1
  85. package/dist/pagination.css +1 -1
  86. package/dist/pagination.css.map +1 -1
  87. package/dist/popover.css +1 -1
  88. package/dist/popover.css.map +1 -1
  89. package/dist/primer.css +4 -4
  90. package/dist/primer.css.map +1 -1
  91. package/dist/product.css +1 -1
  92. package/dist/product.css.map +1 -1
  93. package/dist/progress.css.map +1 -1
  94. package/dist/select-menu.css +1 -1
  95. package/dist/select-menu.css.map +1 -1
  96. package/dist/stats/actionlist.json +1 -1
  97. package/dist/stats/alerts.json +1 -1
  98. package/dist/stats/autocomplete.json +1 -1
  99. package/dist/stats/avatars.json +1 -1
  100. package/dist/stats/base.json +1 -1
  101. package/dist/stats/box.json +1 -1
  102. package/dist/stats/buttons.json +1 -1
  103. package/dist/stats/color-modes.json +1 -1
  104. package/dist/stats/core.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/marketing-buttons.json +1 -1
  109. package/dist/stats/marketing-links.json +1 -0
  110. package/dist/stats/marketing-utilities.json +1 -1
  111. package/dist/stats/marketing.json +1 -1
  112. package/dist/stats/pagination.json +1 -1
  113. package/dist/stats/popover.json +1 -1
  114. package/dist/stats/primer.json +1 -1
  115. package/dist/stats/product.json +1 -1
  116. package/dist/stats/select-menu.json +1 -1
  117. package/dist/stats/subhead.json +1 -1
  118. package/dist/stats/toasts.json +1 -1
  119. package/dist/stats/utilities.json +1 -1
  120. package/dist/subhead.css +1 -1
  121. package/dist/subhead.css.map +1 -1
  122. package/dist/timeline.css.map +1 -1
  123. package/dist/toasts.css +1 -1
  124. package/dist/toasts.css.map +1 -1
  125. package/dist/tooltips.css.map +1 -1
  126. package/dist/truncate.css.map +1 -1
  127. package/dist/utilities.css +1 -1
  128. package/dist/utilities.css.map +1 -1
  129. package/dist/variables.json +62 -62
  130. package/dropdown/dropdown.scss +4 -4
  131. package/dropdown/index.scss +2 -2
  132. package/forms/form-control.scss +22 -8
  133. package/forms/form-group.scss +2 -2
  134. package/forms/form-select.scss +2 -2
  135. package/forms/form-validation.scss +9 -9
  136. package/forms/index.scss +7 -7
  137. package/forms/radio-group.scss +19 -0
  138. package/header/index.scss +2 -2
  139. package/index.scss +4 -4
  140. package/labels/counters.scss +1 -1
  141. package/labels/index.scss +7 -8
  142. package/labels/labels.scss +23 -4
  143. package/layout/grid.scss +1 -1
  144. package/layout/index.scss +7 -7
  145. package/layout/layout.scss +7 -11
  146. package/layout/mixins.scss +30 -4
  147. package/layout/page-layout.scss +380 -0
  148. package/links/index.scss +2 -2
  149. package/links/link.scss +1 -1
  150. package/loaders/index.scss +2 -2
  151. package/loaders/loaders.scss +1 -1
  152. package/markdown/footnotes.scss +1 -1
  153. package/markdown/images.scss +2 -2
  154. package/markdown/index.scss +9 -9
  155. package/markdown/lists.scss +3 -3
  156. package/markdown/markdown-body.scss +4 -4
  157. package/marketing/buttons/button.scss +102 -52
  158. package/marketing/buttons/index.scss +2 -2
  159. package/marketing/index.scss +5 -4
  160. package/marketing/links/index.scss +3 -0
  161. package/marketing/links/link.scss +50 -0
  162. package/marketing/support/index.scss +2 -3
  163. package/marketing/support/variables.scss +4 -5
  164. package/marketing/type/index.scss +2 -2
  165. package/marketing/type/typography.scss +26 -23
  166. package/marketing/utilities/animations.scss +42 -0
  167. package/marketing/utilities/index.scss +5 -5
  168. package/marketing/utilities/layout.scss +1 -1
  169. package/navigation/filter-list.scss +2 -2
  170. package/navigation/index.scss +7 -7
  171. package/navigation/menu.scss +3 -3
  172. package/navigation/sidenav.scss +5 -5
  173. package/navigation/subnav.scss +2 -2
  174. package/navigation/tabnav.scss +2 -2
  175. package/navigation/underline-nav.scss +2 -2
  176. package/package.json +17 -18
  177. package/pagination/index.scss +2 -2
  178. package/pagination/pagination.scss +5 -5
  179. package/popover/index.scss +2 -2
  180. package/popover/popover.scss +43 -5
  181. package/postcss.config.cjs +1 -1
  182. package/product/index.scss +17 -17
  183. package/progress/index.scss +2 -2
  184. package/select-menu/index.scss +2 -2
  185. package/select-menu/select-menu.scss +6 -6
  186. package/stylelint.config.cjs +2 -11
  187. package/subhead/index.scss +2 -2
  188. package/subhead/subhead.scss +6 -0
  189. package/support/index.scss +7 -7
  190. package/support/mixins/color-modes.scss +3 -0
  191. package/support/mixins/layout.scss +5 -5
  192. package/support/mixins/misc.scss +1 -1
  193. package/support/mixins/typography.scss +3 -2
  194. package/support/variables/layout.scss +8 -19
  195. package/support/variables/typography.scss +1 -1
  196. package/table-object/index.scss +1 -1
  197. package/timeline/index.scss +2 -2
  198. package/timeline/timeline-item.scss +1 -1
  199. package/toasts/index.scss +2 -2
  200. package/toasts/toasts.scss +0 -4
  201. package/tooltips/index.scss +2 -2
  202. package/tooltips/tooltips.scss +1 -1
  203. package/truncate/index.scss +2 -2
  204. package/utilities/colors.scss +32 -30
  205. package/utilities/details.scss +1 -1
  206. package/utilities/index.scss +12 -12
  207. package/utilities/visibility-display.scss +3 -3
  208. package/actionlist/action-list-divider.scss +0 -72
  209. package/color-modes/themes/dark_protanopia.scss +0 -7
  210. package/color-modes/themes/light_protanopia.scss +0 -7
  211. package/marketing/support/mixins.scss +0 -66
@@ -0,0 +1,380 @@
1
+ // stylelint-disable max-nesting-depth
2
+ // stylelint-disable selector-max-specificity
3
+ // stylelint-disable no-duplicate-selectors
4
+
5
+ $Layout-divider-color: var(--color-border-default) !default;
6
+ $Layout-responsive-variant-max-breakpoint: 'md' !default;
7
+
8
+ :root {
9
+ --Layout-pane-width: #{map-get($sidebar-width, 'sm')};
10
+ --Layout-content-width: 100%;
11
+ --Layout-template-columns: 1fr var(--Layout-pane-width);
12
+ --Layout-template-areas: 'content pane';
13
+ --Layout-column-gap: #{$spacer-3};
14
+ --Layout-row-gap: #{$spacer-3};
15
+
16
+ // the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
17
+ // stylelint-disable length-zero-no-unit
18
+ --Layout-outer-spacing-x: 0px; // wrapper margin x
19
+ --Layout-outer-spacing-y: 0px; // wrapper margin y
20
+ --Layout-inner-spacing-min: 0px; // default region padding
21
+ --Layout-inner-spacing-max: 0px; // relaxed content horizontal padding
22
+ // stylelint-enable length-zero-no-unit
23
+ }
24
+
25
+ .PageLayout {
26
+ // stylelint-disable-next-line primer/spacing
27
+ margin: var(--Layout-outer-spacing-y) var(--Layout-outer-spacing-x);
28
+
29
+ // multi-column desktop-friendly layout
30
+
31
+ @include breakpoint($Layout-responsive-variant-max-breakpoint) {
32
+
33
+ // Set a `content` region width, to work with loading states when
34
+ // `pane` is not yet loaded. See https://github.com/primer/css/pull/1818
35
+ $Layout-content-full-width: minmax(0, calc(100% - var(--Layout-pane-width) - var(--Layout-column-gap)));
36
+
37
+ &.PageLayout--panePos-start {
38
+ --Layout-template-columns: var(--Layout-pane-width) #{$Layout-content-full-width};
39
+ --Layout-template-areas: 'pane content';
40
+ }
41
+
42
+ &.PageLayout--panePos-end {
43
+ --Layout-template-columns: #{$Layout-content-full-width} var(--Layout-pane-width);
44
+ --Layout-template-areas: 'content pane';
45
+ }
46
+
47
+ // header divider
48
+
49
+ .PageLayout-header--hasDivider {
50
+ // stylelint-disable-next-line primer/spacing
51
+ padding-bottom: max(var(--Layout-row-gap), var(--Layout-inner-spacing-min));
52
+ // stylelint-disable-next-line primer/borders
53
+ border-bottom: $border-width solid $Layout-divider-color;
54
+ }
55
+
56
+ // footer divider
57
+
58
+ .PageLayout-footer--hasDivider {
59
+ // stylelint-disable-next-line primer/spacing
60
+ padding-top: max(var(--Layout-row-gap), var(--Layout-inner-spacing-min));
61
+ // stylelint-disable-next-line primer/borders
62
+ border-top: $border-width solid $Layout-divider-color;
63
+ }
64
+
65
+ // pane divider
66
+
67
+ &.PageLayout--hasPaneDivider {
68
+ &.PageLayout--panePos-start {
69
+ .PageLayout-pane {
70
+ // stylelint-disable-next-line primer/borders
71
+ border-right: $border-width solid $Layout-divider-color;
72
+ }
73
+
74
+ &:not(.PageLayout--columnGap-none) {
75
+ .PageLayout-pane {
76
+ // stylelint-disable-next-line primer/spacing
77
+ padding-right: calc(var(--Layout-column-gap) - #{$border-width});
78
+ // stylelint-disable-next-line primer/spacing
79
+ margin-right: calc(var(--Layout-column-gap) * -1);
80
+ }
81
+
82
+ .PageLayout-content {
83
+ // stylelint-disable-next-line primer/spacing
84
+ margin-left: var(--Layout-column-gap);
85
+ }
86
+ }
87
+ }
88
+
89
+ &.PageLayout--panePos-end {
90
+ .PageLayout-pane {
91
+ // stylelint-disable-next-line primer/borders
92
+ border-left: $border-width solid $Layout-divider-color;
93
+ }
94
+
95
+ &:not(.PageLayout--columnGap-none) {
96
+ .PageLayout-pane {
97
+ // stylelint-disable-next-line primer/spacing
98
+ padding-left: calc(var(--Layout-column-gap) - #{$border-width});
99
+ // stylelint-disable-next-line primer/spacing
100
+ margin-left: calc(var(--Layout-column-gap) * -1);
101
+ }
102
+
103
+ .PageLayout-content {
104
+ // stylelint-disable-next-line primer/spacing
105
+ margin-right: var(--Layout-column-gap);
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ // sticky pane
112
+
113
+ &.PageLayout--isPaneSticky {
114
+ .PageLayout-pane {
115
+ position: sticky;
116
+ top: 0;
117
+ max-height: 100vh;
118
+ overflow: auto;
119
+ }
120
+ }
121
+
122
+ // content width
123
+
124
+ [class^='PageLayout-content-centered-'] {
125
+ max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + var(--Layout-column-gap));
126
+ margin-right: auto;
127
+ margin-left: auto;
128
+ }
129
+
130
+ &.PageLayout--hasPaneDivider {
131
+ [class^='PageLayout-content-centered-'] {
132
+ max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + (var(--Layout-column-gap) * 2));
133
+ }
134
+ }
135
+
136
+ &.PageLayout--panePos-start {
137
+ [class^='PageLayout-content-centered-'] > [class^='container-'] {
138
+ margin-left: 0;
139
+ }
140
+ }
141
+
142
+ &.PageLayout--panePos-end {
143
+ [class^='PageLayout-content-centered-'] > [class^='container-'] {
144
+ margin-right: 0;
145
+ }
146
+ }
147
+
148
+ @each $breakpoint in map-keys($breakpoints) {
149
+ .PageLayout-content-centered-#{$breakpoint} {
150
+ --Layout-content-width: #{map-get($breakpoints, $breakpoint)};
151
+ }
152
+ }
153
+
154
+ // pane width
155
+
156
+ @each $breakpoint in map-keys($sidebar-width) {
157
+ @include breakpoint($breakpoint) {
158
+ --Layout-pane-width: #{map-get($sidebar-width, $breakpoint)};
159
+ }
160
+ }
161
+
162
+ &.PageLayout--paneWidth-narrow {
163
+ @each $breakpoint in map-keys($sidebar-narrow-width) {
164
+ @include breakpoint($breakpoint) {
165
+ --Layout-pane-width: #{map-get($sidebar-narrow-width, $breakpoint)};
166
+ }
167
+ }
168
+ }
169
+
170
+ &.PageLayout--paneWidth-wide {
171
+ @each $breakpoint in map-keys($sidebar-wide-width) {
172
+ @include breakpoint($breakpoint) {
173
+ --Layout-pane-width: #{map-get($sidebar-wide-width, $breakpoint)};
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ // responsive behaviors on narrow viewports
180
+
181
+ @media (max-width: #{map-get($breakpoints, $Layout-responsive-variant-max-breakpoint) - 0.02px}) {
182
+
183
+ // variant: stackRegions
184
+
185
+ &.PageLayout--responsive-stackRegions {
186
+ --Layout-template-columns: 1fr;
187
+
188
+ // responsive-panePos: end (default)
189
+ --Layout-template-areas: 'content' 'pane';
190
+
191
+ // responsive-panePos: start
192
+ &.PageLayout--responsive-panePos-start {
193
+ --Layout-template-areas: 'pane' 'content';
194
+ }
195
+ }
196
+
197
+ // variant: separateRegions
198
+
199
+ &.PageLayout--responsive-separateRegions {
200
+ --Layout-template-columns: 1fr;
201
+ --Layout-template-areas: 'content';
202
+
203
+ &.PageLayout--responsive-primary-content {
204
+ --Layout-template-areas: 'content';
205
+
206
+ .PageLayout-pane {
207
+ display: none;
208
+ }
209
+ }
210
+
211
+ &.PageLayout--responsive-primary-pane {
212
+ --Layout-template-areas: 'pane';
213
+
214
+ .PageLayout-content {
215
+ display: none;
216
+ }
217
+ }
218
+ }
219
+
220
+ // region dividers on narrow viewports
221
+
222
+ .PageLayout-region--dividerNarrow-line-before {
223
+ position: relative;
224
+ // stylelint-disable-next-line primer/spacing
225
+ margin-top: var(--Layout-row-gap);
226
+
227
+ &::before {
228
+ @include Layout-line-divider;
229
+
230
+ top: calc(#{$border-width * -1} - var(--Layout-row-gap));
231
+ }
232
+ }
233
+
234
+ .PageLayout-region--dividerNarrow-line-after {
235
+ position: relative;
236
+ // stylelint-disable-next-line primer/spacing
237
+ margin-bottom: var(--Layout-row-gap);
238
+
239
+ &::after {
240
+ @include Layout-line-divider;
241
+
242
+ bottom: calc(#{$border-width * -1} - var(--Layout-row-gap));
243
+ }
244
+ }
245
+
246
+ .PageLayout-region--dividerNarrow-filled-before {
247
+ position: relative;
248
+ // stylelint-disable-next-line primer/spacing
249
+ margin-top: calc(#{$spacer-2} + var(--Layout-row-gap));
250
+
251
+ &::after {
252
+ @include Layout-filled-divider;
253
+
254
+ top: calc(#{$spacer-2 * -1} - var(--Layout-row-gap));
255
+ }
256
+ }
257
+
258
+ .PageLayout-region--dividerNarrow-filled-after {
259
+ position: relative;
260
+ // stylelint-disable-next-line primer/spacing
261
+ margin-bottom: calc(#{$spacer-2} + var(--Layout-row-gap));
262
+
263
+ &::before {
264
+ @include Layout-filled-divider;
265
+
266
+ bottom: calc(#{$spacer-2 * -1} - var(--Layout-row-gap));
267
+ }
268
+ }
269
+ }
270
+ }
271
+
272
+ .PageLayout-wrapper {
273
+ display: grid;
274
+ grid: auto-flow / 1fr;
275
+ row-gap: var(--Layout-row-gap);
276
+ }
277
+
278
+ .PageLayout-columns {
279
+ display: grid;
280
+ column-gap: var(--Layout-column-gap);
281
+ row-gap: var(--Layout-row-gap);
282
+ grid-template-columns: var(--Layout-template-columns);
283
+ grid-template-rows: 1fr;
284
+ grid-template-areas: var(--Layout-template-areas);
285
+ }
286
+
287
+ // outer spacing
288
+
289
+ .PageLayout--outerSpacing-normal {
290
+ --Layout-outer-spacing-x: #{$spacer-3};
291
+ --Layout-outer-spacing-y: #{$spacer-3};
292
+
293
+ @include breakpoint(lg) {
294
+ --Layout-outer-spacing-x: #{$spacer-4};
295
+ --Layout-outer-spacing-y: #{$spacer-4};
296
+ }
297
+ }
298
+
299
+ .PageLayout--outerSpacing-condensed {
300
+ --Layout-outer-spacing-x: #{$spacer-3};
301
+ --Layout-outer-spacing-y: #{$spacer-3};
302
+ }
303
+
304
+ // inner spacing
305
+
306
+ .PageLayout--innerSpacing-normal {
307
+ --Layout-inner-spacing-min: #{$spacer-3};
308
+ --Layout-inner-spacing-max: #{$spacer-3};
309
+
310
+ @include breakpoint(lg) {
311
+ --Layout-inner-spacing-max: #{$spacer-4};
312
+ }
313
+ }
314
+
315
+ .PageLayout--innerSpacing-condensed {
316
+ --Layout-inner-spacing-min: #{$spacer-3};
317
+ --Layout-inner-spacing-max: #{$spacer-3};
318
+ }
319
+
320
+ // column gap
321
+
322
+ .PageLayout--columnGap-normal {
323
+ --Layout-column-gap: #{$spacer-3};
324
+
325
+ @include breakpoint(lg) {
326
+ --Layout-column-gap: #{$spacer-4};
327
+ }
328
+ }
329
+
330
+ .PageLayout--columnGap-condensed {
331
+ --Layout-column-gap: #{$spacer-3};
332
+ }
333
+
334
+ .PageLayout--columnGap-none {
335
+ // the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
336
+ // stylelint-disable-next-line length-zero-no-unit
337
+ --Layout-column-gap: 0px;
338
+ }
339
+
340
+ // row gap
341
+
342
+ .PageLayout--rowGap-normal {
343
+ --Layout-row-gap: #{$spacer-3};
344
+
345
+ @include breakpoint(lg) {
346
+ --Layout-row-gap: #{$spacer-4};
347
+ }
348
+ }
349
+
350
+ .PageLayout--rowGap-none {
351
+ // the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
352
+ // stylelint-disable length-zero-no-unit
353
+ --Layout-row-gap: 0px;
354
+ }
355
+
356
+ .PageLayout--rowGap-condensed {
357
+ --Layout-row-gap: #{$spacer-3};
358
+ }
359
+
360
+ // regions
361
+
362
+ .PageLayout-header,
363
+ .PageLayout-content,
364
+ .PageLayout-pane,
365
+ .PageLayout-footer {
366
+ // stylelint-disable-next-line primer/spacing
367
+ padding: var(--Layout-inner-spacing-min);
368
+ }
369
+
370
+ .PageLayout-content {
371
+ // stylelint-disable primer/spacing
372
+ padding-right: var(--Layout-inner-spacing-max);
373
+ padding-left: var(--Layout-inner-spacing-max);
374
+ // stylelint-enable primer/spacing
375
+ grid-area: content;
376
+ }
377
+
378
+ .PageLayout-pane {
379
+ grid-area: pane;
380
+ }
package/links/index.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // support files
2
- @import "../support/index.scss";
3
- @import "./link.scss";
2
+ @import '../support/index.scss';
3
+ @import './link.scss';
package/links/link.scss CHANGED
@@ -49,7 +49,7 @@
49
49
  .Link--secondary,
50
50
  .Link--primary,
51
51
  .Link--muted {
52
- &:hover [class*="color-text"] {
52
+ &:hover [class*='color-text'] {
53
53
  color: inherit !important;
54
54
  }
55
55
  }
@@ -1,2 +1,2 @@
1
- @import "../support/index.scss";
2
- @import "./loaders.scss";
1
+ @import '../support/index.scss';
2
+ @import './loaders.scss';
@@ -9,7 +9,7 @@
9
9
 
10
10
  &::after {
11
11
  display: inline-block;
12
- content: "...";
12
+ content: '...';
13
13
  animation: AnimatedEllipsis-keyframes 1.2s steps(4, jump-none) infinite;
14
14
  }
15
15
 
@@ -21,7 +21,7 @@
21
21
  bottom: -$spacer-2;
22
22
  left: -$spacer-4;
23
23
  pointer-events: none;
24
- content: "";
24
+ content: '';
25
25
  // stylelint-disable-next-line primer/borders
26
26
  border: 2px $border-style var(--color-accent-emphasis);
27
27
  border-radius: $border-radius;
@@ -10,12 +10,12 @@
10
10
  box-sizing: content-box;
11
11
  background-color: var(--color-canvas-default);
12
12
 
13
- &[align=right] {
13
+ &[align='right'] {
14
14
  // stylelint-disable-next-line primer/spacing
15
15
  padding-left: 20px;
16
16
  }
17
17
 
18
- &[align=left] {
18
+ &[align='left'] {
19
19
  // stylelint-disable-next-line primer/spacing
20
20
  padding-right: 20px;
21
21
  }
@@ -1,9 +1,9 @@
1
- @import "../support/index.scss";
2
- @import "./markdown-body.scss";
3
- @import "./headings.scss";
4
- @import "./lists.scss";
5
- @import "./tables.scss";
6
- @import "./images.scss";
7
- @import "./code.scss";
8
- @import "./blob-csv.scss";
9
- @import "./footnotes.scss";
1
+ @import '../support/index.scss';
2
+ @import './markdown-body.scss';
3
+ @import './headings.scss';
4
+ @import './lists.scss';
5
+ @import './tables.scss';
6
+ @import './images.scss';
7
+ @import './code.scss';
8
+ @import './blob-csv.scss';
9
+ @import './footnotes.scss';
@@ -14,15 +14,15 @@
14
14
  }
15
15
  }
16
16
 
17
- ol[type="1"] {
17
+ ol[type='1'] {
18
18
  list-style-type: decimal;
19
19
  }
20
20
 
21
- ol[type="a"] {
21
+ ol[type='a'] {
22
22
  list-style-type: lower-alpha;
23
23
  }
24
24
 
25
- ol[type="i"] {
25
+ ol[type='i'] {
26
26
  list-style-type: lower-roman;
27
27
  }
28
28
 
@@ -13,13 +13,13 @@
13
13
  // Clearfix on the markdown body
14
14
  &::before {
15
15
  display: table;
16
- content: "";
16
+ content: '';
17
17
  }
18
18
 
19
19
  &::after {
20
20
  display: table;
21
21
  clear: both;
22
- content: "";
22
+ content: '';
23
23
  }
24
24
 
25
25
  > *:first-child {
@@ -95,10 +95,10 @@
95
95
  }
96
96
 
97
97
  sup > a::before {
98
- content: "[";
98
+ content: '[';
99
99
  }
100
100
 
101
101
  sup > a::after {
102
- content: "]";
102
+ content: ']';
103
103
  }
104
104
  }