The matrix component can be useful to display a selection of items in a format that is less linear than a normal list, using an image to describe each item.
Items will display in one column on small screens. At resolutions above $breakpoint-small
, items will display three per row.
Note:
To import just this component into your project, copy the snippet below and include it in your main Sass file.
// import Vanilla and include base mixins
// this only needs to happen once in a given project
@import 'vanilla-framework';
@include vf-base;
@include vf-p-matrix;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.