@fiduswriter/frontend 0.1.67 → 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.
Files changed (115) hide show
  1. package/README.md +7 -0
  2. package/css/two_factor.css +0 -52
  3. package/css/user_template_manager.css +6 -0
  4. package/dist/app/index.d.ts.map +1 -1
  5. package/dist/app/index.js +2 -1
  6. package/dist/app/index.js.map +1 -1
  7. package/dist/css/bibliography/colors.css +0 -4
  8. package/dist/css/bibliography/forms.css +3 -61
  9. package/dist/css/document-template-editor/document_template_designer.css +68 -68
  10. package/dist/css/fwtoolkit/action_chooser_dialog.css +66 -0
  11. package/dist/css/fwtoolkit/action_toolbar.css +132 -0
  12. package/dist/css/fwtoolkit/alerts.css +53 -19
  13. package/dist/css/fwtoolkit/application_menu_controller.css +28 -0
  14. package/dist/css/fwtoolkit/attachment_field.css +19 -0
  15. package/dist/css/fwtoolkit/attachment_list.css +118 -0
  16. package/dist/css/fwtoolkit/avatar_label.css +80 -0
  17. package/dist/css/fwtoolkit/boolean_switch.css +128 -0
  18. package/dist/css/fwtoolkit/buttons.css +181 -85
  19. package/dist/css/fwtoolkit/category_filter_controller.css +11 -0
  20. package/dist/css/fwtoolkit/checkable_list.css +39 -6
  21. package/dist/css/fwtoolkit/colors.css +71 -69
  22. package/dist/css/fwtoolkit/common.css +49 -17
  23. package/dist/css/fwtoolkit/content_menu.css +49 -27
  24. package/dist/css/fwtoolkit/data_table.css +278 -41
  25. package/dist/css/fwtoolkit/datatable_bulk.css +106 -0
  26. package/dist/css/fwtoolkit/destination_settings_form.css +67 -0
  27. package/dist/css/fwtoolkit/dialog.css +100 -25
  28. package/dist/css/fwtoolkit/dialog_presets.css +157 -0
  29. package/dist/css/fwtoolkit/dialog_table.css +63 -26
  30. package/dist/css/fwtoolkit/directory_navigator.css +244 -0
  31. package/dist/css/fwtoolkit/drop_up.css +36 -24
  32. package/dist/css/fwtoolkit/faq_dialog.css +28 -4
  33. package/dist/css/fwtoolkit/file_input_field.css +150 -0
  34. package/dist/css/fwtoolkit/file_selector.css +265 -12
  35. package/dist/css/fwtoolkit/form_error_summary.css +53 -0
  36. package/dist/css/fwtoolkit/forms.css +261 -54
  37. package/dist/css/fwtoolkit/fwtoolkit.css +6618 -1522
  38. package/dist/css/fwtoolkit/grid_size_picker.css +119 -0
  39. package/dist/css/fwtoolkit/icon_button_group.css +110 -0
  40. package/dist/css/fwtoolkit/image_preview_field.css +156 -0
  41. package/dist/css/fwtoolkit/inline_status.css +69 -0
  42. package/dist/css/fwtoolkit/inline_tools.css +47 -16
  43. package/dist/css/fwtoolkit/input_list.css +33 -2
  44. package/dist/css/fwtoolkit/loader.css +12 -2
  45. package/dist/css/fwtoolkit/media_card_grid.css +251 -0
  46. package/dist/css/fwtoolkit/navigation_drawer.css +172 -0
  47. package/dist/css/fwtoolkit/one_time_code_field.css +135 -0
  48. package/dist/css/fwtoolkit/overflow_action_bar.css +28 -0
  49. package/dist/css/fwtoolkit/overview_menu.css +35 -27
  50. package/dist/css/fwtoolkit/permission_badge.css +121 -0
  51. package/dist/css/fwtoolkit/progress_task.css +51 -27
  52. package/dist/css/fwtoolkit/pulldown.css +50 -22
  53. package/dist/css/fwtoolkit/pulldown_menu.css +22 -11
  54. package/dist/css/fwtoolkit/remote_options_field.css +297 -0
  55. package/dist/css/fwtoolkit/reset.css +4 -3
  56. package/dist/css/fwtoolkit/resource_field.css +134 -0
  57. package/dist/css/fwtoolkit/sortable_list.css +160 -0
  58. package/dist/css/fwtoolkit/text.css +54 -15
  59. package/dist/css/fwtoolkit/token_input.css +189 -0
  60. package/dist/css/fwtoolkit/tokens.css +158 -0
  61. package/dist/css/fwtoolkit/tree_view.css +165 -0
  62. package/dist/css/fwtoolkit/two_pane_selector.css +150 -9
  63. package/dist/css/fwtoolkit/ui_tabs.css +41 -13
  64. package/dist/css/image-manager/dialog_usermedia.css +41 -41
  65. package/dist/css/manifest.json +29 -0
  66. package/dist/css/two_factor.css +0 -52
  67. package/dist/css/user_template_manager.css +6 -0
  68. package/dist/document_templates/editor.d.ts +3 -0
  69. package/dist/document_templates/editor.d.ts.map +1 -1
  70. package/dist/document_templates/editor.js +35 -18
  71. package/dist/document_templates/editor.js.map +1 -1
  72. package/dist/user/auth/login.d.ts.map +1 -1
  73. package/dist/user/auth/login.js +2 -1
  74. package/dist/user/auth/login.js.map +1 -1
  75. package/dist/user/auth/signup.d.ts +3 -1
  76. package/dist/user/auth/signup.d.ts.map +1 -1
  77. package/dist/user/auth/signup.js +30 -1
  78. package/dist/user/auth/signup.js.map +1 -1
  79. package/dist/user/auth/social_icons.d.ts +2 -0
  80. package/dist/user/auth/social_icons.d.ts.map +1 -0
  81. package/dist/user/auth/social_icons.js +11 -0
  82. package/dist/user/auth/social_icons.js.map +1 -0
  83. package/dist/user/auth/two_factor.d.ts.map +1 -1
  84. package/dist/user/auth/two_factor.js +133 -157
  85. package/dist/user/auth/two_factor.js.map +1 -1
  86. package/locale/ar/messages.json +371 -357
  87. package/locale/bg/messages.json +371 -357
  88. package/locale/cs/messages.json +371 -357
  89. package/locale/da/messages.json +371 -357
  90. package/locale/de/messages.json +371 -357
  91. package/locale/en/messages.json +371 -357
  92. package/locale/en_US/messages.json +371 -357
  93. package/locale/es/messages.json +371 -357
  94. package/locale/fr/messages.json +371 -357
  95. package/locale/it/messages.json +371 -357
  96. package/locale/ja/messages.json +371 -357
  97. package/locale/ko/messages.json +371 -357
  98. package/locale/nb/messages.json +371 -357
  99. package/locale/nl/messages.json +371 -357
  100. package/locale/pl/messages.json +371 -357
  101. package/locale/pt_BR/messages.json +371 -357
  102. package/locale/pt_PT/messages.json +371 -357
  103. package/locale/ru/messages.json +371 -357
  104. package/locale/sv/messages.json +371 -357
  105. package/locale/tr/messages.json +371 -357
  106. package/locale/zh_Hans/messages.json +371 -357
  107. package/package.json +8 -7
  108. package/scripts/extract-i18n-generic.js +182 -139
  109. package/src/app/index.ts +3 -1
  110. package/src/document_templates/editor.ts +41 -21
  111. package/src/user/auth/login.ts +2 -1
  112. package/src/user/auth/signup.ts +50 -1
  113. package/src/user/auth/social_icons.ts +10 -0
  114. package/src/user/auth/two_factor.ts +203 -228
  115. package/scripts/extract-fwtoolkit-i18n.js +0 -230
