@primer/css 0.0.0-20220329001647 → 0.0.0-20220329051130
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 +1 -1
- package/branch-name/branch-name.scss +1 -0
- package/dist/branch-name.css +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/meta.json +77 -77
- package/dist/primer.css +2 -2
- package/dist/primer.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/stats/branch-name.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/layout/index.scss +0 -1
- package/package.json +1 -1
- package/utilities/visibility-display.scss +1 -0
- package/layout/page-header.scss +0 -227
package/layout/page-header.scss
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
.PageHeader {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: 1fr;
|
|
4
|
-
grid-template-areas:
|
|
5
|
-
'contextBar'
|
|
6
|
-
'titleBar'
|
|
7
|
-
'description'
|
|
8
|
-
'navigation';
|
|
9
|
-
|
|
10
|
-
// Context bar
|
|
11
|
-
|
|
12
|
-
.PageHeader-contextBar {
|
|
13
|
-
display: flex;
|
|
14
|
-
column-gap: 16px;
|
|
15
|
-
align-items: center;
|
|
16
|
-
|
|
17
|
-
.PageHeader-parentLink {
|
|
18
|
-
flex: 1 1 auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.PageHeader-actions {
|
|
22
|
-
flex: 0 0 auto;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Title bar
|
|
27
|
-
|
|
28
|
-
.PageHeader-titleBar {
|
|
29
|
-
display: flex;
|
|
30
|
-
column-gap: 16px;
|
|
31
|
-
|
|
32
|
-
.PageHeader-titleWrap {
|
|
33
|
-
flex: 1 1 auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.PageHeader-actions {
|
|
37
|
-
flex: 0 0 auto;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//////////////
|
|
42
|
-
|
|
43
|
-
.PageHeader-parentLink {
|
|
44
|
-
|
|
45
|
-
a {
|
|
46
|
-
display: inline-grid;
|
|
47
|
-
grid-template-columns: min-content auto;
|
|
48
|
-
gap: var(--gh-gutter-small);
|
|
49
|
-
gap: 4px; // fixme
|
|
50
|
-
align-items: center;
|
|
51
|
-
color: var(--color-fg-muted);
|
|
52
|
-
font-size: var(--gh-text-caption-size);
|
|
53
|
-
line-height: var(--gh-text-caption-lineHeight);
|
|
54
|
-
padding: 4px 8px;
|
|
55
|
-
margin: -4px -8px;
|
|
56
|
-
border-radius: 6px;
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
color: var(--color-fg-default);
|
|
60
|
-
text-decoration: none;
|
|
61
|
-
background: #ececec; //fixme
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.PageHeader-parentLink-label {
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
text-overflow: ellipsis;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Title wrap
|
|
73
|
-
|
|
74
|
-
.PageHeader-titleWrap {
|
|
75
|
-
|
|
76
|
-
// Title variants
|
|
77
|
-
|
|
78
|
-
&.PageHeader-titleWrap--large {
|
|
79
|
-
// Replace with Primer primitives design tokens: `title-large`
|
|
80
|
-
font: 400 2rem/calc(40 / 32) $body-font;
|
|
81
|
-
|
|
82
|
-
.PageHeader-backButton a {
|
|
83
|
-
// Replace with Primer primitives `title-large` lineBoxHeight
|
|
84
|
-
height: 2.5rem;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.PageHeader-leadingVisual {
|
|
88
|
-
// Replace with Primer primitives `title-large` lineBoxHeight
|
|
89
|
-
max-height: 2.5rem;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
&.PageHeader-titleWrap--medium {
|
|
93
|
-
// Replace with Primer primitives design tokens: `title-medium`
|
|
94
|
-
font: 600 1.25rem/calc(32 / 20) $body-font;
|
|
95
|
-
}
|
|
96
|
-
&.PageHeader-titleWrap--subtitle {
|
|
97
|
-
// Replace with Primer primitives design tokens: `subtitle`
|
|
98
|
-
font: 400 1.25rem/calc(32 / 20) $body-font;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Reponsive title variants
|
|
102
|
-
|
|
103
|
-
// Replace with viewport range variables: `narrow`
|
|
104
|
-
@media (max-width: 768px) {
|
|
105
|
-
&.PageHeader-titleWrap--medium-whenNarrow {
|
|
106
|
-
// Replace with Primer primitives design tokens: `title-medium`
|
|
107
|
-
font: 600 1.25rem/calc(32 / 20) $body-font;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.PageHeader-titleWrap--subtitle-whenNarrow {
|
|
111
|
-
// Replace with Primer primitives design tokens: `title-medium`
|
|
112
|
-
font: 400 1.25rem/calc(32 / 20) $body-font;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.PageHeader-titleWrap--hasLeadingVisual {
|
|
117
|
-
background: pink;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.PageHeader-titleWrap--hasBackButton {
|
|
121
|
-
//background: yellow;
|
|
122
|
-
//margin-left: -8px;
|
|
123
|
-
grid-template-columns: min-content auto;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.PageHeader-titleWrap--hasInteractiveTitle {
|
|
127
|
-
background: orange;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
h1, h2, h3 {
|
|
131
|
-
font-size: inherit;
|
|
132
|
-
line-height: inherit;
|
|
133
|
-
font-weight: inherit;
|
|
134
|
-
//outline: 1px solid red;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.PageHeader-title {
|
|
138
|
-
display: inline-grid;
|
|
139
|
-
grid-auto-flow: column;
|
|
140
|
-
grid-template-columns: auto;
|
|
141
|
-
gap: 8px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.PageHeader-leadingVisual {
|
|
145
|
-
display: grid;
|
|
146
|
-
align-items: center;
|
|
147
|
-
// Replace with Primer primitives design token: `title-lineBoxHeight`
|
|
148
|
-
max-height: 2rem;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.PageHeader-title--interactive {
|
|
152
|
-
position: relative;
|
|
153
|
-
align-items: center;
|
|
154
|
-
color: inherit;
|
|
155
|
-
padding: 0 8px;
|
|
156
|
-
margin: 0 -8px;
|
|
157
|
-
border-radius: 6px;
|
|
158
|
-
|
|
159
|
-
&:hover {
|
|
160
|
-
// Replace with Primer primitives generic control hover bg
|
|
161
|
-
background-color: var(--color-action-list-item-default-hover-bg);
|
|
162
|
-
text-decoration: none;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@media (pointer: coarse) {
|
|
166
|
-
// Replace with minTouchTarget mixin
|
|
167
|
-
&:after {
|
|
168
|
-
content: "";
|
|
169
|
-
position: absolute;
|
|
170
|
-
// Replace with Primer primitives `gh-minTouchTarget`
|
|
171
|
-
min-height: 44px;
|
|
172
|
-
margin-top: -22px;
|
|
173
|
-
inset: 50% 0 0 0;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
> span {
|
|
178
|
-
overflow: hidden;
|
|
179
|
-
text-overflow: ellipsis;
|
|
180
|
-
white-space: nowrap;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// Back button
|
|
187
|
-
|
|
188
|
-
.PageHeader-backButton {
|
|
189
|
-
a {
|
|
190
|
-
display: grid;
|
|
191
|
-
width: 16px;
|
|
192
|
-
height: var(--gh-text-title-medium-lineBoxHeight);
|
|
193
|
-
//background: red;
|
|
194
|
-
align-items: center;
|
|
195
|
-
border-radius: 6px;
|
|
196
|
-
color: inherit;
|
|
197
|
-
position: relative;
|
|
198
|
-
|
|
199
|
-
&:hover {
|
|
200
|
-
background: orange;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@media (pointer: coarse) {
|
|
204
|
-
&:after {
|
|
205
|
-
position: absolute;
|
|
206
|
-
content: "";
|
|
207
|
-
inset: 0;
|
|
208
|
-
background: red;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Description slot
|
|
215
|
-
|
|
216
|
-
.PageHeader-description {
|
|
217
|
-
margin-top: 8px;
|
|
218
|
-
overflow: auto;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Navigation slot
|
|
222
|
-
|
|
223
|
-
.PageHeader-navigation {
|
|
224
|
-
margin-top: 16px;
|
|
225
|
-
overflow: auto;
|
|
226
|
-
}
|
|
227
|
-
}
|