-
Notifications
You must be signed in to change notification settings - Fork 8
/
Settings.yaml
508 lines (486 loc) · 22.5 KB
/
Settings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
TYPO3:
TypoScript:
defaultContext:
'M12.Foundation.Spacing': 'M12\Foundation\Eel\SpacingHelper'
Neos:
typoScript:
autoInclude:
'M12.Foundation': TRUE
# userInterface:
# requireJsPathMapping:
# 'M12.Foundation/Inspector/Editors': 'resource://M12.Foundation/Public/JavaScript/Neos/Inspector/Editors'
nodeTypes:
groups:
interactive:
label: 'Interactive'
position: 50 # after `general`, before `structure`
navigation:
label: 'Navigation'
position: 150 # after `structure`, before `plugins`
forms:
label: 'Form elements'
position: 500
M12:
Foundation:
gridSize: 12
devices:
small:
label: 'Small device'
medium:
label: 'Medium device'
large:
label: 'Large device'
xlarge:
label: 'X-Large device'
gridRowSettings:
classCollapse:
label: 'Collapse: remove columns pading'
cssClassSuffixes: [ '-collapse', '-uncollapse' ] # e.g. small-text-left
appliedPerColumn: false
uiInspectorGroup: gridOptions
helpMessage: |
Select to have grid columns without gutter space between them.
You can set this option for selected-only screens or for all of them.
extraValues:
start:
'collapse':
label: 'all devices: collapse'
group: All devices
end: [ ]
# @see AbstractGridNodeTypePostprocessor which utilizes these settings
# to generate required properties for M12.Foundation:GridColumn node type
gridColumnSettings:
size:
label: 'Grid column width'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
With this option you can set the column width (`x` columns, out of 12) in a grid row.
### Examples
* `small: 6/12`: this container will span across 6 of 12 columns (i.e. 50% width), on small and larger devices.
* `medium: 4/12`: this container will span across 4 of 12 columns (i.e. ~33% width), on medium and larger devices.
cssClassSuffixes: [ '-' ] # DEVICE-X, eg: small-X, medium-Y, large-Z
appliedPerColumn: true
uiInspectorGroup: grid
offset:
label: 'Grid column offset'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
With this option you move blocks up to 11 columns to the right.
### Examples
* `small: 8/12` offset together with `small: 4/12` column width: sets an empty space to 8 of 12 (75%) and then positions the column there (remaining 25%).
cssClassSuffixes: [ '-offset-' ] # DEVICE-offset-X, eg: small-offset-X, medium-offset-Y, large-offset-Z
appliedPerColumn: true
uiInspectorGroup: grid
pushPull:
label: 'Grid column order'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
Using these source ordering classes, you can shift columns around between the breakpoints. You can even completely change column order by pushing one by 6/12, pulling another by 6/12.
Use _Grid column order reset_ option below to reset pushed or pulled columns to their original position on particular screens.
cssClassSuffixes: [ '-push-', '-pull-' ] # DEVICE-push-X, eg: small-push-X, medium-push-Y, large-push-Z
appliedPerColumn: true
uiInspectorGroup: grid
resetOrder:
label: 'Grid column order reset'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
Use this option below to reset pushed or pulled columns (using _Grid column order_ settings above) to their original position on particular screens.
cssClassSuffixes: [ '-reset-order' ] # e.g. small-reset-order
appliedPerColumn: false
uiInspectorGroup: grid
align:
label: 'Grid column align'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
Center your columns by using this option. For example if you set the column size to `small: 6/12`, it means it will use only 50%. By default, the column would be left-aligned, but with this option you can center it.
Large device will inherit small centering by default, but you can also center solely on large by applying a _large: centered_ option. To un-center on large screens use _large: uncentered_.
cssClassSuffixes: [ '-centered', '-uncentered' ] # e.g. small-centered, large-centered
appliedPerColumn: false
uiInspectorGroup: grid
# @see AbstractGridNodeTypePostprocessor which utilizes these settings
# to generate required properties for M12.Foundation:BlockGrid node type
blockGridSettings:
itemsPerRow:
label: 'Number of contents per row'
helpMessage: |
This 12-column grid is mobile-first. Set options for **small screens first**, and **larger devices will inherit those styles**. Customize for larger screens as necessary.
Use this setting to specify a different number of items in a row for each screen size.
cssClassSuffixes: [ '-block-grid-' ] # DEVICE-block-grid-X, eg: small-block-grid-X, medium-block-grid-Y, large-block-grid-Z
appliedPerColumn: true
uiInspectorGroup: grid
uiInspectorPosition: 10
defaults: # default values per-device
- small-block-grid-1
- medium-block-grid-2
- large-block-grid-3
genericHelpers:
classTextAlign:
label: 'Content align'
helpMessage: "Sets content aligning for this element (and its children). You can set different aligning for a particular device, for example you can set text justify for large devices, but centered for a medium and small ones."
cssClassSuffixes: [ '-text-left', '-text-center', '-text-right', '-text-justify' ] # e.g. small-text-left
appliedPerColumn: false
uiInspectorGroup: utilityClasses
uiInspectorPosition: 20
extraValues:
start:
'text-left':
label: 'all devices: left'
group: All devices
'text-center':
label: 'all devices: center'
group: All devices
'text-right':
label: 'all devices: right'
group: All devices
'text-justify':
label: 'all devices: justify'
group: All devices
end: [ ]
#
# Configuration for auto-created child/peer nodes for different node types.
# This is to ease adding/editing new nodes. E.g. for new grid row with X columns,
# it will set default column width, so the grid is responsive out of the box.
# When adding new Obrit carousel, three image placeholder will be inserted there,
# so user doesn't have to do too much.
# @see \M12\Foundation\Node\NodeConfigurator class for implementation.
#
assistanceChildNodes:
# Alert: add Text node inside
'M12.Foundation:Alert':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: 'This is a sample alert text.'
# GridColumn: add Text node inside with sample content
'M12.Foundation:GridColumn':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: 'Column %s content'
# Panel: add sample Text node inside
'M12.Foundation:Panel':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: '<h4>This is a panel title</h4><p>This is a sample panel content.</p>'
# Orbit slider: add images inside
'M12.Foundation:Orbit':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
properties:
hasCaption: TRUE
caption: "Slide 1 caption"
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
properties:
hasCaption: TRUE
caption: "Slide 2 caption"
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
properties:
hasCaption: TRUE
caption: "Slide 3 caption"
# Reveal Modal: add sample content inside + insert Button before and link it with modal element (linking done in the code)
'M12.Foundation:RevealModal':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Headline'
properties:
title: '<h1>Modal window</h1>'
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: 'Sample modal content.'
beforeNodes:
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Show modal window'
# Button Group: add buttons inside
'M12.Foundation:ButtonGroup':
childNodes:
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Button A'
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Button B'
# Button Bar: add button groups inside (and they will add Button element itself)
'M12.Foundation:ButtonBar':
childNodes:
- nodeType: 'M12.Foundation:ButtonGroup'
- nodeType: 'M12.Foundation:ButtonGroup'
# Dropdown: add button linking with it, so it works out of the box (linking done in the code)
'M12.Foundation:Dropdown':
beforeNodes:
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Show dropdown'
# Dropdown with any content: add sample content, add button linking with it
'M12.Foundation:DropdownContent':
beforeNodes:
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Show dropdown'
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Headline'
properties:
title: '<h1>Dropdown content</h1>'
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: 'Sample dropdown content.'
# Block grid: add sample content inside, so it's obvious how it works out of the box
'M12.Foundation:BlockGrid':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
- nodeType: 'TYPO3.Neos.NodeTypes:Image'
# Form: demonstrate sample form.
'M12.Foundation:Form':
childNodes:
- nodeType: 'M12.Foundation:FormFieldset'
properties:
legendTxt: 'Sample (and responsive!) form'
childNodes:
# Form 1st row
- nodeType: 'M12.Foundation:GridRow2Col'
enableAutoCreateNodes: FALSE
childNodes:
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6' ]
childNodes:
- nodeType: 'M12.Foundation:FormInput'
properties:
inputLabel: 'First Name'
inputPlaceholder: 'Your first name...'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6' ]
childNodes:
- nodeType: 'M12.Foundation:FormInput'
properties:
inputLabel: 'Last Name'
inputPlaceholder: 'Your last name...'
errorState: TRUE
errorTxt: 'Did you forgot your last name?'
# Form 2nd row
- nodeType: 'M12.Foundation:GridRow4Col'
enableAutoCreateNodes: FALSE
childNodes:
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormInput'
properties:
inputLabel: 'Input 1'
classRadiusAndRounded: 'radius'
inputDisabled: TRUE
inputPlaceholder: 'disabled status'
# 2nd column with form suffix (needs another grid 2col)
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:GridRow2Col'
enableAutoCreateNodes: FALSE
properties:
classCollapse: [ 'collapse' ]
childNodes:
- nodeType: 'M12.Foundation:FormLabel'
properties:
inputLabel: 'Input 2'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-8' ]
childNodes:
- nodeType: 'M12.Foundation:FormInput'
properties:
inputLabelEnable: FALSE
inputPlaceholder: 'your-domain'
classRadiusAndRounded: 'radius'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-4' ]
childNodes:
- nodeType: 'M12.Foundation:FormInputPrePostfix'
properties:
text: '.com'
classRadiusAndRounded: 'radius'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormInput'
properties:
inputLabel: 'Input 3'
classRadiusAndRounded: 'radius'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormInputSelect'
properties:
inputLabel: 'Input 4'
selectOptions: |
=
Option 1
Option 2
Option 3
classRadiusAndRounded: 'radius'
# Form 3rd row
- nodeType: 'M12.Foundation:GridRow4Col'
enableAutoCreateNodes: FALSE
childNodes:
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormLabel'
properties:
inputLabel: 'Choose colour'
- nodeType: 'M12.Foundation:FormInputCheckbox'
properties:
inputLabel: 'Red'
inputChecked: TRUE
- nodeType: 'M12.Foundation:FormInputCheckbox'
properties:
inputLabel: 'Black'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'medium-6', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormLabel'
properties:
inputLabel: 'Choose option'
- nodeType: 'M12.Foundation:FormInputRadio'
properties:
inputName: 'option'
inputLabel: 'Option 1'
- nodeType: 'M12.Foundation:FormInputRadio'
properties:
inputName: 'option'
inputLabel: 'Option 2'
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-12', 'large-6' ]
childNodes:
- nodeType: 'M12.Foundation:GridRow4Col'
enableAutoCreateNodes: FALSE
childNodes:
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-4', 'medium-2', 'large-3' ]
childNodes:
- nodeType: 'M12.Foundation:FormLabel'
properties:
inputLabel: 'Inline label:'
labelInlined: TRUE
classTextAlign: [ 'text-right' ]
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-8', 'medium-10', 'large-9' ]
childNodes:
- nodeType: 'M12.Foundation:FormInputTextarea'
properties:
inputLabelEnable: FALSE
inputPlaceholder: 'Write something...'
# Form last for (with centered column with submit)
- nodeType: 'M12.Foundation:GridRow1Col'
enableAutoCreateNodes: FALSE
childNodes:
- nodeType: 'M12.Foundation:GridColumn'
properties:
classGridSize: [ 'small-8', 'medium-4' ]
classGridAlign: [ 'small-centered' ]
classTextAlign: [ 'text-center' ]
childNodes:
- nodeType: 'M12.Foundation:Button'
properties:
label: 'Submit'
classOptions: [ 'success', 'radius' ]
htmlTitle: 'You can submit me...'
tooltip: TRUE
classTooltipPosition: 'tip-left'
- nodeType: 'M12.Foundation:FontIcon'
properties:
faName: 'fa-spinner'
faOptions: [ 'fa-2x', 'fa-spin' ]
customCssCode: 'position:absolute;margin:0.6rem 1rem'
htmlTitle: 'Loading...'
tooltip: TRUE
classTooltipPosition: 'tip-right'
# Side navigation: add navigation items inside
'M12.Foundation:SideNav':
childNodes:
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Side Nav Item 1'
classActive: TRUE
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Side Nav Item 2'
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Side Nav Item 3'
- nodeType: 'M12.Foundation:NavItem'
properties:
classDivider: TRUE
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Side Nav Item 4'
# Sub navigation: add navigation items inside
'M12.Foundation:SubNav':
properties:
title: 'Navigation:'
childNodes:
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Item 1'
classActive: TRUE
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Item 2'
- nodeType: 'M12.Foundation:NavItem'
properties:
label: 'Item 3'
# Accordion item: add sample text inside
'M12.Foundation:AccordionItem':
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: 'Sample accordion item content.'
# Accordion: add accordion items, configure the 1st one as active
'M12.Foundation:Accordion':
childNodes:
- nodeType: 'M12.Foundation:AccordionItem'
properties:
isAccordionItemActive: TRUE
accordionItemLabel: 'Accordion Item 1'
- nodeType: 'M12.Foundation:AccordionItem'
properties:
accordionItemLabel: 'Accordion Item 2'
- nodeType: 'M12.Foundation:AccordionItem'
properties:
accordionItemLabel: 'Accordion Item 3'
# Tabs: add tab items and sample content inside them, configure 1st item as active
'M12.Foundation:Tabs':
childNodes:
- nodeType: 'M12.Foundation:TabItem'
properties:
title: 'Tab 1'
activeTab: TRUE
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: '<h4>Tab panel 1</h4><p>This is a sample tab 1 content.</p>'
- nodeType: 'M12.Foundation:TabItem'
properties:
title: 'Tab 2'
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: '<h4>Tab panel 2</h4><p>This is a sample tab 2 content.</p>'
- nodeType: 'M12.Foundation:TabItem'
properties:
title: 'Tab 3'
childNodes:
- nodeType: 'TYPO3.Neos.NodeTypes:Text'
properties:
text: '<h4>Tab panel 3</h4><p>This is a sample tab 3 content.</p>'