PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.0
GenerateBlocks v2.0.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / components / grid-column-selector / layouts.js
generateblocks / src / components / grid-column-selector Last commit date
GridColumnSelector.jsx 1 year ago editor.scss 1 year ago index.js 1 year ago layouts.js 1 year ago
layouts.js
77 lines
1 import { __ } from '@wordpress/i18n';
2
3 export const layouts = [
4 {
5 id: 'one-column',
6 label: __( 'One Column', 'generateblocks' ),
7 layout: '1fr',
8 divs: 1,
9 },
10 {
11 id: 'two-column',
12 label: __( 'Two Columns', 'generateblocks' ),
13 layout: 'repeat(2, minmax(0, 1fr))',
14 divs: 2,
15 },
16 {
17 id: 'three-column',
18 label: __( 'Three Columns', 'generateblocks' ),
19 layout: 'repeat(3, minmax(0, 1fr))',
20 divs: 3,
21 },
22 {
23 id: 'four-column',
24 label: __( 'Four Columns', 'generateblocks' ),
25 layout: 'repeat(4, minmax(0, 1fr))',
26 divs: 4,
27 },
28 {
29 id: 'two-column-1-3',
30 label: __( 'Two Columns (1/3)', 'generateblocks' ),
31 layout: '1fr 3fr',
32 divs: 2,
33 },
34 {
35 id: 'two-column-3-1',
36 label: __( 'Two Columns (3/1)', 'generateblocks' ),
37 layout: '3fr 1fr',
38 divs: 2,
39 },
40 {
41 id: 'three-column-1-1-2',
42 label: __( 'Three Columns (1/1/2)', 'generateblocks' ),
43 layout: '1fr 1fr 2fr',
44 divs: 3,
45 },
46 {
47 id: 'three-column-1-2-1',
48 label: __( 'Three Columns (1/2/1)', 'generateblocks' ),
49 layout: '1fr 2fr 1fr',
50 divs: 3,
51 },
52 {
53 id: 'three-column-2-1-1',
54 label: __( 'Three Columns (2/1/1)', 'generateblocks' ),
55 layout: '2fr 1fr 1fr',
56 divs: 3,
57 },
58 {
59 id: 'three-column-20-60-20',
60 label: __( 'Three Columns (20/60/20)', 'generateblocks' ),
61 layout: '1fr 3fr 1fr',
62 divs: 3,
63 },
64 {
65 id: 'five-column',
66 label: __( 'Five Columns', 'generateblocks' ),
67 layout: 'repeat(5, minmax(0, 1fr))',
68 divs: 5,
69 },
70 {
71 id: 'six-column',
72 label: __( 'Six Columns', 'generateblocks' ),
73 layout: 'repeat(6, minmax(0, 1fr))',
74 divs: 6,
75 },
76 ];
77