Layout Grid Block - Version 1.4

Version Description

  • 15th January 2021 =
  • Use hyphenation for text inside a grid column
  • Add missing has-background for columns with a custom background colour
  • Fix CSS for use in full site editor
Download this release

Release Info

Developer johnny5
Plugin Icon 128x128 Layout Grid Block
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (7) hide show
  1. blocks/front.css +4 -1
  2. editor.css +239 -238
  3. index.asset.php +1 -1
  4. index.js +1 -1
  5. index.php +1 -1
  6. readme.txt +7 -2
  7. style.css +10 -5
blocks/front.css CHANGED
@@ -1030,7 +1030,10 @@
1030
  grid-row-start: 4; } }
1031
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column * {
1032
  word-break: break-word;
1033
- word-wrap: break-word; }
 
 
 
1034
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__none {
1035
  grid-gap: 0px; }
1036
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__small {
1030
  grid-row-start: 4; } }
1031
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column * {
1032
  word-break: break-word;
1033
+ word-wrap: break-word;
1034
+ -webkit-hyphens: auto;
1035
+ -ms-hyphens: auto;
1036
+ hyphens: auto; }
1037
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__none {
1038
  grid-gap: 0px; }
1039
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__small {
editor.css CHANGED
@@ -112,7 +112,8 @@ body.is-resizing [data-type="jetpack/layout-grid"] {
112
  margin-left: 0;
113
  margin-right: 0;
114
  word-break: break-word;
115
- overflow-wrap: break-word; }
 
116
  .wp-block-jetpack-layout-grid > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit > [data-block] {
117
  margin-top: 0;
118
  margin-bottom: 0; }
@@ -131,368 +132,368 @@ body.is-resizing [data-type="jetpack/layout-grid"] {
131
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__huge > .block-editor-inner-blocks > .block-editor-block-list__layout {
132
  grid-gap: 48px; }
133
 
134
- .block-editor .wp-block-jetpack-layout-grid {
135
  display: flex;
136
  flex-direction: column; }
137
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
138
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
139
  grid-column-start: 1; }
140
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
141
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
142
  grid-column-start: 1; }
143
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
144
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
145
  grid-column-start: 1; }
146
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
147
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
148
  grid-column-start: 1; }
149
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
150
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
151
  grid-column-start: 2; }
152
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
153
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
154
  grid-column-start: 2; }
155
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
156
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
157
  grid-column-start: 2; }
158
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
159
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
160
  grid-column-start: 2; }
161
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
162
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
163
  grid-column-start: 3; }
164
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
165
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
166
  grid-column-start: 3; }
167
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
168
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
169
  grid-column-start: 3; }
170
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
171
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
172
  grid-column-start: 3; }
173
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
174
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
175
  grid-column-start: 4; }
176
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
177
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
178
  grid-column-start: 4; }
179
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
180
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
181
  grid-column-start: 4; }
182
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
183
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
184
  grid-column-start: 4; }
185
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(1),
186
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
187
  grid-column-start: 5; }
188
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(2),
189
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
190
  grid-column-start: 5; }
191
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(3),
192
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
193
  grid-column-start: 5; }
194
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(4),
195
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
196
  grid-column-start: 5; }
197
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(1),
198
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
199
  grid-column-start: 6; }
200
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(2),
201
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
202
  grid-column-start: 6; }
203
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(3),
204
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
205
  grid-column-start: 6; }
206
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(4),
207
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
208
  grid-column-start: 6; }
209
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(1),
210
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
211
  grid-column-start: 7; }
212
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(2),
213
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
214
  grid-column-start: 7; }
215
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(3),
216
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
217
  grid-column-start: 7; }
218
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(4),
219
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
220
  grid-column-start: 7; }
221
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(1),
222
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
223
  grid-column-start: 8; }
224
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(2),
225
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
226
  grid-column-start: 8; }
227
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(3),
228
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
229
  grid-column-start: 8; }
230
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(4),
231
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
232
  grid-column-start: 8; }
233
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(1),
234
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
235
  grid-column-start: 9; }
236
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(2),
237
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
238
  grid-column-start: 9; }
239
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(3),
240
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
241
  grid-column-start: 9; }
242
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(4),
243
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
244
  grid-column-start: 9; }
245
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(1),
246
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
247
  grid-column-start: 10; }
248
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(2),
249
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
250
  grid-column-start: 10; }
251
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(3),
252
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
253
  grid-column-start: 10; }
254
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(4),
255
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
256
  grid-column-start: 10; }
257
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(1),
258
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
259
  grid-column-start: 11; }
260
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(2),
261
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
262
  grid-column-start: 11; }
263
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(3),
264
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
265
  grid-column-start: 11; }
266
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(4),
267
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
268
  grid-column-start: 11; }
269
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(1),
270
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
271
  grid-column-start: 12; }
272
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(2),
273
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
274
  grid-column-start: 12; }
275
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(3),
276
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
277
  grid-column-start: 12; }
278
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(4),
279
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
280
  grid-column-start: 12; }
281
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
282
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
283
  grid-column-end: span 1; }
284
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
285
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
286
  grid-column-end: span 1; }
287
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
288
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
289
  grid-column-end: span 1; }
290
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
291
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
292
  grid-column-end: span 1; }
293
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(5) {
294
  grid-column-end: span 1; }
295
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
296
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
297
  grid-column-end: span 2; }
298
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
299
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
300
  grid-column-end: span 2; }
301
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
302
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
303
  grid-column-end: span 2; }
304
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
305
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
306
  grid-column-end: span 2; }
307
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(5) {
308
  grid-column-end: span 2; }
309
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
310
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
311
  grid-column-end: span 3; }
312
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
313
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
314
  grid-column-end: span 3; }
315
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
316
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
317
  grid-column-end: span 3; }
318
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
319
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
320
  grid-column-end: span 3; }
321
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(5) {
322
  grid-column-end: span 3; }
323
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
324
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
325
  grid-column-end: span 4; }
326
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
327
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
328
  grid-column-end: span 4; }
329
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
330
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
331
  grid-column-end: span 4; }
332
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
333
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
334
  grid-column-end: span 4; }
335
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(5) {
336
  grid-column-end: span 4; }
337
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(1),
338
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
339
  grid-column-end: span 5; }
340
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(2),
341
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
342
  grid-column-end: span 5; }
343
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(3),
344
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
345
  grid-column-end: span 5; }
346
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(4),
347
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
348
  grid-column-end: span 5; }
349
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(5) {
350
  grid-column-end: span 5; }
351
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(1),
352
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
353
  grid-column-end: span 6; }
354
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(2),
355
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
356
  grid-column-end: span 6; }
357
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(3),
358
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
359
  grid-column-end: span 6; }
360
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(4),
361
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
362
  grid-column-end: span 6; }
363
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(5) {
364
  grid-column-end: span 6; }
365
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(1),
366
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
367
  grid-column-end: span 7; }
368
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(2),
369
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
370
  grid-column-end: span 7; }
371
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(3),
372
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
373
  grid-column-end: span 7; }
374
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(4),
375
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
376
  grid-column-end: span 7; }
377
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(5) {
378
  grid-column-end: span 7; }
379
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(1),
380
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
381
  grid-column-end: span 8; }
382
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(2),
383
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
384
  grid-column-end: span 8; }
385
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(3),
386
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
387
  grid-column-end: span 8; }
388
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(4),
389
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
390
  grid-column-end: span 8; }
391
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(5) {
392
  grid-column-end: span 8; }
393
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(1),
394
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
395
  grid-column-end: span 9; }
396
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(2),
397
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
398
  grid-column-end: span 9; }
399
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(3),
400
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
401
  grid-column-end: span 9; }
402
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(4),
403
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
404
  grid-column-end: span 9; }
405
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(5) {
406
  grid-column-end: span 9; }
407
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(1),
408
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
409
  grid-column-end: span 10; }
410
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(2),
411
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
412
  grid-column-end: span 10; }
413
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(3),
414
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
415
  grid-column-end: span 10; }
416
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(4),
417
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
418
  grid-column-end: span 10; }
419
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(5) {
420
  grid-column-end: span 10; }
421
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(1),
422
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
423
  grid-column-end: span 11; }
424
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(2),
425
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
426
  grid-column-end: span 11; }
427
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(3),
428
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
429
  grid-column-end: span 11; }
430
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(4),
431
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
432
  grid-column-end: span 11; }
433
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(5) {
434
  grid-column-end: span 11; }
435
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(1),
436
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
437
  grid-column-end: span 12; }
438
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(2),
439
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
440
  grid-column-end: span 12; }
441
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(3),
442
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
443
  grid-column-end: span 12; }
444
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(4),
445
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
446
  grid-column-end: span 12; }
447
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(5) {
448
  grid-column-end: span 12; }
449
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
450
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
451
  grid-row-start: 1; }
452
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
453
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
454
  grid-row-start: 1; }
455
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
456
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
457
  grid-row-start: 1; }
458
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
459
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
460
  grid-row-start: 1; }
461
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
462
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
463
  grid-row-start: 2; }
464
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
465
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
466
  grid-row-start: 2; }
467
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
468
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
469
  grid-row-start: 2; }
470
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
471
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
472
  grid-row-start: 2; }
473
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
474
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
475
  grid-row-start: 3; }
476
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
477
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
478
  grid-row-start: 3; }
479
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
480
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
481
  grid-row-start: 3; }
482
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
483
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
484
  grid-row-start: 3; }
485
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
486
- .block-editor .wp-block-jetpack-layout-grid.column1-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
487
  grid-row-start: 4; }
488
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
489
- .block-editor .wp-block-jetpack-layout-grid.column2-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
490
  grid-row-start: 4; }
491
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
492
- .block-editor .wp-block-jetpack-layout-grid.column3-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
493
  grid-row-start: 4; }
494
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
495
- .block-editor .wp-block-jetpack-layout-grid.column4-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
496
  grid-row-start: 4; }
497
 
