@primer/view-components 0.45.1-rc.015a120e → 0.45.2
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/app/assets/styles/primer_view_components.css +6963 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +49 -1
- package/app/components/primer/alpha/action_list.css +525 -1
- package/app/components/primer/alpha/action_list.css.json +64 -64
- package/app/components/primer/alpha/auto_complete.css +131 -1
- package/app/components/primer/alpha/auto_complete.css.json +3 -3
- package/app/components/primer/alpha/banner.css +146 -1
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +183 -1
- package/app/components/primer/alpha/button_marketing.css.json +6 -6
- package/app/components/primer/alpha/dialog.css +377 -1
- package/app/components/primer/alpha/dialog.css.json +2 -2
- package/app/components/primer/alpha/dropdown.css +296 -1
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +374 -1
- package/app/components/primer/alpha/layout.css.json +10 -10
- package/app/components/primer/alpha/menu.css +124 -1
- package/app/components/primer/alpha/menu.css.json +5 -5
- package/app/components/primer/alpha/overlay.css +25 -1
- package/app/components/primer/alpha/segmented_control.css +161 -1
- package/app/components/primer/alpha/segmented_control.css.json +5 -5
- package/app/components/primer/alpha/select_panel.css +10 -1
- package/app/components/primer/alpha/skeleton_box.css +36 -1
- package/app/components/primer/alpha/stack.css +255 -1
- package/app/components/primer/alpha/stack.css.json +84 -84
- package/app/components/primer/alpha/stack_item.css +27 -1
- package/app/components/primer/alpha/stack_item.css.json +6 -6
- package/app/components/primer/alpha/tab_nav.css +112 -1
- package/app/components/primer/alpha/tab_nav.css.json +5 -5
- package/app/components/primer/alpha/text_field.css +792 -1
- package/app/components/primer/alpha/text_field.css.json +39 -39
- package/app/components/primer/alpha/toggle_switch.css +230 -1
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/tree_view.css +396 -1
- package/app/components/primer/alpha/tree_view.css.json +25 -25
- package/app/components/primer/alpha/underline_nav.css +150 -1
- package/app/components/primer/alpha/underline_nav.css.json +6 -6
- package/app/components/primer/beta/avatar.css +77 -1
- package/app/components/primer/beta/avatar_stack.css +134 -1
- package/app/components/primer/beta/avatar_stack.css.json +6 -7
- package/app/components/primer/beta/blankslate.css +168 -1
- package/app/components/primer/beta/border_box.css +218 -1
- package/app/components/primer/beta/border_box.css.json +3 -3
- package/app/components/primer/beta/breadcrumbs.css +29 -1
- package/app/components/primer/beta/breadcrumbs.css.json +2 -2
- package/app/components/primer/beta/button.css +359 -1
- package/app/components/primer/beta/button.css.json +17 -17
- package/app/components/primer/beta/button_group.css +20 -1
- package/app/components/primer/beta/button_group.css.json +3 -3
- package/app/components/primer/beta/counter.css +38 -1
- package/app/components/primer/beta/flash.css +152 -1
- package/app/components/primer/beta/label.css +109 -1
- package/app/components/primer/beta/label.css.json +3 -3
- package/app/components/primer/beta/link.css +79 -1
- package/app/components/primer/beta/link.css.json +1 -1
- package/app/components/primer/beta/popover.css +215 -1
- package/app/components/primer/beta/popover.css.json +23 -23
- package/app/components/primer/beta/progress_bar.css +38 -1
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +60 -1
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +64 -1
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +106 -1
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +30 -1
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +23 -1
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
@@ -1 +1,161 @@
|
|
1
|
-
|
1
|
+
/* SegmentedControl */
|
2
|
+
|
3
|
+
.SegmentedControl {
|
4
|
+
--segmentedControl-item-padding: var(--control-small-paddingBlock);
|
5
|
+
--overlay-offset: 0.5rem;
|
6
|
+
|
7
|
+
display: inline-flex;
|
8
|
+
list-style: none;
|
9
|
+
background-color: var(--controlTrack-bgColor-rest, var(--color-segmented-control-bg));
|
10
|
+
border-color: var(--controlTrack-borderColor-rest, transparent);
|
11
|
+
border-radius: var(--borderRadius-medium);
|
12
|
+
}
|
13
|
+
|
14
|
+
.SegmentedControl--iconOnly .Button--iconOnly.Button--small,.SegmentedControl--iconOnly .Button--iconOnly.Button--medium {
|
15
|
+
width: 100%;
|
16
|
+
padding-inline: 0 !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* sizes */
|
20
|
+
|
21
|
+
.SegmentedControl--small {
|
22
|
+
--segmentedControl-item-padding: var(--control-xsmall-paddingBlock);
|
23
|
+
}
|
24
|
+
|
25
|
+
.SegmentedControl--small .SegmentedControl-item {
|
26
|
+
height: var(--control-small-size);
|
27
|
+
}
|
28
|
+
|
29
|
+
:is(.SegmentedControl--small .SegmentedControl-item) .Button {
|
30
|
+
/* stylelint-disable-next-line primer/spacing */
|
31
|
+
padding-inline: calc(var(--control-xsmall-paddingInline-normal) - var(--segmentedControl-item-padding));
|
32
|
+
}
|
33
|
+
|
34
|
+
.SegmentedControl--small.SegmentedControl--iconOnly .SegmentedControl-item {
|
35
|
+
width: var(--control-small-size);
|
36
|
+
}
|
37
|
+
|
38
|
+
.SegmentedControl--medium .SegmentedControl-item {
|
39
|
+
height: var(--control-medium-size);
|
40
|
+
}
|
41
|
+
|
42
|
+
.SegmentedControl--medium.SegmentedControl--iconOnly .SegmentedControl-item {
|
43
|
+
width: var(--control-medium-size);
|
44
|
+
}
|
45
|
+
|
46
|
+
/* item */
|
47
|
+
|
48
|
+
.SegmentedControl-item {
|
49
|
+
position: relative;
|
50
|
+
display: inline-flex;
|
51
|
+
height: var(--control-medium-size);
|
52
|
+
/* stylelint-disable-next-line primer/spacing */
|
53
|
+
padding: var(--segmentedControl-item-padding);
|
54
|
+
border: var(--borderWidth-thin) solid transparent;
|
55
|
+
border-radius: var(--borderRadius-medium);
|
56
|
+
justify-content: center;
|
57
|
+
|
58
|
+
/* button color overrides */
|
59
|
+
}
|
60
|
+
|
61
|
+
:is(.SegmentedControl-item .Button--invisible):hover:not(:disabled) {
|
62
|
+
background-color: var(--controlTrack-bgColor-hover, var(--color-action-list-item-default-hover-bg));
|
63
|
+
}
|
64
|
+
|
65
|
+
:is(.SegmentedControl-item .Button--invisible):active:not(:disabled) {
|
66
|
+
background-color: var(--controlTrack-bgColor-active, var(--color-action-list-item-default-active-bg));
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Selected ---------------------------------------- */
|
70
|
+
|
71
|
+
.SegmentedControl-item.SegmentedControl-item--selected {
|
72
|
+
background-color: var(--controlKnob-bgColor-rest, var(--color-segmented-control-button-bg));
|
73
|
+
border-color: var(--controlKnob-borderColor-rest, var(--color-segmented-control-button-selected-border));
|
74
|
+
}
|
75
|
+
|
76
|
+
.SegmentedControl-item.SegmentedControl-item--selected .Button {
|
77
|
+
font-weight: var(--base-text-weight-semibold);
|
78
|
+
}
|
79
|
+
|
80
|
+
:is(.SegmentedControl-item.SegmentedControl-item--selected .Button):hover {
|
81
|
+
background-color: transparent;
|
82
|
+
}
|
83
|
+
|
84
|
+
.SegmentedControl-item.SegmentedControl-item--selected::before {
|
85
|
+
border-color: transparent !important;
|
86
|
+
}
|
87
|
+
|
88
|
+
.SegmentedControl-item.SegmentedControl-item--selected + .SegmentedControl-item::before {
|
89
|
+
border-color: transparent;
|
90
|
+
}
|
91
|
+
|
92
|
+
/* renders a visibly hidden "copy" of the text in bold, reserving box space for when text becomes bold on selected */
|
93
|
+
|
94
|
+
.SegmentedControl-item .Button-label[data-content]::before {
|
95
|
+
display: block;
|
96
|
+
height: 0;
|
97
|
+
font-weight: var(--base-text-weight-semibold);
|
98
|
+
visibility: hidden;
|
99
|
+
content: attr(data-content);
|
100
|
+
}
|
101
|
+
|
102
|
+
/* Separator lines */
|
103
|
+
|
104
|
+
.SegmentedControl-item:not(:first-child)::before {
|
105
|
+
position: absolute;
|
106
|
+
inset: 0 0 0 -1px;
|
107
|
+
/* stylelint-disable-next-line primer/spacing */
|
108
|
+
margin-top: var(--control-medium-paddingBlock);
|
109
|
+
/* stylelint-disable-next-line primer/spacing */
|
110
|
+
margin-bottom: var(--control-medium-paddingBlock);
|
111
|
+
content: '';
|
112
|
+
border-left: var(--borderWidth-thin) solid var(--borderColor-default);
|
113
|
+
}
|
114
|
+
|
115
|
+
/* Button ----------------------------------------- */
|
116
|
+
|
117
|
+
.SegmentedControl-item .Button {
|
118
|
+
width: 100%;
|
119
|
+
min-width: fit-content;
|
120
|
+
height: 100%;
|
121
|
+
font-weight: var(--base-text-weight-normal);
|
122
|
+
border: 0;
|
123
|
+
/* stylelint-disable-next-line primer/borders */
|
124
|
+
border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 2);
|
125
|
+
/* stylelint-disable-next-line primer/spacing */
|
126
|
+
padding-inline: calc(var(--control-medium-paddingInline-normal) - var(--segmentedControl-item-padding));
|
127
|
+
}
|
128
|
+
|
129
|
+
:is(.SegmentedControl-item .Button):focus-visible {
|
130
|
+
/* stylelint-disable-next-line primer/borders */
|
131
|
+
border-radius: calc(var(--borderRadius-medium) - var(--segmentedControl-item-padding) / 1);
|
132
|
+
outline-offset: calc(var(--segmentedControl-item-padding) - var(--borderWidth-thin));
|
133
|
+
}
|
134
|
+
|
135
|
+
.SegmentedControl-item .Button--invisible.Button--invisible-noVisuals .Button-label {
|
136
|
+
color: var(--button-default-fgColor-rest);
|
137
|
+
}
|
138
|
+
|
139
|
+
.SegmentedControl-item .Button-content {
|
140
|
+
flex: 1 1 auto;
|
141
|
+
align-self: stretch;
|
142
|
+
}
|
143
|
+
|
144
|
+
/* use ellipsis with the assumption that icon only variant will be used when not enough space is available */
|
145
|
+
|
146
|
+
.SegmentedControl-item .Button-label {
|
147
|
+
overflow: hidden;
|
148
|
+
text-overflow: ellipsis;
|
149
|
+
white-space: nowrap;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* fullWidth */
|
153
|
+
|
154
|
+
.SegmentedControl--fullWidth {
|
155
|
+
display: flex;
|
156
|
+
}
|
157
|
+
|
158
|
+
.SegmentedControl--fullWidth .SegmentedControl-item {
|
159
|
+
flex: 1;
|
160
|
+
justify-content: center;
|
161
|
+
}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
"name": "alpha/segmented_control",
|
3
3
|
"selectors": [
|
4
4
|
".SegmentedControl",
|
5
|
-
".SegmentedControl--iconOnly .Button--iconOnly.Button--medium",
|
6
5
|
".SegmentedControl--iconOnly .Button--iconOnly.Button--small",
|
6
|
+
".SegmentedControl--iconOnly .Button--iconOnly.Button--medium",
|
7
7
|
".SegmentedControl--small",
|
8
8
|
".SegmentedControl--small .SegmentedControl-item",
|
9
9
|
":is(.SegmentedControl--small .SegmentedControl-item) .Button",
|
@@ -16,10 +16,10 @@
|
|
16
16
|
".SegmentedControl-item.SegmentedControl-item--selected",
|
17
17
|
".SegmentedControl-item.SegmentedControl-item--selected .Button",
|
18
18
|
":is(.SegmentedControl-item.SegmentedControl-item--selected .Button):hover",
|
19
|
-
".SegmentedControl-item.SegmentedControl-item--selected
|
20
|
-
".SegmentedControl-item.SegmentedControl-item--selected
|
21
|
-
".SegmentedControl-item .Button-label[data-content]
|
22
|
-
".SegmentedControl-item:not(:first-child)
|
19
|
+
".SegmentedControl-item.SegmentedControl-item--selected::before",
|
20
|
+
".SegmentedControl-item.SegmentedControl-item--selected + .SegmentedControl-item::before",
|
21
|
+
".SegmentedControl-item .Button-label[data-content]::before",
|
22
|
+
".SegmentedControl-item:not(:first-child)::before",
|
23
23
|
".SegmentedControl-item .Button",
|
24
24
|
":is(.SegmentedControl-item .Button):focus-visible",
|
25
25
|
".SegmentedControl-item .Button--invisible.Button--invisible-noVisuals .Button-label",
|
@@ -1 +1,10 @@
|
|
1
|
-
.SelectPanel-loadingPanel
|
1
|
+
.SelectPanel-loadingPanel {
|
2
|
+
min-height: min(calc(var(--overlay-height) - 10rem), calc(100vh - 2rem));
|
3
|
+
}
|
4
|
+
|
5
|
+
.SelectPanel-emptyPanel {
|
6
|
+
min-height: min(calc(var(--overlay-height) - 23rem), calc(100vh - 2rem));
|
7
|
+
align-items: center;
|
8
|
+
display: flex;
|
9
|
+
justify-content: center;
|
10
|
+
}
|
@@ -1 +1,36 @@
|
|
1
|
-
@keyframes shimmer
|
1
|
+
@keyframes shimmer {
|
2
|
+
from {
|
3
|
+
mask-position: 200%;
|
4
|
+
}
|
5
|
+
|
6
|
+
to {
|
7
|
+
mask-position: 0%;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.SkeletonBox {
|
12
|
+
display: block;
|
13
|
+
height: 1rem;
|
14
|
+
background-color: var(--bgColor-muted);
|
15
|
+
border-radius: var(--borderRadius-small);
|
16
|
+
animation: shimmer;
|
17
|
+
}
|
18
|
+
|
19
|
+
@media (prefers-reduced-motion: no-preference) {
|
20
|
+
|
21
|
+
.SkeletonBox {
|
22
|
+
mask-image: linear-gradient(75deg, #000 30%, rgb(0, 0, 0, 0.65) 80%);
|
23
|
+
mask-size: 200%;
|
24
|
+
animation: shimmer;
|
25
|
+
animation-duration: 1s;
|
26
|
+
animation-iteration-count: infinite;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@media (forced-colors: active) {
|
31
|
+
|
32
|
+
.SkeletonBox {
|
33
|
+
outline: 1px solid transparent;
|
34
|
+
outline-offset: -1px;
|
35
|
+
}
|
36
|
+
}
|
@@ -1 +1,255 @@
|
|
1
|
-
.Stack
|
1
|
+
.Stack {
|
2
|
+
display: flex;
|
3
|
+
flex-flow: column;
|
4
|
+
align-items: stretch;
|
5
|
+
align-content: flex-start;
|
6
|
+
gap: var(--stack-gap, var(--stack-gap-normal, 1rem));
|
7
|
+
|
8
|
+
/* non-responsive values */
|
9
|
+
}
|
10
|
+
.Stack[data-padding='none'],.Stack[data-padding-narrow='none'] {
|
11
|
+
padding: 0;
|
12
|
+
}
|
13
|
+
.Stack[data-padding='condensed'],.Stack[data-padding-narrow='condensed'] {
|
14
|
+
/* stylelint-disable-next-line primer/spacing */
|
15
|
+
padding: var(--stack-padding-condensed, 8px);
|
16
|
+
}
|
17
|
+
.Stack[data-padding='normal'],.Stack[data-padding-narrow='normal'] {
|
18
|
+
/* stylelint-disable-next-line primer/spacing */
|
19
|
+
padding: var(--stack-padding-normal, 16px);
|
20
|
+
}
|
21
|
+
.Stack[data-padding='spacious'],.Stack[data-padding-narrow='spacious'] {
|
22
|
+
/* stylelint-disable-next-line primer/spacing */
|
23
|
+
padding: var(--stack-padding-spacious, 24px);
|
24
|
+
}
|
25
|
+
.Stack[data-direction='horizontal'],.Stack[data-direction-narrow='horizontal'] {
|
26
|
+
flex-flow: row;
|
27
|
+
}
|
28
|
+
.Stack[data-direction='vertical'],.Stack[data-direction-narrow='vertical'] {
|
29
|
+
flex-flow: column;
|
30
|
+
}
|
31
|
+
.Stack[data-gap='none'],.Stack[data-gap-narrow='none'] {
|
32
|
+
--stack-gap: var(--stack-gap-none, 0);
|
33
|
+
}
|
34
|
+
.Stack[data-gap='condensed'],.Stack[data-gap-narrow='condensed'] {
|
35
|
+
--stack-gap: var(--stack-gap-condensed, 0.5rem);
|
36
|
+
}
|
37
|
+
.Stack[data-gap='normal'],.Stack[data-gap-narrow='normal'] {
|
38
|
+
--stack-gap: var(--stack-gap-normal, 1rem);
|
39
|
+
}
|
40
|
+
.Stack[data-gap='spacious'],.Stack[data-gap-narrow='spacious'] {
|
41
|
+
--stack-gap: var(--stack-gap-spacious, 1.5rem);
|
42
|
+
}
|
43
|
+
.Stack[data-align='start'],.Stack[data-align-narrow='start'] {
|
44
|
+
align-items: flex-start;
|
45
|
+
}
|
46
|
+
.Stack[data-align='center'],.Stack[data-align-narrow='center'] {
|
47
|
+
align-items: center;
|
48
|
+
}
|
49
|
+
.Stack[data-align='end'],.Stack[data-align-narrow='end'] {
|
50
|
+
align-items: flex-end;
|
51
|
+
}
|
52
|
+
.Stack[data-align='baseline'],.Stack[data-align-narrow='baseline'] {
|
53
|
+
align-items: baseline;
|
54
|
+
}
|
55
|
+
.Stack[data-justify='start'],.Stack[data-justify-narrow='start'] {
|
56
|
+
justify-content: flex-start;
|
57
|
+
}
|
58
|
+
.Stack[data-justify='center'],.Stack[data-justify-narrow='center'] {
|
59
|
+
justify-content: center;
|
60
|
+
}
|
61
|
+
.Stack[data-justify='end'],.Stack[data-justify-narrow='end'] {
|
62
|
+
justify-content: flex-end;
|
63
|
+
}
|
64
|
+
.Stack[data-justify='space-between'],.Stack[data-justify-narrow='space-between'] {
|
65
|
+
justify-content: space-between;
|
66
|
+
}
|
67
|
+
.Stack[data-justify='space-evenly'],.Stack[data-justify-narrow='space-evenly'] {
|
68
|
+
justify-content: space-evenly;
|
69
|
+
}
|
70
|
+
.Stack[data-wrap='wrap'],.Stack[data-wrap-narrow='wrap'] {
|
71
|
+
flex-wrap: wrap;
|
72
|
+
}
|
73
|
+
.Stack[data-wrap='nowrap'],.Stack[data-wrap-narrow='nowrap'] {
|
74
|
+
flex-wrap: nowrap;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* @custom-media --veiwportRange-regular */
|
78
|
+
@media (min-width: 48rem) {
|
79
|
+
.Stack[data-padding-regular='none'] {
|
80
|
+
padding: 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
.Stack[data-padding-regular='condensed'] {
|
84
|
+
/* stylelint-disable-next-line primer/spacing */
|
85
|
+
padding: var(--stack-padding-condensed, 8px);
|
86
|
+
}
|
87
|
+
|
88
|
+
.Stack[data-padding-regular='normal'] {
|
89
|
+
/* stylelint-disable-next-line primer/spacing */
|
90
|
+
padding: var(--stack-padding-normal, 16px);
|
91
|
+
}
|
92
|
+
|
93
|
+
.Stack[data-padding-regular='spacious'] {
|
94
|
+
/* stylelint-disable-next-line primer/spacing */
|
95
|
+
padding: var(--stack-padding-spacious, 24px);
|
96
|
+
}
|
97
|
+
|
98
|
+
.Stack[data-direction-regular='horizontal'] {
|
99
|
+
flex-flow: row;
|
100
|
+
}
|
101
|
+
|
102
|
+
.Stack[data-direction-regular='vertical'] {
|
103
|
+
flex-flow: column;
|
104
|
+
}
|
105
|
+
|
106
|
+
.Stack[data-gap-regular='none'] {
|
107
|
+
--stack-gap: var(--stack-gap-none, 0);
|
108
|
+
}
|
109
|
+
|
110
|
+
.Stack[data-gap-regular='condensed'] {
|
111
|
+
--stack-gap: var(--stack-gap-condensed, 0.5rem);
|
112
|
+
}
|
113
|
+
|
114
|
+
.Stack[data-gap-regular='normal'] {
|
115
|
+
--stack-gap: var(--stack-gap-normal, 1rem);
|
116
|
+
}
|
117
|
+
|
118
|
+
.Stack[data-gap-regular='spacious'] {
|
119
|
+
--stack-gap: var(--stack-gap-spacious, 1.5rem);
|
120
|
+
}
|
121
|
+
|
122
|
+
.Stack[data-align-regular='start'] {
|
123
|
+
align-items: flex-start;
|
124
|
+
}
|
125
|
+
|
126
|
+
.Stack[data-align-regular='center'] {
|
127
|
+
align-items: center;
|
128
|
+
}
|
129
|
+
|
130
|
+
.Stack[data-align-regular='end'] {
|
131
|
+
align-items: flex-end;
|
132
|
+
}
|
133
|
+
|
134
|
+
.Stack[data-align-regular='baseline'] {
|
135
|
+
align-items: baseline;
|
136
|
+
}
|
137
|
+
|
138
|
+
.Stack[data-justify-regular='start'] {
|
139
|
+
justify-content: flex-start;
|
140
|
+
}
|
141
|
+
|
142
|
+
.Stack[data-justify-regular='center'] {
|
143
|
+
justify-content: center;
|
144
|
+
}
|
145
|
+
|
146
|
+
.Stack[data-justify-regular='end'] {
|
147
|
+
justify-content: flex-end;
|
148
|
+
}
|
149
|
+
|
150
|
+
.Stack[data-justify-regular='space-between'] {
|
151
|
+
justify-content: space-between;
|
152
|
+
}
|
153
|
+
|
154
|
+
.Stack[data-justify-regular='space-evenly'] {
|
155
|
+
justify-content: space-evenly;
|
156
|
+
}
|
157
|
+
|
158
|
+
.Stack[data-wrap-regular='wrap'] {
|
159
|
+
flex-wrap: wrap;
|
160
|
+
}
|
161
|
+
|
162
|
+
.Stack[data-wrap-regular='nowrap'] {
|
163
|
+
flex-wrap: nowrap;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
/* @custom-media --viewportRange-wide */
|
168
|
+
@media (min-width: 87.5rem) {
|
169
|
+
.Stack[data-padding-wide='none'] {
|
170
|
+
padding: 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
.Stack[data-padding-wide='condensed'] {
|
174
|
+
/* stylelint-disable-next-line primer/spacing */
|
175
|
+
padding: var(--stack-padding-condensed, 8px);
|
176
|
+
}
|
177
|
+
|
178
|
+
.Stack[data-padding-wide='normal'] {
|
179
|
+
/* stylelint-disable-next-line primer/spacing */
|
180
|
+
padding: var(--stack-padding-normal, 16px);
|
181
|
+
}
|
182
|
+
|
183
|
+
.Stack[data-padding-wide='spacious'] {
|
184
|
+
/* stylelint-disable-next-line primer/spacing */
|
185
|
+
padding: var(--stack-padding-spacious, 24px);
|
186
|
+
}
|
187
|
+
|
188
|
+
.Stack[data-direction-wide='horizontal'] {
|
189
|
+
flex-flow: row;
|
190
|
+
}
|
191
|
+
|
192
|
+
.Stack[data-direction-wide='vertical'] {
|
193
|
+
flex-flow: column;
|
194
|
+
}
|
195
|
+
|
196
|
+
.Stack[data-gap-wide='none'] {
|
197
|
+
--stack-gap: var(--stack-gap-none, 0);
|
198
|
+
}
|
199
|
+
|
200
|
+
.Stack[data-gap-wide='condensed'] {
|
201
|
+
--stack-gap: var(--stack-gap-condensed, 0.5rem);
|
202
|
+
}
|
203
|
+
|
204
|
+
.Stack[data-gap-wide='normal'] {
|
205
|
+
--stack-gap: var(--stack-gap-normal, 1rem);
|
206
|
+
}
|
207
|
+
|
208
|
+
.Stack[data-gap-wide='spacious'] {
|
209
|
+
--stack-gap: var(--stack-gap-spacious, 1.5rem);
|
210
|
+
}
|
211
|
+
|
212
|
+
.Stack[data-align-wide='start'] {
|
213
|
+
align-items: flex-start;
|
214
|
+
}
|
215
|
+
|
216
|
+
.Stack[data-align-wide='center'] {
|
217
|
+
align-items: center;
|
218
|
+
}
|
219
|
+
|
220
|
+
.Stack[data-align-wide='end'] {
|
221
|
+
align-items: flex-end;
|
222
|
+
}
|
223
|
+
|
224
|
+
.Stack[data-align-wide='baseline'] {
|
225
|
+
align-items: baseline;
|
226
|
+
}
|
227
|
+
|
228
|
+
.Stack[data-justify-wide='start'] {
|
229
|
+
justify-content: flex-start;
|
230
|
+
}
|
231
|
+
|
232
|
+
.Stack[data-justify-wide='center'] {
|
233
|
+
justify-content: center;
|
234
|
+
}
|
235
|
+
|
236
|
+
.Stack[data-justify-wide='end'] {
|
237
|
+
justify-content: flex-end;
|
238
|
+
}
|
239
|
+
|
240
|
+
.Stack[data-justify-wide='space-between'] {
|
241
|
+
justify-content: space-between;
|
242
|
+
}
|
243
|
+
|
244
|
+
.Stack[data-justify-wide='space-evenly'] {
|
245
|
+
justify-content: space-evenly;
|
246
|
+
}
|
247
|
+
|
248
|
+
.Stack[data-wrap-wide='wrap'] {
|
249
|
+
flex-wrap: wrap;
|
250
|
+
}
|
251
|
+
|
252
|
+
.Stack[data-wrap-wide='nowrap'] {
|
253
|
+
flex-wrap: nowrap;
|
254
|
+
}
|
255
|
+
}
|