@pageboard/html 0.13.4 → 0.13.5
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/layout.js +31 -0
- package/package.json +1 -1
package/elements/layout.js
CHANGED
|
@@ -137,6 +137,35 @@ exports.layout = {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
+
padding: {
|
|
141
|
+
title: 'Padding',
|
|
142
|
+
type: 'object',
|
|
143
|
+
nullable: true,
|
|
144
|
+
properties: {
|
|
145
|
+
inline: {
|
|
146
|
+
title: 'Inline (em)',
|
|
147
|
+
type: 'number',
|
|
148
|
+
default: 0,
|
|
149
|
+
minimum: 0,
|
|
150
|
+
multipleOf: 0.1,
|
|
151
|
+
nullable: true
|
|
152
|
+
},
|
|
153
|
+
inlineUnits: {
|
|
154
|
+
const: 'em'
|
|
155
|
+
},
|
|
156
|
+
block: {
|
|
157
|
+
title: 'Block (rem)',
|
|
158
|
+
type: 'number',
|
|
159
|
+
default: 0,
|
|
160
|
+
minimum: 0,
|
|
161
|
+
multipleOf: 0.1,
|
|
162
|
+
nullable: true
|
|
163
|
+
},
|
|
164
|
+
blockUnits: {
|
|
165
|
+
const: 'rem'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
140
169
|
background: {
|
|
141
170
|
title: 'Background',
|
|
142
171
|
type: 'object',
|
|
@@ -314,6 +343,8 @@ exports.layout = {
|
|
|
314
343
|
data-crop="[background.crop.x];[background.crop.y];[background.crop.width];[background.crop.height];[background.crop.zoom]"
|
|
315
344
|
style-margin-block="[margins.block|fail:][margins.blockUnits]"
|
|
316
345
|
style-margin-inline="[margins.inline|fail:][margins.inlineUnits]"
|
|
346
|
+
style-padding-block="[padding.block|fail:][padding.blockUnits]"
|
|
347
|
+
style-padding-inline="[padding.inline|fail:][padding.inlineUnits]"
|
|
317
348
|
style-height="[height|fail:][heightUnits]"
|
|
318
349
|
style-background-color="[background.color]"
|
|
319
350
|
style-background-size="[background.size]"
|