Creating Customised Brand for SSA
From SSA 12.0 onwards, a new brand.css
file has been introduced through which you can customise banner and branding for SSA.
- HTML banner
- Brand.css
HTML Banner
This is in reference to the section that appears on the upper part of the application. You can use this space to add your organisation's logo and apply colours in accordance with your brand guidelines.
For reference, refer to: Customerconfigurations > analyst > theme > banner > default
Duplicate the default folder containing the Pitney Bowes banner and edit the index.html file to suit your brand identity. You can create your own HTML banner as well. The HTML banner that you create would be referred in the brand.css file.
Brand.css
We have introduced a .css
file to manage all branding-related aspects through brand.css. Through this file, you are given the ability to:
- change the colour-related properties of SSA's UI elements to suit your organisation's brand.
- choose if a banner should be visible or not,
- provide reference to the banner file to be used in your brand,
- optionally provide a separate reference for the banner on mobile devices,
- choose if navigation buttons i.e. "Options", "Add" and "Legends" buttons should appear within the banner or on the map
You can find the brand.css file in the default brand's folder:
Customerconfigurations > analyst > theme > branding > default > brand.css
You can also download it from here.
Creating a New Brand
- To create a new brand for mobile-first SSA, go to the branding folder.
Customerconfigurations > analyst > theme > branding > default > brand.css
- Create a new folder, you can provide a suitable name for the folder.
- The folder name is the brand name you can reference for a map-configuration from SSA Admin Console.
- Copy the
brand.css
file into the new brand folder you created.
Creating a new brand Using brand.css to customise your brand
- No Banner
Set the following
.css
properties to "display:none
;" in case you do not want to display the banner#banner { display: none; } #mobileBanner{ display: none; }
- With banner
Set the following
.css
properties to "display:BLOCK;
" in case you want to display the banner.#banner { display: BLOCK; } #mobileBanner { display: BLOCK; }
- Referencing the Banner
You can refer to the HTML banner within the
brand.css
file by modifying the path of the file (update only the BOLD section)./* Banner_URL = *** /theme/banner/default/index.html *** */
Note: Please be careful while updating this property, do not remove the comments or change the ***, as our java-script program looks for the *** to pick the html file's path - Referencing the Mobile Banner
You can refer to a different banner in the same brand for mobile devices.
To set a different banner on mobile, set the following property (only update the BOLD section)
/* Mobile_Banner_URL = **** /theme/banner/default/index.html **** */
If this property is not specified, the banner reference Step A will be used for mobile as well.
Note: Please be careful while updating this property, do not remove the comments or change the ****, as our java-script program looks for the **** to pick the HTML file's path. - Position of Navigation Buttons
The navigation buttons can be moved below the custom banner/default banner by modifying the "top" css property according to the height of the banner in px as below:
#navigationIcon.iconContainer { top: 50px; }
Note: The height of the default PB banner is 50px. - Changing the colour property of UI elements
We have added instructions as comments within the brand.css file so that it provides you with contextual help for each UI property in the
.css
file. It allows you to modify the following UI elements.- Primary button
- Default button
- Link button
- Form elements
- Accordions
- Tables
- Token/Badge colour
- Default annotation colour
- Tabs (active state)
- Date picker
- Primary button
Changing the locator marker for the map in your custom brand