Customize the Infobox Widget

Learn how to customize the Infobox widget with advanced custom CSS.

Employee App
Front Door Intranet

Widgets are the building blocks of your Pages and News. In this tutorial, we will take you through how to customize the Infobox widget added to Pages and News with custom CSS.

On completing this tutorial, you will be familiar with the CSS selectors required to customize the Infobox widget.

Using custom CSS can result in undesired formatting or styling. Use custom CSS only if you have experience working with CSS, and always double-check what your app looks like after applying your styles.

  1. In the Studio, click the gear wheel to open the settings.

  2. Under Customization, click Branding.
    The Branding page opens.

  3. Under Custom Styling, click Adjust the styling of your app.
    The Custom Styling editor opens.

  4. In the editor, copy and paste the CSS lines.

div[type="info"].ui-commons__infobox-widget,
div[type="warning"].ui-commons__infobox-widget,
div[type="idea"].ui-commons__infobox-widget {
border-left: 10px solid #66ccff;
}
div[type="warning"].ui-commons__infobox-widget {
border-left: 10px solid #FFCC70;
background-image: linear-gradient(43deg, #4158D0 20%, #C850C0 80%, #FFCC70 100%);
color: #fff !important;
}
div[type="warning"].ui-commons__infobox-widget .ui-commons__infobox-widget__content{
color: #fff !important;
}
div[type="warning"].ui-commons__infobox-widget svg{
fill: #fff;
}
.infobox-widget .ui-commons__infobox-widget__title{
font-size: 20px;
line-height: 30px;
}
.infobox-widget,
.ui-commons__infobox-widget{
border-radius: 8px !important;
}
  1. Click Preview to test your CSS customizations.

  2. Save the changes.

You have customized the Infobox widget of your Staffbase platform.