For details of how to create a branding theme within the UI, including for resellers with separate domains or subdomains, see Themes management.
This page describes how to manually create a CSS theme to white-label the Abiquo multi-cloud platform. This process was used for branding in versions prior to Abiquo 6.1, and you can also use it to create CSS files for extra configuration, such as customized buttons.
For details of how install a CSS theme, see Abiquo branding admin guide.
For details of how to brand the platform with CSS themes for resellers with separate URLs, see Abiquo UI theme per subdomain
Changes to branding
Introduction to branding
The Abiquo HTML 5 user interface can be branded for the login screen and at the tenant level with multiple different themes.
The login screen uses the default theme
To customize the login screen, create a theme that styles the login elements and set it is as the default
When a user logs in, Abiquo displays the user's theme as defined in the UI
If the user’s enterprise is a reseller or a reseller customer, Abiquo uses the reseller theme
If the user's enterprise does not have a theme, Abiquo also uses the default theme as defined in theme management
Reseller branding
You can create reseller themes in the UI with Themes management
To configure more than one theme with different URLs for each theme, see Abiquo UI theme per subdomain
Customize themes in the Abiquo UI
To customize themes in the UI, see Themes management.
For advanced customizations, such as popup corners, login box position, and so on, use Abiquo CSS Branding as described below.
Branding CSS files and folders
This directory listing contains the CSS files for the default theme, which include the files for remote access
ui/theme/
│ ├── abicloudDefault
│ ├── css
│ │ ├── app.min.css
│ │ ├── theme_guacamole.css
│ │ ├── theme_novnc.css
│ │ └── theme_wmks.css
...
├── sample_theme
│ ├── css
│ │ └── theme.css
│ └── img
│ └── menu-sprite.png ...
The CSS files for branding are described in the following table.
File | Branding for |
---|---|
theme.css | Abiquo UI |
theme_guacamole.css | Guacamole remote access console. See https://wiki.abiquo.com/display/doc/Branding+Guacamole |
theme_wmks.css | WMKS remote console. See https://wiki.abiquo.com/display/doc/Branding+WMKS |
theme_novnc.css | Deprecated file |
Copy sample theme files to customize
If you wish to perform advanced CSS customizations, copy the sample files and make changes to the CSS.
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
The platform stores the themes in the user interface files in the theme folder.
Base theme:
abicloudDefault
Sample theme:
sample_theme
The sample theme CSS is not suitable for use in Abiquo directly.
The platform overwrites the default and sample theme folders at every release.
To create a theme:
Copy the
sample_theme
folderRename the folder with the new theme name that will display for the administrator in the Abiquo UI
Optionally copy the CSS files for remote access to the new theme's
css
foldertheme_guacamole.css
theme_wmks.css
Design a new theme
You can now use the built-in UI theme design feature to design your themes.
See Themes management.
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
When you create a theme using CSS files, a new theme may include both image files and CSS.
The basic UI images and colours are described in this PDF file Abiquo_UI_Style-Images_and_Colors_v600.pdf
The basic UI image files are also described in the Sample Theme Image Reference.
You can copy the abicloudDefault img folder from your Abiquo Server to obtain all the default images
You can style the UI using CSS from the sample_theme
Customize main menu buttons
The platform loads the images on the main menu buttons from the Abiquo icon sheet. For full details, see the Sample Theme Image Reference.
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
To customize the main menu buttons, you can use an icon sheet or individual images:
Add the icon sheet file or image files of 24 x 24 pixels to the
img
folder in your themeUse CSS
to reference the location of each icon on the sheet, for example
This means that the top left-hand corner of the icon is at the coordinates (0,-144).
.main-menu-section-link-icon-data { background-image: url(../img/menu-sprite.png); background-position: 0 -144; }
or to load an individual icon from its own image file
To load the whole image, you must use background-position of 0 0.
.main-menu-section-link-icon-data { background-image: url(../img/MY_VDC_IMAGE.png); background-position: 0 0; }
We recommend that you copy the latest version of this CSS from the UI using developer tools in your browser.
Set a default logo for all enterprises
To set the default logo for all enterprises:
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
The space reserved for the logo file is 48 x 48 pixels. See Sample Theme Image Reference
Add your logo file to the your main theme's
img
directoryIn Abiquo, go to Configuration view → General
For the Default logo, enter the relative address of your logo file
Branding CSS examples
Here are some branding examples to help you get started. When you copy the sample_theme
folder to a new folder, make a note of the folder name because it is the name of the theme and you will need to configure and select it in Abiquo later.
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
Edit your theme.css file and modify the following elements to style the UI for the enterprise.
The following examples may differ from the sample files. The sample files will be updated whenever necessary but these examples will only be updated occasionally.
Change the background color of the application. Search for the CSS class
.main-background-color
and changeFFFFFF
to another valid web color, for example, light greyEEEEEE
Change the background color for the main menu. Search for the following CSS and replace the color as you prefer.
.main-menu { background-color: #333333; }
Change the font color for the left side list by searching for and replacing the following colors
.main-menu .centering-container-menu li .main-menu-section-link-active small, .main-menu .centering-container-menu li.main-menu-section-link-active a span { color: #COLOR_HEX; }
Change the color of the primary font
body { color: #ec9032; }
Change the color of the primary button
.btn-primary { background-color: #719e19; border-color: #719e19; }
Change the color of the popup header bar
.modal-header { background-color: #efa253; }
Optionally, change the background color of the toast error messages
.toast-success { background-color: #51A351; } .toast-error { background-color: #BD362F; } .toast-info { background-color: #2F96B4; } .toast-warning { background-color: #F89406; }
Define custom images on the login page using CSS
To set custom images on the login page:
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
Add your files to the theme
img
folderIn the
sample-theme.css
file, search for thelogin-logo
andlogin-form_info .card
elementsFor each background-image url, add the relative path of the image file
For the login background, you can also specify the aspect ratio, or style the image further
Login logo CSS
.login-title { background-image: url(../img/MY_LOGO.png); background-size: contain; }
Login background CSS
.login-form_info .card { background-image: url(../img/MY_LOGIN_BACKGROUND.png); background-size: cover; background-position: 50% 50%; }
Develop advanced branding
Use your browser's web developer tools to identify HTML elements and CSS styles and customize them as required.
This section applies to Abiquo CSS branding.
For branding within the UI, see Themes management
Set a default theme for login and enterprises without themes
To style the login zone and any enterprises without their own themes, you can set a default theme.
Abiquo will use the default theme instead of the abicloudDefault
theme.
If there is no default theme, when users load the UI, the browser will not be able to find the theme/default/css/theme.css
file and a 404 error will display in the browser console.
To prevent this, set the empty
theme as the default theme.
Abiquo will always load the default theme from the link. Then it will load the theme for the domain/enterprise from the UI themes management
To set the default theme, which will persist after upgrades, do one of the following sets of steps:
In the theme folder, create a symbolic link, named 'default', which points to your default theme to mark it as the default.
For example, for a theme called “my_default_theme”.> theme/ ln -s my_default_theme default
For example, for the empty theme.
> theme/ ln -s empty default
Note that Tomcat does not allow access to symbolic links by default and you will need to enable the
allowLinking
property.
See https://tomcat.apache.org/tomcat-9.0-doc/config/resources.htmlOr if you do not wish to use a symbolic link (e.g. for security reasons), in the theme folder, rename or copy the folder of the theme you would like to use as the default to create a
default
folder.
Remember to check the file ownership and access settings because the Abiquo Tomcat server will need to access the branding files.
Troubleshooting branding
Here are some troubleshooting tips.
Administrator cannot access branding in the UI
If the administrators managing resellers are not cloud administrators, assign branding privileges to the users in Abiquo.
The branding privileges areManage default themes
andManage reseller themes
New themes do not display property
You MUST clear your browser cache to correctly display a new theme
All users who have previously accessed the platform should clear the browser cache on their machines before logging in to Abiquo again.