@primer/css 0.0.0-20220302025458 → 0.0.0-20220302084732
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 +57 -3
- package/README.md +2 -2
- package/actionlist/action-list-item-divider.scss +7 -1
- package/actionlist/action-list-item.scss +135 -121
- package/actionlist/action-list-tree.scss +100 -5
- package/actionlist/action-list.scss +29 -0
- package/alerts/flash.scss +0 -29
- package/base/kbd.scss +0 -1
- package/base/normalize.scss +1 -1
- package/base/typography-base.scss +3 -2
- package/blankslate/blankslate.scss +20 -1
- package/box/box.scss +0 -3
- package/buttons/button.scss +1 -0
- package/color-modes/native.scss +11 -0
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css.map +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 +1 -1
- package/dist/blankslate.css.map +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.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/dropdown.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css +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 +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css.map +1 -1
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/meta.json +75 -75
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +3 -3
- 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.map +1 -1
- package/dist/stats/actionlist.json +1 -1
- package/dist/stats/alerts.json +1 -1
- package/dist/stats/base.json +1 -1
- package/dist/stats/blankslate.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/header.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/markdown.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/subhead.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/table-object.css.map +1 -1
- package/dist/timeline.css.map +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 +7 -7
- package/forms/form-control.scss +1 -0
- package/forms/form-group.scss +2 -0
- package/header/header.scss +0 -28
- package/labels/labels.scss +10 -0
- package/labels/mixins.scss +6 -2
- package/labels/states.scss +2 -2
- package/layout/grid-offset.scss +1 -0
- package/layout/grid.scss +1 -0
- package/layout/index.scss +0 -1
- package/layout/page-layout.scss +3 -2
- package/markdown/code.scss +5 -0
- package/markdown/footnotes.scss +38 -26
- package/markdown/headings.scss +17 -0
- package/markdown/markdown-body.scss +0 -8
- package/marketing/type/typography.scss +3 -0
- package/marketing/utilities/layout.scss +1 -0
- package/package.json +19 -16
- package/pagination/pagination.scss +38 -1
- package/popover/popover.scss +0 -1
- package/subhead/subhead.scss +3 -0
- package/support/mixins/misc.scss +1 -0
- package/table-object/table-object.scss +3 -0
- package/timeline/timeline-item.scss +0 -1
- package/utilities/colors.scss +14 -0
- package/utilities/margin.scss +4 -1
- package/utilities/padding.scss +3 -1
- package/layout/application-frame.scss +0 -75
- package/table-object/README.md +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,66 @@
|
|
|
1
1
|
# @primer/css
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20220302084732
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1948](https://github.com/primer/css/pull/1948) [`2f897845`](https://github.com/primer/css/commit/2f89784559e4c0ec323dfef20930dcb4dbab3320) Thanks [@simurai](https://github.com/simurai)! - Add `open` and `closed` color roles
|
|
8
|
+
|
|
9
|
+
* [#1961](https://github.com/primer/css/pull/1961) [`a35a8bdc`](https://github.com/primer/css/commit/a35a8bdcc17906848fcb486842d2345db0441c7c) Thanks [@jonrohan](https://github.com/jonrohan)! - Default .PageLayout to display block
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1954](https://github.com/primer/css/pull/1954) [`30f29d38`](https://github.com/primer/css/commit/30f29d383256a7d4023a859fdeee44471307159d) Thanks [@simurai](https://github.com/simurai)! - Fix `input-block` in `form-group`
|
|
14
|
+
|
|
15
|
+
* [#1956](https://github.com/primer/css/pull/1956) [`39063461`](https://github.com/primer/css/commit/3906346182ed983d9725fd95da41b21424378b3e) Thanks [@jonrohan](https://github.com/jonrohan)! - Upgrading @primer/stylelint-config@12.3.2
|
|
16
|
+
|
|
17
|
+
- [#1931](https://github.com/primer/css/pull/1931) [`e5c5312e`](https://github.com/primer/css/commit/e5c5312ec8bf139f6c94d2f70ceecd4b3cd9fd82) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Page layout api updates renaming spacing options in storybook
|
|
18
|
+
|
|
19
|
+
* Fake entry to force publishing
|
|
20
|
+
|
|
21
|
+
- [#1950](https://github.com/primer/css/pull/1950) [`7c85c500`](https://github.com/primer/css/commit/7c85c500569fe6e1b29665c2eed37d58625ab06f) Thanks [@hectahertz](https://github.com/hectahertz)! - Fix sequence of content in Subhead
|
|
22
|
+
|
|
23
|
+
* [#1942](https://github.com/primer/css/pull/1942) [`0450ccbb`](https://github.com/primer/css/commit/0450ccbb86104564c7d4038eb68989f370014fa1) Thanks [@reeceatkinson](https://github.com/reeceatkinson)! - Added line break to docs
|
|
24
|
+
|
|
25
|
+
- [#1953](https://github.com/primer/css/pull/1953) [`3a91a29a`](https://github.com/primer/css/commit/3a91a29a822a28ea9679fbbb90250fc039057f23) Thanks [@hectahertz](https://github.com/hectahertz)! - Use `<h2>` instead of `<div>` on Subhead-heading docs
|
|
26
|
+
|
|
27
|
+
* [#1949](https://github.com/primer/css/pull/1949) [`dab83198`](https://github.com/primer/css/commit/dab83198c3bf1c7e03826b8cd498b8c48c9a2869) Thanks [@heiskr](https://github.com/heiskr)! - Render headings inline when in a `<summary>`
|
|
28
|
+
|
|
29
|
+
## 19.4.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- [#1937](https://github.com/primer/css/pull/1937) [`67f08009`](https://github.com/primer/css/commit/67f08009ef458088b9fda6267ab25ad6d0a514aa) Thanks [@langermank](https://github.com/langermank)! - TreeView single item nesting
|
|
34
|
+
|
|
35
|
+
* [#1905](https://github.com/primer/css/pull/1905) [`50221a54`](https://github.com/primer/css/commit/50221a5486d28c54dc1f578b459addd867bd01d3) Thanks [@langermank](https://github.com/langermank)! - Refactors NavigationList to better handle accessibility. Backwards compatible for TreeView CSS.
|
|
36
|
+
|
|
37
|
+
- [#1936](https://github.com/primer/css/pull/1936) [`c53ecdff`](https://github.com/primer/css/commit/c53ecdff5442cf4ac5da0d1e2ba45871ab662855) Thanks [@khiga8](https://github.com/khiga8)! - Deprecating `.tooltipped` CSS classes
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#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 `[ ]`
|
|
42
|
+
|
|
43
|
+
## 19.3.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- [#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
|
|
48
|
+
|
|
49
|
+
* [#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
50
|
|
|
5
51
|
### Patch Changes
|
|
6
52
|
|
|
7
|
-
-
|
|
53
|
+
- [#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
|
|
54
|
+
|
|
55
|
+
* [#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
|
|
56
|
+
|
|
57
|
+
- [#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`
|
|
58
|
+
|
|
59
|
+
* [#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
|
|
60
|
+
|
|
61
|
+
- [#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
|
|
8
62
|
|
|
9
|
-
* [#
|
|
63
|
+
* [#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
|
|
10
64
|
|
|
11
65
|
## 19.2.0
|
|
12
66
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img width="300px" src="./docs/src/readme.png">
|
|
2
|
+
<img width="300px" alt="" src="./docs/src/readme.png">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Primer CSS</h1>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<img alt="" src="https://github.com/primer/css/actions/workflows/ci.yml/badge.svg">
|
|
15
15
|
</a>
|
|
16
16
|
<a aria-label="contributors graph" href="https://github.com/primer/css/graphs/contributors">
|
|
17
|
-
<img src="https://img.shields.io/github/contributors/primer/css.svg">
|
|
17
|
+
<img alt="" src="https://img.shields.io/github/contributors/primer/css.svg">
|
|
18
18
|
</a>
|
|
19
19
|
<a aria-label="last commit" href="https://github.com/primer/css/commits/main">
|
|
20
20
|
<img alt="" src="https://img.shields.io/github/last-commit/primer/css.svg">
|
|
@@ -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,6 +13,7 @@
|
|
|
14
13
|
|
|
15
14
|
// no children
|
|
16
15
|
&:empty {
|
|
16
|
+
display: block;
|
|
17
17
|
height: 1px;
|
|
18
18
|
padding: 0;
|
|
19
19
|
// stylelint-disable-next-line primer/spacing
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
background: var(--color-action-list-item-inline-divider);
|
|
23
23
|
border: 0;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
.ActionList-sectionDivider-title {
|
|
27
|
+
font-size: $font-size-small;
|
|
28
|
+
font-weight: $font-weight-bold;
|
|
29
|
+
color: var(--color-fg-muted);
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
.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
|
|
@@ -92,6 +85,11 @@
|
|
|
92
85
|
+ .ActionList-item .ActionList-item-label::before {
|
|
93
86
|
visibility: hidden;
|
|
94
87
|
}
|
|
88
|
+
|
|
89
|
+
.ActionList-item-descriptionWrap--inline::before,
|
|
90
|
+
+ .ActionList-item .ActionList-item-descriptionWrap--inline::before {
|
|
91
|
+
visibility: hidden;
|
|
92
|
+
}
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
95
|
// stylelint-disable-next-line no-duplicate-selectors
|
|
@@ -152,98 +150,6 @@
|
|
|
152
150
|
}
|
|
153
151
|
}
|
|
154
152
|
|
|
155
|
-
// collapsible item [aria-expanded]
|
|
156
|
-
|
|
157
|
-
// nesting (single level)
|
|
158
|
-
// target items inside expanded subgroups
|
|
159
|
-
&[aria-expanded] {
|
|
160
|
-
.ActionList--subGroup {
|
|
161
|
-
@media screen and (prefers-reduced-motion: no-preference) {
|
|
162
|
-
transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.ActionList-content {
|
|
166
|
-
padding-left: $spacer-4;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// has 16px leading visual
|
|
171
|
-
.ActionList-content--visual16 + .ActionList--subGroup {
|
|
172
|
-
.ActionList-content {
|
|
173
|
-
padding-left: $spacer-5;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// has 20px leading visual
|
|
178
|
-
.ActionList-content--visual20 + .ActionList--subGroup {
|
|
179
|
-
.ActionList-content {
|
|
180
|
-
padding-left: $spacer-2 * 4.5; // 36px
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// has 24px leading visual
|
|
185
|
-
.ActionList-content--visual24 + .ActionList--subGroup {
|
|
186
|
-
.ActionList-content {
|
|
187
|
-
padding-left: $spacer-6;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&[aria-expanded='true'] {
|
|
193
|
-
.ActionList-item-collapseIcon {
|
|
194
|
-
transition: transform 120ms linear;
|
|
195
|
-
transform: scaleY(-1);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.ActionList--subGroup {
|
|
199
|
-
height: auto;
|
|
200
|
-
overflow: visible;
|
|
201
|
-
visibility: visible;
|
|
202
|
-
opacity: 1;
|
|
203
|
-
transform: translateY(0);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&.ActionList-item--hasActiveSubItem {
|
|
207
|
-
> .ActionList-content > .ActionList-item-label {
|
|
208
|
-
font-weight: $font-weight-bold;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
&[aria-expanded='false'] {
|
|
214
|
-
.ActionList-item-collapseIcon {
|
|
215
|
-
transition: transform 120ms linear;
|
|
216
|
-
transform: scaleY(1);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.ActionList--subGroup {
|
|
220
|
-
height: 0;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
visibility: hidden;
|
|
223
|
-
opacity: 0;
|
|
224
|
-
transform: translateY(-$spacer-3);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// show active indicator on parent collapse if child is active
|
|
228
|
-
&.ActionList-item--hasActiveSubItem {
|
|
229
|
-
background: var(--color-action-list-item-default-selected-bg);
|
|
230
|
-
|
|
231
|
-
.ActionList-item-label {
|
|
232
|
-
font-weight: $font-weight-bold;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&::before,
|
|
236
|
-
+ .ActionList-item::before {
|
|
237
|
-
visibility: hidden;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// blue accent line
|
|
241
|
-
&::after {
|
|
242
|
-
@include activeIndicatorLine;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
153
|
// checkbox item [aria-checked]
|
|
248
154
|
// listbox [aria-selected]
|
|
249
155
|
|
|
@@ -358,26 +264,9 @@
|
|
|
358
264
|
}
|
|
359
265
|
}
|
|
360
266
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
// disabled
|
|
367
|
-
&[aria-disabled='true'] {
|
|
368
|
-
.ActionList-item-label,
|
|
369
|
-
.ActionList-item-description {
|
|
370
|
-
color: var(--color-primer-fg-disabled);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.ActionList-item-visual {
|
|
374
|
-
fill: var(--color-primer-fg-disabled);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@media (hover: hover) {
|
|
378
|
-
&:hover {
|
|
379
|
-
cursor: not-allowed;
|
|
380
|
-
background-color: transparent;
|
|
267
|
+
.ActionList-content {
|
|
268
|
+
&:active {
|
|
269
|
+
background: var(--color-action-list-item-danger-active-bg);
|
|
381
270
|
}
|
|
382
271
|
}
|
|
383
272
|
}
|
|
@@ -389,19 +278,26 @@
|
|
|
389
278
|
}
|
|
390
279
|
}
|
|
391
280
|
|
|
392
|
-
//
|
|
281
|
+
// button or a href
|
|
393
282
|
.ActionList-content {
|
|
394
283
|
position: relative;
|
|
395
284
|
display: grid;
|
|
285
|
+
width: 100%;
|
|
396
286
|
// stylelint-disable-next-line primer/spacing
|
|
397
287
|
padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
|
|
398
288
|
font-size: $body-font-size;
|
|
399
289
|
font-weight: $font-weight-normal;
|
|
400
290
|
color: var(--color-fg-default);
|
|
291
|
+
text-align: left;
|
|
401
292
|
user-select: none;
|
|
402
|
-
|
|
293
|
+
background-color: transparent;
|
|
294
|
+
// stylelint-disable-next-line declaration-property-value-disallowed-list
|
|
295
|
+
border: none;
|
|
403
296
|
border-radius: $border-radius;
|
|
404
297
|
transition: $actionList-item-bg-transition;
|
|
298
|
+
touch-action: manipulation;
|
|
299
|
+
touch-action: manipulation;
|
|
300
|
+
-webkit-tap-highlight-color: transparent;
|
|
405
301
|
grid-template-rows: min-content;
|
|
406
302
|
grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
|
|
407
303
|
grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
|
|
@@ -412,10 +308,127 @@
|
|
|
412
308
|
margin-right: $spacer-2;
|
|
413
309
|
}
|
|
414
310
|
|
|
311
|
+
// state
|
|
312
|
+
|
|
313
|
+
&:hover {
|
|
314
|
+
text-decoration: none;
|
|
315
|
+
}
|
|
316
|
+
|
|
415
317
|
&:focus-visible {
|
|
416
318
|
@include focusOutline;
|
|
417
319
|
}
|
|
418
320
|
|
|
321
|
+
// disabled
|
|
322
|
+
&[aria-disabled='true'] {
|
|
323
|
+
.ActionList-item-label,
|
|
324
|
+
.ActionList-item-description {
|
|
325
|
+
color: var(--color-primer-fg-disabled);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ActionList-item-visual {
|
|
329
|
+
fill: var(--color-primer-fg-disabled);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@media (hover: hover) {
|
|
333
|
+
&:hover {
|
|
334
|
+
cursor: not-allowed;
|
|
335
|
+
background-color: transparent;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// collapsible item [aria-expanded]
|
|
341
|
+
|
|
342
|
+
// nesting (single level)
|
|
343
|
+
// target items inside expanded subgroups
|
|
344
|
+
&[aria-expanded] {
|
|
345
|
+
+ .ActionList--subGroup {
|
|
346
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
347
|
+
transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.ActionList-content {
|
|
351
|
+
padding-left: $spacer-4;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// has 16px leading visual
|
|
356
|
+
&.ActionList-content--visual16 + .ActionList--subGroup {
|
|
357
|
+
.ActionList-content {
|
|
358
|
+
padding-left: $spacer-5;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// has 20px leading visual
|
|
363
|
+
&.ActionList-content--visual20 + .ActionList--subGroup {
|
|
364
|
+
.ActionList-content {
|
|
365
|
+
padding-left: $spacer-2 * 4.5; // 36px
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// has 24px leading visual
|
|
370
|
+
&.ActionList-content--visual24 + .ActionList--subGroup {
|
|
371
|
+
.ActionList-content {
|
|
372
|
+
padding-left: $spacer-6;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
&[aria-expanded='true'] {
|
|
378
|
+
.ActionList-item-collapseIcon {
|
|
379
|
+
transition: transform 120ms linear;
|
|
380
|
+
transform: scaleY(-1);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
+ .ActionList--subGroup {
|
|
384
|
+
height: auto;
|
|
385
|
+
overflow: visible;
|
|
386
|
+
visibility: visible;
|
|
387
|
+
opacity: 1;
|
|
388
|
+
transform: translateY(0);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&.ActionList-content--hasActiveSubItem {
|
|
392
|
+
> .ActionList-item-label {
|
|
393
|
+
font-weight: $font-weight-bold;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
&[aria-expanded='false'] {
|
|
399
|
+
.ActionList-item-collapseIcon {
|
|
400
|
+
transition: transform 120ms linear;
|
|
401
|
+
transform: scaleY(1);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
+ .ActionList--subGroup {
|
|
405
|
+
height: 0;
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
visibility: hidden;
|
|
408
|
+
opacity: 0;
|
|
409
|
+
transform: translateY(-$spacer-3);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// show active indicator on parent collapse if child is active
|
|
413
|
+
&.ActionList-content--hasActiveSubItem {
|
|
414
|
+
background: var(--color-action-list-item-default-selected-bg);
|
|
415
|
+
|
|
416
|
+
.ActionList-item-label {
|
|
417
|
+
font-weight: $font-weight-bold;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&::before,
|
|
421
|
+
+ .ActionList-item::before {
|
|
422
|
+
visibility: hidden;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// blue accent line
|
|
426
|
+
&::after {
|
|
427
|
+
@include activeIndicatorLine;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
419
432
|
// sizes
|
|
420
433
|
|
|
421
434
|
&.ActionList-content--sizeMedium {
|
|
@@ -488,6 +501,7 @@
|
|
|
488
501
|
|
|
489
502
|
// inline
|
|
490
503
|
.ActionList-item-descriptionWrap--inline {
|
|
504
|
+
position: relative;
|
|
491
505
|
flex-direction: row;
|
|
492
506
|
align-items: baseline;
|
|
493
507
|
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
// stylelint-disable max-nesting-depth, selector-max-compound-selectors, selector-max-specificity, no-duplicate-selectors, selector-max-type
|
|
1
2
|
// tree-view variant
|
|
2
3
|
// renders ActionList with default styling for tree-view
|
|
3
4
|
// collapse/expand icons presents as leadingActions, rotate 90deg
|
|
4
5
|
// connecting vertical lines between collapse groups
|
|
5
6
|
// consistent font-size between nested groups
|
|
6
7
|
|
|
8
|
+
@mixin activeIndicatorLine {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: calc(50% - 12px);
|
|
11
|
+
left: -$actionList-item-padding-horizontal;
|
|
12
|
+
width: $spacer-1;
|
|
13
|
+
height: $spacer-4;
|
|
14
|
+
content: '';
|
|
15
|
+
background: var(--color-accent-fg);
|
|
16
|
+
border-radius: $border-radius;
|
|
17
|
+
}
|
|
18
|
+
|
|
7
19
|
@mixin treeConnectingLine($left) {
|
|
8
20
|
position: absolute;
|
|
9
21
|
left: $left;
|
|
@@ -21,6 +33,94 @@
|
|
|
21
33
|
}
|
|
22
34
|
|
|
23
35
|
.ActionList-item {
|
|
36
|
+
// class for single tree items not within a group
|
|
37
|
+
&.ActionList-item--singleton {
|
|
38
|
+
.ActionList-content {
|
|
39
|
+
padding-left: $spacer-5;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// start: copy from ActionList proper- backwards compatible for treeview with different markup structure
|
|
44
|
+
&[aria-expanded] {
|
|
45
|
+
.ActionList--subGroup {
|
|
46
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
47
|
+
transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ActionList-content {
|
|
51
|
+
padding-left: $spacer-4;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// has 16px leading visual
|
|
56
|
+
.ActionList-content--visual16 + .ActionList--subGroup {
|
|
57
|
+
.ActionList-content {
|
|
58
|
+
padding-left: $spacer-5;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// has 20px leading visual
|
|
63
|
+
.ActionList-content--visual20 + .ActionList--subGroup {
|
|
64
|
+
.ActionList-content {
|
|
65
|
+
padding-left: $spacer-2 * 4.5; // 36px
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// has 24px leading visual
|
|
70
|
+
.ActionList-content--visual24 + .ActionList--subGroup {
|
|
71
|
+
.ActionList-content {
|
|
72
|
+
padding-left: $spacer-6;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&[aria-expanded='true'] {
|
|
78
|
+
.ActionList-item-collapseIcon {
|
|
79
|
+
transition: transform 120ms linear;
|
|
80
|
+
transform: scaleY(-1);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ActionList--subGroup {
|
|
84
|
+
height: auto;
|
|
85
|
+
overflow: visible;
|
|
86
|
+
visibility: visible;
|
|
87
|
+
opacity: 1;
|
|
88
|
+
transform: translateY(0);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&[aria-expanded='false'] {
|
|
93
|
+
.ActionList-item-collapseIcon {
|
|
94
|
+
transition: transform 120ms linear;
|
|
95
|
+
transform: scaleY(1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ActionList--subGroup {
|
|
99
|
+
height: 0;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
visibility: hidden;
|
|
102
|
+
opacity: 0;
|
|
103
|
+
transform: translateY(-$spacer-3);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// show active indicator on parent collapse if child is active
|
|
107
|
+
// this class changed in ActionList proper
|
|
108
|
+
&.ActionList-item--hasActiveSubItem {
|
|
109
|
+
background: var(--color-action-list-item-default-selected-bg);
|
|
110
|
+
|
|
111
|
+
&::before,
|
|
112
|
+
+ .ActionList-item::before {
|
|
113
|
+
visibility: hidden;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// blue accent line
|
|
117
|
+
&::after {
|
|
118
|
+
@include activeIndicatorLine;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// end copy
|
|
123
|
+
|
|
24
124
|
// nesting (infinate levels)
|
|
25
125
|
// target items inside expanded subgroup
|
|
26
126
|
&[aria-expanded] {
|
|
@@ -28,7 +128,6 @@
|
|
|
28
128
|
position: relative;
|
|
29
129
|
|
|
30
130
|
// --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
|
|
31
|
-
// stylelint-disable-next-line selector-max-specificity, max-nesting-depth, selector-max-compound-selectors
|
|
32
131
|
.ActionList-content {
|
|
33
132
|
// stylelint-disable-next-line primer/spacing
|
|
34
133
|
padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
|
|
@@ -55,11 +154,9 @@
|
|
|
55
154
|
// expand/collapse group
|
|
56
155
|
.ActionList-item--hasSubItem {
|
|
57
156
|
.ActionList-item--subItem:not(.ActionList-item--hasSubItem) {
|
|
58
|
-
// stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
|
|
59
157
|
.ActionList-content {
|
|
60
158
|
// increase child padding by targeting content first child span (add to ActionList-content padding, not replace)
|
|
61
159
|
// creates a slight indent of child items
|
|
62
|
-
// stylelint-disable-next-line selector-max-specificity, selector-max-type, max-nesting-depth, selector-max-compound-selectors
|
|
63
160
|
> span:first-child {
|
|
64
161
|
padding-left: $spacer-4;
|
|
65
162
|
}
|
|
@@ -70,7 +167,6 @@
|
|
|
70
167
|
// first subitem
|
|
71
168
|
> [aria-level='1'].ActionList-item--hasSubItem {
|
|
72
169
|
> .ActionList--subGroup {
|
|
73
|
-
// stylelint-disable-next-line selector-max-specificity
|
|
74
170
|
&::before {
|
|
75
171
|
@include treeConnectingLine($left: $spacer-3);
|
|
76
172
|
}
|
|
@@ -81,7 +177,6 @@
|
|
|
81
177
|
// center connecting line with parent (line is 1px (8px - 1px)
|
|
82
178
|
.ActionList-item--hasSubItem:not([aria-level='1']) {
|
|
83
179
|
> .ActionList--subGroup {
|
|
84
|
-
// stylelint-disable-next-line selector-max-specificity
|
|
85
180
|
&::before {
|
|
86
181
|
@include treeConnectingLine(
|
|
87
182
|
$left: calc(#{$spacer-2} * (var(--ActionList-tree-depth)) + #{$spacer-2 - $border-width})
|
|
@@ -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 {
|
|
@@ -21,6 +26,24 @@
|
|
|
21
26
|
background: var(--color-action-list-item-inline-divider);
|
|
22
27
|
}
|
|
23
28
|
|
|
29
|
+
// if descriptionWrap--inline exists, move pseudo divider to wrapper
|
|
30
|
+
.ActionList-item-descriptionWrap--inline {
|
|
31
|
+
&::before {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: -$actionList-item-padding-vertical;
|
|
34
|
+
display: block;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: $border-width;
|
|
37
|
+
content: '';
|
|
38
|
+
background: var(--color-action-list-item-inline-divider);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// unset the default label pseudo
|
|
42
|
+
.ActionList-item-label::before {
|
|
43
|
+
content: unset;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
24
47
|
// hide divider if item is active
|
|
25
48
|
.ActionList-item--navActive {
|
|
26
49
|
// stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
|
|
@@ -36,3 +59,9 @@
|
|
|
36
59
|
.ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
|
|
37
60
|
visibility: hidden;
|
|
38
61
|
}
|
|
62
|
+
|
|
63
|
+
// hide if item is first of type with label::before, or is the first item after a sectionDivider
|
|
64
|
+
.ActionList-item:first-of-type .ActionList-item-descriptionWrap--inline::before,
|
|
65
|
+
.ActionList-sectionDivider + .ActionList-item .ActionList-item-descriptionWrap--inline::before {
|
|
66
|
+
visibility: hidden;
|
|
67
|
+
}
|
package/alerts/flash.scss
CHANGED
|
@@ -141,35 +141,6 @@
|
|
|
141
141
|
background-color: var(--color-canvas-default);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
// A flash banner inside an ApplicationFrame tray region
|
|
145
|
-
|
|
146
|
-
.flash-tray {
|
|
147
|
-
margin: 0 -$border-width;
|
|
148
|
-
padding: 12px $spacer-3;
|
|
149
|
-
border-radius: 0;
|
|
150
|
-
|
|
151
|
-
@include breakpoint(md) {
|
|
152
|
-
margin: 0;
|
|
153
|
-
border-radius: $border-radius-2;
|
|
154
|
-
animation: flash-tray--appear 200ms 120ms both ease-out;
|
|
155
|
-
|
|
156
|
-
& + .flash-tray {
|
|
157
|
-
margin-top: $spacer-2;
|
|
158
|
-
animation-delay: 200ms;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@keyframes flash-tray--appear {
|
|
163
|
-
from {
|
|
164
|
-
opacity: 0;
|
|
165
|
-
transform: translateY(-$spacer-4);
|
|
166
|
-
}
|
|
167
|
-
to {
|
|
168
|
-
opacity: 1;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
144
|
// FIXME deprecate this
|
|
174
145
|
.warning {
|
|
175
146
|
padding: $em-spacer-5;
|
package/base/kbd.scss
CHANGED