CSS Injection (Deprecated)

Warning

This feature applies only to the legacy user interface. It does not apply to the current user interface. The legacy user interface is not supported and will no longer be available after April 15, 2023.

Socotra has identified a set of CSS Classes that customers can modify by adding a new custom CSS file which is applied after the default CSS styles are applied.

In addition, customers can override the logo used in the UI to reflect their own branding requirements.

Note

Note: Occasionally Socotra may change the CSS classes used in the UI. We will work to minimize changes to the recommended classes. Customers are free to create whatever CSS they wish and can override any style found in the UI, however other classes may be more volatile and require more regular updates to the custom CSS file.

Usage

To use CSS Injection and deploy a custom css file or logo, use the Add Custom Web Assets endpoint. You can send either of two files:

  • styles.css, to be applied after the styling used in the base CSS file

  • logo.png, to replace the logo in the upper left corner of the main UI

Note: CSS specificity can be complex. If you find that your class definitions are not being applied properly, you can append an !important tag after the definition. For example:

.content-panel-data-value {
  color: blue !important;
}

Style Map

These diagrams identify the styles that Socotra will maintain. You can include any of these in your styles.css file.

../_images/css_injection_class_names_1.png ../_images/css_injection_class_names_3.png ../_images/css_injection_class_names_2.png