498
  /**
112
  margin-left: 0;
113
  margin-right: 0;
114
  word-break: break-word;
115
+ overflow-wrap: break-word;
116
+ hyphens: auto; }
117
  .wp-block-jetpack-layout-grid > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block > .block-editor-block-list__block-edit > [data-block] {
118
  margin-top: 0;
119
  margin-bottom: 0; }
132
  .wp-block-jetpack-layout-grid.wp-block-jetpack-layout-gutter__huge > .block-editor-inner-blocks > .block-editor-block-list__layout {
133
  grid-gap: 48px; }
134
 
135
+ .wp-block-jetpack-layout-grid {
136
  display: flex;
137
  flex-direction: column; }
138
+ .wp-block-jetpack-layout-grid.column1-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
139
+ .wp-block-jetpack-layout-grid.column1-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
140
  grid-column-start: 1; }
141
+ .wp-block-jetpack-layout-grid.column2-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
142
+ .wp-block-jetpack-layout-grid.column2-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
143
  grid-column-start: 1; }
144
+ .wp-block-jetpack-layout-grid.column3-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
145
+ .wp-block-jetpack-layout-grid.column3-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
146
  grid-column-start: 1; }
147
+ .wp-block-jetpack-layout-grid.column4-grid__start-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
148
+ .wp-block-jetpack-layout-grid.column4-grid__start-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
149
  grid-column-start: 1; }
150
+ .wp-block-jetpack-layout-grid.column1-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
151
+ .wp-block-jetpack-layout-grid.column1-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
152
  grid-column-start: 2; }
153
+ .wp-block-jetpack-layout-grid.column2-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
154
+ .wp-block-jetpack-layout-grid.column2-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
155
  grid-column-start: 2; }
156
+ .wp-block-jetpack-layout-grid.column3-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
157
+ .wp-block-jetpack-layout-grid.column3-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
158
  grid-column-start: 2; }
159
+ .wp-block-jetpack-layout-grid.column4-grid__start-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
160
+ .wp-block-jetpack-layout-grid.column4-grid__start-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
161
  grid-column-start: 2; }
162
+ .wp-block-jetpack-layout-grid.column1-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
163
+ .wp-block-jetpack-layout-grid.column1-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
164
  grid-column-start: 3; }
165
+ .wp-block-jetpack-layout-grid.column2-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
166
+ .wp-block-jetpack-layout-grid.column2-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
167
  grid-column-start: 3; }
168
+ .wp-block-jetpack-layout-grid.column3-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
169
+ .wp-block-jetpack-layout-grid.column3-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
170
  grid-column-start: 3; }
171
+ .wp-block-jetpack-layout-grid.column4-grid__start-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
172
+ .wp-block-jetpack-layout-grid.column4-grid__start-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
173
  grid-column-start: 3; }
174
+ .wp-block-jetpack-layout-grid.column1-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
175
+ .wp-block-jetpack-layout-grid.column1-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
176
  grid-column-start: 4; }
177
+ .wp-block-jetpack-layout-grid.column2-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
178
+ .wp-block-jetpack-layout-grid.column2-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
179
  grid-column-start: 4; }
180
+ .wp-block-jetpack-layout-grid.column3-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
181
+ .wp-block-jetpack-layout-grid.column3-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
182
  grid-column-start: 4; }
183
+ .wp-block-jetpack-layout-grid.column4-grid__start-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
184
+ .wp-block-jetpack-layout-grid.column4-grid__start-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
185
  grid-column-start: 4; }
186
+ .wp-block-jetpack-layout-grid.column1-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(1),
187
+ .wp-block-jetpack-layout-grid.column1-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
188
  grid-column-start: 5; }
189
+ .wp-block-jetpack-layout-grid.column2-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(2),
190
+ .wp-block-jetpack-layout-grid.column2-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
191
  grid-column-start: 5; }
192
+ .wp-block-jetpack-layout-grid.column3-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(3),
193
+ .wp-block-jetpack-layout-grid.column3-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
194
  grid-column-start: 5; }
195
+ .wp-block-jetpack-layout-grid.column4-grid__start-5 > .wpcom-resize-grid > .wp-block:nth-child(4),
196
+ .wp-block-jetpack-layout-grid.column4-grid__start-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
197
  grid-column-start: 5; }
198
+ .wp-block-jetpack-layout-grid.column1-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(1),
199
+ .wp-block-jetpack-layout-grid.column1-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
200
  grid-column-start: 6; }
201
+ .wp-block-jetpack-layout-grid.column2-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(2),
202
+ .wp-block-jetpack-layout-grid.column2-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
203
  grid-column-start: 6; }
204
+ .wp-block-jetpack-layout-grid.column3-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(3),
205
+ .wp-block-jetpack-layout-grid.column3-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
206
  grid-column-start: 6; }
207
+ .wp-block-jetpack-layout-grid.column4-grid__start-6 > .wpcom-resize-grid > .wp-block:nth-child(4),
208
+ .wp-block-jetpack-layout-grid.column4-grid__start-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
209
  grid-column-start: 6; }
210
+ .wp-block-jetpack-layout-grid.column1-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(1),
211
+ .wp-block-jetpack-layout-grid.column1-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
212
  grid-column-start: 7; }
213
+ .wp-block-jetpack-layout-grid.column2-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(2),
214
+ .wp-block-jetpack-layout-grid.column2-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
215
  grid-column-start: 7; }
216
+ .wp-block-jetpack-layout-grid.column3-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(3),
217
+ .wp-block-jetpack-layout-grid.column3-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
218
  grid-column-start: 7; }
219
+ .wp-block-jetpack-layout-grid.column4-grid__start-7 > .wpcom-resize-grid > .wp-block:nth-child(4),
220
+ .wp-block-jetpack-layout-grid.column4-grid__start-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
221
  grid-column-start: 7; }
222
+ .wp-block-jetpack-layout-grid.column1-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(1),
223
+ .wp-block-jetpack-layout-grid.column1-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
224
  grid-column-start: 8; }
225
+ .wp-block-jetpack-layout-grid.column2-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(2),
226
+ .wp-block-jetpack-layout-grid.column2-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
227
  grid-column-start: 8; }
228
+ .wp-block-jetpack-layout-grid.column3-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(3),
229
+ .wp-block-jetpack-layout-grid.column3-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
230
  grid-column-start: 8; }
231
+ .wp-block-jetpack-layout-grid.column4-grid__start-8 > .wpcom-resize-grid > .wp-block:nth-child(4),
232
+ .wp-block-jetpack-layout-grid.column4-grid__start-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
233
  grid-column-start: 8; }
234
+ .wp-block-jetpack-layout-grid.column1-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(1),
235
+ .wp-block-jetpack-layout-grid.column1-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
236
  grid-column-start: 9; }
237
+ .wp-block-jetpack-layout-grid.column2-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(2),
238
+ .wp-block-jetpack-layout-grid.column2-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
239
  grid-column-start: 9; }
240
+ .wp-block-jetpack-layout-grid.column3-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(3),
241
+ .wp-block-jetpack-layout-grid.column3-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
242
  grid-column-start: 9; }
243
+ .wp-block-jetpack-layout-grid.column4-grid__start-9 > .wpcom-resize-grid > .wp-block:nth-child(4),
244
+ .wp-block-jetpack-layout-grid.column4-grid__start-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
245
  grid-column-start: 9; }
246
+ .wp-block-jetpack-layout-grid.column1-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(1),
247
+ .wp-block-jetpack-layout-grid.column1-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
248
  grid-column-start: 10; }
249
+ .wp-block-jetpack-layout-grid.column2-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(2),
250
+ .wp-block-jetpack-layout-grid.column2-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
251
  grid-column-start: 10; }
252
+ .wp-block-jetpack-layout-grid.column3-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(3),
253
+ .wp-block-jetpack-layout-grid.column3-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
254
  grid-column-start: 10; }
255
+ .wp-block-jetpack-layout-grid.column4-grid__start-10 > .wpcom-resize-grid > .wp-block:nth-child(4),
256
+ .wp-block-jetpack-layout-grid.column4-grid__start-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
257
  grid-column-start: 10; }
258
+ .wp-block-jetpack-layout-grid.column1-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(1),
259
+ .wp-block-jetpack-layout-grid.column1-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
260
  grid-column-start: 11; }
261
+ .wp-block-jetpack-layout-grid.column2-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(2),
262
+ .wp-block-jetpack-layout-grid.column2-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
263
  grid-column-start: 11; }
264
+ .wp-block-jetpack-layout-grid.column3-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(3),
265
+ .wp-block-jetpack-layout-grid.column3-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
266
  grid-column-start: 11; }
267
+ .wp-block-jetpack-layout-grid.column4-grid__start-11 > .wpcom-resize-grid > .wp-block:nth-child(4),
268
+ .wp-block-jetpack-layout-grid.column4-grid__start-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
269
  grid-column-start: 11; }
270
+ .wp-block-jetpack-layout-grid.column1-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(1),
271
+ .wp-block-jetpack-layout-grid.column1-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
272
  grid-column-start: 12; }
273
+ .wp-block-jetpack-layout-grid.column2-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(2),
274
+ .wp-block-jetpack-layout-grid.column2-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
275
  grid-column-start: 12; }
276
+ .wp-block-jetpack-layout-grid.column3-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(3),
277
+ .wp-block-jetpack-layout-grid.column3-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
278
  grid-column-start: 12; }
279
+ .wp-block-jetpack-layout-grid.column4-grid__start-12 > .wpcom-resize-grid > .wp-block:nth-child(4),
280
+ .wp-block-jetpack-layout-grid.column4-grid__start-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
281
  grid-column-start: 12; }
282
+ .wp-block-jetpack-layout-grid.column1-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
283
+ .wp-block-jetpack-layout-grid.column1-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
284
  grid-column-end: span 1; }
285
+ .wp-block-jetpack-layout-grid.column2-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
286
+ .wp-block-jetpack-layout-grid.column2-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
287
  grid-column-end: span 1; }
288
+ .wp-block-jetpack-layout-grid.column3-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
289
+ .wp-block-jetpack-layout-grid.column3-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
290
  grid-column-end: span 1; }
291
+ .wp-block-jetpack-layout-grid.column4-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
292
+ .wp-block-jetpack-layout-grid.column4-grid__span-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
293
  grid-column-end: span 1; }
294
+ .wp-block-jetpack-layout-grid.column4-grid__span-1 > .wpcom-resize-grid > .wp-block:nth-child(5) {
295
  grid-column-end: span 1; }
296
+ .wp-block-jetpack-layout-grid.column1-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
297
+ .wp-block-jetpack-layout-grid.column1-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
298
  grid-column-end: span 2; }
299
+ .wp-block-jetpack-layout-grid.column2-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
300
+ .wp-block-jetpack-layout-grid.column2-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
301
  grid-column-end: span 2; }
302
+ .wp-block-jetpack-layout-grid.column3-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
303
+ .wp-block-jetpack-layout-grid.column3-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
304
  grid-column-end: span 2; }
305
+ .wp-block-jetpack-layout-grid.column4-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
306
+ .wp-block-jetpack-layout-grid.column4-grid__span-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
307
  grid-column-end: span 2; }
308
+ .wp-block-jetpack-layout-grid.column4-grid__span-2 > .wpcom-resize-grid > .wp-block:nth-child(5) {
309
  grid-column-end: span 2; }
310
+ .wp-block-jetpack-layout-grid.column1-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
311
+ .wp-block-jetpack-layout-grid.column1-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
312
  grid-column-end: span 3; }
313
+ .wp-block-jetpack-layout-grid.column2-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
314
+ .wp-block-jetpack-layout-grid.column2-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
315
  grid-column-end: span 3; }
316
+ .wp-block-jetpack-layout-grid.column3-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
317
+ .wp-block-jetpack-layout-grid.column3-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
318
  grid-column-end: span 3; }
319
+ .wp-block-jetpack-layout-grid.column4-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
320
+ .wp-block-jetpack-layout-grid.column4-grid__span-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
321
  grid-column-end: span 3; }
322
+ .wp-block-jetpack-layout-grid.column4-grid__span-3 > .wpcom-resize-grid > .wp-block:nth-child(5) {
323
  grid-column-end: span 3; }
324
+ .wp-block-jetpack-layout-grid.column1-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
325
+ .wp-block-jetpack-layout-grid.column1-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
326
  grid-column-end: span 4; }
327
+ .wp-block-jetpack-layout-grid.column2-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
328
+ .wp-block-jetpack-layout-grid.column2-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
329
  grid-column-end: span 4; }
330
+ .wp-block-jetpack-layout-grid.column3-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
331
+ .wp-block-jetpack-layout-grid.column3-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
332
  grid-column-end: span 4; }
333
+ .wp-block-jetpack-layout-grid.column4-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
334
+ .wp-block-jetpack-layout-grid.column4-grid__span-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
335
  grid-column-end: span 4; }
336
+ .wp-block-jetpack-layout-grid.column4-grid__span-4 > .wpcom-resize-grid > .wp-block:nth-child(5) {
337
  grid-column-end: span 4; }
338
+ .wp-block-jetpack-layout-grid.column1-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(1),
339
+ .wp-block-jetpack-layout-grid.column1-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
340
  grid-column-end: span 5; }
341
+ .wp-block-jetpack-layout-grid.column2-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(2),
342
+ .wp-block-jetpack-layout-grid.column2-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
343
  grid-column-end: span 5; }
344
+ .wp-block-jetpack-layout-grid.column3-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(3),
345
+ .wp-block-jetpack-layout-grid.column3-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
346
  grid-column-end: span 5; }
347
+ .wp-block-jetpack-layout-grid.column4-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(4),
348
+ .wp-block-jetpack-layout-grid.column4-grid__span-5 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
349
  grid-column-end: span 5; }
350
+ .wp-block-jetpack-layout-grid.column4-grid__span-5 > .wpcom-resize-grid > .wp-block:nth-child(5) {
351
  grid-column-end: span 5; }
352
+ .wp-block-jetpack-layout-grid.column1-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(1),
353
+ .wp-block-jetpack-layout-grid.column1-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
354
  grid-column-end: span 6; }
355
+ .wp-block-jetpack-layout-grid.column2-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(2),
356
+ .wp-block-jetpack-layout-grid.column2-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
357
  grid-column-end: span 6; }
358
+ .wp-block-jetpack-layout-grid.column3-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(3),
359
+ .wp-block-jetpack-layout-grid.column3-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
360
  grid-column-end: span 6; }
361
+ .wp-block-jetpack-layout-grid.column4-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(4),
362
+ .wp-block-jetpack-layout-grid.column4-grid__span-6 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
363
  grid-column-end: span 6; }
364
+ .wp-block-jetpack-layout-grid.column4-grid__span-6 > .wpcom-resize-grid > .wp-block:nth-child(5) {
365
  grid-column-end: span 6; }
366
+ .wp-block-jetpack-layout-grid.column1-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(1),
367
+ .wp-block-jetpack-layout-grid.column1-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
368
  grid-column-end: span 7; }
369
+ .wp-block-jetpack-layout-grid.column2-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(2),
370
+ .wp-block-jetpack-layout-grid.column2-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
371
  grid-column-end: span 7; }
372
+ .wp-block-jetpack-layout-grid.column3-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(3),
373
+ .wp-block-jetpack-layout-grid.column3-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
374
  grid-column-end: span 7; }
375
+ .wp-block-jetpack-layout-grid.column4-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(4),
376
+ .wp-block-jetpack-layout-grid.column4-grid__span-7 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
377
  grid-column-end: span 7; }
378
+ .wp-block-jetpack-layout-grid.column4-grid__span-7 > .wpcom-resize-grid > .wp-block:nth-child(5) {
379
  grid-column-end: span 7; }
380
+ .wp-block-jetpack-layout-grid.column1-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(1),
381
+ .wp-block-jetpack-layout-grid.column1-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
382
  grid-column-end: span 8; }
383
+ .wp-block-jetpack-layout-grid.column2-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(2),
384
+ .wp-block-jetpack-layout-grid.column2-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
385
  grid-column-end: span 8; }
386
+ .wp-block-jetpack-layout-grid.column3-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(3),
387
+ .wp-block-jetpack-layout-grid.column3-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
388
  grid-column-end: span 8; }
389
+ .wp-block-jetpack-layout-grid.column4-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(4),
390
+ .wp-block-jetpack-layout-grid.column4-grid__span-8 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
391
  grid-column-end: span 8; }
392
+ .wp-block-jetpack-layout-grid.column4-grid__span-8 > .wpcom-resize-grid > .wp-block:nth-child(5) {
393
  grid-column-end: span 8; }
394
+ .wp-block-jetpack-layout-grid.column1-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(1),
395
+ .wp-block-jetpack-layout-grid.column1-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
396
  grid-column-end: span 9; }
397
+ .wp-block-jetpack-layout-grid.column2-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(2),
398
+ .wp-block-jetpack-layout-grid.column2-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
399
  grid-column-end: span 9; }
400
+ .wp-block-jetpack-layout-grid.column3-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(3),
401
+ .wp-block-jetpack-layout-grid.column3-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
402
  grid-column-end: span 9; }
403
+ .wp-block-jetpack-layout-grid.column4-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(4),
404
+ .wp-block-jetpack-layout-grid.column4-grid__span-9 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
405
  grid-column-end: span 9; }
406
+ .wp-block-jetpack-layout-grid.column4-grid__span-9 > .wpcom-resize-grid > .wp-block:nth-child(5) {
407
  grid-column-end: span 9; }
408
+ .wp-block-jetpack-layout-grid.column1-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(1),
409
+ .wp-block-jetpack-layout-grid.column1-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
410
  grid-column-end: span 10; }
411
+ .wp-block-jetpack-layout-grid.column2-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(2),
412
+ .wp-block-jetpack-layout-grid.column2-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
413
  grid-column-end: span 10; }
414
+ .wp-block-jetpack-layout-grid.column3-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(3),
415
+ .wp-block-jetpack-layout-grid.column3-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
416
  grid-column-end: span 10; }
417
+ .wp-block-jetpack-layout-grid.column4-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(4),
418
+ .wp-block-jetpack-layout-grid.column4-grid__span-10 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
419
  grid-column-end: span 10; }
420
+ .wp-block-jetpack-layout-grid.column4-grid__span-10 > .wpcom-resize-grid > .wp-block:nth-child(5) {
421
  grid-column-end: span 10; }
422
+ .wp-block-jetpack-layout-grid.column1-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(1),
423
+ .wp-block-jetpack-layout-grid.column1-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
424
  grid-column-end: span 11; }
425
+ .wp-block-jetpack-layout-grid.column2-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(2),
426
+ .wp-block-jetpack-layout-grid.column2-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
427
  grid-column-end: span 11; }
428
+ .wp-block-jetpack-layout-grid.column3-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(3),
429
+ .wp-block-jetpack-layout-grid.column3-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
430
  grid-column-end: span 11; }
431
+ .wp-block-jetpack-layout-grid.column4-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(4),
432
+ .wp-block-jetpack-layout-grid.column4-grid__span-11 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
433
  grid-column-end: span 11; }
434
+ .wp-block-jetpack-layout-grid.column4-grid__span-11 > .wpcom-resize-grid > .wp-block:nth-child(5) {
435
  grid-column-end: span 11; }
436
+ .wp-block-jetpack-layout-grid.column1-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(1),
437
+ .wp-block-jetpack-layout-grid.column1-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
438
  grid-column-end: span 12; }
439
+ .wp-block-jetpack-layout-grid.column2-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(2),
440
+ .wp-block-jetpack-layout-grid.column2-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
441
  grid-column-end: span 12; }
442
+ .wp-block-jetpack-layout-grid.column3-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(3),
443
+ .wp-block-jetpack-layout-grid.column3-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
444
  grid-column-end: span 12; }
445
+ .wp-block-jetpack-layout-grid.column4-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(4),
446
+ .wp-block-jetpack-layout-grid.column4-grid__span-12 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
447
  grid-column-end: span 12; }
448
+ .wp-block-jetpack-layout-grid.column4-grid__span-12 > .wpcom-resize-grid > .wp-block:nth-child(5) {
449
  grid-column-end: span 12; }
450
+ .wp-block-jetpack-layout-grid.column1-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(1),
451
+ .wp-block-jetpack-layout-grid.column1-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
452
  grid-row-start: 1; }
453
+ .wp-block-jetpack-layout-grid.column2-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(2),
454
+ .wp-block-jetpack-layout-grid.column2-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
455
  grid-row-start: 1; }
456
+ .wp-block-jetpack-layout-grid.column3-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(3),
457
+ .wp-block-jetpack-layout-grid.column3-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
458
  grid-row-start: 1; }
459
+ .wp-block-jetpack-layout-grid.column4-grid__row-1 > .wpcom-resize-grid > .wp-block:nth-child(4),
460
+ .wp-block-jetpack-layout-grid.column4-grid__row-1 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
461
  grid-row-start: 1; }
462
+ .wp-block-jetpack-layout-grid.column1-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(1),
463
+ .wp-block-jetpack-layout-grid.column1-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
464
  grid-row-start: 2; }
465
+ .wp-block-jetpack-layout-grid.column2-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(2),
466
+ .wp-block-jetpack-layout-grid.column2-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
467
  grid-row-start: 2; }
468
+ .wp-block-jetpack-layout-grid.column3-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(3),
469
+ .wp-block-jetpack-layout-grid.column3-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
470
  grid-row-start: 2; }
471
+ .wp-block-jetpack-layout-grid.column4-grid__row-2 > .wpcom-resize-grid > .wp-block:nth-child(4),
472
+ .wp-block-jetpack-layout-grid.column4-grid__row-2 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
473
  grid-row-start: 2; }
474
+ .wp-block-jetpack-layout-grid.column1-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(1),
475
+ .wp-block-jetpack-layout-grid.column1-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
476
  grid-row-start: 3; }
477
+ .wp-block-jetpack-layout-grid.column2-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(2),
478
+ .wp-block-jetpack-layout-grid.column2-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
479
  grid-row-start: 3; }
480
+ .wp-block-jetpack-layout-grid.column3-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(3),
481
+ .wp-block-jetpack-layout-grid.column3-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
482
  grid-row-start: 3; }
483
+ .wp-block-jetpack-layout-grid.column4-grid__row-3 > .wpcom-resize-grid > .wp-block:nth-child(4),
484
+ .wp-block-jetpack-layout-grid.column4-grid__row-3 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
485
  grid-row-start: 3; }
486
+ .wp-block-jetpack-layout-grid.column1-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(1),
487
+ .wp-block-jetpack-layout-grid.column1-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(1) {
488
  grid-row-start: 4; }
489
+ .wp-block-jetpack-layout-grid.column2-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(2),
490
+ .wp-block-jetpack-layout-grid.column2-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(2) {
491
  grid-row-start: 4; }
492
+ .wp-block-jetpack-layout-grid.column3-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(3),
493
+ .wp-block-jetpack-layout-grid.column3-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(3) {
494
  grid-row-start: 4; }
495
+ .wp-block-jetpack-layout-grid.column4-grid__row-4 > .wpcom-resize-grid > .wp-block:nth-child(4),
496
+ .wp-block-jetpack-layout-grid.column4-grid__row-4 > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:nth-child(4) {
497
  grid-row-start: 4; }
498
 
499
  /**
index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => 'cfd93373a61cfbf4fb1355ef73d0eba5');
1
+ <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => '990413635d46b5869ab8d94e9bb9a40c');
index.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(5);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(20),o=n(21),c=n(22),i=n(23);e.exports=function(e){return r(e)||o(e)||c(e)||i()}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),c=n(13),i=n(1),a=n(16),l=n.n(a),u=n(9),s=n.n(u),f=n(10),p=n.n(f),d=n(5),g=n.n(d),b=n(11),m=n.n(b),h=n(12),v=n.n(h),y=n(7),O=n.n(y),j=n(0),k=n(17),_=n(6),w=n.n(_),E=n(4),S=n(3),C=n(18),x=n(14),P=n(15),A=n(8),M=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),z=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),B=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));function D(){return[{value:"small",label:Object(i.__)("Small","layout-grid")},{value:"medium",label:Object(i.__)("Medium","layout-grid")},{value:"large",label:Object(i.__)("Large","layout-grid")},{value:"huge",label:Object(i.__)("Huge","layout-grid")}]}var R=function(){return[{label:Object(i.__)("1 column","layout-grid"),value:1},{label:Object(i.__)("2 columns","layout-grid"),value:2},{label:Object(i.__)("3 columns","layout-grid"),value:3},{label:Object(i.__)("4 columns","layout-grid"),value:4}]},T=function(){return[{value:"Desktop",label:Object(i.__)("Desktop","layout-grid"),icon:M},{value:"Tablet",label:Object(i.__)("Tablet","layout-grid"),icon:z},{value:"Mobile",label:Object(i.__)("Mobile","layout-grid"),icon:B}]},V=["Desktop","Tablet","Mobile"];function G(e,t){return"column".concat(e+1).concat(t,"Span")}function N(e,t){return"column".concat(e+1).concat(t,"Offset")}var L=function(e){return"Tablet"===e?8:"Mobile"===e?4:12};function I(e,t,n){return"Tablet"===e?3===t&&2===n?L(e):t>1?L(e)/2:L(e):"Mobile"===e?L(e):L(e)/t}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e,t){return"column".concat(e+1,"-grid__span-").concat(t)},F=function(e,t){return"column".concat(e+1,"-grid__start-").concat(t)},K=function(e,t){return"column".concat(e+1,"-grid__row-").concat(t)},W=function(e,t){return"column".concat(e+1,"-grid__valign-").concat(t)},$=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__span-").concat(t)},q=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__start-").concat(t)},J=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__row-").concat(t)};function Q(e,t){return Math.floor(e/t)}function Y(e,t){return e%t}function Z(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{name:e,column:t,value:n,device:r,enabled:o}}function ee(e,t,n){for(var r=[],o=L(e),c=function(e,t,n){for(var r=[],o=0,c=0;c<e;c++){var i=G(c,t),a=N(c,t),l=n[i]||I(t,e,c),u=n[a]||0;r.push({position:o+u,span:l}),o+=u,o+=l}return r}(t,e,n),i=0;i<c.length;i++){var a=c[i],l=a.span,u=a.position,s=Q(u,o),f=Y(u,o);r.push(Z("span",i,l,e)),r.push(Z("offset",i,f+1,e,f>0)),r.push(Z("row",i,s+1,e))}return r}function te(e,t){var n={};return e.filter((function(e){return e.enabled&&t[e.name]})).map((function(e){return n[t[e.name](e.column,e.value,e.device)]=!0})),n}function ne(e){return e?e.replace(/column\d-\w*-grid__\w*-\d*/g,"").replace(/column\d-grid__\w*-\d*/g,"").replace(/\s{2,}/,"").replace(/wp-block-jetpack-layout-gutter__\w*/,"").replace(/is-vertically-aligned-\w*/,"").replace(/are-vertically-aligned-\w*/):e}function re(e){var t=e.gutterSize;return{"wp-block-jetpack-layout-gutter__nowrap":!e.addGutterEnds,"wp-block-jetpack-layout-gutter__none":"none"===t,"wp-block-jetpack-layout-gutter__small":"small"===t,"wp-block-jetpack-layout-gutter__medium":"medium"===t,"wp-block-jetpack-layout-gutter__huge":"huge"===t}}var oe=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(j.createElement)(S.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7.5 11.5H6c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h5.5v10zm4 0H13v-10h2.5v10zm4-.5c0 .3-.2.5-.5.5h-2v-10h2c.3 0 .5.2.5.5v9z"}))},ce=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(j.createElement)(S.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM5.5 17V8c0-.3.2-.5.5-.5h5.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2v-10h2c.3 0 .5.2.5.5v9z"}))},ie=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm32 22H9V14h30v20z"}))},ae=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},Object(j.createElement)(S.Path,{d:"M7,12v24h34V12H7z M23,34H9V14h14V34z M39,34H25V14h14V34z"}))},le=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm23 2h9v20h-9V14zm-2 20h-8V14h8v20zM9 14h9v20H9V14z"}))},ue=function(){return Object(j.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm8 22H9V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20z"}))},se=function(e){var t=e.columns;return 4===t?Object(j.createElement)(ue,null):3===t?Object(j.createElement)(le,null):2===t?Object(j.createElement)(ae,null):Object(j.createElement)(ie,null)};var fe=function(e){var t=e.direction,n=e.height,r=e.xPos,o=e.top,c=e.isSelected,i=w()("wpcom-overlay-resize__handle","components-resizable-box__container",{"is-selected":c}),a={height:n+"px",width:r+"px",top:o+"px"},l={left:r+"px"},u=w()("components-resizable-box__handle","components-resizable-box__side-handle",{"components-resizable-box__handle-left":"left"===t,"components-resizable-box__handle-right":"right"===t});return Object(j.createElement)("div",{className:i,style:a},Object(j.createElement)("span",null,Object(j.createElement)("div",{className:u,style:l})))};function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O()(e);if(t){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var de=function(e){m()(n,e);var t=pe(n);function n(e){var r;return s()(this,n),r=t.call(this,e),o()(g()(r),"onMouseDown",(function(e){var t=e.target;if((0===e.button||e.touches)&&(t.dataset.resizeRight||t.dataset.resizeLeft)){r.block=t.closest(".wp-block");var n=r.block.getBoundingClientRect(),o=n.height,c=n.right,i=n.left,a=n.top,l=t.getBoundingClientRect().width,u=r.getChildPosition(r.block),s=t.dataset.resizeLeft;r.setState({resizingColumn:u,xPos:r.getAdjustedOffset(r.getMouseX(e),l),height:o,width:l,top:r.getAdjustedTop(a),direction:s?"left":"right",max:s?r.getAdjustedOffset(c,l):r.getAdjustedOffset(i,l)}),0===e.button?(document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onMouseUp),e.preventDefault()):(document.addEventListener("touchmove",r.onMouseMove),document.addEventListener("touchend",r.onMouseUp)),e.stopPropagation()}})),o()(g()(r),"onMouseMove",(function(e){e.stopPropagation(),void 0===e.touches&&e.preventDefault();var t=r.block.getBoundingClientRect().height;r.setState({xPos:r.getRestrictedOffset(r.getAdjustedOffset(r.getMouseX(e))),height:t});var n=r.getNearestColumn(r.state.direction,e);n&&r.props.onResize(r.state.resizingColumn,n)})),o()(g()(r),"onMouseUp",(function(e){r.setState({resizingColumn:-1}),document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onMouseUp),document.removeEventListener("touchmove",r.onMouseMove),document.removeEventListener("touchend",r.onMouseUp)})),r.containerRef=Object(j.createRef)(),r.state={resizingColumn:-1,xPos:0,height:0},r}return p()(n,[{key:"getNearestColumn",value:function(e,t){var n=this.props,r=n.totalColumns,o=n.layoutGrid,c=o.getStart(this.state.resizingColumn),i=o.getSpan(this.state.resizingColumn),a=Math.min(r,Math.max(0,function(e,t,n,r){var o=e.getBoundingClientRect(),c=o.width/r,i=t-o.x,a=Math.floor(i/c),l=i%c;return"left"===n?l<=c/2?a:a+1:l<c/2?a:a+1}(this.containerRef.current,this.getMouseX(t),e,r)));if("left"===e){if(a===c)return null;var l=Math.abs(a-c),u={start:a,span:a>c?i-l:i+l,direction:e};return u.start>=c+i?null:(u.span=Math.max(1,u.span),u)}return{span:Math.max(1,a-c),direction:e}}},{key:"getMouseX",value:function(e){var t=e.clientX,n=e.targetTouches;return t||n&&n[0].clientX}},{key:"getAdjustedOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.state.width,r=t>0?t:n;return e-this.containerRef.current.getBoundingClientRect().left-r/2}},{key:"getAdjustedTop",value:function(e){return e-this.containerRef.current.getBoundingClientRect().top}},{key:"getRestrictedOffset",value:function(e){var t=this.state,n=t.direction,r=t.max,o=t.width;return"left"===n?Math.min(r-o,e):Math.max(r+o,e)}},{key:"getChildPosition",value:function(e){for(var t=0;null!==e.previousSibling;)e=e.previousSibling,t++;return t}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.isSelected,o=this.state,c=o.resizingColumn,i=o.xPos,a=o.height,l=w()(t,-1!==c?"wp-block-jetpack-layout-grid__resizing":null);return Object(j.createElement)("div",{className:l,onMouseDown:this.onMouseDown,onTouchStart:this.onMouseDown,ref:this.containerRef},-1!==c&&Object(j.createElement)(fe,{direction:this.state.direction,height:a,xPos:i,top:this.state.top,isSelected:r}),n)}}]),n}(j.Component);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var me=function(){function e(t,n,r){s()(this,e),this.attributes=t,this.device=n,this.columnCount=r}return p()(e,[{key:"getGridValues",value:function(){for(var e={},t=0;t<this.columnCount;t++){var n=I(this.device,this.columnCount,t);e[G(t,this.device)]=this.getSpan(t)||n,e[N(t,this.device)]=this.getOffset(t)}return e}},{key:"applyAdjustments",value:function(e){for(var t=this.getGridValues(),n=0;n<e.length;n++)t=be(be({},t),e[n]);return t}},{key:"getSpanAdjustment",value:function(e,t){return o()({},G(e,this.device),t)}},{key:"getAdjustOffset",value:function(e,t){return o()({},N(e,this.device),t)}},{key:"getShrinkOffset",value:function(e,t){var n=this.getOffset(e),r=t>=n?n:t;return{adjustment:this.getAdjustOffset(e,n-r),offsetUsed:r}}},{key:"hasOverlaps",value:function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=t+1;r<e.length;r++){var o=e[r];if(n.start>o.start&&n.start<o.end)return!0;if(n.end>o.start&&n.end<o.end)return!0}return!1}},{key:"validateGrid",value:function(e){for(var t,n,r=[],o=L(this.device),c=0,i=0,a=0;a<this.columnCount;a++){var l=e[G(a,this.device)],u=e[N(a,this.device)];if((i+=u)>=o&&(i-=o),(i+=l)>o)return!1;r.push({start:c+u,end:c+u+l}),c+=l+u}return!(c>(t=this.device,n=this.columnCount,"Tablet"===t&&n>2?2*L(t):"Mobile"===t?L(t)*n:L(t)))&&!this.hasOverlaps(r)}},{key:"getEndAdjustments",value:function(e,t){var n=[];if(t<0)return[this.getAdjustOffset(e,this.getOffset(e)+Math.abs(t))];if(t>0)for(var r=e;r<this.columnCount&&t>0;r++){var o=this.getShrinkOffset(r,Math.abs(t));n.push(o.adjustment),t-=o.offsetUsed}return n}},{key:"getStartMovedLeft",value:function(e,t){for(var n=[],r=e;r>=0&&t>0;r--){var o=this.getShrinkOffset(r,t);n.push(o.adjustment),t-=o.offsetUsed}return n}},{key:"getStartAdjustments",value:function(e,t){var n=this.getOffset(e),r=this.getOffsetFromStart(e,t),o=r-n;return o<0?this.getStartMovedLeft(e,Math.abs(o)):[this.getAdjustOffset(e,r)]}},{key:"getSpan",value:function(e){return this.attributes[G(e,this.device)]}},{key:"getOffset",value:function(e){return this.attributes[N(e,this.device)]}},{key:"getStart",value:function(e){for(var t=0,n=0;n<e;n++)t+=this.getSpan(n)+this.getOffset(n);var r=Math.max(1,Math.floor(t/L(this.device)));return(t+this.getOffset(e))%(r*L(this.device))}},{key:"getOffsetFromStart",value:function(e,t){if(0===e)return t;var n=t-this.getStart(e);return this.getOffset(e)+n}},{key:"convertOffsetToStart",value:function(e,t){return this.getStart(e)+(t-this.getOffset(e))}},{key:"getAdjustedGrid",value:function(e,t){var n=t.start,r=void 0===n?this.getStart(e):n,o=t.span,c=void 0===o?this.getSpan(e):o,i=[];r!==this.getStart(e)&&c!==this.getSpan(e)?i=(i=i.concat(this.getStartAdjustments(e,r))).concat(this.getSpanAdjustment(e,c)):c!==this.getSpan(e)?i=(i=i.concat(this.getSpanAdjustment(e,c))).concat(this.getEndAdjustments(e+1,c-this.getSpan(e))):r!==this.getStart(e)&&(i=(i=i.concat(this.getStartAdjustments(e,r))).concat(this.getEndAdjustments(e+1,r-this.getStart(e))));var a=this.applyAdjustments(i);return i.length>0&&this.validateGrid(a)?a:null}}]),e}();function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O()(e);if(t){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var Oe=["jetpack/layout-grid-column"],je=function(e){m()(n,e);var t=ye(n);function n(e){var r;return s()(this,n),r=t.call(this,e),o()(g()(r),"onChangeLayout",(function(e){for(var t={},n=0;n<e;n++)for(var o=0;o<V.length;o++){var c=I(V[o],e,n);t[G(n,V[o])]=c,t[N(n,V[o])]=0}r.props.updateColumns(r.props.columns,e,t)})),o()(g()(r),"setDeviceType",(function(e){r.props.deviceType?r.props.setDeviceType(e):r.setState({selectedDevice:e})})),o()(g()(r),"onResize",(function(e,t){var n=r.props,o=n.attributes,c=n.columns,i=new me(o,r.getDeviceType(),c).getAdjustedGrid(e,t);i&&r.adjustGrid(i)})),o()(g()(r),"onChangeSpan",(function(e,t,n){var o=r.props,c=o.attributes,i=o.columns,a=new me(c,t,i).getAdjustedGrid(e,{span:parseInt(n,10)});a&&r.adjustGrid(a)})),o()(g()(r),"onChangeOffset",(function(e,t,n){var o=r.props,c=o.attributes,i=o.columns,a=new me(c,t,i),l=a.getAdjustedGrid(e,{start:a.convertOffsetToStart(e,parseInt(n,10))});l&&r.adjustGrid(l)})),r.overlayRef=Object(j.createRef)(),r.state={selectedDevice:T()[0].value},r}return p()(n,[{key:"getDeviceType",value:function(){return this.props.deviceType?this.props.deviceType:this.state.selectedDevice}},{key:"adjustGrid",value:function(e){var t=this.props,n=t.setAttributes,r=t.attributes;n(ve(ve({},e),{},{className:ne(r.className)}))}},{key:"renderDeviceSettings",value:function(e,t,n){for(var r=this,o=new me(n,t,this.props.columns),c=[],a=function(n){var a=o.getSpan(n)||I(t,e,n),l=o.getOffset(n)||0;c.push(Object(j.createElement)("div",{className:"jetpack-layout-grid-settings",key:n},Object(j.createElement)("strong",null,Object(i.__)("Column","layout-grid")," ",n+1),Object(j.createElement)("div",{className:"jetpack-layout-grid-settings__group"},Object(j.createElement)(S.TextControl,{type:"number",label:Object(i.__)("Offset","layout-grid"),value:l||0,min:0,max:L(t)-1,onChange:function(e){return r.onChangeOffset(n,t,e)}}),Object(j.createElement)(S.TextControl,{type:"number",label:Object(i.__)("Span","layout-grid"),value:a,min:1,max:L(t),onChange:function(e){return r.onChangeSpan(n,t,e)}}))))},l=0;l<e;l++)a(l);return c}},{key:"canResizeBreakpoint",value:function(e){return!(!this.overlayRef||!this.overlayRef.current)&&this.overlayRef.current.getBoundingClientRect().width/L(e)>50}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.attributes,c=void 0===r?{}:r,a=t.isSelected,l=t.columns,u=t.setAttributes,s=t.updateAlignment,f=t.columnAttributes,p=this.getDeviceType(),d=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=ee(e,t,n),c={span:X,offset:F,row:K},i={},a=0;a<t;a++)r[a].verticalAlignment&&r[a].verticalAlignment!==n.verticalAlignment&&(i[W(a,r[a].verticalAlignment)]=!0);return U(U({},te(o,c)),i)}(p,l,c,f),g=c.gutterSize,b=c.addGutterEnds,m=c.verticalAlignment,h=new me(c,p,l),v=w()(ne(n),d,o()({"wp-block-jetpack-layout-tablet":"Tablet"===p,"wp-block-jetpack-layout-desktop":"Desktop"===p,"wp-block-jetpack-layout-mobile":"Mobile"===p,"wp-block-jetpack-layout-resizable":this.canResizeBreakpoint(p)},"are-vertically-aligned-".concat(m),m),re(c));if(0===l)return Object(j.createElement)(S.Placeholder,{icon:"layout",label:Object(i.__)("Choose Layout","layout-grid"),instructions:Object(i.__)("Select a layout to start with:","layout-grid"),className:v},Object(j.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options"},R().map((function(t){return Object(j.createElement)("li",{key:t.value},Object(j.createElement)(S.IconButton,{isSecondary:!0,icon:Object(j.createElement)(se,{columns:t.value}),onClick:function(){return e.onChangeLayout(t.value)},className:"block-editor-inner-blocks__template-picker-option",label:t.label}))}))));var y=Object(j.createElement)(S.ToggleControl,{label:Object(i.__)("Add end gutters","layout-grid"),help:b?Object(i.__)("Toggle off to remove the spacing left and right of the grid.","layout-grid"):Object(i.__)("Toggle on to add space left and right of the layout grid. ","layout-grid"),checked:b,onChange:function(e){return u({addGutterEnds:e})}});return Object(j.createElement)(j.Fragment,null,Object(j.createElement)(S.IsolatedEventContainer,null,Object(j.createElement)(de,{className:v,onResize:this.onResize,totalColumns:L(p),layoutGrid:h,isSelected:a},Object(j.createElement)("div",{className:"wpcom-overlay-grid",ref:this.overlayRef},Object(k.times)(L(p)).map((function(e){return Object(j.createElement)("div",{className:"wpcom-overlay-grid__column",key:e})}))),Object(j.createElement)(E.InnerBlocks,{template:null,templateLock:"all",allowedBlocks:Oe}),Object(j.createElement)(E.InspectorControls,null,Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Layout","layout-grid")},Object(j.createElement)("div",{className:"jetpack-layout-grid-columns block-editor-block-styles"},R().map((function(t){return Object(j.createElement)("div",{key:t.value,className:w()("block-editor-block-styles__item",{"is-active":l===t.value}),onClick:function(){return e.onChangeLayout(t.value)},onKeyDown:function(n){C.ENTER!==n.keyCode&&C.SPACE!==n.keyCode||(n.preventDefault(),e.onChangeLayout(t.value))},role:"button",tabIndex:"0","aria-label":t.label},Object(j.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(j.createElement)(se,{columns:t.value})),Object(j.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},t.label))}))),Object(j.createElement)("p",null,Object(j.createElement)("em",null,Object(i.__)("Changing the number of columns will reset your layout and could remove content.","layout-grid")))),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Responsive Breakpoints","layout-grid")},Object(j.createElement)("p",null,Object(j.createElement)("em",null,Object(i.__)("Note that previewing your post will show your browser's breakpoint, not the currently selected one.","layout-grid"))),Object(j.createElement)(S.ButtonGroup,null,T().map((function(t){return Object(j.createElement)(S.Button,{key:t.value,isPrimary:t.value===p,onClick:function(){return e.setDeviceType(t.value)}},t.label)}))),this.renderDeviceSettings(l,p,c)),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Gutter","layout-grid")},Object(j.createElement)("p",null,Object(i.__)("Gutter size","layout-grid")),Object(j.createElement)(S.SelectControl,{value:g,onChange:function(e){return u({gutterSize:e,addGutterEnds:"none"!==e&&b})},options:[{value:"none",label:Object(i.__)("No gutter","layout-grid")}].concat(D())}),"none"===g?Object(j.createElement)(S.Disabled,null,y):y)))),Object(j.createElement)(E.BlockControls,null,Object(j.createElement)(E.BlockVerticalAlignmentToolbar,{onChange:s,value:m}),Object(j.createElement)(S.Dropdown,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(j.createElement)(S.ToolbarGroup,null,Object(j.createElement)(S.Button,{"aria-expanded":t,onClick:n,icon:T().find((function(e){return e.value===p})).icon}))},renderContent:function(t){t.onClose;return Object(j.createElement)(S.MenuGroup,null,T().map((function(t){return Object(j.createElement)(S.MenuItem,{key:t.value,isSelected:t.value===p,onClick:function(){return e.setDeviceType(t.value)},icon:t.icon},t.label)})))}})))}}]),n}(j.Component);var ke=Object(P.compose)([Object(x.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,i=e("core/block-editor").updateBlockAttributes,a=n.select("core/block-editor").getBlockOrder;c({verticalAlignment:r}),a(o).forEach((function(e){i(e,{verticalAlignment:r})}))},updateColumns:function(r,o,i){var a=t.clientId,u=e("core/block-editor").replaceBlock,s=function(e,t,n){if(n>t)return[].concat(l()(e),l()(Object(k.times)(n-t,(function(){return Object(c.createBlock)("jetpack/layout-grid-column")}))));var r=l()(e),o=0;return r.reverse(),(r=r.filter((function(e){return!(o<t-n&&0===e.innerBlocks.length)||(o++,!1)}))).slice(Math.max(0,t-n-o)).reverse()}((0,n.select("core/block-editor").getBlocks)(a),r,o);u(a,Object(c.createBlock)(t.name,ve(ve(ve({},t.attributes),i),{},{className:ne(t.attributes.className)}),s))},setDeviceType:function(t){(0,e("core/edit-post").__experimentalSetPreviewDeviceType)(t)}}})),Object(x.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.getBlockCount,i=r.getBlocksByClientId,a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{columns:c(n),columnAttributes:o(n).map((function(e){return i(e)[0].attributes})),deviceType:l?l():null}}))])(je),_e=function(e){var t=e.attributes,n=e.innerBlocks,r=t.className,o=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r={span:$,offset:q,row:J},o=0;o<V.length;o++)n=U(U({},n),te(ee(V[o],e,t),r));return t.addGutterEnds||(n["wp-block-jetpack-layout-gutter__nowrap"]=!0),t.verticalAlignment&&"top"!==t.verticalAlignment&&(n["are-vertically-aligned-".concat(t.verticalAlignment)]=!0),n}(n.length,t),c=w()(ne(r),o,re(t));return Object(j.createElement)("div",{className:c},Object(j.createElement)(E.InnerBlocks.Content,null))};function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O()(e);if(t){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var Ee=function(e){m()(n,e);var t=we(n);function n(e){var r;return s()(this,n),r=t.call(this,e),o()(g()(r),"onLeftIn",(function(){r.setState({direction:"left"}),document.addEventListener("mouseup",r.onLeftOut)})),o()(g()(r),"onLeftOut",(function(){r.setState({direction:null}),document.removeEventListener("mouseup",r.onLeftOut)})),o()(g()(r),"onRightIn",(function(){r.setState({direction:"right"}),document.addEventListener("mouseup",r.onRightOut)})),o()(g()(r),"onRightOut",(function(){r.setState({direction:null}),document.removeEventListener("mouseup",r.onRightOut)})),r.state={direction:null},r}return p()(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.hasChildBlocks,c=t.backgroundColor,a=t.setBackgroundColor,l=t.attributes,u=t.setAttributes,s=t.updateAlignment,f=l.padding,p=l.verticalAlignment,d=this.state.direction,g=w()(n,c.class,(e={},o()(e,"wp-block-jetpack-layout-grid__padding-"+f,!0),o()(e,"has-background",c.color),o()(e,"components-resizable-box__container",!0),o()(e,c.class,c.class),o()(e,"wp-blocks-jetpack-layout-grid__showleft","right"===d),o()(e,"wp-blocks-jetpack-layout-grid__showright","left"===d),o()(e,"is-vertically-aligned-".concat(p),p),e)),b={backgroundColor:c.color};return Object(j.createElement)("div",{className:g,style:b},Object(j.createElement)("span",{className:"wp-blocks-jetpack-layout-grid__resize-handles"},Object(j.createElement)("div",{className:"components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-right",onMouseDown:this.onRightIn,"data-resize-right":!0}),Object(j.createElement)("div",{className:"components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-left",onMouseDown:this.onLeftIn,"data-resize-left":!0})),Object(j.createElement)(E.InnerBlocks,{templateLock:!1,renderAppender:r?void 0:function(){return Object(j.createElement)(E.InnerBlocks.ButtonBlockAppender,null)}}),Object(j.createElement)(E.InspectorControls,null,Object(j.createElement)(E.PanelColorSettings,{title:Object(i.__)("Column Color","layout-grid"),initialOpen:!0,colorSettings:[{value:c.color,onChange:a,label:Object(i.__)("Background","layout-grid")}]}),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Column Padding","layout-grid")},Object(j.createElement)("p",null,Object(i.__)("Choose padding for this column:","layout-grid")),Object(j.createElement)(S.SelectControl,{value:f,onChange:function(e){return u({padding:e})},options:[{value:"none",label:Object(i.__)("No padding","layout-grid")}].concat(D())}))),Object(j.createElement)(E.BlockControls,null,Object(j.createElement)(E.BlockVerticalAlignmentToolbar,{onChange:s,value:p})))}}]),n}(j.Component),Se=Object(P.compose)(Object(E.withColors)("backgroundColor"),Object(x.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(x.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,i=e("core/block-editor").updateBlockAttributes,a=n.select("core/block-editor").getBlockRootClientId;c({verticalAlignment:r}),i(a(o),{verticalAlignment:null})}}})))(Ee),Ce=function(e){var t,n=e.attributes,r=void 0===n?{}:n,c=r.className,i=r.backgroundColor,a=r.customBackgroundColor,l=r.padding,u=r.verticalAlignment,s=Object(E.getColorClassName)("background-color",i),f=w()(c,(t={},o()(t,"wp-block-jetpack-layout-grid__padding-"+l,!0),o()(t,"has-background",i),o()(t,s,s),o()(t,"is-vertically-aligned-".concat(u),u),t)),p={backgroundColor:s?void 0:a};return Object(j.createElement)("div",{className:f,style:p},Object(j.createElement)(E.InnerBlocks.Content,null))};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t){for(var n={},r=function(e){t.map((function(t){n[G(e,t)]={type:"number"},n[N(e,t)]={type:"number",default:0}}))},o=0;o<e;o++)r(o);return n}Object(c.registerBlockType)("jetpack/layout-grid",{title:Object(i.__)("Layout Grid","layout-grid"),description:Object(i.__)("Align blocks to a global grid, with support for responsive breakpoints.","layout-grid"),icon:oe,category:"design",supports:{align:["full"],html:!1},example:{attributes:{columns:2},innerBlocks:[{name:"jetpack/layout-grid-column",innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:32,content:Object(i.__)("<strong>Snow Patrol</strong>","layout-grid"),align:"center"}}]},{name:"jetpack/layout-grid-column",innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}}]}]},attributes:Pe({align:{type:"string",default:"full"},gutterSize:{type:"string",default:"large"},addGutterEnds:{type:"boolean",default:!0},verticalAlignment:{type:"string"}},Ae(4,V)),edit:ke,save:_e}),Object(c.registerBlockType)("jetpack/layout-grid-column",{description:Object(i.__)("A column used inside a Layout Grid block.","layout-grid"),title:Object(i.__)("Column","layout-grid"),icon:ce,category:"design",parent:["jetpack/layout-grid"],supports:{inserter:!1,reusable:!1,html:!1},attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},padding:{type:"string",default:"none"},verticalAlignment:{type:"string"}},edit:Se,save:Ce})}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.blockEditor},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(26);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(27),o=n(6);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.compose},function(e,t,n){var r=n(22),o=n(23),c=n(24),i=n(25);e.exports=function(e){return r(e)||o(e)||c(e)||i()}},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.keycodes},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(28);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){var r=n(20);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),c=n(14),i=n(2),a=n(17),l=n.n(a),u=n(9),s=n.n(u),d=n(10),p=n.n(d),f=n(6),g=n.n(f),b=n(12),m=n.n(b),v=n(13),h=n.n(v),y=n(7),O=n.n(y),j=n(0),w=n(18),k=n(5),_=n.n(k),E=n(4),S=n(3),C=n(19),x=n(15),P=n(16),A=n(8),M=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),z=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),B=Object(j.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(j.createElement)(A.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));function D(){return[{value:"small",label:Object(i.__)("Small","layout-grid")},{value:"medium",label:Object(i.__)("Medium","layout-grid")},{value:"large",label:Object(i.__)("Large","layout-grid")},{value:"huge",label:Object(i.__)("Huge","layout-grid")}]}var R=function(){return[{label:Object(i.__)("1 column","layout-grid"),value:1},{label:Object(i.__)("2 columns","layout-grid"),value:2},{label:Object(i.__)("3 columns","layout-grid"),value:3},{label:Object(i.__)("4 columns","layout-grid"),value:4}]},T=function(){return[{value:"Desktop",label:Object(i.__)("Desktop","layout-grid"),icon:M},{value:"Tablet",label:Object(i.__)("Tablet","layout-grid"),icon:z},{value:"Mobile",label:Object(i.__)("Mobile","layout-grid"),icon:B}]},V=["Desktop","Tablet","Mobile"];function N(e,t){return"column".concat(e+1).concat(t,"Span")}function G(e,t){return"column".concat(e+1).concat(t,"Offset")}var L=function(e){return"Tablet"===e?8:"Mobile"===e?4:12};function I(e,t,n){return"Tablet"===e?3===t&&2===n?L(e):t>1?L(e)/2:L(e):"Mobile"===e?L(e):L(e)/t}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e,t){return"column".concat(e+1,"-grid__span-").concat(t)},F=function(e,t){return"column".concat(e+1,"-grid__start-").concat(t)},K=function(e,t){return"column".concat(e+1,"-grid__row-").concat(t)},W=function(e,t){return"column".concat(e+1,"-grid__valign-").concat(t)},$=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__span-").concat(t)},q=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__start-").concat(t)},J=function(e,t,n){return"column".concat(e+1,"-").concat(n.toLowerCase(),"-grid__row-").concat(t)};function Q(e,t){return Math.floor(e/t)}function Y(e,t){return e%t}function Z(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{name:e,column:t,value:n,device:r,enabled:o}}function ee(e,t,n){for(var r=[],o=L(e),c=function(e,t,n){for(var r=[],o=0,c=0;c<e;c++){var i=N(c,t),a=G(c,t),l=n[i]||I(t,e,c),u=n[a]||0;r.push({position:o+u,span:l}),o+=u,o+=l}return r}(t,e,n),i=0;i<c.length;i++){var a=c[i],l=a.span,u=a.position,s=Q(u,o),d=Y(u,o);r.push(Z("span",i,l,e)),r.push(Z("offset",i,d+1,e,d>0)),r.push(Z("row",i,s+1,e))}return r}function te(e,t){var n={};return e.filter((function(e){return e.enabled&&t[e.name]})).map((function(e){return n[t[e.name](e.column,e.value,e.device)]=!0})),n}function ne(e){return e?e.replace(/column\d-\w*-grid__\w*-\d*/g,"").replace(/column\d-grid__\w*-\d*/g,"").replace(/\s{2,}/,"").replace(/wp-block-jetpack-layout-gutter__\w*/,"").replace(/is-vertically-aligned-\w*/,"").replace(/are-vertically-aligned-\w*/):e}function re(e){var t=e.gutterSize;return{"wp-block-jetpack-layout-gutter__nowrap":!e.addGutterEnds,"wp-block-jetpack-layout-gutter__none":"none"===t,"wp-block-jetpack-layout-gutter__small":"small"===t,"wp-block-jetpack-layout-gutter__medium":"medium"===t,"wp-block-jetpack-layout-gutter__huge":"huge"===t}}var oe=n(21),ce=n.n(oe),ie=n(11),ae=n.n(ie),le=function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},e),Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm32 22H9V14h30v20z"}))},ue=function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},e),Object(j.createElement)(S.Path,{d:"M7,12v24h34V12H7z M23,34H9V14h14V34z M39,34H25V14h14V34z"}))},se=function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},e),Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm23 2h9v20h-9V14zm-2 20h-8V14h8v20zM9 14h9v20H9V14z"}))},de=function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},e),Object(j.createElement)(S.Path,{d:"M7 12v24h34V12H7zm8 22H9V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20z"}))},pe=function(e){var t=e.columns,n=ce()(e,["columns"]);return 4===t?Object(j.createElement)(de,n):3===t?Object(j.createElement)(se,n):2===t?Object(j.createElement)(ue,n):Object(j.createElement)(le,n)},fe=function(e){var t=e.direction,n=e.height,r=e.xPos,o=e.top,c=e.isSelected,i=_()("wpcom-overlay-resize__handle","components-resizable-box__container",{"is-selected":c}),a={height:n+"px",width:r+"px",top:o+"px"},l={left:r+"px"},u=_()("components-resizable-box__handle","components-resizable-box__side-handle",{"components-resizable-box__handle-left":"left"===t,"components-resizable-box__handle-right":"right"===t});return Object(j.createElement)("div",{className:i,style:a},Object(j.createElement)("span",null,Object(j.createElement)("div",{className:u,style:l})))};var ge=function(e){m()(c,e);var t,n,r=(t=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=O()(t);if(n){var o=O()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return h()(this,e)});function c(e){var t;return s()(this,c),t=r.call(this,e),o()(g()(t),"onMouseDown",(function(e){var n=e.target;if((0===e.button||e.touches)&&(n.dataset.resizeRight||n.dataset.resizeLeft)){t.block=n.closest(".wp-block");var r=t.block.getBoundingClientRect(),o=r.height,c=r.right,i=r.left,a=r.top,l=n.getBoundingClientRect().width,u=t.getChildPosition(t.block),s=n.dataset.resizeLeft;t.setState({resizingColumn:u,xPos:t.getAdjustedOffset(t.getMouseX(e),l),height:o,width:l,top:t.getAdjustedTop(a),direction:s?"left":"right",max:s?t.getAdjustedOffset(c,l):t.getAdjustedOffset(i,l)}),0===e.button?(document.addEventListener("mousemove",t.onMouseMove),document.addEventListener("mouseup",t.onMouseUp),e.preventDefault()):(document.addEventListener("touchmove",t.onMouseMove),document.addEventListener("touchend",t.onMouseUp)),e.stopPropagation()}})),o()(g()(t),"onMouseMove",(function(e){e.stopPropagation(),void 0===e.touches&&e.preventDefault();var n=t.block.getBoundingClientRect().height;t.setState({xPos:t.getRestrictedOffset(t.getAdjustedOffset(t.getMouseX(e))),height:n});var r=t.getNearestColumn(t.state.direction,e);r&&t.props.onResize(t.state.resizingColumn,r)})),o()(g()(t),"onMouseUp",(function(e){t.setState({resizingColumn:-1}),document.removeEventListener("mousemove",t.onMouseMove),document.removeEventListener("mouseup",t.onMouseUp),document.removeEventListener("touchmove",t.onMouseMove),document.removeEventListener("touchend",t.onMouseUp)})),t.containerRef=Object(j.createRef)(),t.state={resizingColumn:-1,xPos:0,height:0},t}return p()(c,[{key:"getNearestColumn",value:function(e,t){var n=this.props,r=n.totalColumns,o=n.layoutGrid,c=o.getStart(this.state.resizingColumn),i=o.getSpan(this.state.resizingColumn),a=Math.min(r,Math.max(0,function(e,t,n,r){var o=e.getBoundingClientRect(),c=o.width/r,i=t-o.x,a=Math.floor(i/c),l=i%c;return"left"===n?l<=c/2?a:a+1:l<c/2?a:a+1}(this.containerRef.current,this.getMouseX(t),e,r)));if("left"===e){if(a===c)return null;var l=Math.abs(a-c),u={start:a,span:a>c?i-l:i+l,direction:e};return u.start>=c+i?null:(u.span=Math.max(1,u.span),u)}return{span:Math.max(1,a-c),direction:e}}},{key:"getMouseX",value:function(e){var t=e.clientX,n=e.targetTouches;return t||n&&n[0].clientX}},{key:"getAdjustedOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.state.width,r=t>0?t:n;return e-this.containerRef.current.getBoundingClientRect().left-r/2}},{key:"getAdjustedTop",value:function(e){return e-this.containerRef.current.getBoundingClientRect().top}},{key:"getRestrictedOffset",value:function(e){var t=this.state,n=t.direction,r=t.max,o=t.width;return"left"===n?Math.min(r-o,e):Math.max(r+o,e)}},{key:"getChildPosition",value:function(e){for(var t=0;null!==e.previousSibling;)e=e.previousSibling,t++;return t}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.isSelected,o=this.state,c=o.resizingColumn,i=o.xPos,a=o.height,l=_()(t,-1!==c?"wp-block-jetpack-layout-grid__resizing":null);return Object(j.createElement)("div",{className:l,onMouseDown:this.onMouseDown,onTouchStart:this.onMouseDown,ref:this.containerRef},-1!==c&&Object(j.createElement)(fe,{direction:this.state.direction,height:a,xPos:i,top:this.state.top,isSelected:r}),n)}}]),c}(j.Component);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=function(){function e(t,n,r){s()(this,e),this.attributes=t,this.device=n,this.columnCount=r}return p()(e,[{key:"getGridValues",value:function(){for(var e={},t=0;t<this.columnCount;t++){var n=I(this.device,this.columnCount,t);e[N(t,this.device)]=this.getSpan(t)||n,e[G(t,this.device)]=this.getOffset(t)}return e}},{key:"applyAdjustments",value:function(e){for(var t=this.getGridValues(),n=0;n<e.length;n++)t=me(me({},t),e[n]);return t}},{key:"getSpanAdjustment",value:function(e,t){return o()({},N(e,this.device),t)}},{key:"getAdjustOffset",value:function(e,t){return o()({},G(e,this.device),t)}},{key:"getShrinkOffset",value:function(e,t){var n=this.getOffset(e),r=t>=n?n:t;return{adjustment:this.getAdjustOffset(e,n-r),offsetUsed:r}}},{key:"hasOverlaps",value:function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=t+1;r<e.length;r++){var o=e[r];if(n.start>o.start&&n.start<o.end)return!0;if(n.end>o.start&&n.end<o.end)return!0}return!1}},{key:"validateGrid",value:function(e){for(var t,n,r=[],o=L(this.device),c=0,i=0,a=0;a<this.columnCount;a++){var l=e[N(a,this.device)],u=e[G(a,this.device)];if((i+=u)>=o&&(i-=o),(i+=l)>o)return!1;r.push({start:c+u,end:c+u+l}),c+=l+u}return!(c>(t=this.device,n=this.columnCount,"Tablet"===t&&n>2?2*L(t):"Mobile"===t?L(t)*n:L(t))||this.hasOverlaps(r))}},{key:"getEndAdjustments",value:function(e,t){var n=[];if(t<0)return[this.getAdjustOffset(e,this.getOffset(e)+Math.abs(t))];if(t>0)for(var r=e;r<this.columnCount&&t>0;r++){var o=this.getShrinkOffset(r,Math.abs(t));n.push(o.adjustment),t-=o.offsetUsed}return n}},{key:"getStartMovedLeft",value:function(e,t){for(var n=[],r=e;r>=0&&t>0;r--){var o=this.getShrinkOffset(r,t);n.push(o.adjustment),t-=o.offsetUsed}return n}},{key:"getStartAdjustments",value:function(e,t){var n=this.getOffset(e),r=this.getOffsetFromStart(e,t),o=r-n;return o<0?this.getStartMovedLeft(e,Math.abs(o)):[this.getAdjustOffset(e,r)]}},{key:"getSpan",value:function(e){return this.attributes[N(e,this.device)]}},{key:"getOffset",value:function(e){return this.attributes[G(e,this.device)]}},{key:"getStart",value:function(e){for(var t=0,n=0;n<e;n++)t+=this.getSpan(n)+this.getOffset(n);var r=Math.max(1,Math.floor(t/L(this.device)));return(t+this.getOffset(e))%(r*L(this.device))}},{key:"getOffsetFromStart",value:function(e,t){if(0===e)return t;var n=t-this.getStart(e);return this.getOffset(e)+n}},{key:"convertOffsetToStart",value:function(e,t){return this.getStart(e)+(t-this.getOffset(e))}},{key:"getAdjustedGrid",value:function(e,t){var n=t.start,r=void 0===n?this.getStart(e):n,o=t.span,c=void 0===o?this.getSpan(e):o,i=[];r!==this.getStart(e)&&c!==this.getSpan(e)?i=(i=i.concat(this.getStartAdjustments(e,r))).concat(this.getSpanAdjustment(e,c)):c!==this.getSpan(e)?i=(i=i.concat(this.getSpanAdjustment(e,c))).concat(this.getEndAdjustments(e+1,c-this.getSpan(e))):r!==this.getStart(e)&&(i=(i=i.concat(this.getStartAdjustments(e,r))).concat(this.getEndAdjustments(e+1,r-this.getStart(e))));var a=this.applyAdjustments(i);return i.length>0&&this.validateGrid(a)?a:null}}]),e}();function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe=["jetpack/layout-grid-column"],je=function(e){m()(c,e);var t,n,r=(t=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=O()(t);if(n){var o=O()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return h()(this,e)});function c(e){var t;return s()(this,c),t=r.call(this,e),o()(g()(t),"onChangeLayout",(function(e){for(var n={},r=0;r<e;r++)for(var o=0;o<V.length;o++){var c=I(V[o],e,r);n[N(r,V[o])]=c,n[G(r,V[o])]=0}t.props.updateColumns(t.props.columns,e,n)})),o()(g()(t),"setDeviceType",(function(e){t.props.deviceType?t.props.setDeviceType(e):t.setState({selectedDevice:e})})),o()(g()(t),"onResize",(function(e,n){var r=t.props,o=r.attributes,c=r.columns,i=new ve(o,t.getDeviceType(),c).getAdjustedGrid(e,n);i&&t.adjustGrid(i)})),o()(g()(t),"onChangeSpan",(function(e,n,r){var o=t.props,c=o.attributes,i=o.columns,a=new ve(c,n,i).getAdjustedGrid(e,{span:parseInt(r,10)});a&&t.adjustGrid(a)})),o()(g()(t),"onChangeOffset",(function(e,n,r){var o=t.props,c=o.attributes,i=o.columns,a=new ve(c,n,i),l=a.getAdjustedGrid(e,{start:a.convertOffsetToStart(e,parseInt(r,10))});l&&t.adjustGrid(l)})),t.overlayRef=Object(j.createRef)(),t.state={selectedDevice:T()[0].value},t}return p()(c,[{key:"getDeviceType",value:function(){return this.props.deviceType?this.props.deviceType:this.state.selectedDevice}},{key:"adjustGrid",value:function(e){var t=this.props,n=t.setAttributes,r=t.attributes;n(ye(ye({},e),{},{className:ne(r.className)}))}},{key:"renderDeviceSettings",value:function(e,t,n){for(var r=this,o=new ve(n,t,this.props.columns),c=[],a=function(n){var a=o.getSpan(n)||I(t,e,n),l=o.getOffset(n)||0;c.push(Object(j.createElement)("div",{className:"jetpack-layout-grid-settings",key:n},Object(j.createElement)("strong",null,Object(i.__)("Column","layout-grid")," ",n+1),Object(j.createElement)("div",{className:"jetpack-layout-grid-settings__group"},Object(j.createElement)(S.TextControl,{type:"number",label:Object(i.__)("Offset","layout-grid"),value:l||0,min:0,max:L(t)-1,onChange:function(e){return r.onChangeOffset(n,t,e)}}),Object(j.createElement)(S.TextControl,{type:"number",label:Object(i.__)("Span","layout-grid"),value:a,min:1,max:L(t),onChange:function(e){return r.onChangeSpan(n,t,e)}}))))},l=0;l<e;l++)a(l);return c}},{key:"canResizeBreakpoint",value:function(e){return!(!this.overlayRef||!this.overlayRef.current)&&this.overlayRef.current.getBoundingClientRect().width/L(e)>50}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.attributes,c=void 0===r?{}:r,a=t.isSelected,l=t.columns,u=t.setAttributes,s=t.updateAlignment,d=t.columnAttributes,p=this.getDeviceType(),f=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=ee(e,t,n),c={span:X,offset:F,row:K},i={},a=0;a<t;a++)r[a].verticalAlignment&&r[a].verticalAlignment!==n.verticalAlignment&&(i[W(a,r[a].verticalAlignment)]=!0);return U(U({},te(o,c)),i)}(p,l,c,d),g=c.gutterSize,b=c.addGutterEnds,m=c.verticalAlignment,v=new ve(c,p,l),h=_()(ne(n),f,o()({"wp-block-jetpack-layout-tablet":"Tablet"===p,"wp-block-jetpack-layout-desktop":"Desktop"===p,"wp-block-jetpack-layout-mobile":"Mobile"===p,"wp-block-jetpack-layout-resizable":this.canResizeBreakpoint(p)},"are-vertically-aligned-".concat(m),m),re(c));if(0===l)return Object(j.createElement)(S.Placeholder,{icon:"layout",label:Object(i.__)("Choose Layout","layout-grid"),instructions:Object(i.__)("Select a layout to start with:","layout-grid"),className:h},Object(j.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options"},R().map((function(t){return Object(j.createElement)("li",{key:t.value},Object(j.createElement)(S.IconButton,{isSecondary:!0,icon:Object(j.createElement)(pe,{columns:t.value}),onClick:function(){return e.onChangeLayout(t.value)},className:"block-editor-inner-blocks__template-picker-option",label:t.label}))}))));var y=Object(j.createElement)(S.ToggleControl,{label:Object(i.__)("Add end gutters","layout-grid"),help:b?Object(i.__)("Toggle off to remove the spacing left and right of the grid.","layout-grid"):Object(i.__)("Toggle on to add space left and right of the layout grid. ","layout-grid"),checked:b,onChange:function(e){return u({addGutterEnds:e})}});return Object(j.createElement)(j.Fragment,null,Object(j.createElement)(S.IsolatedEventContainer,null,Object(j.createElement)(ge,{className:h,onResize:this.onResize,totalColumns:L(p),layoutGrid:v,isSelected:a},Object(j.createElement)("div",{className:"wpcom-overlay-grid",ref:this.overlayRef},Object(w.times)(L(p)).map((function(e){return Object(j.createElement)("div",{className:"wpcom-overlay-grid__column",key:e})}))),Object(j.createElement)(E.InnerBlocks,{template:null,templateLock:"all",allowedBlocks:Oe}),Object(j.createElement)(E.InspectorControls,null,Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Layout","layout-grid")},Object(j.createElement)("div",{className:"jetpack-layout-grid-columns block-editor-block-styles"},R().map((function(t){return Object(j.createElement)("div",{key:t.value,className:_()("block-editor-block-styles__item",{"is-active":l===t.value}),onClick:function(){return e.onChangeLayout(t.value)},onKeyDown:function(n){C.ENTER!==n.keyCode&&C.SPACE!==n.keyCode||(n.preventDefault(),e.onChangeLayout(t.value))},role:"button",tabIndex:"0","aria-label":t.label},Object(j.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(j.createElement)(pe,{columns:t.value})),Object(j.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},t.label))}))),Object(j.createElement)("p",null,Object(j.createElement)("em",null,Object(i.__)("Changing the number of columns will reset your layout and could remove content.","layout-grid")))),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Responsive Breakpoints","layout-grid")},Object(j.createElement)("p",null,Object(j.createElement)("em",null,Object(i.__)("Note that previewing your post will show your browser's breakpoint, not the currently selected one.","layout-grid"))),Object(j.createElement)(S.ButtonGroup,null,T().map((function(t){return Object(j.createElement)(S.Button,{key:t.value,isPrimary:t.value===p,onClick:function(){return e.setDeviceType(t.value)}},t.label)}))),this.renderDeviceSettings(l,p,c)),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Gutter","layout-grid")},Object(j.createElement)("p",null,Object(i.__)("Gutter size","layout-grid")),Object(j.createElement)(S.SelectControl,{value:g,onChange:function(e){return u({gutterSize:e,addGutterEnds:"none"!==e&&b})},options:[{value:"none",label:Object(i.__)("No gutter","layout-grid")}].concat(D())}),"none"===g?Object(j.createElement)(S.Disabled,null,y):y)))),Object(j.createElement)(E.BlockControls,null,Object(j.createElement)(E.BlockVerticalAlignmentToolbar,{onChange:s,value:m}),Object(j.createElement)(S.Dropdown,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(j.createElement)(S.ToolbarGroup,null,Object(j.createElement)(S.Button,{"aria-expanded":t,onClick:n,icon:T().find((function(e){return e.value===p})).icon}))},renderContent:function(t){return t.onClose,Object(j.createElement)(S.MenuGroup,null,T().map((function(t){return Object(j.createElement)(S.MenuItem,{key:t.value,isSelected:t.value===p,onClick:function(){return e.setDeviceType(t.value)},icon:t.icon},t.label)})))}})))}}]),c}(j.Component),we=Object(P.compose)([Object(x.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,i=e("core/block-editor").updateBlockAttributes,a=n.select("core/block-editor").getBlockOrder;c({verticalAlignment:r}),a(o).forEach((function(e){i(e,{verticalAlignment:r})}))},updateColumns:function(r,o,i){var a=t.clientId,u=e("core/block-editor").replaceBlock,s=function(e,t,n){if(n>t)return[].concat(l()(e),l()(Object(w.times)(n-t,(function(){return Object(c.createBlock)("jetpack/layout-grid-column")}))));var r=l()(e),o=0;return r.reverse(),(r=r.filter((function(e){return!(o<t-n&&0===e.innerBlocks.length&&(o++,1))}))).slice(Math.max(0,t-n-o)).reverse()}((0,n.select("core/block-editor").getBlocks)(a),r,o);u(a,Object(c.createBlock)(t.name,ye(ye(ye({},t.attributes),i),{},{className:ne(t.attributes.className)}),s))},setDeviceType:function(t){(0,e("core/edit-post").__experimentalSetPreviewDeviceType)(t)}}})),Object(x.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.getBlockCount,i=r.getBlocksByClientId,a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{columns:c(n),columnAttributes:o(n).map((function(e){return i(e)[0].attributes})),deviceType:l?l():null}}))])(je);var ke=function(e){m()(c,e);var t,n,r=(t=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=O()(t);if(n){var o=O()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return h()(this,e)});function c(e){var t;return s()(this,c),t=r.call(this,e),o()(g()(t),"onLeftIn",(function(){t.setState({direction:"left"}),document.addEventListener("mouseup",t.onLeftOut)})),o()(g()(t),"onLeftOut",(function(){t.setState({direction:null}),document.removeEventListener("mouseup",t.onLeftOut)})),o()(g()(t),"onRightIn",(function(){t.setState({direction:"right"}),document.addEventListener("mouseup",t.onRightOut)})),o()(g()(t),"onRightOut",(function(){t.setState({direction:null}),document.removeEventListener("mouseup",t.onRightOut)})),t.state={direction:null},t}return p()(c,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.hasChildBlocks,c=t.backgroundColor,a=t.setBackgroundColor,l=t.attributes,u=t.setAttributes,s=t.updateAlignment,d=l.padding,p=l.verticalAlignment,f=this.state.direction,g=_()(n,c.class,(e={},o()(e,"wp-block-jetpack-layout-grid__padding-"+d,!0),o()(e,"has-background",c.color),o()(e,"components-resizable-box__container",!0),o()(e,c.class,c.class),o()(e,"wp-blocks-jetpack-layout-grid__showleft","right"===f),o()(e,"wp-blocks-jetpack-layout-grid__showright","left"===f),o()(e,"is-vertically-aligned-".concat(p),p),e)),b={backgroundColor:c.color};return Object(j.createElement)("div",{className:g,style:b},Object(j.createElement)("span",{className:"wp-blocks-jetpack-layout-grid__resize-handles"},Object(j.createElement)("div",{className:"components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-right",onMouseDown:this.onRightIn,"data-resize-right":!0}),Object(j.createElement)("div",{className:"components-resizable-box__handle components-resizable-box__side-handle components-resizable-box__handle-left",onMouseDown:this.onLeftIn,"data-resize-left":!0})),Object(j.createElement)(E.InnerBlocks,{templateLock:!1,renderAppender:r?void 0:function(){return Object(j.createElement)(E.InnerBlocks.ButtonBlockAppender,null)}}),Object(j.createElement)(E.InspectorControls,null,Object(j.createElement)(E.PanelColorSettings,{title:Object(i.__)("Column Color","layout-grid"),initialOpen:!0,colorSettings:[{value:c.color,onChange:a,label:Object(i.__)("Background","layout-grid")}]}),Object(j.createElement)(S.PanelBody,{title:Object(i.__)("Column Padding","layout-grid")},Object(j.createElement)("p",null,Object(i.__)("Choose padding for this column:","layout-grid")),Object(j.createElement)(S.SelectControl,{value:d,onChange:function(e){return u({padding:e})},options:[{value:"none",label:Object(i.__)("No padding","layout-grid")}].concat(D())}))),Object(j.createElement)(E.BlockControls,null,Object(j.createElement)(E.BlockVerticalAlignmentToolbar,{onChange:s,value:p})))}}]),c}(j.Component),_e=Object(P.compose)(Object(E.withColors)("backgroundColor"),Object(x.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(x.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,i=e("core/block-editor").updateBlockAttributes,a=n.select("core/block-editor").getBlockRootClientId;c({verticalAlignment:r}),i(a(o),{verticalAlignment:null})}}})))(ke),Ee=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},padding:{type:"string",default:"none"},verticalAlignment:{type:"string"}},save:function(e){var t,n=e.attributes,r=void 0===n?{}:n,c=r.className,i=r.backgroundColor,a=r.customBackgroundColor,l=r.padding,u=r.verticalAlignment,s=Object(E.getColorClassName)("background-color",i),d=_()(c,(t={},o()(t,"wp-block-jetpack-layout-grid__padding-"+l,!0),o()(t,"has-background",i),o()(t,s,s),o()(t,"is-vertically-aligned-".concat(u),u),t)),p={backgroundColor:s?void 0:a};return Object(j.createElement)("div",{className:d,style:p},Object(j.createElement)(E.InnerBlocks.Content,null))}}];function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(c.registerBlockType)("jetpack/layout-grid",{title:Object(i.__)("Layout Grid","layout-grid"),description:Object(i.__)("Align blocks to a global grid, with support for responsive breakpoints.","layout-grid"),icon:function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),Object(j.createElement)(S.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7.5 11.5H6c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h5.5v10zm4 0H13v-10h2.5v10zm4-.5c0 .3-.2.5-.5.5h-2v-10h2c.3 0 .5.2.5.5v9z"}))},category:"design",supports:{align:["full"],html:!1},example:{attributes:{columns:2},innerBlocks:[{name:"jetpack/layout-grid-column",innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:32,content:Object(i.__)("<strong>Snow Patrol</strong>","layout-grid"),align:"center"}}]},{name:"jetpack/layout-grid-column",innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}}]}]},attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({align:{type:"string",default:"full"},gutterSize:{type:"string",default:"large"},addGutterEnds:{type:"boolean",default:!0},verticalAlignment:{type:"string"}},function(e,t){for(var n={},r=function(e){t.map((function(t){n[N(e,t)]={type:"number"},n[G(e,t)]={type:"number",default:0}}))},o=0;o<e;o++)r(o);return n}(4,V)),edit:we,save:function(e){var t=e.attributes,n=e.innerBlocks,r=t.className,o=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r={span:$,offset:q,row:J},o=0;o<V.length;o++)n=U(U({},n),te(ee(V[o],e,t),r));return t.addGutterEnds||(n["wp-block-jetpack-layout-gutter__nowrap"]=!0),t.verticalAlignment&&"top"!==t.verticalAlignment&&(n["are-vertically-aligned-".concat(t.verticalAlignment)]=!0),n}(n.length,t),c=_()(ne(r),o,re(t));return Object(j.createElement)("div",{className:c},Object(j.createElement)(E.InnerBlocks.Content,null))}}),Object(c.registerBlockType)("jetpack/layout-grid-column",{description:Object(i.__)("A column used inside a Layout Grid block.","layout-grid"),title:Object(i.__)("Column","layout-grid"),icon:function(e){return Object(j.createElement)(S.SVG,ae()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),Object(j.createElement)(S.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM5.5 17V8c0-.3.2-.5.5-.5h5.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2v-10h2c.3 0 .5.2.5.5v9z"}))},category:"design",parent:["jetpack/layout-grid"],supports:{inserter:!1,reusable:!1,html:!1},attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},padding:{type:"string",default:"none"},verticalAlignment:{type:"string"}},edit:_e,save:function(e){var t,n=e.attributes,r=void 0===n?{}:n,c=r.className,i=r.backgroundColor,a=r.customBackgroundColor,l=r.padding,u=r.verticalAlignment,s=Object(E.getColorClassName)("background-color",i),d=_()(c,(t={},o()(t,"wp-block-jetpack-layout-grid__padding-"+l,!0),o()(t,"has-background",i||a),o()(t,s,s),o()(t,"is-vertically-aligned-".concat(u),u),t)),p={backgroundColor:s?void 0:a};return Object(j.createElement)("div",{className:d,style:p},Object(j.createElement)(E.InnerBlocks.Content,null))},deprecated:Ee})}]);
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Layout Grid
4
  * Description: Let any blocks align to a global grid
