CMS Utility Classes

The following classes enable functionality within the CMS. Some are automatically added to elements and some are added manual to components via the component configuration dialog's CSS Class field. The descriptions for each describe whether they are automatic and what the functionality is. Each one is also linked to an example.

NOTE: Utility classes listed here work in all themes unless otherwise noted.

table-responsive - automatic in Moss theme - adds horiz scroll for tables on mobile devices

textAnchor - automatic in Moss theme - adds class to allow for in-page anchors to not be obscured by sticky top nav

vt-datatable - manual - add to Text or HTML component - initializes and runs table formatting for dataTables in Text components

vt-datatable-formatted - manual - add to Text or HTML component - initializes and runs table formatting for dataTables in HTML components where the table already has proper thead and tbody tags

vt-tablesorter - manual - add to Text or HTML component - initiates and runs table formatting for table sorter functions in Text components

vt-tablesorter-formatted - manual - add to Text or HTML component - initiates and runs table formatting for table sorter functions in HTML components where the table already has proper thead and tbody tags

vt-c-mta-select-# - manual - add to Multi Tabs / Accordion component - allows for the default opening of a tab or accordion fold on page load; "#" to be replaced by fold/tab number, e.g., vt-c-mta-select-3 to open the third tab or fold

vt-c-list-curated, vt-c-list-pruned - manual - add to List component - filters pruned list(s) by the items in curated list(s) to prevent duplicate list items being displayed on the same page.

vt-transparent-bg - manual - add to Image component - causes grey background on Image component to be turned transparent. Does not translate to lists.

vt-c-list-no-carets - manual - add to Text, Feed Reader, or List component - turns off list carets

vt-c-no-top-margin - * One theme only - add to any component - turns off the outer top margin of the component. Multicolumn components will also need to add this class to the top-most component in each column.

vt-c-no-bottom-margin - * One theme only - add to any component - turns off the outer bottom margin of the component. Multicolumn components will also need to add this class to the last component in each column.

vt-c-no-top-bottom-margin - * One theme only - add to any component - turns off the outer top and bottom margins of the component. Multicolumn components will also need to add the vt-c-no-bottom-margin class to the last component in each column.

vt-c-no-side-margins - * One theme only - add to any component - turns off the outer side margins of the component so it will stretch the width of the body column (not the same as Container component full width checkbox). Multicolumn components will also need to add this class to all components in each column, if desired.

vt-c-no-margins  - * One theme only - add to any component - turns off all outer margins of the component. Multicolumn components will also need to add this class to all components in each column, if desired.

vt-page-no-top-margin - * One theme only - add to Page body class field of Page Properties to remove the top margin and padding from the body and right column of a page.

vt-page-no-top-bottom-margin - * One theme only - add to Page body class field of Page Properties to remove the top and bottom margins and padding from the body and right column of a page.

vt-page-no-margins - * One theme only - add to Page body class field of Page Properties to remove all margins and padding from the body and right column of a page.

vt-no-tags - * One theme only - add to Page body class field of Page Properties to remove the tags area from an article page.

 

Offset two-column, multicolumns component classes

One theme and VTMag2 theme - Multicolumn components are normally evenly sized. If you need different sized columns in your layout, you have more options. These are applied using CSS classes on the multicolumn component.

NOTE: These classes only apply to two column multicolumn components. They will not work with more than two columns.

Custom column classes vary based on the 12 column Bootstrap grid. Percentages should be calculated based on x/12 where "x" is the column width value. Here are all the options:

  • vt-2col-md-6-only
  • vt-2col-7-4-offset-1
  • vt-2col-4-7-offset-1
  • vt-2col-7-5
  • vt-2col-5-7
  • vt-2col-8-4
  • vt-2col-4-8
  • vt-2col-9-3
  • vt-2col-3-9

Body inheritance via inherited footer classes

It is possible in the One theme to insert inherited content into the body or right column of a page using the following classes.

vt-body-inherit - add to footer items you would like to move to the bottom of the body column of a page. Use with vt-body-inherit-here to insert at a specific page location.

vt-body-inherit-top - add to footer items you would like to move to the top of the body column of a page. Does not work with vt-body-inherit-here class.

vt-body-inherit-here - add to a Container component in the body or right column to set the exact insertion point on the page for the vt-body-inherit component.

vt-body-no-inherit - add to Page properties -> Advanced -> Page body class to turn off display of inherited item on a page.