@webstudio-is/react-sdk 0.78.0 → 0.79.0
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/lib/cjs/css/normalize.js +22 -42
- package/lib/cjs/css/presets.js +1 -111
- package/lib/css/normalize.js +22 -32
- package/lib/css/presets.js +1 -111
- package/lib/types/css/normalize.d.ts +0 -520
- package/lib/types/css/presets.d.ts +0 -282
- package/package.json +7 -7
- package/src/css/normalize.ts +22 -31
- package/src/css/presets.ts +0 -110
package/lib/cjs/css/normalize.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
var normalize_exports = {};
|
|
30
20
|
__export(normalize_exports, {
|
|
@@ -33,7 +23,6 @@ __export(normalize_exports, {
|
|
|
33
23
|
article: () => article,
|
|
34
24
|
aside: () => aside,
|
|
35
25
|
b: () => b,
|
|
36
|
-
blockquote: () => blockquote,
|
|
37
26
|
body: () => body,
|
|
38
27
|
button: () => button,
|
|
39
28
|
code: () => code,
|
|
@@ -78,25 +67,17 @@ __export(normalize_exports, {
|
|
|
78
67
|
ul: () => ul
|
|
79
68
|
});
|
|
80
69
|
module.exports = __toCommonJS(normalize_exports);
|
|
81
|
-
var
|
|
70
|
+
var import_presets = require("./presets");
|
|
82
71
|
const boxSizing = {
|
|
83
72
|
property: "boxSizing",
|
|
84
73
|
value: { type: "keyword", value: "border-box" }
|
|
85
74
|
};
|
|
86
|
-
const baseStyle = [
|
|
87
|
-
boxSizing,
|
|
88
|
-
...presets.borders,
|
|
89
|
-
...presets.outline
|
|
90
|
-
];
|
|
75
|
+
const baseStyle = [boxSizing, ...import_presets.borders, ...import_presets.outline];
|
|
91
76
|
const div = baseStyle;
|
|
92
77
|
const address = baseStyle;
|
|
93
78
|
const article = baseStyle;
|
|
94
79
|
const aside = baseStyle;
|
|
95
|
-
const
|
|
96
|
-
...baseStyle,
|
|
97
|
-
...presets.blockquote
|
|
98
|
-
];
|
|
99
|
-
const figure = [...baseStyle, ...presets.margins];
|
|
80
|
+
const figure = baseStyle;
|
|
100
81
|
const footer = baseStyle;
|
|
101
82
|
const header = baseStyle;
|
|
102
83
|
const main = baseStyle;
|
|
@@ -104,19 +85,19 @@ const nav = baseStyle;
|
|
|
104
85
|
const section = baseStyle;
|
|
105
86
|
const form = baseStyle;
|
|
106
87
|
const label = baseStyle;
|
|
107
|
-
const h1 =
|
|
108
|
-
const h2 =
|
|
109
|
-
const h3 =
|
|
110
|
-
const h4 =
|
|
111
|
-
const h5 =
|
|
112
|
-
const h6 =
|
|
88
|
+
const h1 = baseStyle;
|
|
89
|
+
const h2 = baseStyle;
|
|
90
|
+
const h3 = baseStyle;
|
|
91
|
+
const h4 = baseStyle;
|
|
92
|
+
const h5 = baseStyle;
|
|
93
|
+
const h6 = baseStyle;
|
|
113
94
|
const i = baseStyle;
|
|
114
95
|
const img = baseStyle;
|
|
115
96
|
const a = baseStyle;
|
|
116
97
|
const li = baseStyle;
|
|
117
98
|
const ul = baseStyle;
|
|
118
99
|
const ol = baseStyle;
|
|
119
|
-
const p =
|
|
100
|
+
const p = baseStyle;
|
|
120
101
|
const span = baseStyle;
|
|
121
102
|
const html = [
|
|
122
103
|
/* 1 */
|
|
@@ -135,7 +116,7 @@ const html = [
|
|
|
135
116
|
value: { type: "unit", value: 4, unit: "number" }
|
|
136
117
|
},
|
|
137
118
|
boxSizing,
|
|
138
|
-
...
|
|
119
|
+
...import_presets.borders
|
|
139
120
|
];
|
|
140
121
|
const body = [
|
|
141
122
|
/* 1 */
|
|
@@ -172,7 +153,7 @@ const body = [
|
|
|
172
153
|
value: { type: "unit", unit: "number", value: 1.2 }
|
|
173
154
|
},
|
|
174
155
|
boxSizing,
|
|
175
|
-
...
|
|
156
|
+
...import_presets.borders
|
|
176
157
|
];
|
|
177
158
|
const hr = [
|
|
178
159
|
/* 1 */
|
|
@@ -186,8 +167,7 @@ const hr = [
|
|
|
186
167
|
value: { type: "keyword", value: "inherit" }
|
|
187
168
|
},
|
|
188
169
|
boxSizing,
|
|
189
|
-
...
|
|
190
|
-
...presets.margins
|
|
170
|
+
...import_presets.borders
|
|
191
171
|
];
|
|
192
172
|
const b = [
|
|
193
173
|
{
|
|
@@ -195,7 +175,7 @@ const b = [
|
|
|
195
175
|
value: { type: "keyword", value: "700" }
|
|
196
176
|
},
|
|
197
177
|
boxSizing,
|
|
198
|
-
...
|
|
178
|
+
...import_presets.borders
|
|
199
179
|
];
|
|
200
180
|
const strong = b;
|
|
201
181
|
const code = [
|
|
@@ -213,7 +193,7 @@ const code = [
|
|
|
213
193
|
value: { type: "unit", value: 1, unit: "em" }
|
|
214
194
|
},
|
|
215
195
|
boxSizing,
|
|
216
|
-
...
|
|
196
|
+
...import_presets.borders
|
|
217
197
|
];
|
|
218
198
|
const kbd = code;
|
|
219
199
|
const samp = code;
|
|
@@ -224,7 +204,7 @@ const small = [
|
|
|
224
204
|
value: { type: "unit", value: 80, unit: "%" }
|
|
225
205
|
},
|
|
226
206
|
boxSizing,
|
|
227
|
-
...
|
|
207
|
+
...import_presets.borders
|
|
228
208
|
];
|
|
229
209
|
const subSupBase = [
|
|
230
210
|
{
|
|
@@ -244,7 +224,7 @@ const subSupBase = [
|
|
|
244
224
|
value: { type: "keyword", value: "baseline" }
|
|
245
225
|
},
|
|
246
226
|
boxSizing,
|
|
247
|
-
...
|
|
227
|
+
...import_presets.borders
|
|
248
228
|
];
|
|
249
229
|
const sub = [
|
|
250
230
|
...subSupBase,
|
|
@@ -266,7 +246,7 @@ const table = [
|
|
|
266
246
|
property: "textIndent",
|
|
267
247
|
value: { type: "unit", value: 0, unit: "number" }
|
|
268
248
|
},
|
|
269
|
-
...
|
|
249
|
+
...import_presets.borders,
|
|
270
250
|
/* 2 */
|
|
271
251
|
{
|
|
272
252
|
property: "borderTopColor",
|
|
@@ -318,7 +298,7 @@ const buttonBase = [
|
|
|
318
298
|
value: { type: "unit", value: 0, unit: "number" }
|
|
319
299
|
},
|
|
320
300
|
boxSizing,
|
|
321
|
-
...
|
|
301
|
+
...import_presets.borders
|
|
322
302
|
];
|
|
323
303
|
const input = buttonBase;
|
|
324
304
|
const optgroup = buttonBase;
|
|
@@ -349,7 +329,7 @@ const legend = [
|
|
|
349
329
|
value: { type: "unit", value: 0, unit: "number" }
|
|
350
330
|
},
|
|
351
331
|
boxSizing,
|
|
352
|
-
...
|
|
332
|
+
...import_presets.borders
|
|
353
333
|
];
|
|
354
334
|
const progress = [
|
|
355
335
|
{
|
|
@@ -357,7 +337,7 @@ const progress = [
|
|
|
357
337
|
value: { type: "keyword", value: "baseline" }
|
|
358
338
|
},
|
|
359
339
|
boxSizing,
|
|
360
|
-
...
|
|
340
|
+
...import_presets.borders
|
|
361
341
|
];
|
|
362
342
|
const summary = [
|
|
363
343
|
{
|
|
@@ -365,5 +345,5 @@ const summary = [
|
|
|
365
345
|
value: { type: "keyword", value: "list-item" }
|
|
366
346
|
},
|
|
367
347
|
boxSizing,
|
|
368
|
-
...
|
|
348
|
+
...import_presets.borders
|
|
369
349
|
];
|
package/lib/cjs/css/presets.js
CHANGED
|
@@ -18,17 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var presets_exports = {};
|
|
20
20
|
__export(presets_exports, {
|
|
21
|
-
blockquote: () => blockquote,
|
|
22
21
|
borders: () => borders,
|
|
23
|
-
|
|
24
|
-
h2: () => h2,
|
|
25
|
-
h3: () => h3,
|
|
26
|
-
h4: () => h4,
|
|
27
|
-
h5: () => h5,
|
|
28
|
-
h6: () => h6,
|
|
29
|
-
margins: () => margins,
|
|
30
|
-
outline: () => outline,
|
|
31
|
-
verticalMargins: () => verticalMargins
|
|
22
|
+
outline: () => outline
|
|
32
23
|
});
|
|
33
24
|
module.exports = __toCommonJS(presets_exports);
|
|
34
25
|
const borders = [
|
|
@@ -55,104 +46,3 @@ const outline = [
|
|
|
55
46
|
value: { type: "unit", value: 1, unit: "px" }
|
|
56
47
|
}
|
|
57
48
|
];
|
|
58
|
-
const margins = [
|
|
59
|
-
{
|
|
60
|
-
property: "marginTop",
|
|
61
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
property: "marginRight",
|
|
65
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
property: "marginBottom",
|
|
69
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
property: "marginLeft",
|
|
73
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
74
|
-
}
|
|
75
|
-
];
|
|
76
|
-
const verticalMargins = [
|
|
77
|
-
{
|
|
78
|
-
property: "marginTop",
|
|
79
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
property: "marginBottom",
|
|
83
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
84
|
-
}
|
|
85
|
-
];
|
|
86
|
-
const blockquote = [
|
|
87
|
-
...margins,
|
|
88
|
-
{
|
|
89
|
-
property: "paddingTop",
|
|
90
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
property: "paddingBottom",
|
|
94
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
property: "paddingLeft",
|
|
98
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
property: "paddingRight",
|
|
102
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
property: "borderLeftWidth",
|
|
106
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
property: "borderLeftStyle",
|
|
110
|
-
value: { type: "keyword", value: "solid" }
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
property: "borderLeftColor",
|
|
114
|
-
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
115
|
-
}
|
|
116
|
-
];
|
|
117
|
-
const h1 = [
|
|
118
|
-
...verticalMargins,
|
|
119
|
-
{
|
|
120
|
-
property: "fontSize",
|
|
121
|
-
value: { type: "unit", value: 38, unit: "px" }
|
|
122
|
-
}
|
|
123
|
-
];
|
|
124
|
-
const h2 = [
|
|
125
|
-
...verticalMargins,
|
|
126
|
-
{
|
|
127
|
-
property: "fontSize",
|
|
128
|
-
value: { type: "unit", value: 32, unit: "px" }
|
|
129
|
-
}
|
|
130
|
-
];
|
|
131
|
-
const h3 = [
|
|
132
|
-
...verticalMargins,
|
|
133
|
-
{
|
|
134
|
-
property: "fontSize",
|
|
135
|
-
value: { type: "unit", value: 24, unit: "px" }
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
const h4 = [
|
|
139
|
-
...verticalMargins,
|
|
140
|
-
{
|
|
141
|
-
property: "fontSize",
|
|
142
|
-
value: { type: "unit", value: 18, unit: "px" }
|
|
143
|
-
}
|
|
144
|
-
];
|
|
145
|
-
const h5 = [
|
|
146
|
-
...verticalMargins,
|
|
147
|
-
{
|
|
148
|
-
property: "fontSize",
|
|
149
|
-
value: { type: "unit", value: 14, unit: "px" }
|
|
150
|
-
}
|
|
151
|
-
];
|
|
152
|
-
const h6 = [
|
|
153
|
-
...verticalMargins,
|
|
154
|
-
{
|
|
155
|
-
property: "fontSize",
|
|
156
|
-
value: { type: "unit", value: 12, unit: "px" }
|
|
157
|
-
}
|
|
158
|
-
];
|
package/lib/css/normalize.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { borders, outline } from "./presets";
|
|
2
2
|
const boxSizing = {
|
|
3
3
|
property: "boxSizing",
|
|
4
4
|
value: { type: "keyword", value: "border-box" }
|
|
5
5
|
};
|
|
6
|
-
const baseStyle = [
|
|
7
|
-
boxSizing,
|
|
8
|
-
...presets.borders,
|
|
9
|
-
...presets.outline
|
|
10
|
-
];
|
|
6
|
+
const baseStyle = [boxSizing, ...borders, ...outline];
|
|
11
7
|
const div = baseStyle;
|
|
12
8
|
const address = baseStyle;
|
|
13
9
|
const article = baseStyle;
|
|
14
10
|
const aside = baseStyle;
|
|
15
|
-
const
|
|
16
|
-
...baseStyle,
|
|
17
|
-
...presets.blockquote
|
|
18
|
-
];
|
|
19
|
-
const figure = [...baseStyle, ...presets.margins];
|
|
11
|
+
const figure = baseStyle;
|
|
20
12
|
const footer = baseStyle;
|
|
21
13
|
const header = baseStyle;
|
|
22
14
|
const main = baseStyle;
|
|
@@ -24,19 +16,19 @@ const nav = baseStyle;
|
|
|
24
16
|
const section = baseStyle;
|
|
25
17
|
const form = baseStyle;
|
|
26
18
|
const label = baseStyle;
|
|
27
|
-
const h1 =
|
|
28
|
-
const h2 =
|
|
29
|
-
const h3 =
|
|
30
|
-
const h4 =
|
|
31
|
-
const h5 =
|
|
32
|
-
const h6 =
|
|
19
|
+
const h1 = baseStyle;
|
|
20
|
+
const h2 = baseStyle;
|
|
21
|
+
const h3 = baseStyle;
|
|
22
|
+
const h4 = baseStyle;
|
|
23
|
+
const h5 = baseStyle;
|
|
24
|
+
const h6 = baseStyle;
|
|
33
25
|
const i = baseStyle;
|
|
34
26
|
const img = baseStyle;
|
|
35
27
|
const a = baseStyle;
|
|
36
28
|
const li = baseStyle;
|
|
37
29
|
const ul = baseStyle;
|
|
38
30
|
const ol = baseStyle;
|
|
39
|
-
const p =
|
|
31
|
+
const p = baseStyle;
|
|
40
32
|
const span = baseStyle;
|
|
41
33
|
const html = [
|
|
42
34
|
/* 1 */
|
|
@@ -55,7 +47,7 @@ const html = [
|
|
|
55
47
|
value: { type: "unit", value: 4, unit: "number" }
|
|
56
48
|
},
|
|
57
49
|
boxSizing,
|
|
58
|
-
...
|
|
50
|
+
...borders
|
|
59
51
|
];
|
|
60
52
|
const body = [
|
|
61
53
|
/* 1 */
|
|
@@ -92,7 +84,7 @@ const body = [
|
|
|
92
84
|
value: { type: "unit", unit: "number", value: 1.2 }
|
|
93
85
|
},
|
|
94
86
|
boxSizing,
|
|
95
|
-
...
|
|
87
|
+
...borders
|
|
96
88
|
];
|
|
97
89
|
const hr = [
|
|
98
90
|
/* 1 */
|
|
@@ -106,8 +98,7 @@ const hr = [
|
|
|
106
98
|
value: { type: "keyword", value: "inherit" }
|
|
107
99
|
},
|
|
108
100
|
boxSizing,
|
|
109
|
-
...
|
|
110
|
-
...presets.margins
|
|
101
|
+
...borders
|
|
111
102
|
];
|
|
112
103
|
const b = [
|
|
113
104
|
{
|
|
@@ -115,7 +106,7 @@ const b = [
|
|
|
115
106
|
value: { type: "keyword", value: "700" }
|
|
116
107
|
},
|
|
117
108
|
boxSizing,
|
|
118
|
-
...
|
|
109
|
+
...borders
|
|
119
110
|
];
|
|
120
111
|
const strong = b;
|
|
121
112
|
const code = [
|
|
@@ -133,7 +124,7 @@ const code = [
|
|
|
133
124
|
value: { type: "unit", value: 1, unit: "em" }
|
|
134
125
|
},
|
|
135
126
|
boxSizing,
|
|
136
|
-
...
|
|
127
|
+
...borders
|
|
137
128
|
];
|
|
138
129
|
const kbd = code;
|
|
139
130
|
const samp = code;
|
|
@@ -144,7 +135,7 @@ const small = [
|
|
|
144
135
|
value: { type: "unit", value: 80, unit: "%" }
|
|
145
136
|
},
|
|
146
137
|
boxSizing,
|
|
147
|
-
...
|
|
138
|
+
...borders
|
|
148
139
|
];
|
|
149
140
|
const subSupBase = [
|
|
150
141
|
{
|
|
@@ -164,7 +155,7 @@ const subSupBase = [
|
|
|
164
155
|
value: { type: "keyword", value: "baseline" }
|
|
165
156
|
},
|
|
166
157
|
boxSizing,
|
|
167
|
-
...
|
|
158
|
+
...borders
|
|
168
159
|
];
|
|
169
160
|
const sub = [
|
|
170
161
|
...subSupBase,
|
|
@@ -186,7 +177,7 @@ const table = [
|
|
|
186
177
|
property: "textIndent",
|
|
187
178
|
value: { type: "unit", value: 0, unit: "number" }
|
|
188
179
|
},
|
|
189
|
-
...
|
|
180
|
+
...borders,
|
|
190
181
|
/* 2 */
|
|
191
182
|
{
|
|
192
183
|
property: "borderTopColor",
|
|
@@ -238,7 +229,7 @@ const buttonBase = [
|
|
|
238
229
|
value: { type: "unit", value: 0, unit: "number" }
|
|
239
230
|
},
|
|
240
231
|
boxSizing,
|
|
241
|
-
...
|
|
232
|
+
...borders
|
|
242
233
|
];
|
|
243
234
|
const input = buttonBase;
|
|
244
235
|
const optgroup = buttonBase;
|
|
@@ -269,7 +260,7 @@ const legend = [
|
|
|
269
260
|
value: { type: "unit", value: 0, unit: "number" }
|
|
270
261
|
},
|
|
271
262
|
boxSizing,
|
|
272
|
-
...
|
|
263
|
+
...borders
|
|
273
264
|
];
|
|
274
265
|
const progress = [
|
|
275
266
|
{
|
|
@@ -277,7 +268,7 @@ const progress = [
|
|
|
277
268
|
value: { type: "keyword", value: "baseline" }
|
|
278
269
|
},
|
|
279
270
|
boxSizing,
|
|
280
|
-
...
|
|
271
|
+
...borders
|
|
281
272
|
];
|
|
282
273
|
const summary = [
|
|
283
274
|
{
|
|
@@ -285,7 +276,7 @@ const summary = [
|
|
|
285
276
|
value: { type: "keyword", value: "list-item" }
|
|
286
277
|
},
|
|
287
278
|
boxSizing,
|
|
288
|
-
...
|
|
279
|
+
...borders
|
|
289
280
|
];
|
|
290
281
|
export {
|
|
291
282
|
a,
|
|
@@ -293,7 +284,6 @@ export {
|
|
|
293
284
|
article,
|
|
294
285
|
aside,
|
|
295
286
|
b,
|
|
296
|
-
blockquote,
|
|
297
287
|
body,
|
|
298
288
|
button,
|
|
299
289
|
code,
|
package/lib/css/presets.js
CHANGED
|
@@ -22,117 +22,7 @@ const outline = [
|
|
|
22
22
|
value: { type: "unit", value: 1, unit: "px" }
|
|
23
23
|
}
|
|
24
24
|
];
|
|
25
|
-
const margins = [
|
|
26
|
-
{
|
|
27
|
-
property: "marginTop",
|
|
28
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
property: "marginRight",
|
|
32
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
property: "marginBottom",
|
|
36
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
property: "marginLeft",
|
|
40
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
const verticalMargins = [
|
|
44
|
-
{
|
|
45
|
-
property: "marginTop",
|
|
46
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
property: "marginBottom",
|
|
50
|
-
value: { type: "unit", value: 0, unit: "px" }
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
const blockquote = [
|
|
54
|
-
...margins,
|
|
55
|
-
{
|
|
56
|
-
property: "paddingTop",
|
|
57
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
property: "paddingBottom",
|
|
61
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
property: "paddingLeft",
|
|
65
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
property: "paddingRight",
|
|
69
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
property: "borderLeftWidth",
|
|
73
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
property: "borderLeftStyle",
|
|
77
|
-
value: { type: "keyword", value: "solid" }
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
property: "borderLeftColor",
|
|
81
|
-
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
82
|
-
}
|
|
83
|
-
];
|
|
84
|
-
const h1 = [
|
|
85
|
-
...verticalMargins,
|
|
86
|
-
{
|
|
87
|
-
property: "fontSize",
|
|
88
|
-
value: { type: "unit", value: 38, unit: "px" }
|
|
89
|
-
}
|
|
90
|
-
];
|
|
91
|
-
const h2 = [
|
|
92
|
-
...verticalMargins,
|
|
93
|
-
{
|
|
94
|
-
property: "fontSize",
|
|
95
|
-
value: { type: "unit", value: 32, unit: "px" }
|
|
96
|
-
}
|
|
97
|
-
];
|
|
98
|
-
const h3 = [
|
|
99
|
-
...verticalMargins,
|
|
100
|
-
{
|
|
101
|
-
property: "fontSize",
|
|
102
|
-
value: { type: "unit", value: 24, unit: "px" }
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
const h4 = [
|
|
106
|
-
...verticalMargins,
|
|
107
|
-
{
|
|
108
|
-
property: "fontSize",
|
|
109
|
-
value: { type: "unit", value: 18, unit: "px" }
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
const h5 = [
|
|
113
|
-
...verticalMargins,
|
|
114
|
-
{
|
|
115
|
-
property: "fontSize",
|
|
116
|
-
value: { type: "unit", value: 14, unit: "px" }
|
|
117
|
-
}
|
|
118
|
-
];
|
|
119
|
-
const h6 = [
|
|
120
|
-
...verticalMargins,
|
|
121
|
-
{
|
|
122
|
-
property: "fontSize",
|
|
123
|
-
value: { type: "unit", value: 12, unit: "px" }
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
25
|
export {
|
|
127
|
-
blockquote,
|
|
128
26
|
borders,
|
|
129
|
-
|
|
130
|
-
h2,
|
|
131
|
-
h3,
|
|
132
|
-
h4,
|
|
133
|
-
h5,
|
|
134
|
-
h6,
|
|
135
|
-
margins,
|
|
136
|
-
outline,
|
|
137
|
-
verticalMargins
|
|
27
|
+
outline
|
|
138
28
|
};
|