@pageboard/html 0.14.30 → 0.14.31
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/elements/inlines.js +16 -15
- package/package.json +1 -1
- package/ui/site.css +29 -3
package/elements/inlines.js
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
// TODO use "excludes" https://prosemirror.net/docs/ref/#model.MarkSpec.excludes
|
|
2
|
-
// to avoid having incompatible marks
|
|
3
|
-
exports.notranslate = {
|
|
4
|
-
title: "No translation",
|
|
5
|
-
priority: 100,
|
|
6
|
-
contents: "text*",
|
|
7
|
-
inplace: true,
|
|
8
|
-
inline: true,
|
|
9
|
-
group: "inline nolink",
|
|
10
|
-
icon: '<b class="icon">no tr</b>',
|
|
11
|
-
tag: 'span[translate="no"]',
|
|
12
|
-
html: '<span translate="no"></span>'
|
|
13
|
-
};
|
|
14
|
-
|
|
15
1
|
exports.strong = {
|
|
16
2
|
title: "Strong",
|
|
17
3
|
priority: 100,
|
|
18
4
|
contents: "text*",
|
|
19
5
|
inplace: true,
|
|
20
6
|
inline: true,
|
|
7
|
+
excludes: 'light',
|
|
21
8
|
group: "inline nolink",
|
|
22
9
|
icon: '<i class="icon bold"></i>',
|
|
23
10
|
tag: 'strong,b',
|
|
@@ -55,6 +42,7 @@ exports.light = {
|
|
|
55
42
|
contents: "text*",
|
|
56
43
|
inline: true,
|
|
57
44
|
inplace: true,
|
|
45
|
+
excludes: 'strong',
|
|
58
46
|
group: "inline nolink",
|
|
59
47
|
html: '<span class="lighter"></span>'
|
|
60
48
|
};
|
|
@@ -73,7 +61,7 @@ exports.sup = {
|
|
|
73
61
|
};
|
|
74
62
|
|
|
75
63
|
exports.sub = {
|
|
76
|
-
title: "
|
|
64
|
+
title: "Sub",
|
|
77
65
|
priority: 105,
|
|
78
66
|
icon: '<i class="subscript icon"></i>',
|
|
79
67
|
contents: "text*",
|
|
@@ -307,3 +295,16 @@ exports.color = { // deprecated
|
|
|
307
295
|
group: "inline nolink",
|
|
308
296
|
html: '<span class="[color] color"></span>'
|
|
309
297
|
};
|
|
298
|
+
|
|
299
|
+
exports.notranslate = {
|
|
300
|
+
title: "Untranslatable",
|
|
301
|
+
priority: 110,
|
|
302
|
+
contents: "text*",
|
|
303
|
+
inplace: true,
|
|
304
|
+
inline: true,
|
|
305
|
+
group: "inline nolink",
|
|
306
|
+
icon: '<i class="large translate icon"></i>',
|
|
307
|
+
tag: 'span[translate="no"]',
|
|
308
|
+
html: '<span translate="no"></span>'
|
|
309
|
+
};
|
|
310
|
+
|
package/package.json
CHANGED
package/ui/site.css
CHANGED
|
@@ -22,7 +22,7 @@ body {
|
|
|
22
22
|
overflow-x: hidden;
|
|
23
23
|
min-width: 320px;
|
|
24
24
|
background: #FFFFFF;
|
|
25
|
-
font-family:
|
|
25
|
+
font-family: Arial, sans-serif;
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
line-height: 1.4285em;
|
|
28
28
|
color: rgb(0 0 0 / 87%);
|
|
@@ -43,7 +43,7 @@ h4,
|
|
|
43
43
|
h5 {
|
|
44
44
|
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
45
45
|
line-height: 1.2857em;
|
|
46
|
-
margin: calc(2rem - 0.
|
|
46
|
+
margin: calc(2rem - 0.1429em) 0em 1rem;
|
|
47
47
|
font-weight: bold;
|
|
48
48
|
padding: 0;
|
|
49
49
|
}
|
|
@@ -106,7 +106,33 @@ p:last-child {
|
|
|
106
106
|
text-align:justify;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
span.lighter {
|
|
110
|
+
font-weight:lighter;
|
|
111
|
+
}
|
|
112
|
+
span.black {
|
|
113
|
+
color: black;
|
|
114
|
+
}
|
|
115
|
+
span.white {
|
|
116
|
+
color: white;
|
|
117
|
+
}
|
|
118
|
+
span.red {
|
|
119
|
+
color: red;
|
|
120
|
+
}
|
|
121
|
+
span.orange {
|
|
122
|
+
color: orange;
|
|
123
|
+
}
|
|
124
|
+
span.yellow {
|
|
125
|
+
color: yellow;
|
|
126
|
+
}
|
|
127
|
+
span.green {
|
|
128
|
+
color: green;
|
|
129
|
+
}
|
|
130
|
+
span.blue {
|
|
131
|
+
color: blue;
|
|
132
|
+
}
|
|
133
|
+
span.purple {
|
|
134
|
+
color: purple;
|
|
135
|
+
}
|
|
110
136
|
|
|
111
137
|
/*-------------------
|
|
112
138
|
Links
|