forked from adaptlearning/adapt-contrib-vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.json
84 lines (76 loc) · 2.86 KB
/
example.json
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
Background images, styles, and minimum heights
// contentObjects.json
"_vanilla": {
"_backgroundImage": {
"_large": "course/en/images/example.jpg",
"_medium": "course/en/images/example.jpg",
"_small": "course/en/images/example.jpg"
},
"_backgroundStyles": {
"_backgroundSize": "contain",
"_backgroundRepeat": "repeat",
"_backgroundPosition": "center center"
},
"_pageHeader": {
"_backgroundImage": {
"_large": "course/en/images/example.jpg",
"_medium": "course/en/images/example.jpg",
"_small": "course/en/images/example.jpg"
},
"_backgroundStyles": {
"_backgroundSize": "contain",
"_backgroundRepeat": "repeat",
"_backgroundPosition": "center center"
},
"_minimumHeights": {
"_large": 600,
"_medium": 400,
"_small": 200
}
}
}
// articles.json
"_vanilla": {
"_backgroundImage": {
"_large": "course/en/images/example.jpg",
"_medium": "course/en/images/example.jpg",
"_small": "course/en/images/example.jpg"
},
"_backgroundStyles": {
"_backgroundSize": "contain",
"_backgroundRepeat": "repeat",
"_backgroundPosition": "center center"
}
}
// blocks.json
"_vanilla": {
"_backgroundImage": {
"_large": "course/en/images/example.jpg",
"_medium": "course/en/images/example.jpg",
"_small": "course/en/images/example.jpg"
},
"_backgroundStyles": {
"_backgroundSize": "contain",
"_backgroundRepeat": "repeat",
"_backgroundPosition": "center center"
},
"_minimumHeights": {
"_large": 600,
"_medium": 400,
"_small": 200
},
// Divider Block - adds class to `.block` element
"_isDividerBlock": false
}
On screen animation classes
"_onScreen": {
"_isEnabled": true,
"_comment": "Supported classes = 'fade-in' | 'fade-in-left' | 'fade-in-right' | 'fade-in-top' | 'fade-in-bottom'. Additional classes can be used but they must be predefined in one of the Less files",
"_classes": "fade-in-bottom",
"_percentInviewVertical": 50
}
Block classes
"_comment": "Aligns child components centrally on the vertical axis",
"_classes": "align-vert-center"
"_comment": "Background color mixin. 'block-color' class is set up to be a common class that can be used for style generic overrides. The second class must match a predefined variable in the theme or added in Project Settings > Custom CSS/Less code.",
"_classes": "block-color black"