@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.
- package/CHANGELOG.md +131 -6
- package/DEVELOP.md +15 -0
- package/actionlist/action-list-item-divider.scss +42 -0
- package/actionlist/action-list-item.scss +421 -194
- package/actionlist/action-list-tree.scss +92 -0
- package/actionlist/action-list-variables.scss +8 -0
- package/actionlist/action-list.scss +20 -38
- package/actionlist/index.scss +3 -1
- 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 +6 -0
- 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 +6 -0
- package/color-modes/themes/light_high_contrast.scss +6 -0
- package/deprecations.json +9 -7
- 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 +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 +9 -7
- 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 +113 -193
- 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 -1
- 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 +17 -18
- 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/colors.scss +32 -30
- package/utilities/details.scss +1 -1
- package/utilities/index.scss +12 -12
- package/utilities/visibility-display.scss +3 -3
- package/actionlist/action-list-divider.scss +0 -72
- package/color-modes/themes/dark_protanopia.scss +0 -7
- package/color-modes/themes/light_protanopia.scss +0 -7
- package/marketing/support/mixins.scss +0 -66
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$actionList-item-height-sm: $spacer-2 * 2.5 !default;
|
|
2
|
+
$actionList-item-label-line-height: $spacer-2 * 2.5 !default;
|
|
3
|
+
$actionList-item-padding-vertical-md: $spacer-2 * 1.25 !default;
|
|
4
|
+
$actionList-item-padding-vertical-lg: $spacer-2 * 1.75 !default;
|
|
5
|
+
$actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
|
|
6
|
+
$actionList-item-padding-horizontal: $spacer-2 !default;
|
|
7
|
+
$actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
|
|
8
|
+
$actionList-item-checkmark-transition-timing: 50ms !default;
|
|
@@ -1,56 +1,38 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
$
|
|
4
|
-
|
|
5
|
-
$actionList-item-focus-bg: #e0e4e7;
|
|
6
|
-
$actionList-item-divider: #e9e9ed;
|
|
7
|
-
|
|
8
|
-
$actionList-item-danger-hover-bg: #fff0f2;
|
|
9
|
-
$actionList-item-danger-active-bg: #ffebed;
|
|
10
|
-
$actionList-item-danger-focus-bg: #ffdbe0;
|
|
11
|
-
|
|
12
|
-
// $actionList-item-padding-vertical: (($spacer-5 - $s-20) / 2); hmmmmm
|
|
13
|
-
$actionList-item-padding-vertical: 6px;
|
|
14
|
-
$actionList-item-padding-horizontal: $spacer-2;
|
|
15
|
-
$actionList-item-bg-transition: background 33.333ms linear; // 2 frames on a 60hz monitor
|
|
16
|
-
|
|
17
|
-
$actionList-padding: $spacer-2;
|
|
18
|
-
|
|
19
|
-
// ul
|
|
20
|
-
.actionList {
|
|
21
|
-
padding: $actionList-padding;
|
|
22
|
-
list-style: none;
|
|
1
|
+
// <ul>
|
|
2
|
+
.ActionList {
|
|
3
|
+
padding: $spacer-2;
|
|
4
|
+
}
|
|
23
5
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
6
|
+
// full bleed
|
|
7
|
+
.ActionList--full {
|
|
8
|
+
padding: 0;
|
|
28
9
|
}
|
|
29
10
|
|
|
30
11
|
// dividers
|
|
31
12
|
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
content: '';
|
|
35
|
-
display: block;
|
|
13
|
+
.ActionList--divided {
|
|
14
|
+
.ActionList-item-label::before {
|
|
36
15
|
position: absolute;
|
|
16
|
+
top: -$actionList-item-padding-vertical;
|
|
17
|
+
display: block;
|
|
37
18
|
width: 100%;
|
|
38
19
|
height: 1px;
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
content: '';
|
|
21
|
+
background: var(--color-action-list-item-inline-divider);
|
|
41
22
|
}
|
|
42
23
|
|
|
43
24
|
// hide divider if item is active
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
25
|
+
.ActionList-item--navActive {
|
|
26
|
+
// stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
|
|
27
|
+
.ActionList-item-label::before,
|
|
28
|
+
+ .ActionList-item .ActionList-item-label::before {
|
|
47
29
|
visibility: hidden;
|
|
48
30
|
}
|
|
49
31
|
}
|
|
50
32
|
}
|
|
51
33
|
|
|
52
|
-
|
|
53
|
-
.
|
|
54
|
-
.
|
|
34
|
+
// hide if item is first of type with label::before, or is the first item after a sectionDivider
|
|
35
|
+
.ActionList-item:first-of-type .ActionList-item-label::before,
|
|
36
|
+
.ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
|
|
55
37
|
visibility: hidden;
|
|
56
38
|
}
|
package/actionlist/index.scss
CHANGED
package/alerts/flash.scss
CHANGED
package/alerts/index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// support files
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './flash.scss';
|
package/autocomplete/index.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// support files
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './autocomplete.scss';
|
|
4
|
+
@import './suggester.scss';
|
|
@@ -46,9 +46,13 @@
|
|
|
46
46
|
small {
|
|
47
47
|
color: var(--color-fg-on-emphasis);
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
.octicon {
|
|
51
|
+
color: inherit !important;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
&[aria-selected=
|
|
55
|
+
&[aria-selected='true'],
|
|
52
56
|
&.navigation-focus {
|
|
53
57
|
color: var(--color-fg-on-emphasis);
|
|
54
58
|
text-decoration: none;
|
|
@@ -57,6 +61,10 @@
|
|
|
57
61
|
small {
|
|
58
62
|
color: var(--color-fg-on-emphasis);
|
|
59
63
|
}
|
|
64
|
+
|
|
65
|
+
.octicon {
|
|
66
|
+
color: inherit !important;
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
}
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
border-right: $border-width $border-style var(--color-canvas-default);
|
|
37
37
|
// stylelint-disable-next-line primer/borders
|
|
38
38
|
border-radius: $border-radius-1;
|
|
39
|
+
box-shadow: none;
|
|
39
40
|
transition: margin 0.1s ease-in-out;
|
|
40
41
|
|
|
41
42
|
&:first-child {
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
position: absolute;
|
|
90
91
|
display: block;
|
|
91
92
|
height: 20px;
|
|
92
|
-
content:
|
|
93
|
+
content: '';
|
|
93
94
|
// stylelint-disable-next-line primer/borders
|
|
94
95
|
border-radius: 2px;
|
|
95
96
|
outline: $border-width $border-style var(--color-canvas-default);
|
package/avatars/index.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
2
|
|
|
3
3
|
// Avatars
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
4
|
+
@import './avatar.scss';
|
|
5
|
+
@import './avatar-parent-child.scss';
|
|
6
|
+
@import './avatar-stack.scss';
|
|
7
|
+
@import './circle-badge.scss';
|
package/base/base.scss
CHANGED
package/base/index.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
@import
|
|
2
|
-
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import "./octicons.scss";
|
|
1
|
+
@import '../support/index.scss';
|
|
2
|
+
@import './normalize.scss';
|
|
3
|
+
@import './base.scss';
|
|
4
|
+
@import './kbd.scss';
|
|
5
|
+
@import './typography-base.scss';
|
|
6
|
+
@import './octicons.scss';
|
package/base/normalize.scss
CHANGED
package/blankslate/index.scss
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
@import
|
|
2
|
-
|
|
3
|
-
@import "./blankslate.scss";
|
|
1
|
+
@import '../support/index.scss';
|
|
2
|
+
@import './blankslate.scss';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.Box--overlay {
|
|
2
|
+
width: 448px;
|
|
3
|
+
margin-right: auto;
|
|
4
|
+
margin-left: auto;
|
|
5
|
+
background-color: var(--color-canvas-default);
|
|
6
|
+
background-clip: padding-box;
|
|
7
|
+
border-color: var(--color-border-default);
|
|
8
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
9
|
+
box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
|
|
10
|
+
|
|
11
|
+
.Box-header {
|
|
12
|
+
margin: 0;
|
|
13
|
+
border-width: 0;
|
|
14
|
+
border-bottom-width: $border-width;
|
|
15
|
+
border-top-left-radius: $border-radius;
|
|
16
|
+
border-top-right-radius: $border-radius;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.Box-overlay--narrow {
|
|
21
|
+
width: 320px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.Box-overlay--wide {
|
|
25
|
+
width: 640px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.Box-body {
|
|
29
|
+
&.scrollable-overlay {
|
|
30
|
+
max-height: 400px;
|
|
31
|
+
overflow-y: scroll;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.help {
|
|
35
|
+
padding-top: $spacer-2;
|
|
36
|
+
margin: 0;
|
|
37
|
+
color: var(--color-fg-muted);
|
|
38
|
+
text-align: center;
|
|
39
|
+
}
|
|
40
|
+
}
|
package/box/index.scss
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
|
+
@import './box.scss';
|
|
3
|
+
@import './box-overlay.scss';
|
package/branch-name/index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// support files
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './branch-name.scss';
|
package/breadcrumb/index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// support files
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
2
|
+
@import '../support/index.scss';
|
|
3
|
+
@import './breadcrumb.scss';
|
|
@@ -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,12 +24,8 @@
|
|
|
24
24
|
|
|
25
25
|
&:disabled,
|
|
26
26
|
&.disabled,
|
|
27
|
-
&[aria-disabled=true] {
|
|
27
|
+
&[aria-disabled='true'] {
|
|
28
28
|
cursor: default;
|
|
29
|
-
|
|
30
|
-
.octicon {
|
|
31
|
-
color: var(--color-fg-muted);
|
|
32
|
-
}
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
i {
|
|
@@ -88,17 +84,21 @@
|
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
&.selected,
|
|
91
|
-
&[aria-selected=true] {
|
|
87
|
+
&[aria-selected='true'] {
|
|
92
88
|
background-color: var(--color-btn-selected-bg);
|
|
93
89
|
box-shadow: var(--color-primer-shadow-inset);
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
&:disabled,
|
|
97
93
|
&.disabled,
|
|
98
|
-
&[aria-disabled=true] {
|
|
99
|
-
color: var(--color-fg-
|
|
94
|
+
&[aria-disabled='true'] {
|
|
95
|
+
color: var(--color-primer-fg-disabled);
|
|
100
96
|
background-color: var(--color-btn-bg);
|
|
101
97
|
border-color: var(--color-btn-border);
|
|
98
|
+
|
|
99
|
+
.octicon {
|
|
100
|
+
color: var(--color-primer-fg-disabled);
|
|
101
|
+
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// Keep :focus after :disabled. Allows to see the focus ring even on disabled buttons
|
|
@@ -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/index.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
1
|
+
@import '../support/index.scss';
|
|
2
|
+
@import './button.scss';
|
|
3
|
+
@import './button-group.scss';
|
|
4
|
+
@import './misc.scss';
|
package/buttons/misc.scss
CHANGED
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:disabled,
|
|
24
|
-
&[aria-disabled=true] {
|
|
24
|
+
&[aria-disabled='true'] {
|
|
25
25
|
&,
|
|
26
26
|
&:hover {
|
|
27
|
-
color: var(--color-fg-
|
|
27
|
+
color: var(--color-primer-fg-disabled);
|
|
28
28
|
cursor: default;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -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,23 @@
|
|
|
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'] {
|
|
69
|
+
color: var(--color-primer-fg-disabled);
|
|
66
70
|
background-color: transparent;
|
|
67
71
|
}
|
|
68
72
|
}
|
|
@@ -88,11 +92,11 @@
|
|
|
88
92
|
&:hover { color: var(--color-accent-fg); }
|
|
89
93
|
|
|
90
94
|
&.disabled,
|
|
91
|
-
&[aria-disabled=true] {
|
|
92
|
-
color: var(--color-fg-
|
|
95
|
+
&[aria-disabled='true'] {
|
|
96
|
+
color: var(--color-primer-fg-disabled);
|
|
93
97
|
cursor: default;
|
|
94
98
|
|
|
95
|
-
&:hover { color: var(--color-fg-
|
|
99
|
+
&:hover { color: var(--color-primer-fg-disabled); }
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
|
package/color-modes/index.scss
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// All themes
|
|
2
2
|
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
3
|
+
@import './themes/light.scss';
|
|
4
|
+
@import './themes/light_colorblind.scss';
|
|
5
|
+
@import './themes/light_high_contrast.scss';
|
|
6
|
+
@import './themes/dark.scss';
|
|
7
|
+
@import './themes/dark_dimmed.scss';
|
|
8
|
+
@import './themes/dark_high_contrast.scss';
|
|
9
|
+
@import './themes/dark_colorblind.scss';
|
|
10
|
+
@import './native.scss';
|
package/color-modes/native.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@import
|
|
2
|
-
|
|
3
|
-
@import "@primer/primitives/dist/scss/colors/_dark_dimmed.scss";
|
|
1
|
+
@import '../../support/index.scss';
|
|
2
|
+
@import '@primer/primitives/dist/scss/colors/_dark_dimmed.scss';
|
|
4
3
|
|
|
5
4
|
@include color-mode-theme(dark_dimmed) {
|
|
6
5
|
@include primer-colors-dark_dimmed;
|