@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.
Files changed (2) hide show
  1. package/elements/layout.js +31 -0
  2. package/package.json +1 -1
@@ -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]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {