By default, the Inbenta SDK loads two Cascading Style Sheets (CSS) files:
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.
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
Depending on how images are aligned in the Knowledge instance's Content Editor, the Knowledge SDK assigns them the following classes:
image-style-align-left
image-style-align-right
image-style-align-top
image-style-align-bottom
image-style-block-align-left
image-style-align-center
image-style-block-align-right
If you are not using the Knowledge SDK to render the UI of your Knowledge solution, apply the following CSS rules to your output to make sure images display the way the content editor intends them to:
.image-style-align-left {
clear: none;
float: left;
margin-right: calc(16px/2);
}
.image-style-align-right {
clear: none;
float: right;
margin-left: calc(16px/2);
}
No CSS rule is required, as the style is already specified within the <img>
HTML element.
No CSS rule is required, as the style is already specified within the <img>
HTML element
.image {
display: table;
clear: both;
text-align: center;
margin: 0.9em auto;
min-width: 50px;
}
.image img {
display: block;
margin: 0 auto;
max-width: 100%;
min-width: 100%
}
.image-style-block-align-left {
max-width: calc(100% - 16px);
margin-left: 0;
margin-right: auto;
}
.image {
display: table;
clear: both;
text-align: center;
margin: 0.9em auto;
min-width: 50px;
}
.image img {
display: block;
margin: 0 auto;
max-width: 100%;
min-width: 100%
}
.image-style-align-center {
margin-left: auto;
margin-right: auto;
}
.image {
display: table;
clear: both;
text-align: center;
margin: 0.9em auto;
min-width: 50px;
}
.image img {
display: block;
margin: 0 auto;
max-width: 100%;
min-width: 100%
}
.image-style-block-align-right {
max-width: calc(100% - 16px);
margin-left: 0;
margin-right: auto;
}