@sb1/ffe-file-upload 100.12.4 → 101.0.1
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/css/file-upload.css +34 -78
- package/package.json +5 -5
package/css/file-upload.css
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
.ffe-file-upload {
|
|
2
2
|
margin-top: var(--ffe-spacing-2xl);
|
|
3
|
-
display: -ms-grid;
|
|
4
3
|
display: grid;
|
|
5
4
|
max-width: 400px;
|
|
6
|
-
-
|
|
7
|
-
grid-template-columns: 1fr;
|
|
5
|
+
grid-template-columns: 1fr;
|
|
8
6
|
font-family: var(--ffe-g-font);
|
|
9
7
|
}
|
|
10
8
|
@media (min-width: 768px) {
|
|
@@ -29,15 +27,13 @@
|
|
|
29
27
|
font-size: var(--ffe-fontsize-body-text);
|
|
30
28
|
overflow-wrap: anywhere;
|
|
31
29
|
margin-bottom: var(--ffe-spacing-md);
|
|
32
|
-
|
|
33
|
-
grid-row: 2;
|
|
30
|
+
grid-row: 2;
|
|
34
31
|
}
|
|
35
32
|
@media (min-width: 768px) {
|
|
36
33
|
.ffe-file-upload__info-section {
|
|
37
34
|
margin-right: var(--ffe-spacing-md);
|
|
38
35
|
margin-bottom: 0;
|
|
39
|
-
|
|
40
|
-
grid-column: 1;
|
|
36
|
+
grid-column: 1;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
.ffe-file-upload__info-section-text {
|
|
@@ -46,21 +42,17 @@
|
|
|
46
42
|
.ffe-file-upload__file-items-section {
|
|
47
43
|
margin-top: var(--ffe-spacing-sm);
|
|
48
44
|
line-height: 2.1875rem;
|
|
49
|
-
|
|
50
|
-
grid-row: 4;
|
|
45
|
+
grid-row: 4;
|
|
51
46
|
}
|
|
52
47
|
@media (min-width: 768px) {
|
|
53
48
|
.ffe-file-upload__file-items-section {
|
|
54
49
|
margin-top: 0;
|
|
55
|
-
|
|
56
|
-
grid-row: 2;
|
|
50
|
+
grid-row: 2;
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
53
|
.ffe-file-upload__file-items-section li {
|
|
60
|
-
display: -ms-grid;
|
|
61
54
|
display: grid;
|
|
62
|
-
-
|
|
63
|
-
grid-template-columns: 1fr;
|
|
55
|
+
grid-template-columns: 1fr;
|
|
64
56
|
}
|
|
65
57
|
.ffe-file-upload__upload-section {
|
|
66
58
|
min-height: 150px;
|
|
@@ -68,8 +60,7 @@
|
|
|
68
60
|
border-radius: 10px;
|
|
69
61
|
text-align: center;
|
|
70
62
|
padding: var(--ffe-spacing-2xs);
|
|
71
|
-
|
|
72
|
-
grid-row: 3;
|
|
63
|
+
grid-row: 3;
|
|
73
64
|
}
|
|
74
65
|
@media (min-width: 768px) {
|
|
75
66
|
.ffe-file-upload__upload-section {
|
|
@@ -77,21 +68,15 @@
|
|
|
77
68
|
min-height: 220px;
|
|
78
69
|
width: 280px;
|
|
79
70
|
padding: 0;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-ms-grid-column: 2;
|
|
83
|
-
grid-column: 2;
|
|
71
|
+
grid-row: 2;
|
|
72
|
+
grid-column: 2;
|
|
84
73
|
}
|
|
85
74
|
}
|
|
86
75
|
.ffe-file-upload__upload-section-border {
|
|
87
|
-
display: -ms-flexbox;
|
|
88
76
|
display: flex;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
justify-content: center;
|
|
93
|
-
-ms-flex-align: center;
|
|
94
|
-
align-items: center;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
95
80
|
min-height: 140px;
|
|
96
81
|
margin: var(--ffe-spacing-2xs);
|
|
97
82
|
padding: var(--ffe-spacing-2xs) var(--ffe-spacing-lg);
|
|
@@ -172,14 +157,10 @@
|
|
|
172
157
|
color: var(--ffe-color-foreground-interactive-link);
|
|
173
158
|
cursor: pointer;
|
|
174
159
|
font-size: 0.875rem;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-ms-grid-row: 1;
|
|
178
|
-
grid-row: 1;
|
|
179
|
-
display: -ms-flexbox;
|
|
160
|
+
grid-column: 3;
|
|
161
|
+
grid-row: 1;
|
|
180
162
|
display: flex;
|
|
181
|
-
-
|
|
182
|
-
align-items: center;
|
|
163
|
+
align-items: center;
|
|
183
164
|
}
|
|
184
165
|
@media (min-width: 768px) {
|
|
185
166
|
.ffe-file-upload__file-item-delete-button {
|
|
@@ -224,20 +205,14 @@
|
|
|
224
205
|
text-decoration: underline;
|
|
225
206
|
}
|
|
226
207
|
.ffe-file-upload__file-item-stencil {
|
|
227
|
-
display: -ms-grid;
|
|
228
208
|
display: grid;
|
|
229
|
-
-
|
|
230
|
-
grid-template-columns: 1fr;
|
|
209
|
+
grid-template-columns: 1fr;
|
|
231
210
|
}
|
|
232
211
|
.ffe-file-upload__file-item-stencil-info {
|
|
233
|
-
display: -ms-grid;
|
|
234
212
|
display: grid;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
-
|
|
238
|
-
grid-row: 1;
|
|
239
|
-
-ms-grid-columns: 1fr;
|
|
240
|
-
grid-template-columns: 1fr;
|
|
213
|
+
grid-column: 1;
|
|
214
|
+
grid-row: 1;
|
|
215
|
+
grid-template-columns: 1fr;
|
|
241
216
|
overflow: hidden;
|
|
242
217
|
}
|
|
243
218
|
.ffe-file-upload__file-item-stencil-info-background {
|
|
@@ -263,16 +238,12 @@
|
|
|
263
238
|
font-family: var(--ffe-g-font-strong);
|
|
264
239
|
}
|
|
265
240
|
.ffe-file-upload__file-item-loaded {
|
|
266
|
-
display: -ms-grid;
|
|
267
241
|
display: grid;
|
|
268
|
-
-
|
|
269
|
-
grid-template-columns: 1fr;
|
|
242
|
+
grid-template-columns: 1fr;
|
|
270
243
|
}
|
|
271
244
|
.ffe-file-upload__file-item-filename {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
-ms-grid-column: 1;
|
|
275
|
-
grid-column: 1;
|
|
245
|
+
grid-row: 1;
|
|
246
|
+
grid-column: 1;
|
|
276
247
|
white-space: nowrap;
|
|
277
248
|
overflow: hidden;
|
|
278
249
|
text-overflow: ellipsis;
|
|
@@ -280,11 +251,9 @@
|
|
|
280
251
|
color: var(--ffe-color-foreground-emphasis);
|
|
281
252
|
}
|
|
282
253
|
.ffe-file-upload__file-item-error {
|
|
283
|
-
display: -ms-grid;
|
|
284
254
|
display: grid;
|
|
285
255
|
grid-gap: 5px;
|
|
286
|
-
-
|
|
287
|
-
grid-template-columns: 25px 1fr;
|
|
256
|
+
grid-template-columns: 25px 1fr;
|
|
288
257
|
}
|
|
289
258
|
.ffe-file-upload__file-item-error-icon {
|
|
290
259
|
background-color: var(--ffe-color-foreground-feedback-critical);
|
|
@@ -294,33 +263,22 @@
|
|
|
294
263
|
margin-right: var(--ffe-spacing-2xs);
|
|
295
264
|
padding: 3px;
|
|
296
265
|
font-family: arial, sans-serif;
|
|
297
|
-
display: -ms-inline-flexbox;
|
|
298
266
|
display: inline-flex;
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
-
|
|
304
|
-
align-self: center;
|
|
305
|
-
-ms-grid-column: 1;
|
|
306
|
-
grid-column: 1;
|
|
307
|
-
-ms-grid-row: 1;
|
|
308
|
-
grid-row: 1;
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
align-self: center;
|
|
270
|
+
grid-column: 1;
|
|
271
|
+
grid-row: 1;
|
|
309
272
|
}
|
|
310
273
|
.ffe-file-upload__file-item-error-icon .ffe-icons {
|
|
311
274
|
color: var(--ffe-color-surface-primary-default);
|
|
312
275
|
}
|
|
313
276
|
.ffe-file-upload__file-item-error-info {
|
|
314
|
-
display: -ms-grid;
|
|
315
277
|
display: grid;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
-
|
|
319
|
-
|
|
320
|
-
-ms-grid-columns: 1fr;
|
|
321
|
-
grid-template-columns: 1fr;
|
|
322
|
-
-ms-flex-line-pack: center;
|
|
323
|
-
align-content: center;
|
|
278
|
+
grid-row: 1;
|
|
279
|
+
grid-column: 2;
|
|
280
|
+
grid-template-columns: 1fr;
|
|
281
|
+
align-content: center;
|
|
324
282
|
}
|
|
325
283
|
.ffe-file-upload__file-item-error-filename {
|
|
326
284
|
color: var(--ffe-color-foreground-default);
|
|
@@ -331,8 +289,7 @@
|
|
|
331
289
|
margin: 0;
|
|
332
290
|
font-size: var(--ffe-fontsize-micro-text);
|
|
333
291
|
overflow-wrap: anywhere;
|
|
334
|
-
|
|
335
|
-
grid-row: 1;
|
|
292
|
+
grid-row: 1;
|
|
336
293
|
white-space: nowrap;
|
|
337
294
|
overflow: hidden;
|
|
338
295
|
text-overflow: ellipsis;
|
|
@@ -349,8 +306,7 @@
|
|
|
349
306
|
margin: 0;
|
|
350
307
|
font-size: var(--ffe-fontsize-micro-text);
|
|
351
308
|
overflow-wrap: anywhere;
|
|
352
|
-
|
|
353
|
-
grid-row: 2;
|
|
309
|
+
grid-row: 2;
|
|
354
310
|
white-space: nowrap;
|
|
355
311
|
overflow: hidden;
|
|
356
312
|
text-overflow: ellipsis;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-file-upload",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "101.0.1",
|
|
4
4
|
"description": "File upload module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"build": "lessc less/file-upload.less css/file-upload.css --autoprefix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sb1/ffe-core": "^
|
|
24
|
-
"@sb1/ffe-form": "^
|
|
23
|
+
"@sb1/ffe-core": "^101.0.1",
|
|
24
|
+
"@sb1/ffe-form": "^101.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@sb1/ffe-buildtool": "^
|
|
27
|
+
"@sb1/ffe-buildtool": "^101.0.1"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "2f1f2f2f93e52a5fc5429cbe29538f6016702cf3"
|
|
33
33
|
}
|