@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
@@ -1,10 +1,16 @@
1
1
  body {
2
2
  width: 100%;
3
3
  height: 100%;
4
- background-color: var(--main-background-color);
5
- color: var(--main-text-color);
4
+ background-color: var(--fw-surface-2);
5
+ color: var(--fw-text-primary);
6
+ font-family: var(--fw-font-sans);
7
+ font-size: var(--fw-font-size-base);
8
+ font-weight: var(--fw-font-weight-normal);
9
+ line-height: var(--fw-line-height-base);
6
10
  min-width: calc(380px - 100vw + 100%); /* to substract scrollbar width. */
7
11
  overflow-y: hidden;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
8
14
  }
9
15
 
10
16
  body.fw-scrollable {
@@ -14,7 +20,8 @@ body.fw-scrollable {
14
20
  .fw-header {
15
21
  width: 100%;
16
22
  height: auto;
17
- background-color: var(--cs-5-background);
23
+ background-color: var(--fw-surface-2);
24
+ color: var(--fw-text-primary);
18
25
  z-index: 2;
19
26
  }
20
27
 
@@ -44,8 +51,9 @@ body.fw-scrollable {
44
51
  }
45
52
 
46
53
  .fw-contents h1 {
47
- font-size: 2em;
48
- font-weight: bold;
54
+ font-size: var(--fw-font-size-title);
55
+ font-weight: var(--fw-font-weight-medium);
56
+ line-height: var(--fw-line-height-tight);
49
57
  margin-bottom: 0.2em;
50
58
  }
51
59
 
@@ -85,7 +93,9 @@ table .fw-inline {
85
93
  }
86
94
 
87
95
  .fw-avatar {
88
- border: solid 1px var(--cs-light-border);
96
+ border: solid 1px var(--fw-border-subtle);
97
+ border-radius: var(--fw-radius-circle);
98
+ object-fit: cover;
89
99
  }
90
100
 
91
101
  .fw-string-avatar {
@@ -93,9 +103,9 @@ table .fw-inline {
93
103
  line-height: 1;
94
104
  text-align: center;
95
105
  text-transform: uppercase;
96
- border-radius: 50%;
97
- background-color: grey;
98
- color: white;
106
+ border-radius: var(--fw-radius-circle);
107
+ background-color: var(--fw-surface-inverse);
108
+ color: var(--fw-text-inverse);
99
109
  }
100
110
 
101
111
  .fw-string-avatar > span {
@@ -136,10 +146,10 @@ table .fw-inline {
136
146
  }
137
147
 
138
148
  .fw-avatar-card-email {
139
- font-size: 13px;
149
+ font-size: var(--fw-font-size-md);
140
150
  display: block;
141
151
  padding-top: 6px;
142
- color: var(--cs-white-text-secondary);
152
+ color: var(--fw-text-secondary);
143
153
  }
144
154
 
145
155
  .ProseMirror {
@@ -155,8 +165,12 @@ table .fw-inline {
155
165
  white-space: pre-wrap;
156
166
  }
157
167
 
168
+ .ProseMirror br.ProseMirror-trailingBreak {
169
+ display: none;
170
+ }
171
+
158
172
  .ProseMirror span.fw-placeholder::before {
159
- color: var(--cs-white-placeholder-text);
173
+ color: var(--fw-text-secondary);
160
174
  content: attr(data-placeholder);
161
175
  cursor: text;
162
176
  }
@@ -179,14 +193,15 @@ table .fw-inline {
179
193
 
180
194
  div.fw-input {
181
195
  box-sizing: border-box;
182
- font-size: 14px;
183
- line-height: 1.33em;
196
+ font-family: var(--fw-font-sans);
197
+ font-size: var(--fw-font-size-base);
198
+ line-height: var(--fw-line-height-base);
184
199
  box-shadow: none;
185
- border-radius: 0;
200
+ border-radius: var(--fw-radius-md);
186
201
  padding: 11px 10px 0;
187
202
  min-height: 38px;
188
- color: var(--cs-light-text);
189
- background-color: var(--cs-light-background);
203
+ color: var(--fw-text-primary);
204
+ background-color: var(--fw-surface);
190
205
  }
191
206
 
192
207
  .fw-access-key {
@@ -194,3 +209,20 @@ div.fw-input {
194
209
  text-underline-offset: 2px; /* Adjust for better visibility */
195
210
  pointer-events: none;
196
211
  }
212
+
213
+ /* Global focus policy: never remove focus without a replacement. */
214
+ :focus-visible {
215
+ outline: 2px solid var(--fw-focus);
216
+ outline-offset: 2px;
217
+ }
218
+
219
+ @media (prefers-reduced-motion: reduce) {
220
+ *,
221
+ *::before,
222
+ *::after {
223
+ animation-duration: 0.01ms !important;
224
+ animation-iteration-count: 1 !important;
225
+ transition-duration: 0.01ms !important;
226
+ scroll-behavior: auto !important;
227
+ }
228
+ }
@@ -1,9 +1,10 @@
1
1
  .fw-content-menu {
2
2
  position: absolute;
3
- color: var(--cs-white-text);
4
- background-color: var(--cs-white-background);
5
- box-shadow: 0 0 20px rgb(var(--dropup-box-shadow-color));
6
- font-size: 14px;
3
+ color: var(--fw-text-primary);
4
+ background-color: var(--fw-surface);
5
+ box-shadow: var(--fw-shadow-2);
6
+ font-family: var(--fw-font-sans);
7
+ font-size: var(--fw-font-size-base);
7
8
  /* Above open dialogs (z-index 1000): the Dialog class maintains
8
9
  * --highest-dialog-z-index on body; when no dialog is open the fallback
9
10
  * keeps the historical stacking just above the overlay (100). */
@@ -12,7 +13,7 @@
12
13
  border: 0 none;
13
14
  border-image: initial;
14
15
  overflow: hidden;
15
- border-radius: 6px;
16
+ border-radius: var(--fw-radius-lg);
16
17
  outline: 0;
17
18
  }
18
19
 
@@ -22,7 +23,7 @@
22
23
 
23
24
  .fw-content-menu-content {
24
25
  position: relative;
25
- margin-top: 8px;
26
+ margin: 0;
26
27
  overflow: hidden;
27
28
  }
28
29
 
@@ -43,57 +44,78 @@
43
44
 
44
45
  .fw-content-menu-list {
45
46
  list-style: none;
46
- padding: 0 0 5px;
47
+ padding: 8px 0;
47
48
  cursor: pointer;
48
49
  }
49
50
 
50
51
  .fw-content-menu-item {
51
- padding: 18px 31px 15px;
52
- color: var(--cs-white-text);
53
- font-family: Lato, sans-serif;
54
- font-size: 14px;
55
- font-weight: 400;
56
- line-height: 1em;
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 10px;
55
+ min-height: 44px;
56
+ box-sizing: border-box;
57
+ padding: 10px 24px;
58
+ color: var(--fw-text-primary);
59
+ font-family: var(--fw-font-sans);
60
+ font-size: var(--fw-font-size-base);
61
+ font-weight: var(--fw-font-weight-normal);
62
+ line-height: var(--fw-line-height-tight);
63
+ background-color: transparent;
64
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
57
65
  }
58
66
 
59
67
  .fw-content-menu-item.fw-disabled {
60
68
  pointer-events: none;
69
+ color: var(--fw-text-secondary);
61
70
  opacity: 0.6;
62
71
  }
63
72
 
64
73
  .fw-content-menu-item.fw-selected {
65
- color: var(--cs-white-selected);
66
- background-color: var(--cs-white-background-selected);
74
+ color: var(--fw-text-on-brand);
75
+ background-color: var(--fw-brand-tint-3);
76
+ font-weight: var(--fw-font-weight-medium);
67
77
  }
68
78
 
69
- .fw-content-menu-item:hover {
70
- color: var(--cs-white-hover);
71
- background-color: var(--cs-white-background-hover);
79
+ .fw-content-menu-item:hover:not(.fw-disabled) {
80
+ color: var(--fw-text-primary);
81
+ background-color: var(--fw-surface-2);
72
82
  }
73
83
 
74
84
  .fw-content-menu-item:focus {
75
- color: var(--cs-white-focus);
76
- background-color: var(--cs-white-background-focus);
85
+ color: var(--fw-text-primary);
86
+ background-color: var(--fw-surface-2);
77
87
  outline: none;
78
88
  }
79
89
 
90
+ .fw-content-menu-item:focus-visible {
91
+ outline: 2px solid var(--fw-focus);
92
+ outline-offset: -2px;
93
+ }
94
+
80
95
  .fw-content-menu-item-divider {
81
96
  border: 0 none;
82
- border-top: 1px solid var(--pulldown-separator-color) !important;
97
+ border-top: 1px solid var(--fw-border-subtle) !important;
98
+ margin: 8px 12px;
83
99
  }
84
100
 
85
101
  .fw-content-menu-item-header {
86
102
  line-height: 18px;
87
- background-color: var(--pulldown-header-background-color);
88
- color: var(--pulldown-header-text-color);
103
+ background-color: transparent;
104
+ color: var(--fw-text-secondary);
105
+ font-size: var(--fw-font-size-sm);
106
+ font-weight: var(--fw-font-weight-medium);
107
+ letter-spacing: 0.04em;
108
+ text-transform: uppercase;
89
109
  display: block;
90
- text-align: center;
110
+ text-align: left;
111
+ padding: 12px 24px 4px;
112
+ min-height: 0;
91
113
  }
92
114
 
93
115
  .fw-content-menu-item-icon {
94
116
  position: absolute;
95
- right: 40px;
96
- color: var(--cs-white-text);
117
+ right: 24px;
118
+ color: var(--fw-text-secondary);
97
119
  }
98
120
 
99
121
  .fw-content-menu-columns {
@@ -104,5 +126,5 @@
104
126
  .fw-content-menu-columns .fw-content-menu-list {
105
127
  flex: 1 0 200px;
106
128
  min-width: 200px;
107
- padding: 0 0 5px;
129
+ padding: 8px 0;
108
130
  }
@@ -1,6 +1,36 @@
1
1
  table.fw-data-table {
2
- font-size: 13px;
3
- line-height: 1.25;
2
+ font-family: var(--fw-font-sans);
3
+ font-size: var(--fw-font-size-base);
4
+ line-height: var(--fw-line-height-base);
5
+ color: var(--fw-text-primary);
6
+ border-collapse: separate;
7
+ border-spacing: 0;
8
+ }
9
+
10
+ /* Rounded selection highlight: the row keeps square cells but paints the
11
+ rounded tint via the first/last cell so tables stay valid markup. The
12
+ outer cells carry the same 16px inset as the header so the highlight's
13
+ rounded ends line up with the select-all pill above. */
14
+ table.fw-data-table tbody tr.fw-row-selected > td,
15
+ table.fw-data-table tbody tr.datatable-cursor > td,
16
+ table.fw-data-table tbody tr.fw-datatable-cursor > td {
17
+ background-color: var(--fw-brand-tint-3);
18
+ }
19
+
20
+ table.fw-data-table tbody tr.fw-row-selected > td:first-child,
21
+ table.fw-data-table tbody tr.datatable-cursor > td:first-child,
22
+ table.fw-data-table tbody tr.fw-datatable-cursor > td:first-child {
23
+ border-radius: var(--fw-radius-card) 0 0 var(--fw-radius-card);
24
+ }
25
+
26
+ table.fw-data-table tbody tr.fw-row-selected > td:last-child,
27
+ table.fw-data-table tbody tr.datatable-cursor > td:last-child,
28
+ table.fw-data-table tbody tr.fw-datatable-cursor > td:last-child {
29
+ border-radius: 0 var(--fw-radius-card) var(--fw-radius-card) 0;
30
+ }
31
+
32
+ table.fw-data-table tbody tr {
33
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
4
34
  }
5
35
 
6
36
  /* Prevent the search/top bar from overflowing a padded parent */
@@ -16,14 +46,72 @@ table.fw-data-table {
16
46
  width: auto;
17
47
  }
18
48
 
49
+ /* Design 5: the search field is a 258x60 white pill in the top-right corner,
50
+ not a full-width box. */
51
+ .datatable-top {
52
+ display: flex;
53
+ justify-content: flex-end;
54
+ align-items: center;
55
+ min-height: var(--fw-control-height);
56
+ padding: 0 0 var(--fw-space-2);
57
+ }
58
+
59
+ .datatable-search {
60
+ position: relative;
61
+ flex: 0 0 auto;
62
+ width: 258px;
63
+ max-width: 100%;
64
+ }
65
+
66
+ .datatable-search::before {
67
+ content: "\f002";
68
+ position: absolute;
69
+ left: 20px;
70
+ top: 50%;
71
+ transform: translateY(-50%);
72
+ font-family:
73
+ "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome", monospace;
74
+ font-weight: 900;
75
+ font-size: var(--fw-font-size-base);
76
+ color: var(--fw-text-secondary);
77
+ pointer-events: none;
78
+ }
79
+
80
+ .datatable-search .datatable-input.datatable-input {
81
+ width: 100%;
82
+ height: var(--fw-control-height);
83
+ padding: 0 20px 0 48px;
84
+ border: 0;
85
+ border-radius: var(--fw-radius-pill);
86
+ background-color: var(--fw-surface);
87
+ box-shadow: var(--fw-shadow-1);
88
+ font-size: var(--fw-font-size-base);
89
+ }
90
+
91
+ .datatable-search .datatable-input.datatable-input::placeholder {
92
+ color: var(--fw-text-secondary);
93
+ }
94
+
95
+ .datatable-search .datatable-input.datatable-input:focus {
96
+ box-shadow: var(--fw-focus-ring);
97
+ border-color: transparent;
98
+ }
99
+
100
+ @media (width <= 700px) {
101
+ .datatable-search {
102
+ width: 100%;
103
+ }
104
+ }
105
+
19
106
  table.fw-data-table:focus {
20
107
  outline: none;
21
108
  }
22
109
 
23
110
  table.fw-data-table thead,
24
111
  table.datatable-table thead {
25
- font-weight: 900;
26
- font-size: 11px;
112
+ font-weight: var(--fw-font-weight-medium);
113
+ font-size: var(--fw-font-size-lg);
114
+ color: var(--fw-text-primary);
27
115
  }
28
116
 
29
117
  /* simple-datatables wraps header text in a <button> - reset it to plain text */
@@ -37,6 +125,13 @@ table.datatable-table thead {
37
125
  font-family: inherit;
38
126
  font-weight: inherit;
39
127
  font-size: inherit;
128
+ border-radius: var(--fw-radius-sm);
129
+ }
130
+
131
+ .datatable-table th button:focus-visible,
132
+ .datatable-pagination-list button:focus-visible {
133
+ outline: 2px solid var(--fw-focus);
134
+ outline-offset: 2px;
40
135
  }
41
136
 
42
137
  .datatable-sorter,
@@ -56,7 +151,7 @@ table.datatable-table thead {
56
151
  right: 4px;
57
152
  border-left: 4px solid transparent;
58
153
  border-right: 4px solid transparent;
59
- opacity: 0.2;
154
+ opacity: 0.35;
60
155
  }
61
156
 
62
157
  .datatable-sorter::before {
@@ -74,18 +169,20 @@ table.datatable-table thead {
74
169
  .datatable-descending .datatable-sorter::before,
75
170
  .datatable-ascending .datatable-filter::after,
76
171
  .datatable-descending .datatable-filter::before {
77
- opacity: 0.6;
172
+ opacity: 1;
173
+ color: var(--fw-accent);
78
174
  }
79
175
 
80
176
  table.datatable-table thead th a {
81
- color: var(--cs-1-hover);
177
+ color: var(--fw-text-primary);
82
178
  }
83
179
 
84
180
  table.fw-data-table td,
85
181
  table.datatable-table td {
86
- padding: 15px 0;
87
- vertical-align: top;
88
- border-bottom: solid 1px var(--cs-white-border);
182
+ padding: 16px 12px;
183
+ vertical-align: middle;
184
+ border-bottom: solid 1px var(--fw-border-subtle);
185
+ text-align: left;
89
186
  }
90
187
 
91
188
  /* Align text with top of images */
@@ -95,20 +192,36 @@ table.fw-data-table tbody td {
95
192
 
96
193
  table.fw-data-table th,
97
194
  table.datatable-table th {
98
- padding: 15px 0;
99
- vertical-align: top;
100
- border-bottom: solid 1px var(--cs-white-header-border);
195
+ padding: 12px;
196
+ vertical-align: middle;
197
+ border-bottom: solid 2px var(--fw-border-strong);
198
+ text-align: left;
199
+ white-space: nowrap;
101
200
  }
102
201
 
103
- table.fw-data-table th:last-child,
104
- table.fw-data-table td:last-child,
105
- table.datatable-table th:last-child,
106
- table.datatable-table td:last-child {
107
- padding-right: 0;
202
+ /* Select-all header cell: sized to the pill, with horizontal padding only
203
+ so the pill keeps its outer gutter (see the outer-gutter rules at the end
204
+ of this file). */
205
+ table.fw-data-table th:has(> .dt-bulk),
206
+ table.datatable-table th:has(> .dt-bulk) {
207
+ width: 1%;
208
+ padding: 0 12px;
209
+ text-align: left;
210
+ white-space: nowrap;
211
+ vertical-align: middle;
212
+ }
213
+
214
+ table.fw-data-table:focus {
215
+ outline: none;
108
216
  }
109
217
 
110
218
  table.fw-data-table:focus tbody td {
111
- border-bottom-color: var(--menu-cursor-border-color);
219
+ border-bottom-color: var(--fw-border-subtle);
220
+ }
221
+
222
+ table.fw-data-table:focus-visible {
223
+ outline: 2px solid var(--fw-focus);
224
+ outline-offset: 4px;
112
225
  }
113
226
 
114
227
  table.fw-data-table .date,
@@ -143,7 +256,8 @@ table.fw-data-table td.td-icon {
143
256
  }
144
257
 
145
258
  table.fw-data-table-title {
146
- color: var(--cs-1-text);
259
+ color: var(--fw-text-primary);
260
+ font-weight: var(--fw-font-weight-medium);
147
261
  }
148
262
 
149
263
  table.fw-data-table-title i.fa,
@@ -157,14 +271,25 @@ table.fw-data-table .fw-icon-trash {
157
271
  font-size: 15px;
158
272
  }
159
273
 
274
+ /* Row-action icons: >=3:1 stroke colour (--fw-text-primary), with a 44px
275
+ hit area around the glyph. */
160
276
  .owned-by-user .icon-access-right,
161
277
  .fw-owned-by-user .fw-icon-access-right,
162
278
  table.fw-data-table .fa-clock,
163
279
  table.fw-data-table .fa-trash,
164
280
  table.fw-data-table .fa-download,
165
- table.fw-data-table .fa-history {
166
- color: var(--cs-1-icon);
281
+ table.fw-data-table .fa-history,
282
+ table.fw-data-table .icon-trash,
283
+ table.fw-data-table .fw-icon-trash {
284
+ color: var(--fw-text-primary);
167
285
  cursor: pointer;
286
+ display: inline-flex;
287
+ align-items: center;
288
+ justify-content: center;
289
+ min-width: 44px;
290
+ min-height: 44px;
291
+ border-radius: var(--fw-radius-circle);
292
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
168
293
  }
169
294
 
170
295
  .owned-by-user .icon-access-right:hover,
@@ -172,8 +297,28 @@ table.fw-data-table .fa-history {
172
297
  table.fw-data-table .fa-clock:hover,
173
298
  table.fw-data-table .fa-trash:hover,
174
299
  table.fw-data-table .fa-download:hover,
175
- table.fw-data-table .fa-history:hover {
176
- color: var(--cs-1-hover);
300
+ table.fw-data-table .fa-history:hover,
301
+ table.fw-data-table .icon-trash:hover,
302
+ table.fw-data-table .fw-icon-trash:hover {
303
+ color: var(--fw-text-primary);
304
+ background-color: var(--fw-surface-2);
305
+ }
306
+
307
+ table.fw-data-table .fa-clock:focus-visible,
308
+ table.fw-data-table .fa-trash:focus-visible,
309
+ table.fw-data-table .fa-download:focus-visible,
310
+ table.fw-data-table .fa-history:focus-visible,
311
+ .owned-by-user .icon-access-right:focus-visible,
312
+ .fw-owned-by-user .fw-icon-access-right:focus-visible {
313
+ outline: 2px solid var(--fw-focus);
314
+ outline-offset: 2px;
315
+ }
316
+
317
+ /* Destructive row action keeps the danger accent on hover. */
318
+ table.fw-data-table .fa-trash:hover,
319
+ table.fw-data-table .icon-trash:hover,
320
+ table.fw-data-table .fw-icon-trash:hover {
321
+ color: var(--fw-danger-text);
177
322
  }
178
323
 
179
324
  /* A deleted access rights row */
@@ -192,12 +337,20 @@ table.fw-data-table .fw-string-avatar {
192
337
  }
193
338
 
194
339
  table.fw-data-table > tbody > tr > td:first-child {
195
- padding-left: 2px;
340
+ /* 16px outer gutter, matching the header and the rounded row highlight. */
341
+ padding-left: 16px;
342
+ }
343
+
344
+ table.fw-data-table:focus > tbody > tr.datatable-cursor > td,
345
+ table.fw-data-table:focus > tbody > tr.fw-datatable-cursor > td,
346
+ table.fw-data-table > tbody > tr.datatable-cursor > td,
347
+ table.fw-data-table > tbody > tr.fw-datatable-cursor > td {
348
+ background-color: var(--fw-brand-tint-3);
196
349
  }
197
350
 
198
- table.fw-data-table:focus > tbody > tr.datatable-cursor,
199
- table.fw-data-table:focus > tbody > tr.fw-datatable-cursor {
200
- background-color: var(--cs-white-background-selected);
351
+ table.fw-data-table:focus-visible > tbody > tr.datatable-cursor > td,
352
+ table.fw-data-table:focus-visible > tbody > tr.fw-datatable-cursor > td {
353
+ box-shadow: inset 0 0 0 2px var(--fw-focus);
201
354
  }
202
355
 
203
356
  /* the usermedia table */
@@ -254,26 +407,110 @@ table.fw-data-table.fw-selection-table tbody tr {
254
407
  cursor: pointer;
255
408
  }
256
409
 
410
+ table.fw-data-table.fw-selection-table tbody tr:hover > td {
411
+ background-color: var(--fw-surface-2);
412
+ }
413
+
414
+ /* simple-datatables chrome */
415
+ .datatable-container {
416
+ font-family: var(--fw-font-sans);
417
+ font-size: var(--fw-font-size-base);
418
+ color: var(--fw-text-primary);
419
+ }
420
+
421
+ .datatable-top,
422
+ .datatable-bottom {
423
+ padding: 8px 0;
424
+ color: var(--fw-text-secondary);
425
+ font-size: var(--fw-font-size-sm);
426
+ }
427
+
428
+ .datatable-input {
429
+ height: 44px;
430
+ padding: 0 16px;
431
+ border: 1px solid var(--fw-border);
432
+ border-radius: var(--fw-radius-pill);
433
+ background-color: var(--fw-surface);
434
+ color: var(--fw-text-primary);
435
+ font-family: var(--fw-font-sans);
436
+ font-size: var(--fw-font-size-base);
437
+ }
438
+
439
+ .datatable-input:focus {
440
+ border-color: var(--fw-focus);
441
+ outline: none;
442
+ }
443
+
444
+ .datatable-selector {
445
+ min-height: 44px;
446
+ padding: 0 12px;
447
+ border: 1px solid var(--fw-border);
448
+ border-radius: var(--fw-radius-pill);
449
+ background-color: var(--fw-surface);
450
+ color: var(--fw-text-primary);
451
+ }
452
+
453
+ .datatable-pagination-list button {
454
+ min-width: 44px;
455
+ min-height: 44px;
456
+ border-radius: var(--fw-radius-circle);
457
+ color: var(--fw-text-primary);
458
+ }
459
+
460
+ .datatable-pagination-list button:hover:not([disabled]) {
461
+ background-color: var(--fw-surface-2);
462
+ }
463
+
464
+ .datatable-pagination .active button {
465
+ background-color: var(--fw-brand-tint-2);
466
+ color: var(--fw-text-on-brand);
467
+ }
468
+
469
+ .datatable-pagination-list button[disabled] {
470
+ color: var(--fw-text-secondary);
471
+ opacity: 0.6;
472
+ }
473
+
474
+ @media (prefers-reduced-motion: reduce) {
475
+ table.fw-data-table tbody tr,
476
+ table.fw-data-table .fa-trash {
477
+ transition: none;
478
+ }
479
+ }
480
+
257
481
  /* Word counter dialog table */
258
482
  .fw-word-counter-tbody {
259
483
  line-height: 38px;
260
484
  }
261
485
 
262
- /* Bulk action */
263
- .dt-bulk {
264
- display: block;
265
- position: relative;
266
- min-width: 30px;
486
+ /* Bulk-action bar: see datatable_bulk.css */
487
+
488
+ /* -------------------------------------------------------------------------
489
+ * Outer gutters
490
+ *
491
+ * The first and last cells of every row (header and body) get a 16px
492
+ * gutter. The select-all pill lives in the first header cell, and rounded
493
+ * row highlights follow the same inset, so the pill's checkbox lines up
494
+ * with the row checkboxes and the rounded ends line up with the pill.
495
+ * Declared last so they win over the base cell padding above.
496
+ * ---------------------------------------------------------------------- */
497
+ table.fw-data-table th:first-child,
498
+ table.fw-data-table td:first-child,
499
+ table.datatable-table th:first-child,
500
+ table.datatable-table td:first-child {
501
+ padding-left: 16px;
267
502
  }
268
503
 
269
- .dt-bulk .fw-check + label {
270
- display: inline-block;
271
- vertical-align: middle;
504
+ table.fw-data-table th:last-child,
505
+ table.fw-data-table td:last-child,
506
+ table.datatable-table th:last-child,
507
+ table.datatable-table td:last-child {
508
+ padding-right: 16px;
272
509
  }
273
510
 
274
- .dt-bulk-dropdown {
275
- display: inline-block;
276
- vertical-align: middle;
277
- padding-left: 3px;
278
- cursor: pointer;
511
+ /* The bulk pill cell has no gutter of its own: the pill owns its inner
512
+ spacing, and the pill's checkbox is aligned with the row checkboxes by
513
+ starting the pill at the table edge (see datatable_bulk.css). */
514
+ table.fw-data-table th:has(> .dt-bulk):first-child {
515
+ padding-left: 0;
279
516
  }