@fiduswriter/frontend 0.1.68 → 0.1.70

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.
Files changed (73) hide show
  1. package/css/two_factor.css +0 -52
  2. package/css/user_template_manager.css +6 -0
  3. package/dist/css/bibliography/colors.css +0 -4
  4. package/dist/css/bibliography/forms.css +3 -61
  5. package/dist/css/document-template-editor/document_template_designer.css +68 -68
  6. package/dist/css/fwtoolkit/action_chooser_dialog.css +66 -0
  7. package/dist/css/fwtoolkit/action_toolbar.css +132 -0
  8. package/dist/css/fwtoolkit/alerts.css +53 -19
  9. package/dist/css/fwtoolkit/application_menu_controller.css +28 -0
  10. package/dist/css/fwtoolkit/attachment_field.css +19 -0
  11. package/dist/css/fwtoolkit/attachment_list.css +118 -0
  12. package/dist/css/fwtoolkit/avatar_label.css +80 -0
  13. package/dist/css/fwtoolkit/boolean_switch.css +128 -0
  14. package/dist/css/fwtoolkit/buttons.css +181 -85
  15. package/dist/css/fwtoolkit/category_filter_controller.css +11 -0
  16. package/dist/css/fwtoolkit/checkable_list.css +39 -6
  17. package/dist/css/fwtoolkit/colors.css +71 -69
  18. package/dist/css/fwtoolkit/common.css +49 -17
  19. package/dist/css/fwtoolkit/content_menu.css +49 -27
  20. package/dist/css/fwtoolkit/data_table.css +278 -41
  21. package/dist/css/fwtoolkit/datatable_bulk.css +106 -0
  22. package/dist/css/fwtoolkit/destination_settings_form.css +67 -0
  23. package/dist/css/fwtoolkit/dialog.css +100 -25
  24. package/dist/css/fwtoolkit/dialog_presets.css +157 -0
  25. package/dist/css/fwtoolkit/dialog_table.css +63 -26
  26. package/dist/css/fwtoolkit/directory_navigator.css +244 -0
  27. package/dist/css/fwtoolkit/drop_up.css +36 -24
  28. package/dist/css/fwtoolkit/faq_dialog.css +28 -4
  29. package/dist/css/fwtoolkit/file_input_field.css +150 -0
  30. package/dist/css/fwtoolkit/file_selector.css +265 -12
  31. package/dist/css/fwtoolkit/form_error_summary.css +53 -0
  32. package/dist/css/fwtoolkit/forms.css +261 -54
  33. package/dist/css/fwtoolkit/fwtoolkit.css +6618 -1522
  34. package/dist/css/fwtoolkit/grid_size_picker.css +119 -0
  35. package/dist/css/fwtoolkit/icon_button_group.css +110 -0
  36. package/dist/css/fwtoolkit/image_preview_field.css +156 -0
  37. package/dist/css/fwtoolkit/inline_status.css +69 -0
  38. package/dist/css/fwtoolkit/inline_tools.css +47 -16
  39. package/dist/css/fwtoolkit/input_list.css +33 -2
  40. package/dist/css/fwtoolkit/loader.css +12 -2
  41. package/dist/css/fwtoolkit/media_card_grid.css +251 -0
  42. package/dist/css/fwtoolkit/navigation_drawer.css +172 -0
  43. package/dist/css/fwtoolkit/one_time_code_field.css +135 -0
  44. package/dist/css/fwtoolkit/overflow_action_bar.css +28 -0
  45. package/dist/css/fwtoolkit/overview_menu.css +35 -27
  46. package/dist/css/fwtoolkit/permission_badge.css +121 -0
  47. package/dist/css/fwtoolkit/progress_task.css +51 -27
  48. package/dist/css/fwtoolkit/pulldown.css +50 -22
  49. package/dist/css/fwtoolkit/pulldown_menu.css +22 -11
  50. package/dist/css/fwtoolkit/remote_options_field.css +297 -0
  51. package/dist/css/fwtoolkit/reset.css +4 -3
  52. package/dist/css/fwtoolkit/resource_field.css +134 -0
  53. package/dist/css/fwtoolkit/sortable_list.css +160 -0
  54. package/dist/css/fwtoolkit/text.css +54 -15
  55. package/dist/css/fwtoolkit/token_input.css +189 -0
  56. package/dist/css/fwtoolkit/tokens.css +158 -0
  57. package/dist/css/fwtoolkit/tree_view.css +165 -0
  58. package/dist/css/fwtoolkit/two_pane_selector.css +150 -9
  59. package/dist/css/fwtoolkit/ui_tabs.css +41 -13
  60. package/dist/css/image-manager/dialog_usermedia.css +41 -41
  61. package/dist/css/manifest.json +29 -0
  62. package/dist/css/two_factor.css +0 -52
  63. package/dist/css/user_template_manager.css +6 -0
  64. package/dist/document_templates/editor.d.ts +3 -0
  65. package/dist/document_templates/editor.d.ts.map +1 -1
  66. package/dist/document_templates/editor.js +35 -18
  67. package/dist/document_templates/editor.js.map +1 -1
  68. package/dist/user/auth/two_factor.d.ts.map +1 -1
  69. package/dist/user/auth/two_factor.js +133 -157
  70. package/dist/user/auth/two_factor.js.map +1 -1
  71. package/package.json +9 -9
  72. package/src/document_templates/editor.ts +41 -21
  73. package/src/user/auth/two_factor.ts +203 -228
