How do I get started?
You need to modify the default theme LESS file in order to apply your theming preferences.
Read Inbal Sabag's blog about Using LESS in HANA Cloud Portal for the technical aspects of modifying the default theme.
Check out HANA Cloud Portal Dev Guide section about Designing Site Themes for more info.
LESS override logic
LESS file compiler will take the bottom value of a parameter as the most updated one.
This means that if the same parameter appears several times in a LESS file, the value given in the most bottom appearance of this parameter will be the one used.
The best practice is to have only one single appearance of each parameter in the file.
Quick parameters
The top section of the theme LESS file contains "quick parameters".
These parameters were configured to make a high effect on the different components with the minimal configuration needed.
This is still a small set, and might not be sufficient for advanced styling.
Advanced parameters
The rest of the theme LESS file contains parameters that affect a vast variety of components.
They allow you to control the styling of practically anything, including:
Additional site components (such as fonts)
Widgets
UI5 controls within widgets (check out Styling UI5 Controls in HANA Cloud Portal Widgets)
Smartphone specific parameters
Expert Mode (AKA Editing theme via CSS)
We currently offer backwards compatibility for existing CSS based themes, but this is no longer the best practice, and you should base your styling on the new LESS default theme.
There's one use case for pushing CSS classes into the LESS file, which is the need to override specific UI5 styling, that our current UI5 related LESS parameters do not affect (check out Styling UI5 Controls in HANA Cloud Portal Widgets).
For example, let's say I want to modify the UI5 Tree font size. Here's how to tackle this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
36 | |
25 | |
17 | |
13 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 |