@primer/css 21.0.0-rc.36832d16 → 21.0.0-rc.59a2f4d1
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 +6 -0
- 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/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/meta.json +44 -44
- package/dist/primer.css +2 -2
- package/dist/primer.css.map +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/primer.json +1 -1
- package/forms/form-group.scss +2 -1
- package/forms/index.scss +0 -1
- package/package.json +2 -2
- package/forms/form-validation.scss +0 -265
package/forms/form-group.scss
CHANGED
package/forms/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/css",
|
|
3
|
-
"version": "21.0.0-rc.
|
|
3
|
+
"version": "21.0.0-rc.59a2f4d1",
|
|
4
4
|
"description": "The CSS implementation of GitHub's Primer Design System",
|
|
5
5
|
"homepage": "https://primer.style/css",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"storybook": "cd docs && yarn && yarn storybook"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@primer/primitives": "^7.11.
|
|
45
|
+
"@primer/primitives": "^7.11.3",
|
|
46
46
|
"@primer/view-components": "^0.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
// stylelint-disable selector-no-qualifying-type, selector-max-type
|
|
2
|
-
|
|
3
|
-
// Inline verification
|
|
4
|
-
|
|
5
|
-
.inline-form {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
|
|
8
|
-
.btn-plain {
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
border: 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Drag and drop
|
|
15
|
-
//
|
|
16
|
-
// Previously part of `_forms.scss` in Primer. Needs accounting for.
|
|
17
|
-
|
|
18
|
-
.drag-and-drop {
|
|
19
|
-
// stylelint-disable-next-line primer/spacing
|
|
20
|
-
padding: 7px 10px;
|
|
21
|
-
margin: 0;
|
|
22
|
-
// stylelint-disable-next-line primer/typography
|
|
23
|
-
font-size: 13px;
|
|
24
|
-
// stylelint-disable-next-line primer/typography
|
|
25
|
-
line-height: 16px;
|
|
26
|
-
color: var(--color-fg-muted);
|
|
27
|
-
background-color: var(--color-canvas-subtle);
|
|
28
|
-
border: $border-width $border-style var(--color-border-default);
|
|
29
|
-
border-top: 0;
|
|
30
|
-
border-bottom-right-radius: $border-radius;
|
|
31
|
-
border-bottom-left-radius: $border-radius;
|
|
32
|
-
|
|
33
|
-
.default,
|
|
34
|
-
.loading,
|
|
35
|
-
.error {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.error {
|
|
40
|
-
color: var(--color-danger-fg);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Spinner
|
|
44
|
-
img {
|
|
45
|
-
vertical-align: top;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.is-default .drag-and-drop .default {
|
|
50
|
-
display: inline-block;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.is-uploading .drag-and-drop .loading {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.is-bad-file .drag-and-drop .bad-file {
|
|
58
|
-
display: inline-block;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.is-duplicate-filename .drag-and-drop .duplicate-filename {
|
|
62
|
-
display: inline-block;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.is-too-big .drag-and-drop .too-big {
|
|
66
|
-
display: inline-block;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.is-hidden-file .drag-and-drop .hidden-file {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.is-empty .drag-and-drop .empty {
|
|
74
|
-
display: inline-block;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.is-bad-permissions .drag-and-drop .bad-permissions {
|
|
78
|
-
display: inline-block;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.is-repository-required .drag-and-drop .repository-required {
|
|
82
|
-
display: inline-block;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.drag-and-drop-error-info {
|
|
86
|
-
font-weight: $font-weight-normal;
|
|
87
|
-
color: var(--color-fg-muted);
|
|
88
|
-
|
|
89
|
-
a {
|
|
90
|
-
color: var(--color-accent-fg);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.is-failed .drag-and-drop .failed-request {
|
|
95
|
-
display: inline-block;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.manual-file-chooser {
|
|
99
|
-
position: absolute;
|
|
100
|
-
width: 240px;
|
|
101
|
-
// stylelint-disable-next-line primer/spacing
|
|
102
|
-
padding: 5px;
|
|
103
|
-
// stylelint-disable-next-line primer/spacing
|
|
104
|
-
margin-left: -80px;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
opacity: 0.0001;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.manual-file-chooser:hover + .manual-file-chooser-text {
|
|
110
|
-
text-decoration: underline;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.btn {
|
|
114
|
-
// align manual-file-chooser inside a button
|
|
115
|
-
.manual-file-chooser {
|
|
116
|
-
top: 0;
|
|
117
|
-
padding: 0;
|
|
118
|
-
// stylelint-disable-next-line primer/typography
|
|
119
|
-
line-height: 34px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Focused Textarea styles
|
|
124
|
-
.upload-enabled {
|
|
125
|
-
textarea {
|
|
126
|
-
display: block;
|
|
127
|
-
// stylelint-disable-next-line primer/borders
|
|
128
|
-
border-bottom: $border-width dashed var(--color-border-default);
|
|
129
|
-
border-bottom-right-radius: 0;
|
|
130
|
-
border-bottom-left-radius: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.focused {
|
|
134
|
-
border-color: var(--color-accent-fg);
|
|
135
|
-
border-radius: $border-radius;
|
|
136
|
-
outline: none;
|
|
137
|
-
// stylelint-disable-next-line primer/box-shadow
|
|
138
|
-
box-shadow: 0 0 0 2px var(--color-accent-fg);
|
|
139
|
-
|
|
140
|
-
.form-control {
|
|
141
|
-
border-color: transparent;
|
|
142
|
-
border-bottom-color: var(--color-accent-fg);
|
|
143
|
-
box-shadow: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.drag-and-drop {
|
|
147
|
-
border-color: transparent;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Dropping a file on top
|
|
153
|
-
.dragover textarea,
|
|
154
|
-
.dragover .drag-and-drop {
|
|
155
|
-
// stylelint-disable-next-line primer/box-shadow
|
|
156
|
-
box-shadow: rgba(#c9ff00, 1) 0 0 3px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.write-content {
|
|
160
|
-
position: relative;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// Form style with a write and a preview tab
|
|
164
|
-
.previewable-comment-form {
|
|
165
|
-
position: relative;
|
|
166
|
-
|
|
167
|
-
.tabnav {
|
|
168
|
-
position: relative;
|
|
169
|
-
padding: $spacer-2 $spacer-2 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.comment {
|
|
173
|
-
border: $border-width $border-style var(--color-border-default);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.comment-form-error {
|
|
177
|
-
margin-bottom: $spacer-2;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.write-content,
|
|
181
|
-
.preview-content {
|
|
182
|
-
display: none;
|
|
183
|
-
margin: 0 $spacer-2 $spacer-2;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&.write-selected .write-content,
|
|
187
|
-
&.preview-selected .preview-content {
|
|
188
|
-
display: block;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
textarea {
|
|
192
|
-
display: block;
|
|
193
|
-
width: 100%;
|
|
194
|
-
min-height: 100px;
|
|
195
|
-
max-height: 500px;
|
|
196
|
-
padding: $spacer-2;
|
|
197
|
-
resize: vertical;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Used in our boxed-group-less form styles. Give the submit button enough space
|
|
202
|
-
// to breathe without the need for the extra hr.
|
|
203
|
-
.form-action-spacious {
|
|
204
|
-
// stylelint-disable-next-line primer/spacing
|
|
205
|
-
margin-top: 10px;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// A two column form, with a .main and a .sidebar column
|
|
209
|
-
//
|
|
210
|
-
// Override some `.timeline-comment-wrapper` defaults.
|
|
211
|
-
// The `div` is needed to be more specific than the other class.
|
|
212
|
-
div.composer {
|
|
213
|
-
margin-top: 0;
|
|
214
|
-
border: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// Override the previewable comment form defaults
|
|
218
|
-
.composer .comment-form-textarea {
|
|
219
|
-
height: 200px;
|
|
220
|
-
min-height: 200px;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.composer .tabnav {
|
|
224
|
-
// stylelint-disable-next-line primer/spacing
|
|
225
|
-
margin: 0 0 10px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// Misc CSS
|
|
229
|
-
//
|
|
230
|
-
// Previously part of `_forms.scss` in Primer. Needs accounting for.
|
|
231
|
-
|
|
232
|
-
h2.account {
|
|
233
|
-
// stylelint-disable-next-line primer/spacing
|
|
234
|
-
margin: 15px 0 0;
|
|
235
|
-
// stylelint-disable-next-line primer/typography
|
|
236
|
-
font-size: 18px;
|
|
237
|
-
font-weight: $font-weight-normal;
|
|
238
|
-
color: var(--color-fg-muted);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
p.explain {
|
|
242
|
-
position: relative;
|
|
243
|
-
font-size: $font-size-small;
|
|
244
|
-
color: var(--color-fg-muted);
|
|
245
|
-
|
|
246
|
-
strong {
|
|
247
|
-
color: var(--color-fg-default);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.octicon {
|
|
251
|
-
// stylelint-disable-next-line primer/spacing
|
|
252
|
-
margin-right: 5px;
|
|
253
|
-
color: var(--color-fg-muted);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.minibutton {
|
|
257
|
-
top: -4px;
|
|
258
|
-
float: right;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
// fix for chrome bug, see https://github.com/github/github/issues/53931
|
|
263
|
-
.form-group label {
|
|
264
|
-
position: static;
|
|
265
|
-
}
|