Skip to main content

CM2WebShare CSS Styling Guide

Raise a support ticket

TABLE STRUCTURE​

The default structure and theme of a CM2WebShare table displays as the following:

image.png

A CM2WebShare table can be broken down into the following structure

image.png

VERSION 5 CSS STYLING

If upgrading from Version 4 or below to Version 5, any custom CSS styling will need to be updated to suit the new technology. Version 5 requires calling elements by their ID rather than the general class. Using the class name only will cause issues to persist within the entire CM2WebShare solution.

ElementPurpose
#table-results-table (Previously: .ui.table #grid)This is the outer shell of the table. Any configuration changes will affect the whole table. This includes background colours, default fonts, borders and more.
#search-results-table thead th (Previously: .th)The table header allows for the header elements to be configured specifically including colours, fonts, padding and more.
#search-results-table thead tr (Previously: .tr)The table header row allows for the header row to be configured specifically including colours, fonts, padding and more.
#search-results-table tr td (Previously: .td.record .td.child)The table body rows. Allows for the update of the colour, font and styling on the body of the table.
#records-tableThe table body is the outer shell of the table, excluding the header. Everything inside the table is within the table body. This allows for the body of the table to be configured with borders, background colours, font size, font colours and more.

STYLING TEMPLATE​

You can use the CM2WebShare theme styling template and add your features to ensure the correct elements are being targeted. The template is accessible on the FYB Document360 portal.

If you wish to use your own template, please ensure to add the bottom section that has been marked in the template to ensure full functionality of the CM2WebShare tables.

CM2WebShare can support multiple custom themes. Themes are stored in the Custom Theme folder located in the Temp Path set for CM2WebShare.

STYLING TIPS​

To ensure that the custom theme configuration is overriding the default settings, ensure to use !important at the end of each CSS element added as shown in the template. This will allow for the new styles to override the importance of the default settings.