-
Notifications
You must be signed in to change notification settings - Fork 64
JSON Config and Authoring Tool Options
Alongside Custom Classes the Vanilla theme can support additional visual enhancements available either through manual entry via the JSON (Framework) or by configuration via the interface (Authoring Tool). These extras are entirely optional and not every property requires data.
Apply the following settings to add, and customise, a page background image.
Available options for the page:
"_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"
},
"_responsiveClasses": {
"_large": "class-large",
"_medium": "class-medium",
"_small": "class-small"
}
}
Equivalent Authoring Tool view:
Apply the following settings to add, and customise, a page header background image or define a minimum height for the page header element.
Available options for the page header:
"_vanilla": {
"_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
}
}
}
Equivalent Authoring Tool view:
Apply the following settings to add, and customise, an article background image.
Available options for the article:
"_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"
},
"_responsiveClasses": {
"_large": "class-large",
"_medium": "class-medium",
"_small": "class-small"
}
}
Equivalent Authoring Tool view:
Apply the following settings to add, and customise, a block background image, define a minimum height for the block element or mark the block as a divider.
The _isDividerBlock
property at present adds a custom class .is-divider-block
to the block element but there is no styling attached to this class.
Available options for the block:
"_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
},
"_responsiveClasses": {
"_large": "class-large",
"_medium": "class-medium",
"_small": "class-small"
},
"_isDividerBlock": false,
"_componentVerticalAlignment": "center"
}
Equivalent Authoring Tool view:
- Framework in Five Minutes
- Setting up Your Development Environment
- Manual Installation of the Adapt Framework
- Adapt Command Line Interface
- Common Issues
- Creating Your First Course
- Styling Your Course
- Core Plugins in the Adapt Learning Framework
- Deploying and Testing Your Adapt Course
- Contributing to the Adapt Framework
- Git Flow
- Adapt API
- Adapt Command Line Interface
- Core Events
- Core Model Attributes
- Core Modules
- Web Security Audit
- Peer Code Review
- Plugins
- Developing Plugins
- Developer's Guide: Components
- Developer's Guide: Theme
- Registering a Plugin
- Semantic Version Numbers
- Core Model Attributes
- Adapt Command Line Interface
- Accessibility
- Adapt Framework Right to Left (RTL) Support