@@ -0,0 +1,119 @@
1
+ .fw-grid-size-picker {
2
+ display: grid;
3
+ gap: var(--fw-space-2);
4
+ min-width: 0;
5
+ color: var(--fw-text-primary);
6
+ }
7
+
8
+ .fw-grid-size-picker-label {
9
+ font-size: 0.875rem;
10
+ font-weight: 600;
11
+ line-height: 1.4;
12
+ }
13
+
14
+ .fw-grid-size-picker-grid {
15
+ display: grid;
16
+ gap: var(--fw-space-1);
17
+ width: fit-content;
18
+ max-width: 100%;
19
+ }
20
+
21
+ .fw-grid-size-picker-row {
22
+ display: grid;
23
+ grid-template-columns: repeat(
24
+ var(--fw-grid-size-columns),
25
+ minmax(2.75rem, 1fr)
26
+ );
27
+ gap: var(--fw-space-1);
28
+ }
29
+
30
+ .fw-grid-size-picker-cell {
31
+ display: inline-grid;
32
+ place-items: center;
33
+ min-width: 2.75rem;
34
+ min-height: 2.75rem;
35
+ margin: 0;
36
+ padding: var(--fw-space-1);
37
+ border: 1px solid var(--fw-border-control);
38
+ border-radius: var(--fw-radius-sm);
39
+ background: var(--fw-surface);
40
+ box-shadow: var(--fw-focus-ring-inset);
41
+ color: var(--fw-text-primary);
42
+ font: inherit;
43
+ font-size: 0.8125rem;
44
+ font-variant-numeric: tabular-nums;
45
+ line-height: 1;
46
+ cursor: pointer;
47
+ transition:
48
+ border-color var(--fw-motion-fast) var(--fw-motion-ease),
49
+ background-color var(--fw-motion-fast) var(--fw-motion-ease),
50
+ box-shadow var(--fw-motion-fast) var(--fw-motion-ease);
51
+ }
52
+
53
+ .fw-grid-size-picker-cell:hover:not(:disabled) {
54
+ border-color: var(--fw-border-strong);
55
+ background: var(--fw-surface-2);
56
+ }
57
+
58
+ .fw-grid-size-picker-cell:focus-visible {
59
+ position: relative;
60
+ z-index: 1;
61
+ outline: none;
62
+ box-shadow: var(--fw-focus-ring);
63
+ }
64
+
65
+ .fw-grid-size-picker-selected {
66
+ border-color: var(--fw-brand);
67
+ background: var(--fw-brand-tint);
68
+ box-shadow: inset 0 0 0 1px var(--fw-brand);
69
+ font-weight: 700;
70
+ }
71
+
72
+ .fw-grid-size-picker-cell:disabled {
73
+ border-color: var(--fw-border-subtle);
74
+ background: var(--fw-surface-2);
75
+ box-shadow: none;
76
+ color: var(--fw-text-muted);
77
+ cursor: not-allowed;
78
+ }
79
+
80
+ .fw-grid-size-picker-input[type="hidden"] {
81
+ display: none;
82
+ }
83
+
84
+ .fw-grid-size-picker-visually-hidden {
85
+ position: absolute;
86
+ width: 1px;
87
+ height: 1px;
88
+ margin: -1px;
89
+ padding: 0;
90
+ overflow: hidden;
91
+ clip: rect(0 0 0 0);
92
+ clip-path: inset(50%);
93
+ white-space: nowrap;
94
+ border: 0;
95
+ }
96
+
97
+ @media (max-width: 480px), (pointer: coarse) {
98
+ .fw-grid-size-picker-grid {
99
+ width: 100%;
100
+ }
101
+
102
+ .fw-grid-size-picker-cell {
103
+ min-width: var(--fw-hit-area);
104
+ min-height: var(--fw-hit-area);
105
+ }
106
+ }
107
+
108
+ @media (prefers-reduced-motion: reduce) {
109
+ .fw-grid-size-picker-cell {
110
+ transition: none;
111
+ }
112
+ }
113
+
114
+ @media (forced-colors: active) {
115
+ .fw-grid-size-picker-selected {
116
+ outline: 2px solid Highlight;
117
+ outline-offset: -3px;
118
+ }
119
+ }
@@ -0,0 +1,110 @@
1
+ .fw-icon-button-group {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: var(--fw-space-1);
5
+ box-sizing: border-box;
6
+ max-width: 100%;
7
+ min-width: 0;
8
+ margin: 0;
9
+ padding: var(--fw-space-1);
10
+ border: 1px solid var(--fw-border-subtle);
11
+ border-radius: var(--fw-radius-lg);
12
+ background: var(--fw-surface);
13
+ }
14
+
15
+ .fw-icon-button-group__button {
16
+ display: inline-flex;
17
+ flex: 0 0 auto;
18
+ align-items: center;
19
+ justify-content: center;
20
+ gap: var(--fw-space-2);
21
+ box-sizing: border-box;
22
+ min-width: var(--fw-hit-area);
23
+ min-height: var(--fw-hit-area);
24
+ margin: 0;
25
+ padding: var(--fw-space-2);
26
+ border: 1px solid transparent;
27
+ border-radius: var(--fw-radius-md);
28
+ background: transparent;
29
+ color: var(--fw-text-primary);
30
+ font: inherit;
31
+ font-size: var(--fw-font-size-base);
32
+ font-weight: var(--fw-font-weight-medium);
33
+ line-height: var(--fw-line-height-tight);
34
+ cursor: pointer;
35
+ transition:
36
+ background-color var(--fw-motion-fast) var(--fw-motion-ease),
37
+ border-color var(--fw-motion-fast) var(--fw-motion-ease),
38
+ color var(--fw-motion-fast) var(--fw-motion-ease);
39
+ }
40
+
41
+ .fw-icon-button-group__button:not(:disabled):hover {
42
+ border-color: var(--fw-border-subtle);
43
+ background: var(--fw-surface-2);
44
+ }
45
+
46
+ .fw-icon-button-group__button[aria-pressed="true"] {
47
+ border-color: var(--fw-brand);
48
+ background: var(--fw-brand-tint);
49
+ color: var(--fw-text-on-brand);
50
+ }
51
+
52
+ .fw-icon-button-group__button[aria-pressed="true"]:not(:disabled):hover {
53
+ background: var(--fw-brand-tint-2);
54
+ }
55
+
56
+ .fw-icon-button-group__button:focus-visible {
57
+ outline: 2px solid var(--fw-focus);
58
+ outline-offset: 2px;
59
+ }
60
+
61
+ .fw-icon-button-group__button:disabled {
62
+ background: var(--fw-surface-2);
63
+ color: var(--fw-text-secondary);
64
+ cursor: not-allowed;
65
+ }
66
+
67
+ .fw-icon-button-group__icon {
68
+ display: inline-flex;
69
+ flex: 0 0 auto;
70
+ align-items: center;
71
+ justify-content: center;
72
+ width: 1.25em;
73
+ font-size: var(--fw-font-size-lg);
74
+ font-style: normal;
75
+ line-height: 1;
76
+ }
77
+
78
+ .fw-icon-button-group__icon[hidden] {
79
+ display: none;
80
+ }
81
+
82
+ .fw-icon-button-group__label {
83
+ position: absolute;
84
+ width: 1px;
85
+ height: 1px;
86
+ padding: 0;
87
+ margin: -1px;
88
+ overflow: hidden;
89
+ clip: rect(0, 0, 0, 0);
90
+ white-space: nowrap;
91
+ border: 0;
92
+ }
93
+
94
+ .fw-icon-button-group__button--text .fw-icon-button-group__label {
95
+ position: static;
96
+ width: auto;
97
+ height: auto;
98
+ padding: 0;
99
+ margin: 0;
100
+ overflow: visible;
101
+ clip: auto;
102
+ white-space: normal;
103
+ border: 0;
104
+ }
105
+
106
+ @media (prefers-reduced-motion: reduce) {
107
+ .fw-icon-button-group__button {
108
+ transition: none;
109
+ }
110
+ }
@@ -0,0 +1,156 @@
1
+ .fw-image-preview-field {
2
+ display: grid;
3
+ gap: var(--fw-space-3);
4
+ color: var(--fw-text-primary);
5
+ font-family: var(--fw-font-sans);
6
+ }
7
+
8
+ .fw-image-preview-label {
9
+ font-weight: var(--fw-font-weight-medium);
10
+ }
11
+
12
+ .fw-image-preview-card {
13
+ position: relative;
14
+ display: grid;
15
+ grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
16
+ align-items: start;
17
+ gap: var(--fw-space-3);
18
+ padding: var(--fw-space-3);
19
+ border: 1px solid var(--fw-border-subtle);
20
+ border-radius: var(--fw-radius-md);
21
+ background-color: var(--fw-surface);
22
+ }
23
+
24
+ .fw-image-preview-frame {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ aspect-ratio: 4 / 3;
29
+ overflow: hidden;
30
+ border-radius: var(--fw-radius-sm);
31
+ background-color: var(--fw-surface-2);
32
+ }
33
+
34
+ .fw-image-preview-image {
35
+ width: 100%;
36
+ height: 100%;
37
+ object-fit: contain;
38
+ }
39
+
40
+ .fw-image-preview-fallback {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ width: 100%;
45
+ height: 100%;
46
+ color: var(--fw-text-secondary);
47
+ font-size: var(--fw-font-size-2xl);
48
+ }
49
+
50
+ .fw-image-preview-copy {
51
+ display: grid;
52
+ min-width: 0;
53
+ gap: var(--fw-space-2);
54
+ }
55
+
56
+ .fw-image-preview-title {
57
+ overflow-wrap: anywhere;
58
+ }
59
+
60
+ .fw-image-preview-alt-label {
61
+ font-size: var(--fw-font-size-sm);
62
+ font-weight: var(--fw-font-weight-medium);
63
+ }
64
+
65
+ .fw-image-preview-alt {
66
+ box-sizing: border-box;
67
+ width: 100%;
68
+ min-height: 4.5rem;
69
+ resize: vertical;
70
+ padding: var(--fw-space-2);
71
+ border: 1px solid var(--fw-border-control);
72
+ border-radius: var(--fw-radius-sm);
73
+ background-color: var(--fw-surface);
74
+ color: var(--fw-text-primary);
75
+ font: inherit;
76
+ }
77
+
78
+ .fw-image-preview-alt:focus-visible,
79
+ .fw-image-preview-remove:focus-visible,
80
+ .fw-image-preview-choose:focus-visible {
81
+ outline: 2px solid var(--fw-focus);
82
+ outline-offset: 2px;
83
+ }
84
+
85
+ .fw-image-preview-meta,
86
+ .fw-image-preview-empty,
87
+ .fw-image-preview-error {
88
+ margin: 0;
89
+ color: var(--fw-text-secondary);
90
+ font-size: var(--fw-font-size-sm);
91
+ }
92
+
93
+ .fw-image-preview-empty {
94
+ padding: var(--fw-space-4);
95
+ border: 1px dashed var(--fw-border);
96
+ border-radius: var(--fw-radius-md);
97
+ text-align: center;
98
+ }
99
+
100
+ .fw-image-preview-error {
101
+ color: var(--fw-danger-text);
102
+ }
103
+
104
+ .fw-image-preview-remove {
105
+ appearance: none;
106
+ display: inline-flex;
107
+ align-items: center;
108
+ justify-content: center;
109
+ width: var(--fw-hit-area);
110
+ height: var(--fw-hit-area);
111
+ padding: 0;
112
+ border: 0;
113
+ border-radius: var(--fw-radius-sm);
114
+ background: transparent;
115
+ color: var(--fw-text-secondary);
116
+ cursor: pointer;
117
+ }
118
+
119
+ .fw-image-preview-remove:hover:not(:disabled) {
120
+ background-color: var(--fw-surface-2);
121
+ color: var(--fw-danger-text);
122
+ }
123
+
124
+ .fw-image-preview-remove:disabled,
125
+ .fw-image-preview-alt:disabled,
126
+ .fw-image-preview-choose:disabled {
127
+ opacity: 0.5;
128
+ cursor: default;
129
+ }
130
+
131
+ .fw-image-preview-choose {
132
+ justify-self: start;
133
+ }
134
+
135
+ .fw-image-preview-status {
136
+ position: absolute;
137
+ width: 1px;
138
+ height: 1px;
139
+ padding: 0;
140
+ margin: -1px;
141
+ overflow: hidden;
142
+ clip: rect(0, 0, 0, 0);
143
+ white-space: nowrap;
144
+ border: 0;
145
+ }
146
+
147
+ @media (max-width: 620px) {
148
+ .fw-image-preview-card {
149
+ grid-template-columns: minmax(0, 1fr) auto;
150
+ }
151
+
152
+ .fw-image-preview-frame {
153
+ grid-column: 1 / -1;
154
+ max-height: 240px;
155
+ }
156
+ }
@@ -0,0 +1,69 @@
1
+ .fw-inline-status {
2
+ --fw-inline-status-warning-text: #765800;
3
+ --fw-inline-status-warning-surface: #fff7d6;
4
+ --fw-inline-status-error-surface: #fff0eb;
5
+ --fw-inline-status-success-text: var(--fw-success, #2f7d38);
6
+ --fw-inline-status-error-text: var(--fw-danger-text, #c22c00);
7
+
8
+ display: flex;
9
+ align-items: flex-start;
10
+ gap: 10px;
11
+ box-sizing: border-box;
12
+ min-width: 0;
13
+ padding: 12px 16px;
14
+ color: var(--fw-text-primary, #3a3a3a);
15
+ background: var(--fw-surface-2, #f0f0f0);
16
+ border: 1px solid var(--fw-border-subtle, #e5e5e5);
17
+ border-inline-start: 4px solid var(--fw-border-strong, #8c8c8c);
18
+ border-radius: var(--fw-radius-md, 8px);
19
+ font-size: var(--fw-font-size-base, 14px);
20
+ line-height: var(--fw-line-height-base, 1.4);
21
+ overflow-wrap: anywhere;
22
+ }
23
+
24
+ .fw-inline-status-icon {
25
+ flex: 0 0 auto;
26
+ display: inline-grid;
27
+ place-items: center;
28
+ width: 1.25em;
29
+ height: 1.25em;
30
+ border: 1px solid currentcolor;
31
+ border-radius: var(--fw-radius-circle, 50%);
32
+ font-size: 0.85em;
33
+ font-weight: var(--fw-font-weight-semibold, 600);
34
+ line-height: 1;
35
+ }
36
+
37
+ .fw-inline-status-message {
38
+ min-width: 0;
39
+ }
40
+
41
+ .fw-inline-status[data-variant="success"] {
42
+ color: var(--fw-inline-status-success-text);
43
+ background: var(--fw-brand-tint, #edfaef);
44
+ border-color: var(--fw-brand, #50c95f);
45
+ }
46
+
47
+ .fw-inline-status[data-variant="warning"] {
48
+ color: var(--fw-inline-status-warning-text);
49
+ background: var(--fw-inline-status-warning-surface);
50
+ border-color: var(--fw-warning, #f5c518);
51
+ }
52
+
53
+ .fw-inline-status[data-variant="error"] {
54
+ color: var(--fw-inline-status-error-text);
55
+ background: var(--fw-inline-status-error-surface);
56
+ border-color: var(--fw-danger-text, #c22c00);
57
+ }
58
+
59
+ .fw-inline-status:focus-within {
60
+ outline: 2px solid var(--fw-focus, #1b57ff);
61
+ outline-offset: 2px;
62
+ }
63
+
64
+ :where([data-theme="dark"], [data-color-scheme="dark"]) .fw-inline-status {
65
+ --fw-inline-status-warning-text: #ffd76a;
66
+ --fw-inline-status-warning-surface: #3a3218;
67
+ --fw-inline-status-error-surface: #3d241d;
68
+ --fw-inline-status-success-text: #85d993;
69
+ }
@@ -1,51 +1,82 @@
1
+ /* Inline formatting toolbar shown under a focused inline input. */
1
2
  .inline-tools {
2
3
  position: absolute;
3
4
  left: auto;
4
5
  top: auto;
5
- margin-top: 3px;
6
+ margin-top: 4px;
6
7
  display: none;
8
+ align-items: center;
9
+ gap: 2px;
10
+ padding: 4px;
11
+ /* Its own surface: it floats over the page, so it must not blend into
12
+ the background (the page and --fw-surface-2 are both #f0f0f0). */
13
+ background-color: var(--fw-surface);
14
+ border: 1px solid var(--fw-border-subtle);
15
+ border-radius: var(--fw-radius-pill);
16
+ box-shadow: var(--fw-shadow-2);
17
+ z-index: 10;
7
18
  }
8
19
 
9
20
  .ProseMirror-focused + .inline-tools {
10
- display: block;
21
+ display: inline-flex;
11
22
  z-index: 10;
12
23
  }
13
24
 
14
25
  .inline-tools .menuicon {
15
26
  position: relative;
16
- display: inline-block;
17
- width: 25px;
18
- height: 25px;
19
- border-radius: 50%;
27
+ display: inline-flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ box-sizing: border-box;
31
+ /* Compact control (smaller than the 44px touch target; the toolbar is a
32
+ dense, pointer-and-keyboard affordance next to the text). */
33
+ width: 28px;
34
+ height: 28px;
35
+ padding: 0;
36
+ border-radius: var(--fw-radius-circle);
20
37
  overflow: hidden;
21
38
  text-indent: -999px;
22
- background-color: var(--cs-2-background);
23
- color: var(--cs-2-text);
39
+ background-color: transparent;
40
+ color: var(--fw-text-primary);
24
41
  cursor: pointer;
42
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
25
43
  }
26
44
 
27
45
  .inline-tools .menuicon:hover {
28
- background-color: var(--cs-2-background-hover);
46
+ background-color: var(--fw-surface-2);
29
47
  }
30
48
 
49
+ /* Active inline formats use the brand as a fill with dark glyphs. */
31
50
  .inline-tools .menuicon.fw-active {
32
- background-color: var(--cs-2-background-selected);
51
+ background-color: var(--fw-brand-tint-3);
52
+ color: var(--fw-text-on-brand);
53
+ }
54
+
55
+ .inline-tools .menuicon.fw-active:hover {
56
+ background-color: var(--fw-brand-tint-2);
57
+ }
58
+
59
+ .inline-tools .menuicon:focus-visible {
60
+ outline: 2px solid var(--fw-focus);
61
+ outline-offset: 1px;
33
62
  }
34
63
 
35
64
  .inline-tools .menuicon + .menuicon {
36
- margin-left: 2px;
65
+ margin-left: 0;
37
66
  }
38
67
 
68
+ /* Glyph centred in the 28px box. */
39
69
  .inline-tools .menuicon::before {
40
- position: absolute;
41
- left: 0;
42
- top: 0;
70
+ position: static;
71
+ display: inline-flex;
72
+ align-items: center;
73
+ justify-content: center;
43
74
  width: 100%;
44
75
  height: 100%;
45
76
  text-indent: 0;
46
77
  text-align: center;
47
- line-height: 25px;
48
- font-size: 13px;
78
+ line-height: 1;
79
+ font-size: var(--fw-font-size-xs);
49
80
  }
50
81
 
51
82
  .menuicon.strong::before,
@@ -1,5 +1,6 @@
1
1
  .fw-input-list-wrapper {
2
2
  width: 100%;
3
+ table-layout: fixed;
3
4
  border-collapse: collapse;
4
5
  }
5
6
 
@@ -15,16 +16,46 @@
15
16
  width: 100%;
16
17
  }
17
18
 
19
+ /* Keep inputs inside list items within the available width so the
20
+ add/remove controls are always visible without horizontal scrolling. */
21
+ .fw-input-list-wrapper .fw-input-list-item-cell .ProseMirror,
22
+ .fw-input-list-wrapper .fw-input-list-item-cell input[type="text"],
23
+ .fw-input-list-wrapper .fw-input-list-item-cell input[type="number"],
24
+ .fw-input-list-wrapper .fw-input-list-item-cell textarea {
25
+ width: 100%;
26
+ max-width: 100%;
27
+ box-sizing: border-box;
28
+ }
29
+
18
30
  .fw-input-field-list-ctrl {
31
+ width: 1%;
19
32
  white-space: nowrap;
20
33
  padding-left: 8px;
21
- padding-top: 10px;
22
- color: var(--cs-light-text);
34
+ vertical-align: middle;
35
+ color: var(--fw-text-primary);
23
36
  }
24
37
 
25
38
  .fw-input-field-list-ctrl .fa-minus-circle,
26
39
  .fw-input-field-list-ctrl .fa-plus-circle {
27
40
  cursor: pointer;
41
+ display: inline-flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ min-width: var(--fw-hit-area);
45
+ min-height: var(--fw-hit-area);
46
+ border-radius: var(--fw-radius-circle);
47
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
48
+ }
49
+
50
+ .fw-input-field-list-ctrl .fa-minus-circle:hover,
51
+ .fw-input-field-list-ctrl .fa-plus-circle:hover {
52
+ background-color: var(--fw-surface-2);
53
+ }
54
+
55
+ .fw-input-field-list-ctrl .fa-minus-circle:focus-visible,
56
+ .fw-input-field-list-ctrl .fa-plus-circle:focus-visible {
57
+ outline: 2px solid var(--fw-focus);
58
+ outline-offset: 2px;
28
59
  }
29
60
 
30
61
  .fw-input-list-wrapper tr.fw-form-error .fw-input-list-item-cell input,
@@ -7,6 +7,7 @@
7
7
  inset: 0;
8
8
  background-color: rgb(var(--wait-active-background-color));
9
9
  z-index: 1500;
10
+ font-family: var(--fw-font-sans);
10
11
  }
11
12
 
12
13
  #fw-wait.fw-active.fw-full {
@@ -19,9 +20,17 @@
19
20
  position: fixed;
20
21
  top: 50%;
21
22
  left: 50%;
22
- font-size: 24px;
23
+ font-size: 32px;
24
+ color: var(--fw-brand-active);
23
25
  margin-top: -0.5em;
24
26
  margin-left: -0.5em;
27
+ animation: fw-wait-pulse 1.2s ease-in-out infinite;
28
+ }
29
+
30
+ @keyframes fw-wait-pulse {
31
+ 50% {
32
+ opacity: 0.45;
33
+ }
25
34
  }
26
35
 
27
36
  #fw-wait span {
@@ -33,6 +42,7 @@
33
42
  justify-content: center;
34
43
  align-items: center;
35
44
  min-height: 105vh;
36
- font-size: 15px;
45
+ font-size: var(--fw-font-size-lg);
46
+ color: var(--fw-text-primary);
37
47
  margin-top: 20px;
38
48
  }