5
- * Version: 1.3
6
  * Author: Automattic
7
  * Author URI: https://automattic.com
8
  * License: GPL v2 or later
2
  /**
3
  * Plugin Name: Layout Grid
4
  * Description: Let any blocks align to a global grid
5
+ * Version: 1.4
6
  * Author: Automattic
7
  * Author URI: https://automattic.com
8
  * License: GPL v2 or later
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Layout Grid Block ===
2
  Contributors: automattic, jasmussen, johnny5, mkaz
3
- Stable tag: 1.3
4
- Tested up to: 5.5
5
  Requires at least: 5.5
6
  License: GPLv2 or later
7
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -24,6 +24,11 @@ You can follow development, file an issue, suggest features, and view the source
24
 
25
  == Changelog ==
26
 
 
 
 
 
 
27
  = 1.3 - 21st July 2020 =
28
  * Add vertical alignment to grid and grid columns
29
  * Mirror grid device breakpoint with editor preview breakpoint (requires WP 5.5 or Gutenberg plugin)
1
  === Layout Grid Block ===
2
  Contributors: automattic, jasmussen, johnny5, mkaz
3
+ Stable tag: 1.4
4
+ Tested up to: 5.6
5
  Requires at least: 5.5
6
  License: GPLv2 or later
7
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
24
 
25
  == Changelog ==
26
 
27
+ = 1.4 - 15th January 2021 =
28
+ * Use hyphenation for text inside a grid column
29
+ * Add missing `has-background` for columns with a custom background colour
30
+ * Fix CSS for use in full site editor
31
+
32
  = 1.3 - 21st July 2020 =
33
  * Add vertical alignment to grid and grid columns
34
  * Mirror grid device breakpoint with editor preview breakpoint (requires WP 5.5 or Gutenberg plugin)
style.css CHANGED
@@ -60,27 +60,32 @@
60
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none {
61
  padding: 0px; }
62
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none.has-background {
63
- padding: 0px 13px; }
 
64
 
65
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-small {
66
  padding: 8px; }
67
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-small.has-background {
68
- padding: 8px 21px; }
 
69
 
70
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-medium {
71
  padding: 16px; }
72
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-medium.has-background {
73
- padding: 16px 29px; }
 
74
 
75
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-large {
76
  padding: 24px; }
77
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-large.has-background {
78
- padding: 24px 37px; }
 
79
 
80
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-huge {
81
  padding: 48px; }
82
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-huge.has-background {
83
- padding: 48px 61px; }
 
84
 
85
  /**
86
  * Parent column alignment
60
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none {
61
  padding: 0px; }
62
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none.has-background {
63
+ padding: 0px 13px;
64
+ max-width: calc( 100% + 26px); }
65
 
66
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-small {
67
  padding: 8px; }
68
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-small.has-background {
69
+ padding: 8px 21px;
70
+ max-width: calc( 100% + 42px); }
71
 
72
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-medium {
73
  padding: 16px; }
74
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-medium.has-background {
75
+ padding: 16px 29px;
76
+ max-width: calc( 100% + 58px); }
77
 
78
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-large {
79
  padding: 24px; }
80
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-large.has-background {
81
+ padding: 24px 37px;
82
+ max-width: calc( 100% + 74px); }
83
 
84
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-huge {
85
  padding: 48px; }
86
  .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-huge.has-background {
87
+ padding: 48px 61px;
88
+ max-width: calc( 100% + 122px); }
89
 
90
  /**
91
  * Parent column alignment