@fiduswriter/frontend 0.1.68 → 0.1.69
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/two_factor.css +0 -52
- package/css/user_template_manager.css +6 -0
- package/dist/css/bibliography/colors.css +0 -4
- package/dist/css/bibliography/forms.css +3 -61
- package/dist/css/document-template-editor/document_template_designer.css +68 -68
- package/dist/css/fwtoolkit/action_chooser_dialog.css +66 -0
- package/dist/css/fwtoolkit/action_toolbar.css +132 -0
- package/dist/css/fwtoolkit/alerts.css +53 -19
- package/dist/css/fwtoolkit/application_menu_controller.css +28 -0
- package/dist/css/fwtoolkit/attachment_field.css +19 -0
- package/dist/css/fwtoolkit/attachment_list.css +118 -0
- package/dist/css/fwtoolkit/avatar_label.css +80 -0
- package/dist/css/fwtoolkit/boolean_switch.css +128 -0
- package/dist/css/fwtoolkit/buttons.css +181 -85
- package/dist/css/fwtoolkit/category_filter_controller.css +11 -0
- package/dist/css/fwtoolkit/checkable_list.css +39 -6
- package/dist/css/fwtoolkit/colors.css +71 -69
- package/dist/css/fwtoolkit/common.css +49 -17
- package/dist/css/fwtoolkit/content_menu.css +49 -27
- package/dist/css/fwtoolkit/data_table.css +278 -41
- package/dist/css/fwtoolkit/datatable_bulk.css +106 -0
- package/dist/css/fwtoolkit/destination_settings_form.css +67 -0
- package/dist/css/fwtoolkit/dialog.css +100 -25
- package/dist/css/fwtoolkit/dialog_presets.css +157 -0
- package/dist/css/fwtoolkit/dialog_table.css +63 -26
- package/dist/css/fwtoolkit/directory_navigator.css +244 -0
- package/dist/css/fwtoolkit/drop_up.css +36 -24
- package/dist/css/fwtoolkit/faq_dialog.css +28 -4
- package/dist/css/fwtoolkit/file_input_field.css +150 -0
- package/dist/css/fwtoolkit/file_selector.css +265 -12
- package/dist/css/fwtoolkit/form_error_summary.css +53 -0
- package/dist/css/fwtoolkit/forms.css +261 -54
- package/dist/css/fwtoolkit/fwtoolkit.css +6618 -1522
- package/dist/css/fwtoolkit/grid_size_picker.css +119 -0
- package/dist/css/fwtoolkit/icon_button_group.css +110 -0
- package/dist/css/fwtoolkit/image_preview_field.css +156 -0
- package/dist/css/fwtoolkit/inline_status.css +69 -0
- package/dist/css/fwtoolkit/inline_tools.css +47 -16
- package/dist/css/fwtoolkit/input_list.css +33 -2
- package/dist/css/fwtoolkit/loader.css +12 -2
- package/dist/css/fwtoolkit/media_card_grid.css +251 -0
- package/dist/css/fwtoolkit/navigation_drawer.css +172 -0
- package/dist/css/fwtoolkit/one_time_code_field.css +135 -0
- package/dist/css/fwtoolkit/overflow_action_bar.css +28 -0
- package/dist/css/fwtoolkit/overview_menu.css +35 -27
- package/dist/css/fwtoolkit/permission_badge.css +121 -0
- package/dist/css/fwtoolkit/progress_task.css +51 -27
- package/dist/css/fwtoolkit/pulldown.css +50 -22
- package/dist/css/fwtoolkit/pulldown_menu.css +22 -11
- package/dist/css/fwtoolkit/remote_options_field.css +297 -0
- package/dist/css/fwtoolkit/reset.css +4 -3
- package/dist/css/fwtoolkit/resource_field.css +134 -0
- package/dist/css/fwtoolkit/sortable_list.css +160 -0
- package/dist/css/fwtoolkit/text.css +54 -15
- package/dist/css/fwtoolkit/token_input.css +189 -0
- package/dist/css/fwtoolkit/tokens.css +158 -0
- package/dist/css/fwtoolkit/tree_view.css +165 -0
- package/dist/css/fwtoolkit/two_pane_selector.css +150 -9
- package/dist/css/fwtoolkit/ui_tabs.css +41 -13
- package/dist/css/image-manager/dialog_usermedia.css +41 -41
- package/dist/css/manifest.json +29 -0
- package/dist/css/two_factor.css +0 -52
- package/dist/css/user_template_manager.css +6 -0
- package/dist/document_templates/editor.d.ts +3 -0
- package/dist/document_templates/editor.d.ts.map +1 -1
- package/dist/document_templates/editor.js +35 -18
- package/dist/document_templates/editor.js.map +1 -1
- package/dist/user/auth/two_factor.d.ts.map +1 -1
- package/dist/user/auth/two_factor.js +133 -157
- package/dist/user/auth/two_factor.js.map +1 -1
- package/package.json +8 -7
- package/src/document_templates/editor.ts +41 -21
- package/src/user/auth/two_factor.ts +203 -228
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
input,
|
|
2
2
|
textarea,
|
|
3
|
-
button
|
|
4
|
-
|
|
3
|
+
button,
|
|
4
|
+
select {
|
|
5
|
+
font-family: var(--fw-font-sans);
|
|
5
6
|
margin: 0;
|
|
6
|
-
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Buttons and selects keep their own focus treatment. */
|
|
10
|
+
input:focus,
|
|
11
|
+
textarea:focus,
|
|
12
|
+
select:focus {
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
input:focus-visible,
|
|
17
|
+
textarea:focus-visible,
|
|
18
|
+
select:focus-visible {
|
|
19
|
+
outline: 2px solid var(--fw-focus);
|
|
20
|
+
outline-offset: 1px;
|
|
7
21
|
}
|
|
8
22
|
|
|
9
23
|
textarea {
|
|
@@ -18,17 +32,36 @@ input[type="number"]:not(.fw-inline),
|
|
|
18
32
|
textarea {
|
|
19
33
|
box-sizing: border-box;
|
|
20
34
|
width: 100%;
|
|
21
|
-
height:
|
|
22
|
-
padding: 0
|
|
23
|
-
font-
|
|
24
|
-
|
|
35
|
+
height: 44px;
|
|
36
|
+
padding: 0 16px;
|
|
37
|
+
font-family: var(--fw-font-sans);
|
|
38
|
+
font-size: var(--fw-font-size-base);
|
|
39
|
+
line-height: var(--fw-line-height-base);
|
|
25
40
|
box-shadow: none;
|
|
26
|
-
border-radius:
|
|
41
|
+
border-radius: var(--fw-radius-md);
|
|
27
42
|
margin: 5px 0;
|
|
28
|
-
color: var(--
|
|
29
|
-
background-color: var(--
|
|
30
|
-
border:
|
|
31
|
-
|
|
43
|
+
color: var(--fw-text-primary);
|
|
44
|
+
background-color: var(--fw-surface);
|
|
45
|
+
border: 1px solid var(--fw-border);
|
|
46
|
+
transition:
|
|
47
|
+
border-color var(--fw-motion-fast) var(--fw-motion-ease),
|
|
48
|
+
background-color var(--fw-motion-fast) var(--fw-motion-ease);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
textarea {
|
|
52
|
+
height: auto;
|
|
53
|
+
min-height: 88px;
|
|
54
|
+
padding: 10px 16px;
|
|
55
|
+
resize: vertical;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input[type="text"]:hover:not(:disabled),
|
|
59
|
+
input[type="number"]:hover:not(:disabled),
|
|
60
|
+
input[type="password"]:hover:not(:disabled),
|
|
61
|
+
input[type="search"]:hover:not(:disabled),
|
|
62
|
+
input[type="email"]:hover:not(:disabled),
|
|
63
|
+
textarea:hover:not(:disabled) {
|
|
64
|
+
border-color: var(--fw-border-strong);
|
|
32
65
|
}
|
|
33
66
|
|
|
34
67
|
input[type="text"]:focus,
|
|
@@ -37,7 +70,32 @@ input[type="password"]:focus,
|
|
|
37
70
|
input[type="search"]:focus,
|
|
38
71
|
input[type="email"]:focus,
|
|
39
72
|
textarea:focus {
|
|
40
|
-
background-color: var(--
|
|
73
|
+
background-color: var(--fw-surface);
|
|
74
|
+
border-color: var(--fw-focus);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
input[aria-invalid="true"],
|
|
78
|
+
textarea[aria-invalid="true"],
|
|
79
|
+
.fw-input[aria-invalid="true"] {
|
|
80
|
+
border-color: var(--fw-danger-text);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.fw-dialog input[type="text"]:not(.fw-inline):focus,
|
|
84
|
+
.fw-dialog input[type="password"]:not(.fw-inline):focus,
|
|
85
|
+
.fw-dialog input[type="search"]:not(.fw-inline):focus,
|
|
86
|
+
.fw-dialog input[type="email"]:not(.fw-inline):focus,
|
|
87
|
+
.fw-dialog input[type="number"]:not(.fw-inline):focus,
|
|
88
|
+
.fw-dialog textarea:focus,
|
|
89
|
+
.fw-dialog div[contenteditable="true"]:focus {
|
|
90
|
+
border-color: var(--fw-focus);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input:disabled:not(.fw-inline),
|
|
94
|
+
textarea:disabled,
|
|
95
|
+
select:disabled {
|
|
96
|
+
background-color: var(--fw-surface-2);
|
|
97
|
+
color: var(--fw-text-secondary);
|
|
98
|
+
cursor: not-allowed;
|
|
41
99
|
}
|
|
42
100
|
|
|
43
101
|
.fw-dialog input[type="text"]:not(.fw-inline),
|
|
@@ -52,11 +110,22 @@ textarea:focus {
|
|
|
52
110
|
border: 1px solid var(--input-dialog-border-color);
|
|
53
111
|
}
|
|
54
112
|
.fw-entry-field .ProseMirror {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
width: 100%;
|
|
115
|
+
border: 1px solid var(--fw-border);
|
|
116
|
+
border-radius: var(--fw-radius-md);
|
|
117
|
+
min-height: var(--fw-control-height-sm);
|
|
118
|
+
padding: 10px 16px;
|
|
119
|
+
background: var(--fw-surface);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fw-entry-field:focus-within .ProseMirror {
|
|
123
|
+
border-color: var(--fw-focus);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.fw-entry-field .ProseMirror p,
|
|
127
|
+
.fw-floating-field .ProseMirror p {
|
|
128
|
+
margin: 0;
|
|
60
129
|
}
|
|
61
130
|
|
|
62
131
|
/**
|
|
@@ -69,24 +138,42 @@ textarea:focus {
|
|
|
69
138
|
|
|
70
139
|
.fw-check + label {
|
|
71
140
|
position: relative;
|
|
72
|
-
display: block;
|
|
141
|
+
display: inline-block;
|
|
142
|
+
/* The label is exactly the checkbox box so the ::after tick can be
|
|
143
|
+
positioned against it regardless of the surrounding layout. */
|
|
144
|
+
width: 15px;
|
|
145
|
+
height: 15px;
|
|
146
|
+
line-height: 15px;
|
|
147
|
+
vertical-align: middle;
|
|
73
148
|
margin: 0;
|
|
74
149
|
padding: 0;
|
|
75
150
|
}
|
|
76
151
|
|
|
77
152
|
.fw-check + label::before {
|
|
78
153
|
content: "";
|
|
79
|
-
position:
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset: 0;
|
|
80
156
|
display: block;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
border
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
157
|
+
box-sizing: border-box;
|
|
158
|
+
width: 15px;
|
|
159
|
+
height: 15px;
|
|
160
|
+
/* 1px #8c8c8c border reaches >3:1 on white (WCAG 1.4.11). */
|
|
161
|
+
border: 1px solid var(--fw-border-control);
|
|
162
|
+
border-radius: var(--fw-radius-control);
|
|
163
|
+
background-color: var(--fw-surface);
|
|
164
|
+
transition:
|
|
165
|
+
background-color var(--fw-motion-fast) var(--fw-motion-ease),
|
|
166
|
+
border-color var(--fw-motion-fast) var(--fw-motion-ease);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.fw-check:hover:not(:disabled) + label::before {
|
|
170
|
+
border-color: var(--fw-text-primary);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Brand green is a fill; the checkmark uses dark text on the green fill. */
|
|
174
|
+
.fw-check:checked + label::before {
|
|
175
|
+
border-color: var(--fw-brand-active);
|
|
176
|
+
background-color: var(--fw-brand);
|
|
90
177
|
}
|
|
91
178
|
|
|
92
179
|
.fw-check:checked + label::after {
|
|
@@ -95,13 +182,24 @@ textarea:focus {
|
|
|
95
182
|
left: 5px;
|
|
96
183
|
top: 2px;
|
|
97
184
|
display: block;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
border-
|
|
185
|
+
box-sizing: content-box;
|
|
186
|
+
width: 4px;
|
|
187
|
+
height: 8px;
|
|
188
|
+
border-bottom: 2px solid var(--fw-text-on-brand);
|
|
189
|
+
border-right: 2px solid var(--fw-text-on-brand);
|
|
102
190
|
transform: rotate(45deg);
|
|
103
191
|
}
|
|
104
192
|
|
|
193
|
+
.fw-check:disabled + label::before {
|
|
194
|
+
border-color: var(--fw-border-subtle);
|
|
195
|
+
background-color: var(--fw-surface-2);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.fw-check:focus-visible + label::before {
|
|
199
|
+
outline: 2px solid var(--fw-focus);
|
|
200
|
+
outline-offset: 2px;
|
|
201
|
+
}
|
|
202
|
+
|
|
105
203
|
.fw-label-check + label {
|
|
106
204
|
line-height: 15px;
|
|
107
205
|
}
|
|
@@ -119,18 +217,6 @@ textarea:focus {
|
|
|
119
217
|
margin-right: 3px;
|
|
120
218
|
}
|
|
121
219
|
|
|
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
220
|
/* -----------------------------------------------------------------
|
|
135
221
|
* Category form — narrow inline input next to an add button
|
|
136
222
|
* ----------------------------------------------------------------- */
|
|
@@ -150,7 +236,8 @@ input[type="search"]:focus,
|
|
|
150
236
|
input[type="email"]:focus,
|
|
151
237
|
div.fw-input:focus-within,
|
|
152
238
|
textarea:focus {
|
|
153
|
-
background-color: var(--
|
|
239
|
+
background-color: var(--fw-surface);
|
|
240
|
+
border-color: var(--fw-focus);
|
|
154
241
|
}
|
|
155
242
|
|
|
156
243
|
/* -----------------------------------------------------------------
|
|
@@ -174,9 +261,10 @@ textarea:focus {
|
|
|
174
261
|
|
|
175
262
|
.fw-select-container .fw-select-arrow {
|
|
176
263
|
position: absolute;
|
|
177
|
-
top:
|
|
264
|
+
top: 17px;
|
|
178
265
|
right: 16px;
|
|
179
266
|
pointer-events: none;
|
|
267
|
+
color: var(--fw-text-muted);
|
|
180
268
|
}
|
|
181
269
|
|
|
182
270
|
/* -----------------------------------------------------------------
|
|
@@ -191,10 +279,11 @@ textarea:focus {
|
|
|
191
279
|
|
|
192
280
|
.fw-entry-field select {
|
|
193
281
|
padding: 0 3px 0 13px;
|
|
194
|
-
border:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
282
|
+
border: 1px solid var(--fw-border);
|
|
283
|
+
border-radius: var(--fw-radius-md);
|
|
284
|
+
color: var(--fw-text-primary);
|
|
285
|
+
background-color: var(--fw-surface);
|
|
286
|
+
height: 44px;
|
|
198
287
|
width: 561px;
|
|
199
288
|
appearance: none;
|
|
200
289
|
cursor: pointer;
|
|
@@ -209,8 +298,10 @@ textarea:focus {
|
|
|
209
298
|
* Form label
|
|
210
299
|
* ----------------------------------------------------------------- */
|
|
211
300
|
.form-label {
|
|
212
|
-
|
|
213
|
-
font-
|
|
301
|
+
display: block;
|
|
302
|
+
font-size: var(--fw-font-size-sm);
|
|
303
|
+
font-weight: var(--fw-font-weight-medium);
|
|
304
|
+
color: var(--fw-text-muted);
|
|
214
305
|
margin-bottom: 5px;
|
|
215
306
|
}
|
|
216
307
|
|
|
@@ -245,6 +336,16 @@ tr.fw-checkable.fw-checked > td:last-child::after {
|
|
|
245
336
|
.fw-add-input {
|
|
246
337
|
cursor: pointer;
|
|
247
338
|
margin-left: 14px;
|
|
339
|
+
/* Keep a 44px hit area around the glyph. */
|
|
340
|
+
display: inline-block;
|
|
341
|
+
padding: 8px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.fw-add-input:focus-visible,
|
|
345
|
+
.list-input-wrapper .add-remove-list:focus-visible {
|
|
346
|
+
outline: 2px solid var(--fw-focus);
|
|
347
|
+
outline-offset: 2px;
|
|
348
|
+
border-radius: var(--fw-radius-sm);
|
|
248
349
|
}
|
|
249
350
|
|
|
250
351
|
.fw-add-input::before {
|
|
@@ -263,7 +364,8 @@ tr.fw-checkable.fw-checked > td:last-child::after {
|
|
|
263
364
|
* Form error
|
|
264
365
|
* ----------------------------------------------------------------- */
|
|
265
366
|
.fw-fomt-error {
|
|
266
|
-
color:
|
|
367
|
+
color: var(--fw-danger-text);
|
|
368
|
+
font-size: var(--fw-font-size-sm);
|
|
267
369
|
}
|
|
268
370
|
|
|
269
371
|
/* -----------------------------------------------------------------
|
|
@@ -415,3 +517,108 @@ tr.fw-checkable.fw-checked > td:last-child::after {
|
|
|
415
517
|
overflow-x: hidden;
|
|
416
518
|
}
|
|
417
519
|
}
|
|
520
|
+
|
|
521
|
+
/* -------------------------------------------------------------------------
|
|
522
|
+
* Floating labels
|
|
523
|
+
*
|
|
524
|
+
* Wrap a labelled field in `.fw-floating-field` to get a Material-style
|
|
525
|
+
* text field:
|
|
526
|
+
*
|
|
527
|
+
* <div class="fw-floating-field">
|
|
528
|
+
* <label for="x">Label</label>
|
|
529
|
+
* <input type="text" id="x" placeholder=" ">
|
|
530
|
+
* </div>
|
|
531
|
+
*
|
|
532
|
+
* While the field is empty and unfocused the label sits inside it, where
|
|
533
|
+
* placeholder text would be. On focus, or once the field has content, the
|
|
534
|
+
* label shrinks and rises above the field with a short transition.
|
|
535
|
+
*
|
|
536
|
+
* The "has content" state is tracked by `initFloatingLabels()` (src/
|
|
537
|
+
* forms.ts), which adds `.fw-filled` to the wrapper on input; focus is pure
|
|
538
|
+
* CSS via `:focus-within`. The input needs a placeholder (a single space is
|
|
539
|
+
* enough) so the browser has a text-free state to anchor the label to.
|
|
540
|
+
* ---------------------------------------------------------------------- */
|
|
541
|
+
.fw-floating-field {
|
|
542
|
+
position: relative;
|
|
543
|
+
display: block;
|
|
544
|
+
padding-top: 14px;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.fw-floating-field > input:not(.fw-inline),
|
|
548
|
+
.fw-floating-field > textarea {
|
|
549
|
+
margin: 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.fw-floating-field .ProseMirror {
|
|
553
|
+
box-sizing: border-box;
|
|
554
|
+
width: 100%;
|
|
555
|
+
min-height: var(--fw-control-height-sm);
|
|
556
|
+
margin: 0;
|
|
557
|
+
padding: 10px 16px;
|
|
558
|
+
border: 1px solid var(--fw-border);
|
|
559
|
+
border-radius: var(--fw-radius-md);
|
|
560
|
+
color: var(--fw-text-primary);
|
|
561
|
+
background-color: var(--fw-surface);
|
|
562
|
+
transition: border-color var(--fw-motion-fast) var(--fw-motion-ease);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.fw-floating-field:focus-within .ProseMirror {
|
|
566
|
+
border-color: var(--fw-focus);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.fw-floating-field:not(:focus-within):not(.fw-filled)
|
|
570
|
+
:is(input, textarea)::placeholder,
|
|
571
|
+
.fw-floating-field:not(:focus-within):not(.fw-filled)
|
|
572
|
+
.ProseMirror
|
|
573
|
+
.fw-placeholder::before {
|
|
574
|
+
color: transparent;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.fw-floating-field > label {
|
|
578
|
+
position: absolute;
|
|
579
|
+
top: calc(14px + 22px);
|
|
580
|
+
left: 17px;
|
|
581
|
+
z-index: 1;
|
|
582
|
+
display: block;
|
|
583
|
+
margin: 0;
|
|
584
|
+
padding: 0 4px;
|
|
585
|
+
font-family: var(--fw-font-sans);
|
|
586
|
+
font-size: var(--fw-font-size-base);
|
|
587
|
+
font-weight: var(--fw-font-weight-normal);
|
|
588
|
+
line-height: 1;
|
|
589
|
+
color: var(--fw-text-secondary);
|
|
590
|
+
background-color: transparent;
|
|
591
|
+
pointer-events: none;
|
|
592
|
+
transform: translateY(-50%);
|
|
593
|
+
transform-origin: left center;
|
|
594
|
+
transition:
|
|
595
|
+
top var(--fw-motion-base) var(--fw-motion-ease),
|
|
596
|
+
font-size var(--fw-motion-base) var(--fw-motion-ease),
|
|
597
|
+
color var(--fw-motion-fast) var(--fw-motion-ease);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* The surface-colored label masks the border to create the Design 5 notch. */
|
|
601
|
+
.fw-floating-field:focus-within > label,
|
|
602
|
+
.fw-floating-field.fw-filled > label {
|
|
603
|
+
top: 14px;
|
|
604
|
+
font-size: var(--fw-font-size-xs);
|
|
605
|
+
font-weight: var(--fw-font-weight-normal);
|
|
606
|
+
color: var(--fw-text-muted);
|
|
607
|
+
background-color: var(--fw-surface);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.fw-floating-field:focus-within > label {
|
|
611
|
+
color: var(--fw-focus);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* Disabled fields keep the label in place. */
|
|
615
|
+
.fw-floating-field.fw-disabled > label {
|
|
616
|
+
color: var(--fw-text-secondary);
|
|
617
|
+
opacity: 0.6;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@media (prefers-reduced-motion: reduce) {
|
|
621
|
+
.fw-floating-field > label {
|
|
622
|
+
transition: none;
|
|
623
|
+
}
|
|
624
|
+
}
|