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.

Custom Infobox Widget

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.

Prerequisites

Customize the Infobox Widget

  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.

1div[type="info"].ui-commons__infobox-widget,
2div[type="warning"].ui-commons__infobox-widget,
3div[type="idea"].ui-commons__infobox-widget {
4 border-left: 10px solid #66ccff;
5}
6
7div[type="warning"].ui-commons__infobox-widget {
8 border-left: 10px solid #FFCC70;
9 background-image: linear-gradient(43deg, #4158D0 20%, #C850C0 80%, #FFCC70 100%);
10 color: #fff !important;
11}
12
13div[type="warning"].ui-commons__infobox-widget .ui-commons__infobox-widget__content{
14 color: #fff !important;
15}
16
17div[type="warning"].ui-commons__infobox-widget svg{
18 fill: #fff;
19}
20
21.infobox-widget .ui-commons__infobox-widget__title{
22 font-size: 20px;
23 line-height: 30px;
24}
25
26.infobox-widget,
27.ui-commons__infobox-widget{
28 border-radius: 8px !important;
29}
  1. Click Preview to test your CSS customizations.

  2. Save the changes.

You have customized the Infobox widget of your Staffbase platform.

Additional Helpful Information