Developers

SDK Styles

Inbenta Styles

By default, the Inbenta SDK loads two Cascading Style Sheets (CSS) files:

  • The first (e.g. space-cowboy.css or ocean-flow.css) loads a skin. A skin is a set of parameters that define the style and appearance of the product. It allows the user to interact with the product on any device in a comfortable and intuitive manner.
  • The second (layout.css) loads layout information. It defines how the components are placed relative to each other and on the screen. This document lists the structural classes, but it does not go into these classes in detail.
Caution

Remember that if you modify the structural elements, it will affect how the product is displayed. Inbenta strongly recommends that you leave structural elements unchanged. If you want to use your own design, it is possible to remove space-cowboy.css so that only layout.css is loaded. You can then use your design, independently of Inbenta's suggested appearance, either by customizing layout.css or by adding your own separate CSS file.

The tables shown for each component in the product CSS pages also specify which CSS styles apply to their respective classes in space-cowboy.css. If the skin is disabled, only the structural classes will be used. The tables also specify these structural classes.

Customizing CSS Styles

Important

Always use a CSS selector that is more specific than the one used in the Inbenta skin, due to the order in which the files are loaded: the Inbenta skin is loaded last, and therefore has more weight. Inbenta recommends that you use the Inbenta class to be more specific. No skin is using this class to style its components.

Example:

To change the appearance of the search form button:

In this image, the selector is:

.inbenta-km__search__form .form__button .inbenta-km-button

To overwrite these styles or add new ones to this element, the selector should be:

.inbenta .inbenta-km__search__form .form__button .inbenta-km-button or .{your_custom_name} .inbenta-km__search__form .form__button .inbenta-km-button

Available components

Available subcomponents