@sb1/ffe-file-upload 7.0.17 → 7.1.0
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/less/ffe-file-upload.less +262 -0
- package/less/file-upload.less +2 -341
- package/less/theme.less +21 -0
- package/package.json +2 -2
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
.ffe-file-upload {
|
|
2
|
+
margin-top: @ffe-spacing-2xl;
|
|
3
|
+
display: grid;
|
|
4
|
+
max-width: 400px;
|
|
5
|
+
grid-template-columns: 1fr;
|
|
6
|
+
font-family: var(--ffe-g-font);
|
|
7
|
+
|
|
8
|
+
@media (min-width: @breakpoint-md) {
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__title {
|
|
13
|
+
font-family: var(--ffe-g-font-heading-small);
|
|
14
|
+
font-size: var(--ffe-fontsize-h5);
|
|
15
|
+
color: var(--ffe-g-heading-color);
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
input[type='file'] {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__info-section {
|
|
24
|
+
.ffe-body-text();
|
|
25
|
+
|
|
26
|
+
margin-bottom: @ffe-spacing-md;
|
|
27
|
+
grid-row: 2;
|
|
28
|
+
|
|
29
|
+
@media (min-width: @breakpoint-md) {
|
|
30
|
+
margin-right: @ffe-spacing-md;
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
grid-column: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__info-section-text {
|
|
37
|
+
margin-bottom: @ffe-spacing-sm;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__file-items-section {
|
|
41
|
+
margin-top: @ffe-spacing-sm;
|
|
42
|
+
line-height: 2.1875rem;
|
|
43
|
+
grid-row: 4;
|
|
44
|
+
|
|
45
|
+
@media (min-width: @breakpoint-md) {
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
grid-row: 2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
li {
|
|
51
|
+
display: grid;
|
|
52
|
+
grid-template-columns: 1fr;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__upload-section {
|
|
57
|
+
height: 150px;
|
|
58
|
+
background-color: var(--ffe-v-fileupload-bgcolor);
|
|
59
|
+
border-radius: 10px;
|
|
60
|
+
text-align: center;
|
|
61
|
+
padding: @ffe-spacing-2xs;
|
|
62
|
+
grid-row: 3;
|
|
63
|
+
|
|
64
|
+
@media (min-width: @breakpoint-md) {
|
|
65
|
+
margin-top: 0;
|
|
66
|
+
height: 220px;
|
|
67
|
+
width: 280px;
|
|
68
|
+
padding: 0;
|
|
69
|
+
grid-row: 2;
|
|
70
|
+
grid-column: 2;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__upload-section-border {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
align-items: center;
|
|
79
|
+
height: 140px;
|
|
80
|
+
margin: @ffe-spacing-2xs;
|
|
81
|
+
padding: 0 @ffe-spacing-lg;
|
|
82
|
+
border: 2px dashed var(--ffe-v-fileupload-bordercolor);
|
|
83
|
+
border-radius: 10px;
|
|
84
|
+
position: relative;
|
|
85
|
+
width: 100%;
|
|
86
|
+
right: 5px;
|
|
87
|
+
bottom: 5px;
|
|
88
|
+
|
|
89
|
+
@media (min-width: @breakpoint-md) {
|
|
90
|
+
width: 270px;
|
|
91
|
+
height: 210px;
|
|
92
|
+
right: 0;
|
|
93
|
+
bottom: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&--hover {
|
|
97
|
+
opacity: 0.5;
|
|
98
|
+
border-style: solid;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__upload-section-title {
|
|
103
|
+
font-family: var(--ffe-g-font-heading-small);
|
|
104
|
+
font-size: var(--ffe-fontsize-h5);
|
|
105
|
+
color: var(--ffe-g-heading-color);
|
|
106
|
+
margin-bottom: @ffe-spacing-xs;
|
|
107
|
+
display: none;
|
|
108
|
+
|
|
109
|
+
@media (min-width: @breakpoint-md) {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__upload-section-microtext {
|
|
115
|
+
.ffe-micro-text();
|
|
116
|
+
|
|
117
|
+
display: none;
|
|
118
|
+
|
|
119
|
+
@media (min-width: @breakpoint-md) {
|
|
120
|
+
display: block;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__upload-section-subtext {
|
|
125
|
+
.ffe-small-text();
|
|
126
|
+
|
|
127
|
+
margin-top: @ffe-spacing-xs;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&__file-item-delete-icon {
|
|
131
|
+
right: 0;
|
|
132
|
+
content: '';
|
|
133
|
+
display: inline-block;
|
|
134
|
+
position: absolute;
|
|
135
|
+
background-color: currentColor;
|
|
136
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 200 200'%3E%3Cpath d='M18.77,0c-3.562,0-7.125,1.347-9.834,4.044l-4.429,4.439c-5.381,5.394-5.381,14.25,0,19.68l71.19,71.83-71.66,71.83c-5.381,5.394-5.381,14.25,0,19.68l4.429,4.439c5.381,5.394,14.22,5.394,19.64,0l71.66-71.83,71.65,71.83c5.381,5.394,14.23,5.394,19.65,0l4.429-4.439c5.381-5.394,5.381-14.25,0-19.68l-71.19-71.83,71.66-71.83c5.381-4.914,5.381-13.78,0-19.21l-4.429-4.423c-5.381-5.394-14.22-5.394-19.64,0l-72.13,71.34-71.17-71.83c-2.691-2.697-6.257-4.044-9.819-4.044z'/%3E%3C/svg%3E");
|
|
137
|
+
height: 14px;
|
|
138
|
+
width: 14px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&__file-item-delete-button {
|
|
142
|
+
padding-right: @ffe-spacing-sm;
|
|
143
|
+
padding-top: @ffe-spacing-2xs;
|
|
144
|
+
margin-left: auto;
|
|
145
|
+
background-color: transparent;
|
|
146
|
+
border: none;
|
|
147
|
+
line-height: 1.125rem;
|
|
148
|
+
position: relative;
|
|
149
|
+
color: var(--ffe-v-fileupload-btn-delete-color);
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
font-size: 0.875rem;
|
|
152
|
+
grid-column: 3;
|
|
153
|
+
grid-row: 1;
|
|
154
|
+
|
|
155
|
+
@media (min-width: @breakpoint-md) {
|
|
156
|
+
margin-right: @ffe-spacing-sm;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&:active,
|
|
160
|
+
&:focus,
|
|
161
|
+
&:hover {
|
|
162
|
+
text-decoration: underline;
|
|
163
|
+
color: var(--ffe-v-fileupload-btn-delete-color-hover);
|
|
164
|
+
|
|
165
|
+
~ .ffe-file-upload__file-item-filename {
|
|
166
|
+
text-decoration: underline;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
~ .ffe-file-upload__file-item-error-info
|
|
170
|
+
> .ffe-file-upload__file-item-error-filename {
|
|
171
|
+
text-decoration: underline;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
~ .ffe-file-upload__file-item-stencil-info
|
|
175
|
+
> .ffe-file-upload__file-item-stencil-info-filename {
|
|
176
|
+
text-decoration: underline;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__file-item-stencil {
|
|
182
|
+
display: grid;
|
|
183
|
+
grid-template-columns: 1fr;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__file-item-stencil-info {
|
|
187
|
+
display: grid;
|
|
188
|
+
grid-column: 1;
|
|
189
|
+
grid-row: 1;
|
|
190
|
+
grid-template-columns: 1fr;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&__file-item-stencil-info-background {
|
|
195
|
+
height: 10px;
|
|
196
|
+
border-radius: 5px;
|
|
197
|
+
background-color: var(--ffe-v-fileupload-stencil-bg);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&__file-item-stencil-info-filename {
|
|
201
|
+
.ffe-micro-text();
|
|
202
|
+
|
|
203
|
+
margin-top: @ffe-spacing-2xs;
|
|
204
|
+
white-space: nowrap;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
text-overflow: ellipsis;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&__file-item-loaded {
|
|
210
|
+
display: grid;
|
|
211
|
+
grid-template-columns: 1fr;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&__file-item-filename {
|
|
215
|
+
grid-row: 1;
|
|
216
|
+
grid-column: 1;
|
|
217
|
+
white-space: nowrap;
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
text-overflow: ellipsis;
|
|
220
|
+
margin-top: 2px;
|
|
221
|
+
color: var(--ffe-v-fileupload-filename-color);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&__file-item-error {
|
|
225
|
+
display: grid;
|
|
226
|
+
grid-gap: 5px;
|
|
227
|
+
grid-template-columns: 25px 1fr;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__file-item-error-icon {
|
|
231
|
+
.ffe-field-error-message();
|
|
232
|
+
|
|
233
|
+
grid-column: 1;
|
|
234
|
+
grid-row: 1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&__file-item-error-info {
|
|
238
|
+
display: grid;
|
|
239
|
+
grid-row: 1;
|
|
240
|
+
grid-column: 2;
|
|
241
|
+
grid-template-columns: 1fr;
|
|
242
|
+
align-content: center;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__file-item-error-filename {
|
|
246
|
+
.ffe-micro-text();
|
|
247
|
+
|
|
248
|
+
grid-row: 1;
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
text-overflow: ellipsis;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&__file-item-error-message {
|
|
255
|
+
.ffe-micro-text();
|
|
256
|
+
|
|
257
|
+
grid-row: 2;
|
|
258
|
+
white-space: nowrap;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
text-overflow: ellipsis;
|
|
261
|
+
}
|
|
262
|
+
}
|
package/less/file-upload.less
CHANGED
|
@@ -1,341 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
display: grid;
|
|
4
|
-
max-width: 400px;
|
|
5
|
-
grid-template-columns: 1fr;
|
|
6
|
-
|
|
7
|
-
@media (min-width: @breakpoint-md) {
|
|
8
|
-
max-width: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&__title {
|
|
12
|
-
&:extend(.ffe-h5);
|
|
13
|
-
.native & {
|
|
14
|
-
@media (prefers-color-scheme: dark) {
|
|
15
|
-
color: @ffe-farge-hvit;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
margin-bottom: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
input[type='file'] {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__info-section {
|
|
27
|
-
.ffe-body-text();
|
|
28
|
-
|
|
29
|
-
margin-bottom: @ffe-spacing-md;
|
|
30
|
-
grid-row: 2;
|
|
31
|
-
|
|
32
|
-
@media (min-width: @breakpoint-md) {
|
|
33
|
-
margin-right: @ffe-spacing-md;
|
|
34
|
-
margin-bottom: 0;
|
|
35
|
-
grid-column: 1;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__info-section-text {
|
|
40
|
-
margin-bottom: @ffe-spacing-sm;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__file-items-section {
|
|
44
|
-
margin-top: @ffe-spacing-sm;
|
|
45
|
-
line-height: 2.1875rem;
|
|
46
|
-
grid-row: 4;
|
|
47
|
-
|
|
48
|
-
@media (min-width: @breakpoint-md) {
|
|
49
|
-
margin-top: 0;
|
|
50
|
-
grid-row: 2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
li {
|
|
54
|
-
display: grid;
|
|
55
|
-
grid-template-columns: 1fr;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__upload-section {
|
|
60
|
-
height: 150px;
|
|
61
|
-
background-color: @ffe-farge-frost-30;
|
|
62
|
-
border-radius: 10px;
|
|
63
|
-
text-align: center;
|
|
64
|
-
padding: @ffe-spacing-2xs;
|
|
65
|
-
grid-row: 3;
|
|
66
|
-
.native & {
|
|
67
|
-
@media (prefers-color-scheme: dark) {
|
|
68
|
-
background-color: @ffe-farge-svart;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@media (min-width: @breakpoint-md) {
|
|
73
|
-
margin-top: 0;
|
|
74
|
-
height: 220px;
|
|
75
|
-
width: 280px;
|
|
76
|
-
padding: 0;
|
|
77
|
-
grid-row: 2;
|
|
78
|
-
grid-column: 2;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__upload-section-border {
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
align-items: center;
|
|
87
|
-
height: 140px;
|
|
88
|
-
margin: @ffe-spacing-2xs;
|
|
89
|
-
padding: 0 @ffe-spacing-lg;
|
|
90
|
-
border: 2px dashed @ffe-farge-vann;
|
|
91
|
-
border-radius: 10px;
|
|
92
|
-
position: relative;
|
|
93
|
-
width: 100%;
|
|
94
|
-
right: 5px;
|
|
95
|
-
bottom: 5px;
|
|
96
|
-
.native & {
|
|
97
|
-
@media (prefers-color-scheme: dark) {
|
|
98
|
-
border-color: @ffe-farge-vann-30;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (min-width: @breakpoint-md) {
|
|
103
|
-
width: 270px;
|
|
104
|
-
height: 210px;
|
|
105
|
-
right: 0;
|
|
106
|
-
bottom: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&--hover {
|
|
110
|
-
opacity: 0.5;
|
|
111
|
-
border-style: solid;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&__upload-section-title {
|
|
116
|
-
&:extend(.ffe-h5);
|
|
117
|
-
.native & {
|
|
118
|
-
@media (prefers-color-scheme: dark) {
|
|
119
|
-
color: @ffe-farge-vann-30;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
margin-bottom: @ffe-spacing-xs;
|
|
124
|
-
display: none;
|
|
125
|
-
|
|
126
|
-
@media (min-width: @breakpoint-md) {
|
|
127
|
-
display: block;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&__upload-section-microtext {
|
|
132
|
-
&:extend(.ffe-micro-text);
|
|
133
|
-
.native & {
|
|
134
|
-
@media (prefers-color-scheme: dark) {
|
|
135
|
-
color: @ffe-farge-graa;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
display: none;
|
|
140
|
-
|
|
141
|
-
@media (min-width: @breakpoint-md) {
|
|
142
|
-
display: block;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&__upload-section-subtext {
|
|
147
|
-
&:extend(.ffe-small-text);
|
|
148
|
-
.native & {
|
|
149
|
-
@media (prefers-color-scheme: dark) {
|
|
150
|
-
color: @ffe-farge-graa;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
margin-top: @ffe-spacing-xs;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&__file-item-delete-icon {
|
|
158
|
-
right: 0;
|
|
159
|
-
content: '';
|
|
160
|
-
display: inline-block;
|
|
161
|
-
position: absolute;
|
|
162
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 200 200'%3E%3Cpath fill='%23005aa4' d='M18.77,0c-3.562,0-7.125,1.347-9.834,4.044l-4.429,4.439c-5.381,5.394-5.381,14.25,0,19.68l71.19,71.83-71.66,71.83c-5.381,5.394-5.381,14.25,0,19.68l4.429,4.439c5.381,5.394,14.22,5.394,19.64,0l71.66-71.83,71.65,71.83c5.381,5.394,14.23,5.394,19.65,0l4.429-4.439c5.381-5.394,5.381-14.25,0-19.68l-71.19-71.83,71.66-71.83c5.381-4.914,5.381-13.78,0-19.21l-4.429-4.423c-5.381-5.394-14.22-5.394-19.64,0l-72.13,71.34-71.17-71.83c-2.691-2.697-6.257-4.044-9.819-4.044z'/%3E%3C/svg%3E");
|
|
163
|
-
height: 14px;
|
|
164
|
-
width: 14px;
|
|
165
|
-
.native & {
|
|
166
|
-
@media (prefers-color-scheme: dark) {
|
|
167
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 200 200'%3E%3Cpath fill='%23b3cee4' d='M18.77,0c-3.562,0-7.125,1.347-9.834,4.044l-4.429,4.439c-5.381,5.394-5.381,14.25,0,19.68l71.19,71.83-71.66,71.83c-5.381,5.394-5.381,14.25,0,19.68l4.429,4.439c5.381,5.394,14.22,5.394,19.64,0l71.66-71.83,71.65,71.83c5.381,5.394,14.23,5.394,19.65,0l4.429-4.439c5.381-5.394,5.381-14.25,0-19.68l-71.19-71.83,71.66-71.83c5.381-4.914,5.381-13.78,0-19.21l-4.429-4.423c-5.381-5.394-14.22-5.394-19.64,0l-72.13,71.34-71.17-71.83c-2.691-2.697-6.257-4.044-9.819-4.044z'/%3E%3C/svg%3E");
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&__file-item-delete-button {
|
|
173
|
-
padding-right: @ffe-spacing-sm;
|
|
174
|
-
padding-top: @ffe-spacing-2xs;
|
|
175
|
-
margin-left: auto;
|
|
176
|
-
background-color: transparent;
|
|
177
|
-
border: none;
|
|
178
|
-
line-height: 1.125rem;
|
|
179
|
-
position: relative;
|
|
180
|
-
color: @ffe-farge-vann;
|
|
181
|
-
font-size: 0.875rem;
|
|
182
|
-
grid-column: 3;
|
|
183
|
-
grid-row: 1;
|
|
184
|
-
.native & {
|
|
185
|
-
@media (prefers-color-scheme: dark) {
|
|
186
|
-
color: @ffe-farge-vann-30;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@media (min-width: @breakpoint-md) {
|
|
191
|
-
margin-right: @ffe-spacing-sm;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&:active,
|
|
195
|
-
&:focus,
|
|
196
|
-
&:hover {
|
|
197
|
-
text-decoration: underline;
|
|
198
|
-
color: @ffe-farge-frost-30;
|
|
199
|
-
.native & {
|
|
200
|
-
@media (prefers-color-scheme: dark) {
|
|
201
|
-
color: @ffe-farge-hvit;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
> .ffe-file-upload__file-item-delete-icon {
|
|
206
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 200 200'%3E%3Cpath fill='%23002776' d='M18.77,0c-3.562,0-7.125,1.347-9.834,4.044l-4.429,4.439c-5.381,5.394-5.381,14.25,0,19.68l71.19,71.83-71.66,71.83c-5.381,5.394-5.381,14.25,0,19.68l4.429,4.439c5.381,5.394,14.22,5.394,19.64,0l71.66-71.83,71.65,71.83c5.381,5.394,14.23,5.394,19.65,0l4.429-4.439c5.381-5.394,5.381-14.25,0-19.68l-71.19-71.83,71.66-71.83c5.381-4.914,5.381-13.78,0-19.21l-4.429-4.423c-5.381-5.394-14.22-5.394-19.64,0l-72.13,71.34-71.17-71.83c-2.691-2.697-6.257-4.044-9.819-4.044z'/%3E%3C/svg%3E");
|
|
207
|
-
.native & {
|
|
208
|
-
@media (prefers-color-scheme: dark) {
|
|
209
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffffff' d='M18.77,0c-3.562,0-7.125,1.347-9.834,4.044l-4.429,4.439c-5.381,5.394-5.381,14.25,0,19.68l71.19,71.83-71.66,71.83c-5.381,5.394-5.381,14.25,0,19.68l4.429,4.439c5.381,5.394,14.22,5.394,19.64,0l71.66-71.83,71.65,71.83c5.381,5.394,14.23,5.394,19.65,0l4.429-4.439c5.381-5.394,5.381-14.25,0-19.68l-71.19-71.83,71.66-71.83c5.381-4.914,5.381-13.78,0-19.21l-4.429-4.423c-5.381-5.394-14.22-5.394-19.64,0l-72.13,71.34-71.17-71.83c-2.691-2.697-6.257-4.044-9.819-4.044z'/%3E%3C/svg%3E");
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
~ .ffe-file-upload__file-item-filename {
|
|
215
|
-
text-decoration: underline;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
~ .ffe-file-upload__file-item-error-info
|
|
219
|
-
> .ffe-file-upload__file-item-error-filename {
|
|
220
|
-
text-decoration: underline;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
~ .ffe-file-upload__file-item-stencil-info
|
|
224
|
-
> .ffe-file-upload__file-item-stencil-info-filename {
|
|
225
|
-
text-decoration: underline;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&__file-item-stencil {
|
|
231
|
-
display: grid;
|
|
232
|
-
grid-template-columns: 1fr;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&__file-item-stencil-info {
|
|
236
|
-
display: grid;
|
|
237
|
-
grid-column: 1;
|
|
238
|
-
grid-row: 1;
|
|
239
|
-
grid-template-columns: 1fr;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&__file-item-stencil-info-background {
|
|
244
|
-
height: 10px;
|
|
245
|
-
border-radius: 5px;
|
|
246
|
-
background-color: @ffe-farge-frost-30;
|
|
247
|
-
.native & {
|
|
248
|
-
@media (prefers-color-scheme: dark) {
|
|
249
|
-
background-color: @ffe-farge-svart;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&__file-item-stencil-info-filename {
|
|
255
|
-
&:extend(.ffe-micro-text);
|
|
256
|
-
.native & {
|
|
257
|
-
@media (prefers-color-scheme: dark) {
|
|
258
|
-
color: @ffe-farge-hvit;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
margin-top: @ffe-spacing-2xs;
|
|
263
|
-
white-space: nowrap;
|
|
264
|
-
overflow: hidden;
|
|
265
|
-
text-overflow: ellipsis;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
&__file-item-loaded {
|
|
269
|
-
display: grid;
|
|
270
|
-
grid-template-columns: 1fr;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&__file-item-filename {
|
|
274
|
-
grid-row: 1;
|
|
275
|
-
grid-column: 1;
|
|
276
|
-
white-space: nowrap;
|
|
277
|
-
overflow: hidden;
|
|
278
|
-
text-overflow: ellipsis;
|
|
279
|
-
margin-top: 2px;
|
|
280
|
-
color: @ffe-farge-fjell;
|
|
281
|
-
.native & {
|
|
282
|
-
@media (prefers-color-scheme: dark) {
|
|
283
|
-
color: @ffe-farge-vann-30;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
&__file-item-error {
|
|
289
|
-
display: grid;
|
|
290
|
-
grid-gap: 5px;
|
|
291
|
-
grid-template-columns: 25px 1fr;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
&__file-item-error-icon {
|
|
295
|
-
&:extend(.ffe-field-error-message);
|
|
296
|
-
.native & {
|
|
297
|
-
@media (prefers-color-scheme: dark) {
|
|
298
|
-
color: @ffe-farge-hvit;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
grid-column: 1;
|
|
303
|
-
grid-row: 1;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&__file-item-error-info {
|
|
307
|
-
display: grid;
|
|
308
|
-
grid-row: 1;
|
|
309
|
-
grid-column: 2;
|
|
310
|
-
grid-template-columns: 1fr;
|
|
311
|
-
align-content: center;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
&__file-item-error-filename {
|
|
315
|
-
&:extend(.ffe-micro-text);
|
|
316
|
-
.native & {
|
|
317
|
-
@media (prefers-color-scheme: dark) {
|
|
318
|
-
color: @ffe-farge-hvit;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
grid-row: 1;
|
|
323
|
-
white-space: nowrap;
|
|
324
|
-
overflow: hidden;
|
|
325
|
-
text-overflow: ellipsis;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
&__file-item-error-message {
|
|
329
|
-
&:extend(.ffe-micro-text);
|
|
330
|
-
.native & {
|
|
331
|
-
@media (prefers-color-scheme: dark) {
|
|
332
|
-
color: @ffe-farge-hvit;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
grid-row: 2;
|
|
337
|
-
white-space: nowrap;
|
|
338
|
-
overflow: hidden;
|
|
339
|
-
text-overflow: ellipsis;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
1
|
+
@import 'theme';
|
|
2
|
+
@import 'ffe-file-upload';
|
package/less/theme.less
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ffe-v-fileupload-bgcolor: var(--ffe-farge-frost-30);
|
|
3
|
+
--ffe-v-fileupload-bordercolor: var(--ffe-farge-vann);
|
|
4
|
+
--ffe-v-fileupload-btn-delete-color: var(--ffe-g-link-color);
|
|
5
|
+
--ffe-v-fileupload-btn-delete-color-hover: var(--ffe-g-link-color-hover);
|
|
6
|
+
--ffe-v-fileupload-stencil-bg: var(--ffe-farge-frost-30);
|
|
7
|
+
--ffe-v-fileupload-filename-color: var(--ffe-farge-fjell);
|
|
8
|
+
|
|
9
|
+
@media (prefers-color-scheme: dark) {
|
|
10
|
+
.native {
|
|
11
|
+
--ffe-v-fileupload-bgcolor: var(--ffe-farge-svart);
|
|
12
|
+
--ffe-v-fileupload-bordercolor: var(--ffe-farge-vann-30);
|
|
13
|
+
--ffe-v-fileupload-btn-delete-color: var(--ffe-g-link-color);
|
|
14
|
+
--ffe-v-fileupload-btn-delete-color-hover: var(
|
|
15
|
+
--ffe-g-link-color-hover
|
|
16
|
+
);
|
|
17
|
+
--ffe-v-fileupload-stencil-bg: var(--ffe-farge-frost-70);
|
|
18
|
+
--ffe-v-fileupload-filename-color: var(--ffe-farge-vann-30);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-file-upload",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "File upload module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b3c9bbb4f13e42292ae86b8559ee1378fc8b1783"
|
|
30
30
|
}
|