@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.
@@ -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: function(dom) {
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.35",
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.8.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
@@ -37,15 +37,4 @@ span.blue {
37
37
  span.purple {
38
38
  color: purple;
39
39
  }
40
- span.small {
41
- font-size: 0.8em;
42
- }
43
- span.base {
44
- font-size: 1.2em;
45
- }
46
- span.large {
47
- font-size: 1.6em;
48
- }
49
- span.extra {
50
- font-size: 2em;
51
- }
40
+
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
- &.column {
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%;