@primer/css 0.0.0-2021986475 → 0.0.0-20220107003629
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +129 -8
- package/DEVELOP.md +15 -0
- package/actionlist/action-list-item-divider.scss +42 -0
- package/actionlist/action-list-item.scss +535 -0
- package/actionlist/action-list-tree.scss +92 -0
- package/actionlist/action-list-variables.scss +8 -0
- package/actionlist/action-list.scss +38 -0
- package/actionlist/index.scss +6 -0
- package/alerts/flash.scss +9 -0
- package/alerts/index.scss +2 -2
- package/autocomplete/autocomplete.scss +1 -1
- package/autocomplete/index.scss +3 -3
- package/autocomplete/suggester.scss +9 -1
- package/avatars/avatar-stack.scss +2 -1
- package/avatars/circle-badge.scss +1 -1
- package/avatars/index.scss +5 -5
- package/base/base.scss +1 -0
- package/base/index.scss +6 -7
- package/base/normalize.scss +1 -1
- package/blankslate/index.scss +2 -3
- package/box/box-overlay.scss +40 -0
- package/box/index.scss +3 -2
- package/branch-name/index.scss +2 -2
- package/breadcrumb/breadcrumb.scss +1 -1
- package/breadcrumb/index.scss +2 -2
- package/buttons/button-group.scss +3 -2
- package/buttons/button.scss +14 -14
- package/buttons/index.scss +4 -4
- package/buttons/misc.scss +14 -10
- package/color-modes/index.scss +8 -7
- package/color-modes/native.scss +1 -0
- package/color-modes/themes/dark.scss +2 -3
- package/color-modes/themes/dark_colorblind.scss +3 -4
- package/color-modes/themes/dark_dimmed.scss +2 -3
- package/color-modes/themes/dark_high_contrast.scss +2 -3
- package/color-modes/themes/light.scss +2 -3
- package/color-modes/themes/light_colorblind.scss +3 -4
- package/color-modes/themes/light_high_contrast.scss +6 -0
- package/core/index.scss +15 -14
- package/deprecations.json +6 -4
- package/dist/actionlist.css +2 -0
- package/dist/actionlist.css.map +1 -0
- package/dist/actionlist.js +1 -0
- package/dist/alerts.css +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/deprecations.json +6 -4
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css +2 -0
- package/dist/marketing-links.css.map +1 -0
- package/dist/marketing-links.js +1 -0
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +172 -256
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +4 -4
- package/dist/primer.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/actionlist.json +1 -0
- package/dist/stats/alerts.json +1 -1
- package/dist/stats/autocomplete.json +1 -1
- package/dist/stats/avatars.json +1 -1
- package/dist/stats/base.json +1 -1
- package/dist/stats/box.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/forms.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing-links.json +1 -0
- package/dist/stats/marketing-utilities.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/select-menu.json +1 -1
- package/dist/stats/subhead.json +1 -1
- package/dist/stats/toasts.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/dist/variables.json +62 -62
- package/dropdown/dropdown.scss +4 -4
- package/dropdown/index.scss +2 -2
- package/forms/form-control.scss +22 -8
- package/forms/form-group.scss +2 -2
- package/forms/form-select.scss +2 -2
- package/forms/form-validation.scss +9 -9
- package/forms/index.scss +7 -7
- package/forms/radio-group.scss +19 -0
- package/header/index.scss +2 -2
- package/index.scss +4 -4
- package/labels/counters.scss +1 -1
- package/labels/index.scss +7 -8
- package/labels/labels.scss +23 -4
- package/layout/grid.scss +1 -1
- package/layout/index.scss +7 -7
- package/layout/layout.scss +7 -11
- package/layout/mixins.scss +30 -4
- package/layout/page-layout.scss +380 -0
- package/links/index.scss +2 -2
- package/links/link.scss +1 -1
- package/loaders/index.scss +2 -2
- package/loaders/loaders.scss +1 -1
- package/markdown/footnotes.scss +1 -1
- package/markdown/images.scss +2 -2
- package/markdown/index.scss +9 -9
- package/markdown/lists.scss +3 -3
- package/markdown/markdown-body.scss +4 -4
- package/marketing/buttons/button.scss +102 -52
- package/marketing/buttons/index.scss +2 -2
- package/marketing/index.scss +5 -4
- package/marketing/links/index.scss +3 -0
- package/marketing/links/link.scss +50 -0
- package/marketing/support/index.scss +2 -3
- package/marketing/support/variables.scss +4 -5
- package/marketing/type/index.scss +2 -2
- package/marketing/type/typography.scss +26 -23
- package/marketing/utilities/animations.scss +42 -0
- package/marketing/utilities/index.scss +5 -5
- package/marketing/utilities/layout.scss +1 -1
- package/navigation/filter-list.scss +2 -2
- package/navigation/index.scss +7 -7
- package/navigation/menu.scss +3 -3
- package/navigation/sidenav.scss +5 -5
- package/navigation/subnav.scss +2 -2
- package/navigation/tabnav.scss +2 -2
- package/navigation/underline-nav.scss +2 -2
- package/package.json +19 -19
- package/pagination/index.scss +2 -2
- package/pagination/pagination.scss +5 -5
- package/popover/index.scss +2 -2
- package/popover/popover.scss +43 -5
- package/postcss.config.cjs +1 -1
- package/product/index.scss +17 -17
- package/progress/index.scss +2 -2
- package/select-menu/index.scss +2 -2
- package/select-menu/select-menu.scss +6 -6
- package/stylelint.config.cjs +2 -11
- package/subhead/index.scss +2 -2
- package/subhead/subhead.scss +6 -0
- package/support/index.scss +7 -7
- package/support/mixins/color-modes.scss +3 -0
- package/support/mixins/layout.scss +5 -5
- package/support/mixins/misc.scss +1 -1
- package/support/mixins/typography.scss +3 -2
- package/support/variables/layout.scss +8 -19
- package/support/variables/typography.scss +1 -1
- package/table-object/index.scss +1 -1
- package/timeline/index.scss +2 -2
- package/timeline/timeline-item.scss +1 -1
- package/toasts/index.scss +2 -2
- package/toasts/toasts.scss +0 -4
- package/tooltips/index.scss +2 -2
- package/tooltips/tooltips.scss +1 -1
- package/truncate/index.scss +2 -2
- package/utilities/details.scss +1 -1
- package/utilities/index.scss +12 -12
- package/utilities/visibility-display.scss +3 -3
- 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
|
|
3
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './link.scss';
|
package/links/link.scss
CHANGED
package/loaders/index.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
|
+
@import './loaders.scss';
|
package/loaders/loaders.scss
CHANGED
package/markdown/footnotes.scss
CHANGED
package/markdown/images.scss
CHANGED
|
@@ -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
|
}
|
package/markdown/index.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
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';
|
package/markdown/lists.scss
CHANGED
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
ol[type=
|
|
17
|
+
ol[type='1'] {
|
|
18
18
|
list-style-type: decimal;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
ol[type=
|
|
21
|
+
ol[type='a'] {
|
|
22
22
|
list-style-type: lower-alpha;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
ol[type=
|
|
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
|
}
|