@pageboard/html 0.14.35 → 0.14.37
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 +2 -37
- package/package.json +2 -2
- package/ui/form.js +1 -1
- package/ui/inlines.css +1 -12
- package/ui/layout.css +12 -11
package/elements/inlines.js
CHANGED
|
@@ -95,31 +95,7 @@ exports.style = {
|
|
|
95
95
|
group: "inline nolink",
|
|
96
96
|
tag: 'span.style',
|
|
97
97
|
properties: {
|
|
98
|
-
size:
|
|
99
|
-
title: 'Size',
|
|
100
|
-
default: null,
|
|
101
|
-
anyOf: [{
|
|
102
|
-
const: null,
|
|
103
|
-
title: 'Default',
|
|
104
|
-
icon: '<span class="icon">∅</span>'
|
|
105
|
-
}, {
|
|
106
|
-
const: 'small',
|
|
107
|
-
title: 'Small',
|
|
108
|
-
icon: '<span class="icon char" style="font-size:0.6em">aA</span>'
|
|
109
|
-
}, {
|
|
110
|
-
const: 'base',
|
|
111
|
-
title: 'Base',
|
|
112
|
-
icon: '<span class="icon char" style="font-size:0.8em">aA</span>'
|
|
113
|
-
}, {
|
|
114
|
-
const: 'large',
|
|
115
|
-
title: 'Large',
|
|
116
|
-
icon: '<span class="icon char" style="font-size:1.2em">aA</span>'
|
|
117
|
-
}, {
|
|
118
|
-
const: 'extra',
|
|
119
|
-
title: 'Extra',
|
|
120
|
-
icon: '<span class="icon char" style="font-size:1.6em">aA</span>'
|
|
121
|
-
}]
|
|
122
|
-
},
|
|
98
|
+
size: exports.paragraph.properties.size,
|
|
123
99
|
transform: {
|
|
124
100
|
title: 'Transform',
|
|
125
101
|
default: null,
|
|
@@ -193,18 +169,7 @@ exports.style = {
|
|
|
193
169
|
nullable: true
|
|
194
170
|
}
|
|
195
171
|
},
|
|
196
|
-
parse:
|
|
197
|
-
const data = {};
|
|
198
|
-
for (const [key, schema] of Object.entries(this.properties)) {
|
|
199
|
-
if (schema.anyOf) for (const item of schema.anyOf) {
|
|
200
|
-
if (item.const && dom.classList.contains(item.const)) {
|
|
201
|
-
data[key] = item.const;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (dom.translate === false) data.idiom = true;
|
|
206
|
-
return data;
|
|
207
|
-
},
|
|
172
|
+
parse: exports.paragraph.parse,
|
|
208
173
|
html: '<span class="style [size] [transform] [color]" translate="[idiom|alt:no:]"></span>',
|
|
209
174
|
stylesheets: [
|
|
210
175
|
'../ui/inlines.css'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pageboard/html",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"nouislider": "^15.7.1",
|
|
19
|
-
"postinstall": "^0.
|
|
19
|
+
"postinstall": "^0.9.0"
|
|
20
20
|
},
|
|
21
21
|
"postinstall": {},
|
|
22
22
|
"prepare": {
|
package/ui/form.js
CHANGED
|
@@ -357,7 +357,7 @@ class HTMLElementForm extends Page.create(HTMLFormElement) {
|
|
|
357
357
|
form.backup();
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
const loc = Page.parse(redirect.fuse({}, scope)
|
|
360
|
+
const loc = Page.parse(redirect).fuse({}, scope);
|
|
361
361
|
let vary = false;
|
|
362
362
|
if (loc.samePathname(state)) {
|
|
363
363
|
if (res.granted) {
|
package/ui/inlines.css
CHANGED
package/ui/layout.css
CHANGED
|
@@ -34,6 +34,17 @@
|
|
|
34
34
|
&.column {
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
align-items:stretch;
|
|
37
|
+
|
|
38
|
+
& > img,
|
|
39
|
+
&.left > img {
|
|
40
|
+
align-self:flex-start;
|
|
41
|
+
}
|
|
42
|
+
&.hcenter > img {
|
|
43
|
+
align-self:center;
|
|
44
|
+
}
|
|
45
|
+
&.right > img {
|
|
46
|
+
align-self:flex-end;
|
|
47
|
+
}
|
|
37
48
|
}
|
|
38
49
|
|
|
39
50
|
&.top {
|
|
@@ -67,17 +78,7 @@
|
|
|
67
78
|
justify-content: flex-end;
|
|
68
79
|
}
|
|
69
80
|
|
|
70
|
-
|
|
71
|
-
> img, &.left > img {
|
|
72
|
-
align-self:flex-start;
|
|
73
|
-
}
|
|
74
|
-
&.hcenter > img {
|
|
75
|
-
align-self:center;
|
|
76
|
-
}
|
|
77
|
-
&.right > img {
|
|
78
|
-
align-self:flex-end;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
+
|
|
81
82
|
|
|
82
83
|
&.fullwidth {
|
|
83
84
|
width:100%;
|