@fiduswriter/frontend 0.1.49 → 0.1.51
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/dist/css/bibliography/forms.css +1 -1
- package/dist/css/fwtoolkit/colors.css +6 -1
- package/dist/css/fwtoolkit/forms.css +299 -2
- package/dist/css/fwtoolkit/fwtoolkit.css +345 -9
- package/dist/css/fwtoolkit/text.css +38 -0
- package/dist/css/fwtoolkit/two_pane_selector.css +0 -6
- package/dist/css/manifest.json +1 -0
- package/package.json +7 -7
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
--main-background-color: #f2f2f2;
|
|
4
4
|
--overlay-color: 170 170 170 / 0.3;
|
|
5
5
|
--input-focus-background-color: #fbf9d2;
|
|
6
|
-
--input-background-color: #
|
|
6
|
+
--input-background-color: #ffffff;
|
|
7
7
|
--input-border-color: #c8c8c8;
|
|
8
8
|
--input-dialog-border-color: #e0e0e0;
|
|
9
|
+
--select-background-color: #f3f3f3;
|
|
9
10
|
--wait-active-background-color: 240 240 240 / 0.7;
|
|
10
11
|
--wait-active-full-background-color: 240 240 240 / 1;
|
|
11
12
|
--alert-box-shadow-color: 240 240 240 / 1;
|
|
@@ -58,9 +59,13 @@
|
|
|
58
59
|
--cs-3-border: #7d331f;
|
|
59
60
|
|
|
60
61
|
/* light green text */
|
|
62
|
+
--cs-4-text: #4c6860;
|
|
61
63
|
|
|
62
64
|
/* white on light green */
|
|
63
65
|
--cs-5-background: #4c6860;
|
|
66
|
+
--cs-5-text: #ffffff;
|
|
67
|
+
--cs-5-border: #f2f2f2;
|
|
68
|
+
--cs-5-background-hover: #97cdbe;
|
|
64
69
|
|
|
65
70
|
/* white on dark green */
|
|
66
71
|
--cs-6-text: #ffffff;
|
|
@@ -52,11 +52,11 @@ textarea:focus {
|
|
|
52
52
|
border: 1px solid var(--input-dialog-border-color);
|
|
53
53
|
}
|
|
54
54
|
.fw-entry-field .ProseMirror {
|
|
55
|
-
border: 1px solid var(--
|
|
55
|
+
border: 1px solid var(--input-border-color);
|
|
56
56
|
border-radius: 4px;
|
|
57
57
|
min-height: 2.5rem;
|
|
58
58
|
padding: 0.25rem;
|
|
59
|
-
background: var(--
|
|
59
|
+
background: var(--input-background-color);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -118,3 +118,300 @@ textarea:focus {
|
|
|
118
118
|
.fw-button input[type="checkbox"] {
|
|
119
119
|
margin-right: 3px;
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
/* -----------------------------------------------------------------
|
|
123
|
+
* Override: remove the default border-bottom on form inputs
|
|
124
|
+
* ----------------------------------------------------------------- */
|
|
125
|
+
input[type="text"]:not(.fw-inline),
|
|
126
|
+
input[type="password"]:not(.fw-inline),
|
|
127
|
+
input[type="search"]:not(.fw-inline),
|
|
128
|
+
input[type="email"]:not(.fw-inline),
|
|
129
|
+
input[type="number"]:not(.fw-inline),
|
|
130
|
+
textarea {
|
|
131
|
+
border-bottom: 0 none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* -----------------------------------------------------------------
|
|
135
|
+
* Category form — narrow inline input next to an add button
|
|
136
|
+
* ----------------------------------------------------------------- */
|
|
137
|
+
input[type="text"].category-form {
|
|
138
|
+
width: calc(100% - 38px);
|
|
139
|
+
display: inline-block;
|
|
140
|
+
vertical-align: middle;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* -----------------------------------------------------------------
|
|
144
|
+
* Focus states — extend the base rules with :focus-within support
|
|
145
|
+
* ----------------------------------------------------------------- */
|
|
146
|
+
input[type="text"]:focus,
|
|
147
|
+
input[type="number"]:focus,
|
|
148
|
+
input[type="password"]:focus,
|
|
149
|
+
input[type="search"]:focus,
|
|
150
|
+
input[type="email"]:focus,
|
|
151
|
+
div.fw-input:focus-within,
|
|
152
|
+
textarea:focus {
|
|
153
|
+
background-color: var(--input-focus-background-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* -----------------------------------------------------------------
|
|
157
|
+
* Select containers
|
|
158
|
+
* ----------------------------------------------------------------- */
|
|
159
|
+
.fw-select-container select {
|
|
160
|
+
display: inline-block;
|
|
161
|
+
width: calc(100% - 22px);
|
|
162
|
+
appearance: none;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.fw-select-container select option.fw-placeholder {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.fw-select-container {
|
|
171
|
+
margin-bottom: 18px;
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.fw-select-container .fw-select-arrow {
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 14px;
|
|
178
|
+
right: 16px;
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* -----------------------------------------------------------------
|
|
183
|
+
* Entry field widths (ProseMirror inputs, selects)
|
|
184
|
+
* ----------------------------------------------------------------- */
|
|
185
|
+
.fw-entry-field .ProseMirror,
|
|
186
|
+
.fw-entry-field input[type="text"],
|
|
187
|
+
.fw-entry-field input[type="number"] {
|
|
188
|
+
width: 686px;
|
|
189
|
+
max-width: 80vw;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.fw-entry-field select {
|
|
193
|
+
padding: 0 3px 0 13px;
|
|
194
|
+
border: 0 none;
|
|
195
|
+
color: var(--cs-light-text);
|
|
196
|
+
background-color: var(--select-background-color);
|
|
197
|
+
height: 38px;
|
|
198
|
+
width: 561px;
|
|
199
|
+
appearance: none;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
display: inline-block;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.fw-entry-field select.fw-large {
|
|
205
|
+
width: 664px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* -----------------------------------------------------------------
|
|
209
|
+
* Form label
|
|
210
|
+
* ----------------------------------------------------------------- */
|
|
211
|
+
.form-label {
|
|
212
|
+
font-size: 11px;
|
|
213
|
+
font-weight: bold;
|
|
214
|
+
margin-bottom: 5px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* -----------------------------------------------------------------
|
|
218
|
+
* Name input fields (first name / last name pairs)
|
|
219
|
+
* ----------------------------------------------------------------- */
|
|
220
|
+
.fw-name-input {
|
|
221
|
+
width: 226px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.fw-name-input.fw-first {
|
|
225
|
+
margin-right: 23px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* -----------------------------------------------------------------
|
|
229
|
+
* Checkable table rows (app-specific positioning; base styles in
|
|
230
|
+
* fwtoolkit/css/checkable_list.css)
|
|
231
|
+
* ----------------------------------------------------------------- */
|
|
232
|
+
.fw-checkable-td,
|
|
233
|
+
.fw-checkable > td {
|
|
234
|
+
position: relative;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.fw-checkable-td.fw-checked::after,
|
|
238
|
+
tr.fw-checkable.fw-checked > td:last-child::after {
|
|
239
|
+
top: 17px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* -----------------------------------------------------------------
|
|
243
|
+
* Addable input list
|
|
244
|
+
* ----------------------------------------------------------------- */
|
|
245
|
+
.fw-add-input {
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
margin-left: 14px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fw-add-input::before {
|
|
251
|
+
width: 0.7em;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.fw-list-input {
|
|
255
|
+
margin-top: 7px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.fw-list-input:first-child {
|
|
259
|
+
margin-top: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* -----------------------------------------------------------------
|
|
263
|
+
* Form error
|
|
264
|
+
* ----------------------------------------------------------------- */
|
|
265
|
+
.fw-fomt-error {
|
|
266
|
+
color: #ff0000;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* -----------------------------------------------------------------
|
|
270
|
+
* AJAX file uploader
|
|
271
|
+
* ----------------------------------------------------------------- */
|
|
272
|
+
.ajax-upload input[type="file"] {
|
|
273
|
+
display: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ajax-upload-label {
|
|
277
|
+
margin-left: 10px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* -----------------------------------------------------------------
|
|
281
|
+
* Radio buttons
|
|
282
|
+
* ----------------------------------------------------------------- */
|
|
283
|
+
.fw-radio input[type="radio"] {
|
|
284
|
+
display: inline-block;
|
|
285
|
+
width: 40px;
|
|
286
|
+
margin-bottom: 20px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/* -----------------------------------------------------------------
|
|
290
|
+
* Type-switch field-part sizing overrides
|
|
291
|
+
* (Base type-switch styles are in fwtoolkit/css/type_switch.css)
|
|
292
|
+
* ----------------------------------------------------------------- */
|
|
293
|
+
.fw-type-switch-input-inner .field-part {
|
|
294
|
+
display: inline-block;
|
|
295
|
+
margin-right: 5px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.fw-type-switch-input-inner .field-part:last-child {
|
|
299
|
+
margin-right: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.field-part-short .ProseMirror {
|
|
303
|
+
width: 64px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.fw-type-switch-input-inner .field-part-huge input,
|
|
307
|
+
.fw-type-switch-input-inner .field-part-huge .ProseMirror {
|
|
308
|
+
width: 250px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.fw-type-switch-input-inner .field-part-long input,
|
|
312
|
+
.fw-type-switch-input-inner .field-part-long .ProseMirror {
|
|
313
|
+
width: 130px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.fw-type-switch-input-inner .field-part-single {
|
|
317
|
+
width: 100% !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.fw-type-switch-input-inner .field-part-single .ProseMirror {
|
|
321
|
+
width: 100%;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* -----------------------------------------------------------------
|
|
325
|
+
* Dialog table header cell sizing
|
|
326
|
+
* ----------------------------------------------------------------- */
|
|
327
|
+
.fw-dialog-table th {
|
|
328
|
+
vertical-align: top;
|
|
329
|
+
padding: 0 6px 0 8px;
|
|
330
|
+
width: 164px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* -----------------------------------------------------------------
|
|
334
|
+
* List input wrapper — add/remove buttons
|
|
335
|
+
* ----------------------------------------------------------------- */
|
|
336
|
+
.list-input-wrapper .add-remove-list {
|
|
337
|
+
display: inline-block;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
margin-left: 14px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.list-input-wrapper .add-remove-list::before {
|
|
343
|
+
content: "\2796";
|
|
344
|
+
width: 0.7em;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.list-input-wrapper:last-child .add-remove-list::before {
|
|
348
|
+
content: "\2795";
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* -----------------------------------------------------------------
|
|
352
|
+
* Responsive breakpoints
|
|
353
|
+
* ----------------------------------------------------------------- */
|
|
354
|
+
@media screen and (width <= 740px) {
|
|
355
|
+
.fw-entry-field .ProseMirror,
|
|
356
|
+
.fw-entry-field input[type="text"],
|
|
357
|
+
.fw-entry-field input[type="number"] {
|
|
358
|
+
max-width: 70vw;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.fw-type-switch-input-wrapper {
|
|
362
|
+
max-width: 70vw;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.tokenfield {
|
|
366
|
+
max-width: 70vw;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@media screen and (width <= 560px) {
|
|
371
|
+
.fw-entry-field .ProseMirror,
|
|
372
|
+
.fw-entry-field input[type="text"],
|
|
373
|
+
.fw-entry-field input[type="number"] {
|
|
374
|
+
max-width: 50vw;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.fw-type-switch-input-wrapper {
|
|
378
|
+
max-width: 50vw;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.tokenfield {
|
|
382
|
+
max-width: 50vw;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.fw-type-switch {
|
|
386
|
+
display: block;
|
|
387
|
+
margin-bottom: 5px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fw-type-switch-input-inner {
|
|
391
|
+
width: auto;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@media screen and (width <= 460px) {
|
|
396
|
+
.fw-entry-field .ProseMirror,
|
|
397
|
+
.fw-entry-field input[type="text"],
|
|
398
|
+
.fw-entry-field input[type="number"] {
|
|
399
|
+
max-width: 40vw;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.fw-type-switch-input-wrapper {
|
|
403
|
+
max-width: 40vw;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.tokenfield {
|
|
407
|
+
max-width: 40vw;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.fw-dialog-table th {
|
|
411
|
+
width: 140px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.fw-tabs-panel {
|
|
415
|
+
overflow-x: hidden;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
--main-background-color: #f2f2f2;
|
|
5
5
|
--overlay-color: 170 170 170 / 0.3;
|
|
6
6
|
--input-focus-background-color: #fbf9d2;
|
|
7
|
-
--input-background-color: #
|
|
7
|
+
--input-background-color: #ffffff;
|
|
8
8
|
--input-border-color: #c8c8c8;
|
|
9
9
|
--input-dialog-border-color: #e0e0e0;
|
|
10
|
+
--select-background-color: #f3f3f3;
|
|
10
11
|
--wait-active-background-color: 240 240 240 / 0.7;
|
|
11
12
|
--wait-active-full-background-color: 240 240 240 / 1;
|
|
12
13
|
--alert-box-shadow-color: 240 240 240 / 1;
|
|
@@ -59,9 +60,13 @@
|
|
|
59
60
|
--cs-3-border: #7d331f;
|
|
60
61
|
|
|
61
62
|
/* light green text */
|
|
63
|
+
--cs-4-text: #4c6860;
|
|
62
64
|
|
|
63
65
|
/* white on light green */
|
|
64
66
|
--cs-5-background: #4c6860;
|
|
67
|
+
--cs-5-text: #ffffff;
|
|
68
|
+
--cs-5-border: #f2f2f2;
|
|
69
|
+
--cs-5-background-hover: #97cdbe;
|
|
65
70
|
|
|
66
71
|
/* white on dark green */
|
|
67
72
|
--cs-6-text: #ffffff;
|
|
@@ -1744,11 +1749,11 @@ textarea:focus {
|
|
|
1744
1749
|
border: 1px solid var(--input-dialog-border-color);
|
|
1745
1750
|
}
|
|
1746
1751
|
.fw-entry-field .ProseMirror {
|
|
1747
|
-
border: 1px solid var(--
|
|
1752
|
+
border: 1px solid var(--input-border-color);
|
|
1748
1753
|
border-radius: 4px;
|
|
1749
1754
|
min-height: 2.5rem;
|
|
1750
1755
|
padding: 0.25rem;
|
|
1751
|
-
background: var(--
|
|
1756
|
+
background: var(--input-background-color);
|
|
1752
1757
|
}
|
|
1753
1758
|
|
|
1754
1759
|
/**
|
|
@@ -1811,6 +1816,303 @@ textarea:focus {
|
|
|
1811
1816
|
margin-right: 3px;
|
|
1812
1817
|
}
|
|
1813
1818
|
|
|
1819
|
+
/* -----------------------------------------------------------------
|
|
1820
|
+
* Override: remove the default border-bottom on form inputs
|
|
1821
|
+
* ----------------------------------------------------------------- */
|
|
1822
|
+
input[type="text"]:not(.fw-inline),
|
|
1823
|
+
input[type="password"]:not(.fw-inline),
|
|
1824
|
+
input[type="search"]:not(.fw-inline),
|
|
1825
|
+
input[type="email"]:not(.fw-inline),
|
|
1826
|
+
input[type="number"]:not(.fw-inline),
|
|
1827
|
+
textarea {
|
|
1828
|
+
border-bottom: 0 none;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/* -----------------------------------------------------------------
|
|
1832
|
+
* Category form — narrow inline input next to an add button
|
|
1833
|
+
* ----------------------------------------------------------------- */
|
|
1834
|
+
input[type="text"].category-form {
|
|
1835
|
+
width: calc(100% - 38px);
|
|
1836
|
+
display: inline-block;
|
|
1837
|
+
vertical-align: middle;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
/* -----------------------------------------------------------------
|
|
1841
|
+
* Focus states — extend the base rules with :focus-within support
|
|
1842
|
+
* ----------------------------------------------------------------- */
|
|
1843
|
+
input[type="text"]:focus,
|
|
1844
|
+
input[type="number"]:focus,
|
|
1845
|
+
input[type="password"]:focus,
|
|
1846
|
+
input[type="search"]:focus,
|
|
1847
|
+
input[type="email"]:focus,
|
|
1848
|
+
div.fw-input:focus-within,
|
|
1849
|
+
textarea:focus {
|
|
1850
|
+
background-color: var(--input-focus-background-color);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/* -----------------------------------------------------------------
|
|
1854
|
+
* Select containers
|
|
1855
|
+
* ----------------------------------------------------------------- */
|
|
1856
|
+
.fw-select-container select {
|
|
1857
|
+
display: inline-block;
|
|
1858
|
+
width: calc(100% - 22px);
|
|
1859
|
+
appearance: none;
|
|
1860
|
+
cursor: pointer;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
.fw-select-container select option.fw-placeholder {
|
|
1864
|
+
display: none;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.fw-select-container {
|
|
1868
|
+
margin-bottom: 18px;
|
|
1869
|
+
position: relative;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
.fw-select-container .fw-select-arrow {
|
|
1873
|
+
position: absolute;
|
|
1874
|
+
top: 14px;
|
|
1875
|
+
right: 16px;
|
|
1876
|
+
pointer-events: none;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/* -----------------------------------------------------------------
|
|
1880
|
+
* Entry field widths (ProseMirror inputs, selects)
|
|
1881
|
+
* ----------------------------------------------------------------- */
|
|
1882
|
+
.fw-entry-field .ProseMirror,
|
|
1883
|
+
.fw-entry-field input[type="text"],
|
|
1884
|
+
.fw-entry-field input[type="number"] {
|
|
1885
|
+
width: 686px;
|
|
1886
|
+
max-width: 80vw;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
.fw-entry-field select {
|
|
1890
|
+
padding: 0 3px 0 13px;
|
|
1891
|
+
border: 0 none;
|
|
1892
|
+
color: var(--cs-light-text);
|
|
1893
|
+
background-color: var(--select-background-color);
|
|
1894
|
+
height: 38px;
|
|
1895
|
+
width: 561px;
|
|
1896
|
+
appearance: none;
|
|
1897
|
+
cursor: pointer;
|
|
1898
|
+
display: inline-block;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
.fw-entry-field select.fw-large {
|
|
1902
|
+
width: 664px;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/* -----------------------------------------------------------------
|
|
1906
|
+
* Form label
|
|
1907
|
+
* ----------------------------------------------------------------- */
|
|
1908
|
+
.form-label {
|
|
1909
|
+
font-size: 11px;
|
|
1910
|
+
font-weight: bold;
|
|
1911
|
+
margin-bottom: 5px;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/* -----------------------------------------------------------------
|
|
1915
|
+
* Name input fields (first name / last name pairs)
|
|
1916
|
+
* ----------------------------------------------------------------- */
|
|
1917
|
+
.fw-name-input {
|
|
1918
|
+
width: 226px;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.fw-name-input.fw-first {
|
|
1922
|
+
margin-right: 23px;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/* -----------------------------------------------------------------
|
|
1926
|
+
* Checkable table rows (app-specific positioning; base styles in
|
|
1927
|
+
* fwtoolkit/css/checkable_list.css)
|
|
1928
|
+
* ----------------------------------------------------------------- */
|
|
1929
|
+
.fw-checkable-td,
|
|
1930
|
+
.fw-checkable > td {
|
|
1931
|
+
position: relative;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
.fw-checkable-td.fw-checked::after,
|
|
1935
|
+
tr.fw-checkable.fw-checked > td:last-child::after {
|
|
1936
|
+
top: 17px;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
/* -----------------------------------------------------------------
|
|
1940
|
+
* Addable input list
|
|
1941
|
+
* ----------------------------------------------------------------- */
|
|
1942
|
+
.fw-add-input {
|
|
1943
|
+
cursor: pointer;
|
|
1944
|
+
margin-left: 14px;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.fw-add-input::before {
|
|
1948
|
+
width: 0.7em;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.fw-list-input {
|
|
1952
|
+
margin-top: 7px;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.fw-list-input:first-child {
|
|
1956
|
+
margin-top: 0;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
/* -----------------------------------------------------------------
|
|
1960
|
+
* Form error
|
|
1961
|
+
* ----------------------------------------------------------------- */
|
|
1962
|
+
.fw-fomt-error {
|
|
1963
|
+
color: #ff0000;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
/* -----------------------------------------------------------------
|
|
1967
|
+
* AJAX file uploader
|
|
1968
|
+
* ----------------------------------------------------------------- */
|
|
1969
|
+
.ajax-upload input[type="file"] {
|
|
1970
|
+
display: none;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.ajax-upload-label {
|
|
1974
|
+
margin-left: 10px;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
/* -----------------------------------------------------------------
|
|
1978
|
+
* Radio buttons
|
|
1979
|
+
* ----------------------------------------------------------------- */
|
|
1980
|
+
.fw-radio input[type="radio"] {
|
|
1981
|
+
display: inline-block;
|
|
1982
|
+
width: 40px;
|
|
1983
|
+
margin-bottom: 20px;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
/* -----------------------------------------------------------------
|
|
1987
|
+
* Type-switch field-part sizing overrides
|
|
1988
|
+
* (Base type-switch styles are in fwtoolkit/css/type_switch.css)
|
|
1989
|
+
* ----------------------------------------------------------------- */
|
|
1990
|
+
.fw-type-switch-input-inner .field-part {
|
|
1991
|
+
display: inline-block;
|
|
1992
|
+
margin-right: 5px;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
.fw-type-switch-input-inner .field-part:last-child {
|
|
1996
|
+
margin-right: 0;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.field-part-short .ProseMirror {
|
|
2000
|
+
width: 64px;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
.fw-type-switch-input-inner .field-part-huge input,
|
|
2004
|
+
.fw-type-switch-input-inner .field-part-huge .ProseMirror {
|
|
2005
|
+
width: 250px;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
.fw-type-switch-input-inner .field-part-long input,
|
|
2009
|
+
.fw-type-switch-input-inner .field-part-long .ProseMirror {
|
|
2010
|
+
width: 130px;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
.fw-type-switch-input-inner .field-part-single {
|
|
2014
|
+
width: 100% !important;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
.fw-type-switch-input-inner .field-part-single .ProseMirror {
|
|
2018
|
+
width: 100%;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/* -----------------------------------------------------------------
|
|
2022
|
+
* Dialog table header cell sizing
|
|
2023
|
+
* ----------------------------------------------------------------- */
|
|
2024
|
+
.fw-dialog-table th {
|
|
2025
|
+
vertical-align: top;
|
|
2026
|
+
padding: 0 6px 0 8px;
|
|
2027
|
+
width: 164px;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
/* -----------------------------------------------------------------
|
|
2031
|
+
* List input wrapper — add/remove buttons
|
|
2032
|
+
* ----------------------------------------------------------------- */
|
|
2033
|
+
.list-input-wrapper .add-remove-list {
|
|
2034
|
+
display: inline-block;
|
|
2035
|
+
cursor: pointer;
|
|
2036
|
+
margin-left: 14px;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
.list-input-wrapper .add-remove-list::before {
|
|
2040
|
+
content: "\2796";
|
|
2041
|
+
width: 0.7em;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.list-input-wrapper:last-child .add-remove-list::before {
|
|
2045
|
+
content: "\2795";
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
/* -----------------------------------------------------------------
|
|
2049
|
+
* Responsive breakpoints
|
|
2050
|
+
* ----------------------------------------------------------------- */
|
|
2051
|
+
@media screen and (width <= 740px) {
|
|
2052
|
+
.fw-entry-field .ProseMirror,
|
|
2053
|
+
.fw-entry-field input[type="text"],
|
|
2054
|
+
.fw-entry-field input[type="number"] {
|
|
2055
|
+
max-width: 70vw;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
.fw-type-switch-input-wrapper {
|
|
2059
|
+
max-width: 70vw;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
.tokenfield {
|
|
2063
|
+
max-width: 70vw;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
@media screen and (width <= 560px) {
|
|
2068
|
+
.fw-entry-field .ProseMirror,
|
|
2069
|
+
.fw-entry-field input[type="text"],
|
|
2070
|
+
.fw-entry-field input[type="number"] {
|
|
2071
|
+
max-width: 50vw;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.fw-type-switch-input-wrapper {
|
|
2075
|
+
max-width: 50vw;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
.tokenfield {
|
|
2079
|
+
max-width: 50vw;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
.fw-type-switch {
|
|
2083
|
+
display: block;
|
|
2084
|
+
margin-bottom: 5px;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
.fw-type-switch-input-inner {
|
|
2088
|
+
width: auto;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
@media screen and (width <= 460px) {
|
|
2093
|
+
.fw-entry-field .ProseMirror,
|
|
2094
|
+
.fw-entry-field input[type="text"],
|
|
2095
|
+
.fw-entry-field input[type="number"] {
|
|
2096
|
+
max-width: 40vw;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
.fw-type-switch-input-wrapper {
|
|
2100
|
+
max-width: 40vw;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
.tokenfield {
|
|
2104
|
+
max-width: 40vw;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
.fw-dialog-table th {
|
|
2108
|
+
width: 140px;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
.fw-tabs-panel {
|
|
2112
|
+
overflow-x: hidden;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
|
|
1814
2116
|
/* === inline_tools.css === */
|
|
1815
2117
|
.inline-tools {
|
|
1816
2118
|
position: absolute;
|
|
@@ -2479,6 +2781,46 @@ span.select-action-dropdown {
|
|
|
2479
2781
|
display: none;
|
|
2480
2782
|
}
|
|
2481
2783
|
|
|
2784
|
+
/* === text.css === */
|
|
2785
|
+
.fw-basic-text {
|
|
2786
|
+
font-family: Lato, sans-serif;
|
|
2787
|
+
font-size: 13px;
|
|
2788
|
+
line-height: 1.33em;
|
|
2789
|
+
color: var(--cs-1-hover);
|
|
2790
|
+
font-weight: 400;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
a,
|
|
2794
|
+
.fw-link-text {
|
|
2795
|
+
cursor: pointer;
|
|
2796
|
+
color: var(--cs-1-text);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
a:hover,
|
|
2800
|
+
.fw-link-text:hover {
|
|
2801
|
+
cursor: pointer;
|
|
2802
|
+
color: var(--cs-1-hover);
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
.fw-header-text {
|
|
2806
|
+
color: var(--cs-5-text);
|
|
2807
|
+
font-size: 14px;
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
.fw-header-navigation-text {
|
|
2811
|
+
color: var(--cs-5-text);
|
|
2812
|
+
font-weight: 400;
|
|
2813
|
+
letter-spacing: 0.6px;
|
|
2814
|
+
text-transform: uppercase;
|
|
2815
|
+
font-size: 15px;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
.fw-green-title {
|
|
2819
|
+
font-size: 14px;
|
|
2820
|
+
font-weight: 700;
|
|
2821
|
+
color: var(--cs-4-text);
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2482
2824
|
/* === two_pane_selector.css === */
|
|
2483
2825
|
.fw-ar-container {
|
|
2484
2826
|
display: inline-block;
|
|
@@ -2499,12 +2841,6 @@ span.select-action-dropdown {
|
|
|
2499
2841
|
cursor: pointer;
|
|
2500
2842
|
}
|
|
2501
2843
|
|
|
2502
|
-
.fw-green-title {
|
|
2503
|
-
font-size: 14px;
|
|
2504
|
-
font-weight: 700;
|
|
2505
|
-
color: var(--cs-4-text);
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
2844
|
.fw-two-pane-selector {
|
|
2509
2845
|
display: flex;
|
|
2510
2846
|
align-items: center;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.fw-basic-text {
|
|
2
|
+
font-family: Lato, sans-serif;
|
|
3
|
+
font-size: 13px;
|
|
4
|
+
line-height: 1.33em;
|
|
5
|
+
color: var(--cs-1-hover);
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a,
|
|
10
|
+
.fw-link-text {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
color: var(--cs-1-text);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
a:hover,
|
|
16
|
+
.fw-link-text:hover {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
color: var(--cs-1-hover);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.fw-header-text {
|
|
22
|
+
color: var(--cs-5-text);
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fw-header-navigation-text {
|
|
27
|
+
color: var(--cs-5-text);
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
letter-spacing: 0.6px;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
font-size: 15px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fw-green-title {
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
color: var(--cs-4-text);
|
|
38
|
+
}
|
package/dist/css/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiduswriter/frontend",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"description": "Fidus Writer-specific shared utilities and UI chrome",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fiduswriter",
|
|
@@ -210,13 +210,13 @@
|
|
|
210
210
|
"postinstall": "node scripts/aggregate-assets.js"
|
|
211
211
|
},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"@fiduswriter/bibliography-manager": "^0.1.
|
|
214
|
-
"@fiduswriter/document": "^0.2.
|
|
215
|
-
"@fiduswriter/document-template-editor": "^0.1.
|
|
216
|
-
"@fiduswriter/editor": "^0.1.
|
|
217
|
-
"@fiduswriter/image-manager": "^0.1.
|
|
213
|
+
"@fiduswriter/bibliography-manager": "^0.1.31",
|
|
214
|
+
"@fiduswriter/document": "^0.2.43",
|
|
215
|
+
"@fiduswriter/document-template-editor": "^0.1.17",
|
|
216
|
+
"@fiduswriter/editor": "^0.1.81",
|
|
217
|
+
"@fiduswriter/image-manager": "^0.1.23",
|
|
218
218
|
"downloadjs": "^1.4.7",
|
|
219
|
-
"fwtoolkit": "^0.2.
|
|
219
|
+
"fwtoolkit": "^0.2.14",
|
|
220
220
|
"jszip": "^3.10.1",
|
|
221
221
|
"prosemirror-history": "^1.3.2",
|
|
222
222
|
"prosemirror-keymap": "^1.2.2",
|