@fiduswriter/frontend 0.1.53 → 0.1.54
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.
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/* Default part colors. Hosts with a full color scheme (the Fidus Writer
|
|
2
|
+
frontend/Django apps define these in their colors.css) override them;
|
|
3
|
+
standalone embeds get the canonical scheme so the drag & drop palette
|
|
4
|
+
stays readable. */
|
|
5
|
+
:root {
|
|
6
|
+
--part-neutral-background-color: #f0f8ff;
|
|
7
|
+
--part-neutral-border-color: #000000;
|
|
8
|
+
--part-heading-background-color: #84c4fe;
|
|
9
|
+
--part-contributors-background-color: #928efe;
|
|
10
|
+
--part-richtext-background-color: #ffc87b;
|
|
11
|
+
--part-tags-background-color: #ffdf7b;
|
|
12
|
+
--part-table-background-color: #bfedc1;
|
|
13
|
+
--part-toc-background-color: #985f99;
|
|
14
|
+
}
|
|
15
|
+
|
|
1
16
|
table td {
|
|
2
17
|
vertical-align: top;
|
|
3
18
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
.fw-editor {
|
|
2
2
|
height: 100%;
|
|
3
3
|
font-family: Lato, sans-serif;
|
|
4
4
|
font-size: 13px;
|
|
5
5
|
width: 100%;
|
|
6
6
|
overflow-x: hidden;
|
|
7
|
+
/* Responsive queries below key off the width of the editor itself (not
|
|
8
|
+
the browser window), so the compact layout also engages when the
|
|
9
|
+
editor is embedded in a narrower host container (CMS admin pages,
|
|
10
|
+
iframes, split views). Layout containment re-anchors position:fixed
|
|
11
|
+
descendants (header, margin-box overlay) to the editor root, which is
|
|
12
|
+
what those rules intend anyway. */
|
|
13
|
+
container: fw-editor / inline-size;
|
|
7
14
|
}
|
|
8
15
|
|
|
9
|
-
|
|
16
|
+
.fw-editor header {
|
|
10
17
|
position: fixed;
|
|
11
18
|
width: 100%;
|
|
12
19
|
z-index: 91;
|
|
@@ -356,11 +363,11 @@ math-field {
|
|
|
356
363
|
padding: 0.5in 54px 0 110px;
|
|
357
364
|
}
|
|
358
365
|
|
|
359
|
-
|
|
366
|
+
.fw-editor.header-closed #toolbar {
|
|
360
367
|
padding-top: 12px;
|
|
361
368
|
}
|
|
362
369
|
|
|
363
|
-
|
|
370
|
+
.fw-editor.header-closed #editor-content {
|
|
364
371
|
top: 72px;
|
|
365
372
|
}
|
|
366
373
|
|
|
@@ -872,9 +879,9 @@ html[hc="a5"] .fw-overlay {
|
|
|
872
879
|
background-color: rgb(var(--highcontrast-overlay-color));
|
|
873
880
|
}
|
|
874
881
|
|
|
875
|
-
html[hc="a3"]
|
|
876
|
-
html[hc="a4"]
|
|
877
|
-
html[hc="a5"]
|
|
882
|
+
html[hc="a3"] .fw-editor,
|
|
883
|
+
html[hc="a4"] .fw-editor,
|
|
884
|
+
html[hc="a5"] .fw-editor {
|
|
878
885
|
background-color: var(--highcontrast-background-color);
|
|
879
886
|
}
|
|
880
887
|
|
|
@@ -1124,12 +1131,14 @@ html[hc="a5"] #toolbar {
|
|
|
1124
1131
|
display: none;
|
|
1125
1132
|
}
|
|
1126
1133
|
|
|
1127
|
-
|
|
1134
|
+
.fw-editor.no-scroll {
|
|
1128
1135
|
overflow: hidden;
|
|
1129
1136
|
}
|
|
1130
1137
|
|
|
1131
|
-
/* Additions for tablets + mobile
|
|
1132
|
-
|
|
1138
|
+
/* Additions for tablets + mobile. Container queries: measured against the
|
|
1139
|
+
editor element itself so embedding contexts get the compact layout when
|
|
1140
|
+
the editor (not the window) is narrow. */
|
|
1141
|
+
@container fw-editor (width <= 1279px) {
|
|
1133
1142
|
#document-top > h1 {
|
|
1134
1143
|
padding-left: 52px;
|
|
1135
1144
|
background-position: 14px 0;
|
|
@@ -1153,7 +1162,7 @@ body.no-scroll {
|
|
|
1153
1162
|
}
|
|
1154
1163
|
}
|
|
1155
1164
|
|
|
1156
|
-
@
|
|
1165
|
+
@container fw-editor (width <= 1023px) {
|
|
1157
1166
|
#toolbar {
|
|
1158
1167
|
padding-bottom: 6px;
|
|
1159
1168
|
}
|
|
@@ -1188,11 +1197,11 @@ body.no-scroll {
|
|
|
1188
1197
|
line-height: 46px;
|
|
1189
1198
|
}
|
|
1190
1199
|
|
|
1191
|
-
|
|
1200
|
+
.fw-editor.header-closed #navigator {
|
|
1192
1201
|
top: 64px;
|
|
1193
1202
|
}
|
|
1194
1203
|
|
|
1195
|
-
|
|
1204
|
+
.fw-editor.header-closed #editor-content {
|
|
1196
1205
|
top: 96px;
|
|
1197
1206
|
}
|
|
1198
1207
|
|
|
@@ -1233,7 +1242,7 @@ body.no-scroll {
|
|
|
1233
1242
|
right: 8px;
|
|
1234
1243
|
}
|
|
1235
1244
|
|
|
1236
|
-
|
|
1245
|
+
.fw-editor.header-closed #margin-box-filter {
|
|
1237
1246
|
top: 64px !important;
|
|
1238
1247
|
}
|
|
1239
1248
|
|
|
@@ -1273,7 +1282,7 @@ body.no-scroll {
|
|
|
1273
1282
|
}
|
|
1274
1283
|
}
|
|
1275
1284
|
|
|
1276
|
-
@
|
|
1285
|
+
@container fw-editor (width <= 420px) {
|
|
1277
1286
|
.editor-toolbar div.ui-buttonset {
|
|
1278
1287
|
margin-right: 0;
|
|
1279
1288
|
}
|
|
@@ -1503,3 +1512,13 @@ pre[data-language] {
|
|
|
1503
1512
|
color: var(--cs-light-text-secondary);
|
|
1504
1513
|
word-break: break-all;
|
|
1505
1514
|
}
|
|
1515
|
+
|
|
1516
|
+
/* The MathLive virtual keyboard defaults to a z-index around 105, which puts
|
|
1517
|
+
it below fwtoolkit dialogs (z-index ≥ 1000) and their overlays — the
|
|
1518
|
+
keyboard would be invisible while a math/figure dialog is open. Raise it
|
|
1519
|
+
above the current dialog stack: fwtoolkit's Dialog.open() sets
|
|
1520
|
+
--highest-dialog-z-index inline on <body>, which inherits into the
|
|
1521
|
+
keyboard element (appended to document.body). */
|
|
1522
|
+
math-virtual-keyboard {
|
|
1523
|
+
--keyboard-zindex: calc(var(--highest-dialog-z-index, 1000) + 1);
|
|
1524
|
+
}
|
|
@@ -80,8 +80,9 @@ because PM needs some content. */
|
|
|
80
80
|
display: grid;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
/* Mobile/tablet layout: stack footnotes under the main text with full width.
|
|
84
|
-
|
|
83
|
+
/* Mobile/tablet layout: stack footnotes under the main text with full width.
|
|
84
|
+
Container query: measured against the editor element (see editor.css). */
|
|
85
|
+
@container fw-editor (width <= 1023px) {
|
|
85
86
|
#footnote-box-container {
|
|
86
87
|
display: block;
|
|
87
88
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiduswriter/frontend",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Fidus Writer-specific shared utilities and UI chrome",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fiduswriter",
|
|
@@ -210,13 +210,13 @@
|
|
|
210
210
|
"postinstall": "node scripts/aggregate-assets.js"
|
|
211
211
|
},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"@fiduswriter/bibliography-manager": "^0.1.
|
|
214
|
-
"@fiduswriter/document": "^0.3.
|
|
215
|
-
"@fiduswriter/document-template-editor": "^0.1.
|
|
216
|
-
"@fiduswriter/editor": "^0.2.
|
|
213
|
+
"@fiduswriter/bibliography-manager": "^0.1.33",
|
|
214
|
+
"@fiduswriter/document": "^0.3.15",
|
|
215
|
+
"@fiduswriter/document-template-editor": "^0.1.20",
|
|
216
|
+
"@fiduswriter/editor": "^0.2.17",
|
|
217
217
|
"@fiduswriter/image-manager": "^0.1.26",
|
|
218
218
|
"downloadjs": "^1.4.7",
|
|
219
|
-
"fwtoolkit": "^0.2.
|
|
219
|
+
"fwtoolkit": "^0.2.25",
|
|
220
220
|
"jszip": "^3.10.1",
|
|
221
221
|
"prosemirror-history": "^1.3.2",
|
|
222
222
|
"prosemirror-keymap": "^1.2.2",
|