@@ -0,0 +1,106 @@
1
+ /* Bulk-action bar for overview/selection data tables. */
2
+
3
+ /*
4
+ * Select-all control: a brand-tinted oval (radius 30) holding the 15px
5
+ * checkbox and the caret, as in Design 5.
6
+ *
7
+ * It stays entirely inside the table box so it is never clipped: the oval
8
+ * is the control's own background, sized around the checkbox and caret, and
9
+ * the checkbox lines up with the row checkboxes through the pill's left
10
+ * padding. The header cell gives it enough height for the full oval so it
11
+ * does not spill onto the first data row.
12
+ */
13
+ .dt-bulk {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ gap: var(--fw-space-2);
17
+ position: relative;
18
+ box-sizing: border-box;
19
+ height: 40px;
20
+ /* Left padding puts the checkbox exactly where the row checkboxes sit
21
+ (16px in from the table edge); the right padding matches so the
22
+ checkbox and caret are centred in the pill. */
23
+ /* Symmetric padding: centres the checkbox and caret inside the oval.
24
+ Left padding is the table's outer gutter, so the checkbox lines up
25
+ with the row checkboxes below. */
26
+ padding: 0 25px 0 16px;
27
+ margin: 0;
28
+ background-color: var(--fw-brand-tint-3);
29
+ border-radius: var(--fw-radius-pill);
30
+ vertical-align: middle;
31
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
32
+ }
33
+
34
+ .dt-bulk:hover {
35
+ background-color: var(--fw-brand-tint-2);
36
+ }
37
+
38
+ /* The header cell must not clip the pill; a small top inset keeps the pill
39
+ clear of the header's top edge without letting it reach the first row. */
40
+ th:has(> .dt-bulk) {
41
+ overflow: visible;
42
+ padding-block: 4px;
43
+ }
44
+
45
+ /* Keep the checkbox and its label as one tight unit inside the pill. */
46
+ /* The label is exactly the 15px checkbox box (set in forms.css), so the
47
+ ::before box and the ::after tick always line up. The pill supplies the
48
+ padding, not the label. */
49
+ .dt-bulk .fw-check + label {
50
+ flex: 0 0 auto;
51
+ margin: 0;
52
+ padding: 0;
53
+ }
54
+
55
+ /* The real checkbox is visually hidden; keep it out of the flex layout. */
56
+ .dt-bulk .fw-check {
57
+ display: none;
58
+ }
59
+
60
+ .dt-bulk .fw-check:focus-visible + label::before {
61
+ outline: 2px solid var(--fw-focus);
62
+ outline-offset: 2px;
63
+ }
64
+
65
+ .dt-bulk-dropdown {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ width: 16px;
70
+ height: 16px;
71
+ padding: 0;
72
+ border-radius: var(--fw-radius-circle);
73
+ color: var(--fw-text-primary);
74
+ cursor: pointer;
75
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
76
+ }
77
+
78
+ .dt-bulk-dropdown:hover {
79
+ background-color: var(--fw-brand-tint-2);
80
+ }
81
+
82
+ .dt-bulk-dropdown:focus-visible {
83
+ outline: 2px solid var(--fw-focus);
84
+ outline-offset: 2px;
85
+ }
86
+
87
+ /* Floating bulk bar (selection helpers render it at the table foot). */
88
+ .dt-bulk-bar {
89
+ display: flex;
90
+ flex-wrap: wrap;
91
+ align-items: center;
92
+ gap: var(--fw-space-2);
93
+ margin-top: var(--fw-space-3);
94
+ padding: var(--fw-space-2) var(--fw-space-3);
95
+ background-color: var(--fw-surface-2);
96
+ border-radius: var(--fw-radius-card);
97
+ font-family: var(--fw-font-sans);
98
+ font-size: var(--fw-font-size-base);
99
+ color: var(--fw-text-primary);
100
+ }
101
+
102
+ @media (prefers-reduced-motion: reduce) {
103
+ .dt-bulk-dropdown {
104
+ transition: none;
105
+ }
106
+ }
@@ -0,0 +1,67 @@
1
+ .fw-settings-form {
2
+ display: grid;
3
+ gap: 1rem;
4
+ min-width: 0;
5
+ }
6
+
7
+ .fw-settings-field {
8
+ display: grid;
9
+ gap: 0.35rem;
10
+ min-width: 0;
11
+ }
12
+
13
+ .fw-settings-field[hidden] {
14
+ display: none;
15
+ }
16
+
17
+ .fw-settings-field-label {
18
+ color: var(--text-color, #222);
19
+ font-weight: 600;
20
+ }
21
+
22
+ .fw-settings-field-description,
23
+ .fw-settings-field-error {
24
+ margin: 0;
25
+ font-size: 0.875rem;
26
+ }
27
+
28
+ .fw-settings-field-description {
29
+ color: var(--muted-text-color, #666);
30
+ }
31
+
32
+ .fw-settings-field-error {
33
+ color: var(--error-color, #b42318);
34
+ }
35
+
36
+ .fw-settings-field.fw-invalid .fw-text,
37
+ .fw-settings-field.fw-invalid input[type="checkbox"] {
38
+ outline: 2px solid var(--error-color, #b42318);
39
+ outline-offset: 2px;
40
+ }
41
+
42
+ .fw-settings-field input[type="checkbox"] {
43
+ width: 1.15rem;
44
+ height: 1.15rem;
45
+ }
46
+
47
+ .fw-settings-form-summary {
48
+ min-width: 0;
49
+ }
50
+
51
+ .fw-settings-form-submit {
52
+ justify-self: start;
53
+ }
54
+
55
+ .fw-settings-form.fw-disabled {
56
+ opacity: 0.7;
57
+ }
58
+
59
+ @media (max-width: 540px) {
60
+ .fw-settings-form {
61
+ gap: 0.85rem;
62
+ }
63
+
64
+ .fw-settings-form-submit {
65
+ width: 100%;
66
+ }
67
+ }
@@ -1,14 +1,16 @@
1
1
  .fw-dialog {
2
2
  position: absolute;
3
- background-color: var(--cs-light-background);
4
- font-size: 14px;
3
+ background-color: var(--fw-surface);
4
+ color: var(--fw-text-primary);
5
+ font-family: var(--fw-font-sans);
6
+ font-size: var(--fw-font-size-base);
5
7
  overflow: visible;
6
8
  outline: 0;
7
- padding: 0 19px 19px;
8
- box-shadow: none;
9
+ padding: 0 32px 32px;
10
+ box-shadow: var(--fw-shadow-3);
9
11
  border: 0 none;
10
12
  border-image: initial;
11
- border-radius: 0;
13
+ border-radius: var(--fw-radius-lg);
12
14
  z-index: 1000; /* Ensure dialog stays on top */
13
15
  user-select: none; /* Prevent interaction with background content */
14
16
  }
@@ -50,27 +52,35 @@
50
52
 
51
53
  .fw-dialog-titlebar {
52
54
  position: relative;
53
- margin: 0 -19px;
54
- padding: 19px 40px 19px 19px;
55
- background: var(--cs-dark-background);
56
- color: var(--cs-dark-text);
55
+ margin: 0 -32px;
56
+ padding: 32px 96px 12px 32px;
57
+ background: var(--fw-surface);
58
+ color: var(--fw-text-primary);
59
+ border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0;
57
60
  cursor: move; /* fallback if grab cursor is unsupported */
58
61
  cursor: grab;
59
62
  user-select: none;
60
63
  }
61
64
 
62
65
  .fw-dialog-title {
63
- font-size: 15px;
64
- font-weight: 400;
66
+ font-size: var(--fw-font-size-display);
67
+ font-weight: var(--fw-font-weight-normal);
68
+ line-height: var(--fw-line-height-tight);
65
69
  text-transform: none;
70
+ color: var(--fw-text-primary);
71
+ }
72
+
73
+ .fw-dialog-titlebar .fa {
74
+ margin-right: 12px;
75
+ color: var(--fw-text-secondary);
66
76
  }
67
77
 
68
78
  .fw-dialog-titlebar-close {
69
- right: 19px;
79
+ right: 20px;
70
80
  }
71
81
 
72
82
  .fw-dialog-titlebar-help {
73
- right: 39px;
83
+ right: 60px;
74
84
  }
75
85
 
76
86
  .fw-dialog-button-icon-only {
@@ -81,11 +91,11 @@
81
91
  }
82
92
 
83
93
  .fw-dialog-titlebar .fw-dialog-button-icon-only {
84
- color: var(--cs-dark-text);
94
+ color: var(--fw-text-primary);
85
95
  }
86
96
 
87
97
  .fw-dialog-titlebar .fw-dialog-button-icon-only:hover {
88
- color: var(--cs-dark-hover);
98
+ color: var(--fw-text-secondary);
89
99
  }
90
100
 
91
101
  .fw-dialog-button-icon-only .fw-icon {
@@ -98,7 +108,7 @@
98
108
 
99
109
  .fw-dialog-content {
100
110
  position: relative;
101
- margin-top: 24px;
111
+ margin-top: 20px;
102
112
  /* Tooltips escape the scroll container because they are portal-rendered
103
113
  in document.body (see src/tooltip.ts). `visible auto` would be coerced
104
114
  by browsers to `auto auto` (visible + auto is not representable), so
@@ -106,7 +116,7 @@
106
116
  scrolls when the content grows too tall. */
107
117
  overflow: hidden auto;
108
118
  padding: 6px;
109
- max-height: calc(100vh - 133px);
119
+ max-height: calc(100vh - 160px);
110
120
  min-height: 20px;
111
121
  max-width: calc(100vw - 4px);
112
122
  }
@@ -131,7 +141,7 @@
131
141
  }
132
142
 
133
143
  .fw-dialog-buttonpane {
134
- padding-top: 20px;
144
+ padding-top: 28px;
135
145
  }
136
146
 
137
147
  .fw-dialog-buttonset {
@@ -140,7 +150,11 @@
140
150
  }
141
151
 
142
152
  .fw-dialog-buttonset .fw-button {
143
- margin-left: 6px;
153
+ margin-left: 12px;
154
+ min-height: 44px;
155
+ height: 44px;
156
+ padding: 0 24px;
157
+ font-size: var(--fw-font-size-lg);
144
158
  }
145
159
 
146
160
  .fw-overlay {
@@ -149,7 +163,9 @@
149
163
  top: 0;
150
164
  width: 100%;
151
165
  height: 100%;
152
- background-color: rgb(var(--overlay-color));
166
+ /* Design 5 backdrop: 70% black. --overlay-color stays available for
167
+ hosts that override it. */
168
+ background-color: var(--fw-overlay);
153
169
  z-index: 100;
154
170
  backdrop-filter: blur(2px);
155
171
  }
@@ -170,8 +186,8 @@
170
186
 
171
187
  .fw-dialog-content .fw-note-el {
172
188
  margin-bottom: 10px;
173
- font-size: smaller;
174
- color: var(--error-background-color);
189
+ font-size: var(--fw-font-size-sm);
190
+ color: var(--fw-danger-text);
175
191
  }
176
192
 
177
193
  .fw-dialog-content .fw-note-el.fw-hide {
@@ -239,8 +255,67 @@
239
255
  border: none;
240
256
  }
241
257
 
242
- .fw-dialog-titlebar .fw-dialog-button-icon-only:focus {
243
- outline: 2px solid var(--cs-dark-text);
258
+ .fw-dialog-titlebar .fw-dialog-button-icon-only:focus-visible {
259
+ outline: 2px solid var(--fw-focus);
244
260
  outline-offset: 2px;
245
- border-radius: 4px;
261
+ border-radius: var(--fw-radius-circle);
262
+ }
263
+
264
+ .fw-dialog-titlebar .fw-dialog-button-icon-only:focus:not(:focus-visible) {
265
+ outline: none;
266
+ }
267
+
268
+ /* Text-only dismissal buttons ("Cancel", "Close"): no fill, no border. */
269
+ .fw-dialog-buttonset .fw-button.fw-dialog-button-text {
270
+ background: none;
271
+ border-color: transparent;
272
+ color: var(--fw-text-primary);
273
+ }
274
+
275
+ .fw-dialog-buttonset .fw-button.fw-dialog-button-text:hover {
276
+ background-color: var(--fw-surface-2);
277
+ color: var(--fw-text-primary);
278
+ }
279
+
280
+ .fw-dialog-buttonset .fw-button.fw-dialog-button-primary {
281
+ background-color: var(--fw-brand-tint-2);
282
+ border-color: var(--fw-brand);
283
+ color: var(--fw-text-on-brand);
284
+ }
285
+
286
+ .fw-dialog-buttonset .fw-button.fw-dialog-button-primary:hover {
287
+ background-color: var(--fw-brand-tint);
288
+ }
289
+
290
+ @media (prefers-reduced-motion: no-preference) {
291
+ .fw-dialog {
292
+ animation: fw-dialog-in var(--fw-motion-base) var(--fw-motion-ease);
293
+ }
294
+
295
+ .fw-overlay {
296
+ animation: fw-dialog-overlay-in var(--fw-motion-base)
297
+ var(--fw-motion-ease);
298
+ }
299
+ }
300
+
301
+ @keyframes fw-dialog-in {
302
+ from {
303
+ opacity: 0;
304
+ transform: scale(0.98);
305
+ }
306
+
307
+ to {
308
+ opacity: 1;
309
+ transform: scale(1);
310
+ }
311
+ }
312
+
313
+ @keyframes fw-dialog-overlay-in {
314
+ from {
315
+ opacity: 0;
316
+ }
317
+
318
+ to {
319
+ opacity: 1;
320
+ }
246
321
  }
@@ -0,0 +1,157 @@
1
+ .fw-dialog-content.fw-dialog-preset-content {
2
+ box-sizing: border-box;
3
+ min-width: min(320px, calc(100vw - 64px));
4
+ max-width: calc(100vw - 64px);
5
+ padding: 8px;
6
+ }
7
+
8
+ .fw-dialog-content .fw-dialog-preset {
9
+ min-width: 0;
10
+ user-select: text;
11
+ }
12
+
13
+ .fw-dialog-content .fw-dialog-preset-description,
14
+ .fw-dialog-content .fw-dialog-preset-message,
15
+ .fw-dialog-content .fw-dialog-preset-detail,
16
+ .fw-dialog-content .fw-dialog-preset-count,
17
+ .fw-dialog-content .fw-dialog-preset-warning,
18
+ .fw-dialog-content .fw-form-field-error {
19
+ margin: 0 0 12px;
20
+ overflow-wrap: anywhere;
21
+ }
22
+
23
+ .fw-dialog-content .fw-dialog-preset-description:last-child,
24
+ .fw-dialog-content .fw-dialog-preset-message:last-child,
25
+ .fw-dialog-content .fw-dialog-preset-detail:last-child,
26
+ .fw-dialog-content .fw-dialog-preset-count:last-child,
27
+ .fw-dialog-content .fw-dialog-preset-warning:last-child {
28
+ margin-bottom: 0;
29
+ }
30
+
31
+ .fw-dialog-content .fw-dialog-preset-message {
32
+ font-size: var(--fw-font-size-lg, 15px);
33
+ line-height: var(--fw-line-height-relaxed, 1.6);
34
+ }
35
+
36
+ .fw-dialog-content .fw-dialog-preset-detail,
37
+ .fw-dialog-content .fw-dialog-preset-count {
38
+ color: var(--fw-text-secondary, #656565);
39
+ font-size: var(--fw-font-size-sm, 12px);
40
+ }
41
+
42
+ .fw-dialog-content .fw-dialog-preset-count {
43
+ font-weight: var(--fw-font-weight-medium, 500);
44
+ }
45
+
46
+ .fw-dialog-content .fw-dialog-preset-warning {
47
+ padding: 12px;
48
+ color: var(--fw-text-primary, #3a3a3a);
49
+ background: var(--fw-highlight, #fffad0);
50
+ border-inline-start: 4px solid var(--fw-warning, #f5c518);
51
+ border-radius: var(--fw-radius-sm, 4px);
52
+ }
53
+
54
+ .fw-dialog-content .fw-confirm-destructive .fw-dialog-preset-warning {
55
+ color: var(--fw-danger-text, #c22c00);
56
+ background: var(--fw-surface-2, #f0f0f0);
57
+ border-inline-start-color: var(--fw-danger-text, #c22c00);
58
+ }
59
+
60
+ .fw-dialog-content .fw-dialog-preset-input {
61
+ box-sizing: border-box;
62
+ width: 100%;
63
+ min-width: 0;
64
+ max-width: 100%;
65
+ }
66
+
67
+ .fw-dialog-content .fw-form-field-error {
68
+ color: var(--fw-danger-text, #c22c00);
69
+ font-size: var(--fw-font-size-sm, 12px);
70
+ }
71
+
72
+ .fw-dialog-content .fw-action-dialog-fields {
73
+ min-width: 0;
74
+ }
75
+
76
+ .fw-dialog-content .fw-action-dialog-fields[aria-busy="true"] {
77
+ cursor: progress;
78
+ }
79
+
80
+ .fw-dialog-content .fw-action-dialog-errors:empty {
81
+ display: none;
82
+ }
83
+
84
+ .fw-dialog .fw-dialog-buttonpane .fw-dialog-button-destructive {
85
+ color: var(--fw-text-inverse, #ffffff);
86
+ }
87
+
88
+ .fw-dialog-content .fw-editable-list {
89
+ display: grid;
90
+ gap: 8px;
91
+ margin: 0 0 16px;
92
+ padding: 0;
93
+ list-style: none;
94
+ }
95
+
96
+ .fw-dialog-content .fw-editable-list-item {
97
+ display: grid;
98
+ grid-template-columns: minmax(0, 1fr) auto;
99
+ align-items: center;
100
+ gap: 8px;
101
+ min-width: 0;
102
+ }
103
+
104
+ .fw-dialog-content .fw-editable-list-input {
105
+ box-sizing: border-box;
106
+ width: 100%;
107
+ min-width: 0;
108
+ max-width: 100%;
109
+ }
110
+
111
+ .fw-dialog-content .fw-editable-list-add,
112
+ .fw-dialog-content .fw-editable-list-remove {
113
+ min-width: var(--fw-hit-area, 44px);
114
+ min-height: var(--fw-hit-area, 44px);
115
+ }
116
+
117
+ .fw-dialog-content .fw-editable-list-empty {
118
+ padding: 16px;
119
+ color: var(--fw-text-secondary, #656565);
120
+ background: var(--fw-surface-2, #f0f0f0);
121
+ border-radius: var(--fw-radius-md, 8px);
122
+ text-align: center;
123
+ }
124
+
125
+ :where([data-theme="dark"], [data-color-scheme="dark"])
126
+ .fw-dialog-content
127
+ .fw-dialog-preset-warning {
128
+ color: var(--fw-text-primary, #f5f5f5);
129
+ background: var(--fw-surface-2, #333333);
130
+ }
131
+
132
+ @media (width <= 560px) {
133
+ .fw-dialog-content.fw-dialog-preset-content {
134
+ width: calc(100vw - 64px) !important;
135
+ min-width: 0;
136
+ max-width: none;
137
+ }
138
+
139
+ .fw-dialog .fw-dialog-buttonset {
140
+ display: flex;
141
+ flex-wrap: wrap;
142
+ justify-content: flex-end;
143
+ gap: 8px;
144
+ }
145
+
146
+ .fw-dialog .fw-dialog-buttonset .fw-button {
147
+ margin-left: 0;
148
+ }
149
+
150
+ .fw-dialog-content .fw-editable-list-item {
151
+ grid-template-columns: minmax(0, 1fr);
152
+ }
153
+
154
+ .fw-dialog-content .fw-editable-list-remove {
155
+ justify-self: start;
156
+ }
157
+ }
@@ -5,15 +5,34 @@
5
5
 
6
6
  .fw-tablerow-title {
7
7
  display: table-cell;
8
- padding-top: 10px;
9
- font-size: 11px;
8
+ padding-top: 12px;
9
+ font-size: var(--fw-font-size-sm);
10
10
  line-height: 15px;
11
- font-weight: bold;
11
+ font-weight: var(--fw-font-weight-medium);
12
+ color: var(--fw-text-muted);
12
13
  }
13
14
 
14
15
  .fw-dialog-table tr > td .fa-minus-circle,
15
16
  .fw-dialog-table tr > td .fa-plus-circle {
16
17
  cursor: pointer;
18
+ color: var(--fw-text-primary);
19
+ display: inline-flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ min-width: var(--fw-hit-area);
23
+ min-height: var(--fw-hit-area);
24
+ border-radius: var(--fw-radius-circle);
25
+ }
26
+
27
+ .fw-dialog-table tr > td .fa-minus-circle:hover,
28
+ .fw-dialog-table tr > td .fa-plus-circle:hover {
29
+ background-color: var(--fw-surface-2);
30
+ }
31
+
32
+ .fw-dialog-table tr > td .fa-minus-circle:focus-visible,
33
+ .fw-dialog-table tr > td .fa-plus-circle:focus-visible {
34
+ outline: 2px solid var(--fw-focus);
35
+ outline-offset: 2px;
17
36
  }
18
37
 
19
38
  .fw-input-list-wrapper > tbody > tr:last-child > td > .fa-minus-circle {
@@ -29,11 +48,13 @@
29
48
  vertical-align: baseline;
30
49
  content: "?";
31
50
  line-height: 1;
32
- color: white;
33
- background-color: rgb(var(--tooltip-background-color));
34
- width: 12px;
35
- height: 10px;
36
- border-radius: 6px;
51
+ color: var(--fw-text-inverse);
52
+ background-color: var(--fw-surface-inverse);
53
+ width: 14px;
54
+ height: 14px;
55
+ box-sizing: border-box;
56
+ border-radius: var(--fw-radius-circle);
57
+ font-size: 10px;
37
58
  margin-left: 5px;
38
59
  text-align: center;
39
60
  padding-top: 2px;
@@ -43,15 +64,17 @@
43
64
  when the tooltip is portal-rendered in document.body (see src/tooltip.ts). */
44
65
  .fw-tooltip {
45
66
  min-width: 260px;
46
- background-color: var(--cs-dark-background);
47
- color: var(--cs-dark-text);
48
- border-radius: 6px;
49
- line-height: 1.5;
67
+ background-color: var(--fw-surface-inverse);
68
+ color: var(--fw-text-inverse);
69
+ border-radius: var(--fw-radius-md);
70
+ box-shadow: var(--fw-shadow-2);
71
+ font-family: var(--fw-font-sans);
72
+ line-height: var(--fw-line-height-relaxed);
50
73
  padding: 14px 18px;
51
- font-size: 12px;
74
+ font-size: var(--fw-font-size-sm);
52
75
  visibility: hidden;
53
76
  opacity: 0;
54
- transition: opacity 1s;
77
+ transition: opacity var(--fw-motion-base) var(--fw-motion-ease);
55
78
  z-index: 1;
56
79
  }
57
80
 
@@ -89,7 +112,7 @@
89
112
  position: relative;
90
113
  display: inline-block;
91
114
  margin-left: 4px;
92
- color: var(--cs-2-background);
115
+ color: var(--fw-accent);
93
116
  cursor: help;
94
117
  }
95
118
 
@@ -103,27 +126,34 @@
103
126
  line-height: inherit;
104
127
  color: inherit;
105
128
  cursor: help;
106
- border-radius: 4px;
129
+ border-radius: var(--fw-radius-sm);
130
+ }
131
+
132
+ .fw-info-tooltip-trigger:hover {
133
+ color: var(--fw-accent);
107
134
  }
108
135
 
109
- .fw-info-tooltip-trigger:hover,
110
136
  .fw-info-tooltip-trigger:focus-visible {
111
- color: var(--cs-link-color, var(--cs-2-background));
137
+ color: var(--fw-accent);
138
+ outline: 2px solid var(--fw-focus);
139
+ outline-offset: 2px;
112
140
  }
113
141
 
114
142
  /* Shared tooltip box styling (applies in-place and portal-rendered). */
115
143
  .fw-info-tooltip-text {
116
144
  min-width: 280px;
117
145
  max-width: 360px;
118
- background-color: var(--cs-dark-background);
119
- color: var(--cs-dark-text);
120
- border-radius: 6px;
146
+ background-color: var(--fw-surface-inverse);
147
+ color: var(--fw-text-inverse);
148
+ border-radius: var(--fw-radius-md);
149
+ box-shadow: var(--fw-shadow-2);
150
+ font-family: var(--fw-font-sans);
121
151
  padding: 12px 16px;
122
- font-size: 12px;
123
- line-height: 1.5;
152
+ font-size: var(--fw-font-size-sm);
153
+ line-height: var(--fw-line-height-relaxed);
124
154
  visibility: hidden;
125
155
  opacity: 0;
126
- transition: opacity 0.3s;
156
+ transition: opacity var(--fw-motion-base) var(--fw-motion-ease);
127
157
  z-index: 100;
128
158
  pointer-events: none;
129
159
  text-align: left;
@@ -154,7 +184,7 @@
154
184
  margin-left: -5px;
155
185
  border-width: 5px;
156
186
  border-style: solid;
157
- border-color: var(--cs-dark-background) transparent transparent transparent;
187
+ border-color: var(--fw-surface-inverse) transparent transparent transparent;
158
188
  }
159
189
 
160
190
  /* When the portal tooltip is flipped below its trigger because there was no
@@ -162,7 +192,7 @@
162
192
  .fw-info-tooltip-text.fw-tooltip-flipped::after {
163
193
  top: auto;
164
194
  bottom: 100%;
165
- border-color: transparent transparent var(--cs-dark-background) transparent;
195
+ border-color: transparent transparent var(--fw-surface-inverse) transparent;
166
196
  }
167
197
 
168
198
  .fw-info-tooltip-text ul {
@@ -174,3 +204,10 @@
174
204
  .fw-info-tooltip-text li {
175
205
  margin-bottom: 4px;
176
206
  }
207
+
208
+ @media (prefers-reduced-motion: reduce) {
209
+ .fw-tooltip,
210
+ .fw-info-tooltip-text {
211
+ transition: none;
212
+ }
213
+ }