Reusable plain frontend base assets for VTXM Contao projects.
This repository is not a Contao bundle. It does not contain composer.json, Contao PHP code, Contao templates, GSAP, or project-specific theme code.
The Contao bundles remain theme-agnostic. These assets are optional helpers that can be loaded by a project theme when needed.
css/vtxm-components.css
js/vtxm-components.js
css/vtxm-components.css provides a generic default skin for the VTXM Contao frontend hooks.
It is aligned with the actual Contao templates and CE option classes for:
- Layout Preset
- Section Elements
- Content Grid
- Iconbox
- Members Grid
- Live Teaser
- Quote Teaser
- Announcement
- Tabs
- Accordion
- Timeline
Supported structural hooks include:
.vtxm-section.section--grid.section--split.vtxm-section__inner.vtxm-section__area
Recommended separation:
content-elements= reusable content blockscontent-grid= render another article as a gridlayout-preset= render external slots as split layoutsection-elements= inline structure inside the current article
Project-specific styling belongs in your project CSS, for example custom.css. Load project CSS after vtxm-components.css to override the defaults.
js/vtxm-components.js is only required for VTXM tabs.
It provides generic tab behavior for:
- multiple tab groups
- first tab active by default
.is-activestate- hidden inactive panels
- ARIA attributes
- keyboard navigation with ArrowLeft, ArrowRight, Home and End
Accordion elements work natively with details / summary; no accordion JavaScript is included.
CSS:
- theme
main.css css/vtxm-components.css- project
custom.css
JS:
- theme JavaScript
js/vtxm-components.js- project
app.jsif needed
The assets are intentionally generic. Theme JavaScript remains part of the project theme and is not included here.
GSAP is not included.
VTXM CSS/JS files in this repository are MIT licensed.