@primer/css 19.1.0-rc.e1e1943a → 19.1.1-rc.1f9b3082
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 +31 -0
- package/actionlist/action-list-item.scss +99 -49
- package/actionlist/action-list-tree.scss +92 -0
- package/actionlist/action-list.scss +5 -0
- package/actionlist/index.scss +1 -0
- package/autocomplete/autocomplete.scss +1 -1
- package/base/base.scss +1 -0
- package/base/index.scss +0 -1
- package/blankslate/index.scss +0 -1
- package/breadcrumb/breadcrumb.scss +1 -1
- package/buttons/button-group.scss +3 -2
- package/buttons/button.scss +9 -9
- package/buttons/misc.scss +10 -7
- package/color-modes/native.scss +1 -0
- package/color-modes/themes/dark.scss +0 -1
- package/color-modes/themes/dark_colorblind.scss +0 -1
- package/color-modes/themes/dark_dimmed.scss +0 -1
- package/color-modes/themes/dark_high_contrast.scss +0 -1
- package/color-modes/themes/light.scss +0 -1
- package/color-modes/themes/light_colorblind.scss +0 -1
- package/color-modes/themes/light_high_contrast.scss +0 -1
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +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.map +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 +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.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 +66 -55
- package/dist/navigation.css.map +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.map +1 -1
- package/dist/stats/actionlist.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/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/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.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/forms/form-control.scss +2 -0
- package/labels/counters.scss +1 -1
- package/labels/index.scss +0 -1
- package/labels/labels.scss +1 -0
- package/layout/index.scss +0 -1
- package/layout/layout.scss +6 -10
- package/layout/mixins.scss +3 -3
- package/markdown/images.scss +2 -2
- package/marketing/buttons/button.scss +10 -2
- package/marketing/index.scss +1 -0
- package/marketing/links/index.scss +3 -0
- package/marketing/links/link.scss +50 -0
- package/marketing/type/typography.scss +3 -0
- package/marketing/utilities/animations.scss +42 -0
- package/navigation/filter-list.scss +2 -2
- package/navigation/menu.scss +2 -2
- package/navigation/sidenav.scss +2 -2
- package/navigation/subnav.scss +2 -2
- package/navigation/tabnav.scss +2 -2
- package/navigation/underline-nav.scss +2 -2
- package/package.json +10 -11
- package/pagination/pagination.scss +3 -3
- package/popover/popover.scss +1 -1
- package/select-menu/select-menu.scss +2 -2
- package/stylelint.config.cjs +2 -11
- package/support/mixins/color-modes.scss +3 -0
- package/support/mixins/typography.scss +3 -2
- package/utilities/visibility-display.scss +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
# @primer/css
|
|
2
2
|
|
|
3
|
+
## 19.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1827](https://github.com/primer/css/pull/1827) [`69e1fc53`](https://github.com/primer/css/commit/69e1fc539e4bb2fdf78d34a18fc591ebdfddd2f5) Thanks [@simurai](https://github.com/simurai)! - Support fractional viewport sizes for `max-width` media queries
|
|
8
|
+
|
|
9
|
+
* [#1803](https://github.com/primer/css/pull/1803) [`c46fe918`](https://github.com/primer/css/commit/c46fe9186efbcf6e4a482685529bdb0bda28aa9f) Thanks [@langermank](https://github.com/langermank)! - - Adds ActionList tree-view specific CSS
|
|
10
|
+
- Minor bug fixes for ActionList default
|
|
11
|
+
|
|
12
|
+
- [#1827](https://github.com/primer/css/pull/1827) [`69e1fc53`](https://github.com/primer/css/commit/69e1fc539e4bb2fdf78d34a18fc591ebdfddd2f5) Thanks [@simurai](https://github.com/simurai)! - Support fractional viewport sizes for the `hide` utilities
|
|
13
|
+
|
|
3
14
|
## 19.1.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
6
17
|
|
|
7
18
|
- [#1759](https://github.com/primer/css/pull/1759) [`74724ce7`](https://github.com/primer/css/commit/74724ce7c72b1cb540a9ef3d845169f1df17b55e) Thanks [@langermank](https://github.com/langermank)! - Remove `popover` responsive hack
|
|
8
19
|
|
|
20
|
+
* [#1807](https://github.com/primer/css/pull/1807) [`13a4654f`](https://github.com/primer/css/commit/13a4654fa0854accfaabbbd2f21d2e0a1c90442d) Thanks [@enstyled](https://github.com/enstyled)! - Marketing: Add link components
|
|
21
|
+
Marketing: Add animated arrow utility
|
|
22
|
+
Marketing: Document button components with arrows
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#1780](https://github.com/primer/css/pull/1780) [`8e9ba62d`](https://github.com/primer/css/commit/8e9ba62d30ed10c012b99dd998751df01ad6aa99) Thanks [@langermank](https://github.com/langermank)! - ActionList followup
|
|
27
|
+
|
|
28
|
+
* [#1805](https://github.com/primer/css/pull/1805) [`99537d31`](https://github.com/primer/css/commit/99537d317f04ff5474a076ab96d3ea315b2181e2) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Fix local dev (revert webpack 5.5.0 → 6.0.0)
|
|
29
|
+
|
|
30
|
+
- [#1781](https://github.com/primer/css/pull/1781) [`4d8dcf24`](https://github.com/primer/css/commit/4d8dcf24bc9e0732a9a2f34c94f6bcad7d3382dd) Thanks [@simurai](https://github.com/simurai)! - Reformat `rgba()` colors for `.btn-mktg`
|
|
31
|
+
|
|
32
|
+
* [#1768](https://github.com/primer/css/pull/1768) [`4abb1af9`](https://github.com/primer/css/commit/4abb1af95b9b3c8c38512fa5e1e4fae9e7d01f4f) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Marketing: Add disabled states for buttons (and tweak hover)
|
|
33
|
+
|
|
34
|
+
- [#1792](https://github.com/primer/css/pull/1792) [`b1c43f1f`](https://github.com/primer/css/commit/b1c43f1f8d9b07b58b275665ca69abd5d4f7a5fc) Thanks [@simurai](https://github.com/simurai)! - Use `counter-border` for LHC
|
|
35
|
+
|
|
36
|
+
* [#1808](https://github.com/primer/css/pull/1808) [`ee27583f`](https://github.com/primer/css/commit/ee27583f594248bd44122ea5dc81b12382c02b09) Thanks [@manuelpuyol](https://github.com/manuelpuyol)! - Add hover and active states to btn-invisible
|
|
37
|
+
|
|
38
|
+
- [#1818](https://github.com/primer/css/pull/1818) [`22c29e7a`](https://github.com/primer/css/commit/22c29e7a8b1b6a0df1dd61d400cc0dd132e0c909) Thanks [@vdepizzol](https://github.com/vdepizzol)! - [Layout component] Avoid resizing `main` while loading
|
|
39
|
+
|
|
9
40
|
## 19.0.0
|
|
10
41
|
|
|
11
42
|
### Major Changes
|
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
|
|
6
6
|
}
|
|
7
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
|
+
|
|
8
19
|
// <li>
|
|
9
20
|
.ActionList-item {
|
|
10
21
|
position: relative;
|
|
@@ -77,30 +88,65 @@
|
|
|
77
88
|
|
|
78
89
|
// active state [aria-current]
|
|
79
90
|
|
|
80
|
-
&.ActionList-item--navActive
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
+ .ActionList-item::before {
|
|
86
|
-
visibility: hidden;
|
|
91
|
+
&.ActionList-item--navActive {
|
|
92
|
+
&:not(.ActionList-item--subItem) {
|
|
93
|
+
.ActionList-item-label {
|
|
94
|
+
font-weight: $font-weight-bold;
|
|
95
|
+
}
|
|
87
96
|
}
|
|
88
97
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
&:not(.ActionList-item--danger) {
|
|
99
|
+
background: var(--color-action-list-item-default-selected-bg);
|
|
100
|
+
|
|
101
|
+
// stylelint-disable-next-line selector-max-specificity
|
|
102
|
+
&::before,
|
|
103
|
+
+ .ActionList-item::before {
|
|
104
|
+
visibility: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// blue accent line
|
|
108
|
+
&::after {
|
|
109
|
+
@include activeIndicatorLine;
|
|
110
|
+
}
|
|
99
111
|
}
|
|
100
112
|
}
|
|
101
113
|
|
|
102
114
|
// collapsible item [aria-expanded]
|
|
103
115
|
|
|
116
|
+
// nesting (single level)
|
|
117
|
+
// target items inside expanded subgroups
|
|
118
|
+
&[aria-expanded] {
|
|
119
|
+
.ActionList--subGroup {
|
|
120
|
+
.ActionList-content {
|
|
121
|
+
padding-left: $spacer-4;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// has 16px leading visual
|
|
126
|
+
.ActionList-content--visual16 + .ActionList--subGroup {
|
|
127
|
+
// stylelint-disable-next-line selector-max-compound-selectors, selector-max-specificity
|
|
128
|
+
.ActionList-content {
|
|
129
|
+
padding-left: $spacer-5;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// has 20px leading visual
|
|
134
|
+
.ActionList-content--visual20 + .ActionList--subGroup {
|
|
135
|
+
// stylelint-disable-next-line selector-max-compound-selectors, selector-max-specificity
|
|
136
|
+
.ActionList-content {
|
|
137
|
+
padding-left: $spacer-2 * 4.5; // 36px
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// has 24px leading visual
|
|
142
|
+
.ActionList-content--visual24 + .ActionList--subGroup {
|
|
143
|
+
// stylelint-disable-next-line selector-max-compound-selectors, selector-max-specificity
|
|
144
|
+
.ActionList-content {
|
|
145
|
+
padding-left: $spacer-6;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
104
150
|
&[aria-expanded='true'] {
|
|
105
151
|
.ActionList-item-collapseIcon {
|
|
106
152
|
transition: transform 120ms linear;
|
|
@@ -111,7 +157,7 @@
|
|
|
111
157
|
display: block;
|
|
112
158
|
}
|
|
113
159
|
|
|
114
|
-
&.ActionList-item--
|
|
160
|
+
&.ActionList-item--hasActiveSubItem {
|
|
115
161
|
// stylelint-disable-next-line selector-max-specificity
|
|
116
162
|
> .ActionList-content > .ActionList-item-label {
|
|
117
163
|
font-weight: $font-weight-bold;
|
|
@@ -128,6 +174,26 @@
|
|
|
128
174
|
.ActionList--subGroup {
|
|
129
175
|
display: none;
|
|
130
176
|
}
|
|
177
|
+
|
|
178
|
+
// show active indicator on parent collapse if child is active
|
|
179
|
+
&.ActionList-item--hasActiveSubItem {
|
|
180
|
+
background: var(--color-action-list-item-default-selected-bg);
|
|
181
|
+
|
|
182
|
+
.ActionList-item-label {
|
|
183
|
+
font-weight: $font-weight-bold;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// stylelint-disable-next-line selector-max-specificity
|
|
187
|
+
&::before,
|
|
188
|
+
+ .ActionList-item::before {
|
|
189
|
+
visibility: hidden;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// blue accent line
|
|
193
|
+
&::after {
|
|
194
|
+
@include activeIndicatorLine;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
131
197
|
}
|
|
132
198
|
|
|
133
199
|
// checkbox item [aria-checked]
|
|
@@ -172,7 +238,7 @@
|
|
|
172
238
|
visibility: hidden;
|
|
173
239
|
opacity: 0;
|
|
174
240
|
transition:
|
|
175
|
-
|
|
241
|
+
visibility 0 linear $actionList-item-checkmark-transition-timing,
|
|
176
242
|
opacity $actionList-item-checkmark-transition-timing;
|
|
177
243
|
}
|
|
178
244
|
|
|
@@ -282,6 +348,7 @@
|
|
|
282
348
|
display: grid;
|
|
283
349
|
// stylelint-disable-next-line primer/spacing
|
|
284
350
|
padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
|
|
351
|
+
font-size: $body-font-size;
|
|
285
352
|
font-weight: $font-weight-normal;
|
|
286
353
|
color: var(--color-fg-default);
|
|
287
354
|
user-select: none;
|
|
@@ -289,8 +356,8 @@
|
|
|
289
356
|
transition: $actionList-item-bg-transition;
|
|
290
357
|
grid-template-rows: min-content;
|
|
291
358
|
grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
|
|
292
|
-
grid-template-columns: min-content min-content minmax(
|
|
293
|
-
align-items:
|
|
359
|
+
grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
|
|
360
|
+
align-items: start;
|
|
294
361
|
|
|
295
362
|
// column-gap persists with empty grid-areas, margin applies only when children exist
|
|
296
363
|
> :not(:last-child) {
|
|
@@ -315,6 +382,10 @@
|
|
|
315
382
|
padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
|
|
316
383
|
}
|
|
317
384
|
|
|
385
|
+
&.ActionList-content--fontSmall {
|
|
386
|
+
font-size: $font-size-small;
|
|
387
|
+
}
|
|
388
|
+
|
|
318
389
|
// On pointer:coarse (mobile), all list items are large
|
|
319
390
|
@media (pointer: coarse) {
|
|
320
391
|
// stylelint-disable-next-line primer/spacing
|
|
@@ -408,37 +479,16 @@
|
|
|
408
479
|
color: var(--color-fg-default);
|
|
409
480
|
}
|
|
410
481
|
|
|
482
|
+
.ActionList-item-label--truncate {
|
|
483
|
+
overflow: hidden;
|
|
484
|
+
text-overflow: ellipsis;
|
|
485
|
+
white-space: nowrap;
|
|
486
|
+
}
|
|
487
|
+
|
|
411
488
|
// nested lists (only supports 1 level currently)
|
|
412
489
|
// target ActionList-item--subItem for padding-left to maintain :active :after state
|
|
413
490
|
|
|
491
|
+
// TODO: remove with PVC implementation
|
|
414
492
|
.ActionList-item--subItem > .ActionList-content {
|
|
415
493
|
font-size: $font-size-small;
|
|
416
494
|
}
|
|
417
|
-
|
|
418
|
-
// no leading visual
|
|
419
|
-
.ActionList--subGroup {
|
|
420
|
-
.ActionList-item--subItem {
|
|
421
|
-
padding-left: $spacer-3;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
// has 16px leading visual
|
|
426
|
-
.ActionList-content--visual16 + .ActionList--subGroup {
|
|
427
|
-
.ActionList-item--subItem {
|
|
428
|
-
padding-left: $spacer-4;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
// has 20px leading visual
|
|
433
|
-
.ActionList-content--visual20 + .ActionList--subGroup {
|
|
434
|
-
.ActionList-item--subItem {
|
|
435
|
-
padding-left: $spacer-3 * 1.75;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
// has 24px leading visual
|
|
440
|
-
.ActionList-content--visual24 + .ActionList--subGroup {
|
|
441
|
-
.ActionList-item--subItem {
|
|
442
|
-
padding-left: $spacer-5;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// tree-view variant
|
|
2
|
+
// renders ActionList with default styling for tree-view
|
|
3
|
+
// collapse/expand icons presents as leadingActions, rotate 90deg
|
|
4
|
+
// connecting vertical lines between collapse groups
|
|
5
|
+
// consistent font-size between nested groups
|
|
6
|
+
|
|
7
|
+
@mixin treeConnectingLine($left) {
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: $left;
|
|
10
|
+
width: 1px;
|
|
11
|
+
height: 100%;
|
|
12
|
+
content: '';
|
|
13
|
+
background: var(--color-action-list-item-inline-divider);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ActionList--tree {
|
|
17
|
+
--ActionList-tree-depth: 1;
|
|
18
|
+
// TODO: remove with PVC implementation
|
|
19
|
+
.ActionList-item--subItem > .ActionList-content {
|
|
20
|
+
font-size: $body-font-size;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ActionList-item {
|
|
24
|
+
// nesting (infinate levels)
|
|
25
|
+
// target items inside expanded subgroup
|
|
26
|
+
&[aria-expanded] {
|
|
27
|
+
.ActionList--subGroup {
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
// --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
|
+
.ActionList-content {
|
|
33
|
+
// stylelint-disable-next-line primer/spacing
|
|
34
|
+
padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// tree-view specific collapse icon positioning/animation
|
|
40
|
+
&[aria-expanded='true'] {
|
|
41
|
+
.ActionList-item-collapseIcon {
|
|
42
|
+
transition: transform 120ms linear;
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[aria-expanded='false'] {
|
|
48
|
+
.ActionList-item-collapseIcon {
|
|
49
|
+
transition: transform 120ms linear;
|
|
50
|
+
transform: rotate(-90deg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// expand/collapse group
|
|
56
|
+
.ActionList-item--hasSubItem {
|
|
57
|
+
.ActionList-item--subItem:not(.ActionList-item--hasSubItem) {
|
|
58
|
+
// stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
|
|
59
|
+
.ActionList-content {
|
|
60
|
+
// increase child padding by targeting content first child span (add to ActionList-content padding, not replace)
|
|
61
|
+
// 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
|
+
> span:first-child {
|
|
64
|
+
padding-left: $spacer-4;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// first subitem
|
|
71
|
+
> [aria-level='1'].ActionList-item--hasSubItem {
|
|
72
|
+
> .ActionList--subGroup {
|
|
73
|
+
// stylelint-disable-next-line selector-max-specificity
|
|
74
|
+
&::before {
|
|
75
|
+
@include treeConnectingLine($left: $spacer-3);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// all other subitems
|
|
81
|
+
// center connecting line with parent (line is 1px (8px - 1px)
|
|
82
|
+
.ActionList-item--hasSubItem:not([aria-level='1']) {
|
|
83
|
+
> .ActionList--subGroup {
|
|
84
|
+
// stylelint-disable-next-line selector-max-specificity
|
|
85
|
+
&::before {
|
|
86
|
+
@include treeConnectingLine(
|
|
87
|
+
$left: calc(#{$spacer-2} * (var(--ActionList-tree-depth)) + #{$spacer-2 - $border-width})
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
package/actionlist/index.scss
CHANGED
package/base/base.scss
CHANGED
package/base/index.scss
CHANGED
package/blankslate/index.scss
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.BtnGroup {
|
|
7
7
|
display: inline-block;
|
|
8
8
|
vertical-align: middle;
|
|
9
|
+
|
|
9
10
|
@include clearfix();
|
|
10
11
|
|
|
11
12
|
// Proper spacing for multiple button groups (a la, gollum editor)
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
&.selected,
|
|
36
|
-
&[aria-selected=true],
|
|
37
|
+
&[aria-selected='true'],
|
|
37
38
|
&:focus,
|
|
38
39
|
&:active,
|
|
39
40
|
&:hover {
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
&.selected,
|
|
69
|
-
&[aria-selected=true],
|
|
70
|
+
&[aria-selected='true'],
|
|
70
71
|
&:focus,
|
|
71
72
|
&:active,
|
|
72
73
|
&:hover {
|
package/buttons/button.scss
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
&:disabled,
|
|
26
26
|
&.disabled,
|
|
27
|
-
&[aria-disabled=true] {
|
|
27
|
+
&[aria-disabled='true'] {
|
|
28
28
|
cursor: default;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&.selected,
|
|
87
|
-
&[aria-selected=true] {
|
|
87
|
+
&[aria-selected='true'] {
|
|
88
88
|
background-color: var(--color-btn-selected-bg);
|
|
89
89
|
box-shadow: var(--color-primer-shadow-inset);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&:disabled,
|
|
93
93
|
&.disabled,
|
|
94
|
-
&[aria-disabled=true] {
|
|
94
|
+
&[aria-disabled='true'] {
|
|
95
95
|
color: var(--color-primer-fg-disabled);
|
|
96
96
|
background-color: var(--color-btn-bg);
|
|
97
97
|
border-color: var(--color-btn-border);
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
|
|
128
128
|
&:active,
|
|
129
129
|
&.selected,
|
|
130
|
-
&[aria-selected=true] {
|
|
130
|
+
&[aria-selected='true'] {
|
|
131
131
|
background-color: var(--color-btn-primary-selected-bg);
|
|
132
132
|
box-shadow: var(--color-btn-primary-selected-shadow);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
&:disabled,
|
|
136
136
|
&.disabled,
|
|
137
|
-
&[aria-disabled=true] {
|
|
137
|
+
&[aria-disabled='true'] {
|
|
138
138
|
color: var(--color-btn-primary-disabled-text);
|
|
139
139
|
background-color: var(--color-btn-primary-disabled-bg);
|
|
140
140
|
border-color: var(--color-btn-primary-disabled-border);
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
|
|
185
185
|
&:active,
|
|
186
186
|
&.selected,
|
|
187
|
-
&[aria-selected=true] {
|
|
187
|
+
&[aria-selected='true'] {
|
|
188
188
|
color: var(--color-btn-outline-selected-text);
|
|
189
189
|
background-color: var(--color-btn-outline-selected-bg);
|
|
190
190
|
border-color: var(--color-btn-outline-selected-border);
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
|
|
194
194
|
&:disabled,
|
|
195
195
|
&.disabled,
|
|
196
|
-
&[aria-disabled=true] {
|
|
196
|
+
&[aria-disabled='true'] {
|
|
197
197
|
color: var(--color-btn-outline-disabled-text);
|
|
198
198
|
background-color: var(--color-btn-outline-disabled-bg);
|
|
199
199
|
border-color: var(--color-btn-border);
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
&:active,
|
|
244
244
|
&.selected,
|
|
245
|
-
&[aria-selected=true] {
|
|
245
|
+
&[aria-selected='true'] {
|
|
246
246
|
color: var(--color-btn-danger-selected-text);
|
|
247
247
|
background-color: var(--color-btn-danger-selected-bg);
|
|
248
248
|
border-color: var(--color-btn-danger-selected-border);
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
|
|
252
252
|
&:disabled,
|
|
253
253
|
&.disabled,
|
|
254
|
-
&[aria-disabled=true] {
|
|
254
|
+
&[aria-disabled='true'] {
|
|
255
255
|
color: var(--color-btn-danger-disabled-text);
|
|
256
256
|
background-color: var(--color-btn-danger-disabled-bg);
|
|
257
257
|
border-color: var(--color-btn-border);
|
package/buttons/misc.scss
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:disabled,
|
|
24
|
-
&[aria-disabled=true] {
|
|
24
|
+
&[aria-disabled='true'] {
|
|
25
25
|
&,
|
|
26
26
|
&:hover {
|
|
27
27
|
color: var(--color-primer-fg-disabled);
|
|
@@ -37,13 +37,12 @@
|
|
|
37
37
|
color: var(--color-accent-fg);
|
|
38
38
|
background-color: transparent; // Reset default gradient backgrounds and colors
|
|
39
39
|
border: 0;
|
|
40
|
-
border-radius: 0;
|
|
41
40
|
box-shadow: none;
|
|
42
41
|
|
|
43
42
|
&:hover,
|
|
44
43
|
&.zeroclipboard-is-hover {
|
|
45
44
|
color: var(--color-accent-fg);
|
|
46
|
-
background:
|
|
45
|
+
background-color: var(--color-btn-hover-bg);
|
|
47
46
|
outline: none;
|
|
48
47
|
box-shadow: none;
|
|
49
48
|
}
|
|
@@ -51,18 +50,22 @@
|
|
|
51
50
|
&:active,
|
|
52
51
|
&:focus,
|
|
53
52
|
&.selected,
|
|
54
|
-
&[aria-selected=true],
|
|
53
|
+
&[aria-selected='true'],
|
|
55
54
|
&.zeroclipboard-is-active {
|
|
56
55
|
color: var(--color-accent-fg);
|
|
57
|
-
background: none;
|
|
56
|
+
background-color: none;
|
|
58
57
|
border-color: var(--color-btn-active-border);
|
|
59
58
|
outline: none;
|
|
60
59
|
box-shadow: var(--color-btn-focus-shadow);
|
|
61
60
|
}
|
|
62
61
|
|
|
62
|
+
&:active &.zeroclipboard-is-active {
|
|
63
|
+
background-color: var(--color-btn-selected-bg);
|
|
64
|
+
}
|
|
65
|
+
|
|
63
66
|
&:disabled,
|
|
64
67
|
&.disabled,
|
|
65
|
-
&[aria-disabled=true] {
|
|
68
|
+
&[aria-disabled='true'] {
|
|
66
69
|
color: var(--color-primer-fg-disabled);
|
|
67
70
|
background-color: transparent;
|
|
68
71
|
}
|
|
@@ -89,7 +92,7 @@
|
|
|
89
92
|
&:hover { color: var(--color-accent-fg); }
|
|
90
93
|
|
|
91
94
|
&.disabled,
|
|
92
|
-
&[aria-disabled=true] {
|
|
95
|
+
&[aria-disabled='true'] {
|
|
93
96
|
color: var(--color-primer-fg-disabled);
|
|
94
97
|
cursor: default;
|
|
95
98
|
|
package/color-modes/native.scss
CHANGED